Q-bert commited on
Commit
840866a
1 Parent(s): 3a40793

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -39,7 +39,7 @@ bnb_config = BitsAndBytesConfig(
39
  bnb_4bit_quant_type="nf4",
40
  bnb_4bit_compute_dtype=torch.bfloat16
41
  )
42
- model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config, device_map={"":0})
43
  model = PeftModel.from_pretrained(model, "myzens/AlpaGo")
44
 
45
  #You can change Here.
 
39
  bnb_4bit_quant_type="nf4",
40
  bnb_4bit_compute_dtype=torch.bfloat16
41
  )
42
+ model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config, device_map="auto")
43
  model = PeftModel.from_pretrained(model, "myzens/AlpaGo")
44
 
45
  #You can change Here.