We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1fed2e commit 361d211Copy full SHA for 361d211
exllamav2/lora.py
@@ -67,7 +67,9 @@ def __init__(self,
67
read_config = json.load(f)
68
69
self.lora_r = read_config["r"]
70
- self.lora_alpha = float(read_config["lora_alpha"])
+ self.lora_alpha = float(read_config["lora_alpha"] * math.sqrt(self.lora_r)
71
+ ) if read_config.get("use_rslora", False
72
+ ) else float(read_config["lora_alpha"])
73
self.lora_scaling *= self.lora_alpha / self.lora_r
74
75
if "fan_in_fan_out" in read_config and read_config["fan_in_fan_out"]:
0 commit comments