Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ device = torch.device("cpu") # Ensure it's using CPU only
|
|
7 |
|
8 |
# Load model and tokenizer
|
9 |
model_name = "hosseinhimself/ISANG-v1.0-8B" # Replace with your model name
|
10 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
11 |
|
12 |
# Load the model for inference on CPU
|
13 |
model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
|
|
|
7 |
|
8 |
# Load model and tokenizer
|
9 |
model_name = "hosseinhimself/ISANG-v1.0-8B" # Replace with your model name
|
10 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
|
11 |
|
12 |
# Load the model for inference on CPU
|
13 |
model = AutoModelForCausalLM.from_pretrained(model_name).to(device)
|