Aashi commited on
Commit
d67efb9
1 Parent(s): 6b51df0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -18,7 +18,10 @@ def load_llama_model():
18
  model = MllamaForConditionalGeneration.from_pretrained(
19
  model_id,
20
  torch_dtype=torch.bfloat16,
21
- # device_map="auto",
 
 
 
22
  )
23
  processor = AutoProcessor.from_pretrained(model_id)
24
 
 
18
  model = MllamaForConditionalGeneration.from_pretrained(
19
  model_id,
20
  torch_dtype=torch.bfloat16,
21
+ device_map="auto",
22
+ # offload_folder="offload",
23
+ ).to("cuda")
24
+
25
  )
26
  processor = AutoProcessor.from_pretrained(model_id)
27