Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,12 @@ api_token = "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" # Replace with your actual
|
|
22 |
model = AutoModelForCausalLM.from_pretrained(
|
23 |
model_name,
|
24 |
low_cpu_mem_usage=True,
|
25 |
-
|
26 |
-
torch_dtype=torch.float16,
|
27 |
revision="main", # Or the desired revision
|
28 |
token=api_token
|
29 |
)
|
|
|
|
|
30 |
print("loaded model")
|
31 |
|
32 |
tokenizer = AutoTokenizer.from_pretrained(
|
|
|
22 |
model = AutoModelForCausalLM.from_pretrained(
|
23 |
model_name,
|
24 |
low_cpu_mem_usage=True,
|
25 |
+
|
|
|
26 |
revision="main", # Or the desired revision
|
27 |
token=api_token
|
28 |
)
|
29 |
+
# return_dict=True,
|
30 |
+
# torch_dtype=torch.float16,
|
31 |
print("loaded model")
|
32 |
|
33 |
tokenizer = AutoTokenizer.from_pretrained(
|