Ankitajadhav commited on
Commit
aa60f73
·
verified ·
1 Parent(s): b9e2b4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
17
  torch.random.manual_seed(0)
18
  model = AutoModelForCausalLM.from_pretrained(
19
  "microsoft/Phi-3-mini-4k-instruct",
20
- device_map="cpu",
21
  torch_dtype="auto",
22
  trust_remote_code=True,
23
  )
 
17
  torch.random.manual_seed(0)
18
  model = AutoModelForCausalLM.from_pretrained(
19
  "microsoft/Phi-3-mini-4k-instruct",
20
+ low_cpu_mem_usage=True,
21
  torch_dtype="auto",
22
  trust_remote_code=True,
23
  )