Comment for the try except import.

This commit is contained in:
Nicolas Patry 2024-05-23 08:55:28 +00:00
parent f48b6109fd
commit da1b5fa6b7

View File

@ -24,6 +24,7 @@ try:
VLM_BATCH_TYPES = {PaliGemmaBatch, VlmCausalLMBatch, IdeficsCausalLMBatch}
except (ImportError, NotImplementedError):
# These imports can fail on CPU/Non flash.
VLM_BATCH_TYPES = set()
from text_generation_server.pb import generate_pb2_grpc, generate_pb2