ffreemt commited on
Commit
f924882
·
1 Parent(s): b0c90a1

Update device_map={'': 0} rich, check nvidia-smi with subproces.run

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def gen_model(model_name: str):
84
  model_name,
85
  trust_remote_code=True,
86
  # device_map="auto",
87
- device_map={"" 0},
88
  # load_in_4bit=True,
89
  load_in_8bit=True,
90
  max_memory=max_memory,
 
84
  model_name,
85
  trust_remote_code=True,
86
  # device_map="auto",
87
+ device_map={"": 0},
88
  # load_in_4bit=True,
89
  load_in_8bit=True,
90
  max_memory=max_memory,