Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ class ModelProcessor:
|
|
11 |
|
12 |
# Initialize and configure the model
|
13 |
self.model = AutoModelForCausalLM.from_pretrained(
|
14 |
-
repo_id, torch_dtype=torch.
|
15 |
)
|
16 |
self.model.eval() # Set the model to evaluation mode
|
17 |
|
|
|
11 |
|
12 |
# Initialize and configure the model
|
13 |
self.model = AutoModelForCausalLM.from_pretrained(
|
14 |
+
repo_id, torch_dtype=torch.float16, device_map="cpu", trust_remote_code=True
|
15 |
)
|
16 |
self.model.eval() # Set the model to evaluation mode
|
17 |
|