Update README.md
Browse files
README.md
CHANGED
@@ -91,6 +91,8 @@ model = PeftModel.from_pretrained(
|
|
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)
|
|
|
91 |
MODEL_NAME,
|
92 |
torch_dtype=torch.float16
|
93 |
)
|
94 |
+
model.eval()
|
95 |
+
|
96 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
97 |
generation_config = GenerationConfig.from_pretrained(MODEL_NAME)
|
98 |
print(generation_config)
|