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

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

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -83,7 +83,8 @@ def gen_model(model_name: str):
83
  model = AutoModelForCausalLM.from_pretrained(
84
  model_name,
85
  trust_remote_code=True,
86
- device_map="auto",
 
87
  # load_in_4bit=True,
88
  load_in_8bit=True,
89
  max_memory=max_memory,
 
83
  model = AutoModelForCausalLM.from_pretrained(
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,