Spaces:
Sleeping
Sleeping
FantasticGNU
commited on
Commit
•
ffa4d8f
1
Parent(s):
e2c6ac2
Update model/openllama.py
Browse files- model/openllama.py +1 -1
model/openllama.py
CHANGED
@@ -225,7 +225,7 @@ class OpenLLAMAPEFTModel(nn.Module):
|
|
225 |
# self.llama_model.load_state_dict(delta_ckpt, strict=False)
|
226 |
self.llama_model.print_trainable_parameters()
|
227 |
|
228 |
-
self.llama_tokenizer = LlamaTokenizer.from_pretrained(vicuna_ckpt_path, use_fast=False, torch_dtype=torch.float16)
|
229 |
self.llama_tokenizer.pad_token = self.llama_tokenizer.eos_token
|
230 |
self.llama_tokenizer.padding_side = "right"
|
231 |
print ('Language decoder initialized.')
|
|
|
225 |
# self.llama_model.load_state_dict(delta_ckpt, strict=False)
|
226 |
self.llama_model.print_trainable_parameters()
|
227 |
|
228 |
+
self.llama_tokenizer = LlamaTokenizer.from_pretrained(vicuna_ckpt_path, use_fast=False, torch_dtype=torch.float16)
|
229 |
self.llama_tokenizer.pad_token = self.llama_tokenizer.eos_token
|
230 |
self.llama_tokenizer.padding_side = "right"
|
231 |
print ('Language decoder initialized.')
|