Mohamad-Jaallouk commited on
Commit
94434ca
·
verified ·
1 Parent(s): 8e39c95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.bfloat16, device_map="cuda", trust_remote_code=True
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