Spaces:
Running
on
T4
Running
on
T4
FantasticGNU
commited on
Commit
•
280d395
1
Parent(s):
4ac42b9
Update model/openllama.py
Browse files- model/openllama.py +1 -1
model/openllama.py
CHANGED
@@ -199,7 +199,7 @@ class OpenLLAMAPEFTModel(nn.Module):
|
|
199 |
target_modules=['q_proj', 'k_proj', 'v_proj', 'o_proj']
|
200 |
)
|
201 |
|
202 |
-
self.llama_model = LlamaForCausalLM.from_pretrained(vicuna_ckpt_path)
|
203 |
self.llama_model = get_peft_model(self.llama_model, peft_config)
|
204 |
self.llama_model.print_trainable_parameters()
|
205 |
|
|
|
199 |
target_modules=['q_proj', 'k_proj', 'v_proj', 'o_proj']
|
200 |
)
|
201 |
|
202 |
+
self.llama_model = LlamaForCausalLM.from_pretrained(vicuna_ckpt_path, torch_dtype=torch.float16)
|
203 |
self.llama_model = get_peft_model(self.llama_model, peft_config)
|
204 |
self.llama_model.print_trainable_parameters()
|
205 |
|