Spaces:
Runtime error
Runtime error
Upload tiny_llama.py
Browse files- tiny_llama.py +1 -1
tiny_llama.py
CHANGED
@@ -9,7 +9,7 @@ tokenizer = AutoTokenizer.from_pretrained(model)
|
|
9 |
pipeline = transformers.pipeline(
|
10 |
"text-generation",
|
11 |
model=model,
|
12 |
-
torch_dtype=torch.
|
13 |
device_map="auto",
|
14 |
)
|
15 |
CHAT_EOS_TOKEN_ID = 32002
|
|
|
9 |
pipeline = transformers.pipeline(
|
10 |
"text-generation",
|
11 |
model=model,
|
12 |
+
torch_dtype=torch.float32,
|
13 |
device_map="auto",
|
14 |
)
|
15 |
CHAT_EOS_TOKEN_ID = 32002
|