Update README.md
Browse files
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=
|
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.
|