Update model.py
Browse files
model.py
CHANGED
|
@@ -55,7 +55,7 @@ class BobVLM(PreTrainedModel):
|
|
| 55 |
super().__init__(config)
|
| 56 |
self.vit = CLIPVisionModel.from_pretrained("openai/clip-vit-large-patch14").to(device)
|
| 57 |
self.adapter = BobVMLAdapter(config.lang_embed_dim, config.clip_dim).to(device)
|
| 58 |
-
self.language_model = AutoModelForCausalLM.from_pretrained('meta-llama/Llama-3.2-1B-Instruct'
|
| 59 |
|
| 60 |
|
| 61 |
def __extend_attention_mask(self,atten_mask, atten_to_img=True, num_added_tokens=257):
|
|
|
|
| 55 |
super().__init__(config)
|
| 56 |
self.vit = CLIPVisionModel.from_pretrained("openai/clip-vit-large-patch14").to(device)
|
| 57 |
self.adapter = BobVMLAdapter(config.lang_embed_dim, config.clip_dim).to(device)
|
| 58 |
+
self.language_model = AutoModelForCausalLM.from_pretrained('meta-llama/Llama-3.2-1B-Instruct').to(device)
|
| 59 |
|
| 60 |
|
| 61 |
def __extend_attention_mask(self,atten_mask, atten_to_img=True, num_added_tokens=257):
|