Skip to content

Commit

Permalink
remove nf4 unsupport comment in cpu finetuning (#12460)
Browse files Browse the repository at this point in the history
Co-authored-by: Ariadne <[email protected]>
  • Loading branch information
Uxito-Ada and Ariadne330 authored Nov 28, 2024
1 parent b29da30 commit d272f6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def train(
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="int4", # nf4 not supported on cpu yet
bnb_4bit_quant_type="int4",
bnb_4bit_compute_dtype=torch.bfloat16
)
model = AutoModelForCausalLM.from_pretrained(base_model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=False,
bnb_4bit_quant_type="int4", # nf4 not supported on cpu yet
bnb_4bit_quant_type="int4",
bnb_4bit_compute_dtype=torch.bfloat16
)
model = AutoModelForCausalLM.from_pretrained(model_path,
Expand Down

0 comments on commit d272f6b

Please sign in to comment.