Update lavis/models/protein_models/protein_function_opt.py
Browse files
lavis/models/protein_models/protein_function_opt.py
CHANGED
@@ -100,7 +100,7 @@ class Blip2ProteinMistral(Blip2ProteinBase):
|
|
100 |
# self.mistral_tokenizer = LlamaTokenizer.from_pretrained("/cluster/home/wenkai/.cache/huggingface/hub/models--teknium--OpenHermes-2.5-Mistral-7B", use_fast=False)
|
101 |
# configuration = MistralConfig()
|
102 |
self.mistral_tokenizer.pad_token = '<pad>'
|
103 |
-
self.mistral_model = MistralForCausalLM.from_pretrained("teknium/OpenHermes-2.5-Mistral-7B")
|
104 |
# self.mistral_model = MistralForCausalLM.from_pretrained("/cluster/home/wenkai/.cache/huggingface/hub/models--teknium--OpenHermes-2.5-Mistral-7B", torch_dtype=torch.float16)
|
105 |
# self.mistral_model = MistralForCausalLM(configuration)
|
106 |
for name, param in self.mistral_model.named_parameters():
|
|
|
100 |
# self.mistral_tokenizer = LlamaTokenizer.from_pretrained("/cluster/home/wenkai/.cache/huggingface/hub/models--teknium--OpenHermes-2.5-Mistral-7B", use_fast=False)
|
101 |
# configuration = MistralConfig()
|
102 |
self.mistral_tokenizer.pad_token = '<pad>'
|
103 |
+
self.mistral_model = MistralForCausalLM.from_pretrained("teknium/OpenHermes-2.5-Mistral-7B", torch_dtype=torch.float16)
|
104 |
# self.mistral_model = MistralForCausalLM.from_pretrained("/cluster/home/wenkai/.cache/huggingface/hub/models--teknium--OpenHermes-2.5-Mistral-7B", torch_dtype=torch.float16)
|
105 |
# self.mistral_model = MistralForCausalLM(configuration)
|
106 |
for name, param in self.mistral_model.named_parameters():
|