You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertaccelerator.distributed_typein [DistributedType.FSDP, DistributedType.MULTI_GPU, DistributedType.DEEPSPEED], "Unsupported distributed type provided. Only DDP and FSDP are supported."
# We will cache the Gemini API response in this path and use it for future requests
48
44
**kwargs,
49
45
) ->None:
50
46
super().__init__()
51
47
self.model_version=model_version
52
48
self.timeout=timeout
53
49
self.model=genai.GenerativeModel(model_version)
54
-
self.continual_mode=continual_mode
55
-
self.response_persistent_file=""
56
50
self.interleave=interleave
57
-
# if self.continual_mode and response_persistent_folder is None:
58
-
# raise ValueError("Continual mode requires a persistent path for the response. We will cache the Gemini API response in this path and use it for future requests. Please provide a valid path.")
assertself.continual_modeisFalse, "Continual mode is not supported with distributed inference."
76
54
assertaccelerator.distributed_typein [DistributedType.FSDP, DistributedType.MULTI_GPU, DistributedType.DEEPSPEED], "Unsupported distributed type provided. Only DDP and FSDP are supported."
0 commit comments