Spaces:
Sleeping
Sleeping
Update myagent.py
Browse files- myagent.py +1 -1
myagent.py
CHANGED
|
@@ -45,7 +45,7 @@ class BasicAgent:
|
|
| 45 |
# Model configuration
|
| 46 |
model_id = "bartowski/Llama-3.2-3B-Instruct-GGUF"
|
| 47 |
filename = "Llama-3.2-3B-Instruct-Q4_K_M.gguf"
|
| 48 |
-
|
| 49 |
# Load tokenizer and model
|
| 50 |
tokenizer = AutoTokenizer.from_pretrained(model_id, gguf_file=filename)
|
| 51 |
model_init = AutoModelForCausalLM.from_pretrained(model_id, gguf_file=filename, torch_dtype=torch_dtype)
|
|
|
|
| 45 |
# Model configuration
|
| 46 |
model_id = "bartowski/Llama-3.2-3B-Instruct-GGUF"
|
| 47 |
filename = "Llama-3.2-3B-Instruct-Q4_K_M.gguf"
|
| 48 |
+
torch_dtype = torch.bfloat16
|
| 49 |
# Load tokenizer and model
|
| 50 |
tokenizer = AutoTokenizer.from_pretrained(model_id, gguf_file=filename)
|
| 51 |
model_init = AutoModelForCausalLM.from_pretrained(model_id, gguf_file=filename, torch_dtype=torch_dtype)
|