rigorous qlora validation

This commit is contained in:
Sunny Liu
2025-04-19 22:26:04 -04:00
committed by Sung Ching Liu
parent 098ffcc5a2
commit 843b50fdaa

View File

@@ -95,6 +95,7 @@ class LoraConfig(BaseModel):
raise ValueError("Can't merge qlora if using gptq") raise ValueError("Can't merge qlora if using gptq")
else: else:
if self.quantization:
if self.quantization.bits >= 4: if self.quantization.bits >= 4:
raise ValueError("Can't load qlora in >4 bit") raise ValueError("Can't load qlora in >4 bit")