timdettmers
commited on
Commit
•
f1aa294
1
Parent(s):
d1d92f6
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ m = AutoModelForCausalLM.from_pretrained(
|
|
32 |
torch_dtype=torch.bfloat16,
|
33 |
device_map={"": 0}
|
34 |
)
|
|
|
35 |
tok = LlamaTokenizer.from_pretrained("decapoda-research/llama-7b-hf")
|
36 |
tok.bos_token_id = 1
|
37 |
|
|
|
32 |
torch_dtype=torch.bfloat16,
|
33 |
device_map={"": 0}
|
34 |
)
|
35 |
+
m.eval()
|
36 |
tok = LlamaTokenizer.from_pretrained("decapoda-research/llama-7b-hf")
|
37 |
tok.bos_token_id = 1
|
38 |
|