Update README.md
Browse files
README.md
CHANGED
@@ -86,7 +86,11 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
86 |
torch_dtype=torch.float16,
|
87 |
device_map="auto"
|
88 |
)
|
89 |
-
model = PeftModel.from_pretrained(
|
|
|
|
|
|
|
|
|
90 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
91 |
generation_config = GenerationConfig.from_pretrained(MODEL_NAME)
|
92 |
print(generation_config)
|
|
|
86 |
torch_dtype=torch.float16,
|
87 |
device_map="auto"
|
88 |
)
|
89 |
+
model = PeftModel.from_pretrained(
|
90 |
+
model,
|
91 |
+
MODEL_NAME,
|
92 |
+
torch_dtype=torch.float16
|
93 |
+
)
|
94 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
95 |
generation_config = GenerationConfig.from_pretrained(MODEL_NAME)
|
96 |
print(generation_config)
|