Update my_model/captioner/image_captioning.py
Browse files
my_model/captioner/image_captioning.py
CHANGED
@@ -43,6 +43,7 @@ class ImageCaptioningModel:
|
|
43 |
|
44 |
self.model = InstructBlipForConditionalGeneration.from_pretrained(self.model_path,
|
45 |
load_in_8bit=self.load_in_8bit,
|
|
|
46 |
torch_dtype=self.torch_dtype,
|
47 |
low_cpu_mem_usage=self.low_cpu_mem_usage,
|
48 |
device_map=self.device_map
|
|
|
43 |
|
44 |
self.model = InstructBlipForConditionalGeneration.from_pretrained(self.model_path,
|
45 |
load_in_8bit=self.load_in_8bit,
|
46 |
+
load_in_4bit=self.load_in_4bit,
|
47 |
torch_dtype=self.torch_dtype,
|
48 |
low_cpu_mem_usage=self.low_cpu_mem_usage,
|
49 |
device_map=self.device_map
|