Compare commits

...

1 Commits

Author SHA1 Message Date
Wing Lian
985ee95f2d use uint8 dtype for qlora 2025-05-05 08:27:34 -04:00

View File

@@ -912,7 +912,7 @@ class ModelLoader:
"bnb_4bit_compute_dtype": self.cfg.torch_dtype,
"bnb_4bit_use_double_quant": True,
"bnb_4bit_quant_type": "nf4",
"bnb_4bit_quant_storage": torch.bfloat16,
"bnb_4bit_quant_storage": torch.uint8,
}
if self.cfg.model_config_type in ["jamba", "qwen2_moe"] and not (
self.cfg.deepspeed or self.cfg.fsdp