Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/guanaco_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def get_last_checkpoint(checkpoint_dir):
model_name_or_path,
torch_dtype=torch.bfloat16,
device_map={"": 0},
load_in_4bit=True,
#load_in_4bit is already set in config, it can't be twice!
#load_in_4bit=True,
quantization_config=BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
Expand Down