shiyemin2 commited on
Commit
320382b
1 Parent(s): 306d18a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -59,8 +59,8 @@ if model_path.endswith("4bit"):
59
  model = AutoModelForCausalLM.from_pretrained(
60
  model_path,
61
  load_in_4bit=True,
62
- local_files_only=True,
63
- torch_dtype=torch.float16
64
  )
65
  else:
66
  model = AutoModelForCausalLM.from_pretrained(model_path).half().cuda()
 
59
  model = AutoModelForCausalLM.from_pretrained(
60
  model_path,
61
  load_in_4bit=True,
62
+ torch_dtype=torch.float16,
63
+ device_map='auto'
64
  )
65
  else:
66
  model = AutoModelForCausalLM.from_pretrained(model_path).half().cuda()