Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ max_seq_length = 2048
|
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained("ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk")
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(
|
| 20 |
"ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk",
|
| 21 |
-
torch_dtype=torch.
|
| 22 |
).to('cuda')
|
| 23 |
# compiled_model = torch.compile(model, mode="default")
|
| 24 |
|
|
|
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained("ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk")
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(
|
| 20 |
"ua-l/gemma-2-9b-legal-steps200-merged-16bit-uk",
|
| 21 |
+
torch_dtype=torch.float16,
|
| 22 |
).to('cuda')
|
| 23 |
# compiled_model = torch.compile(model, mode="default")
|
| 24 |
|