mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-24 00:09:26 +00:00
Added stochastic rounding to adafactor. ILora adjustments
This commit is contained in:
@@ -49,7 +49,7 @@ class InstantLoRAMidModule(torch.nn.Module):
|
||||
print(scaler.shape)
|
||||
raise e
|
||||
# apply tanh to limit values to -1 to 1
|
||||
scaler = torch.tanh(scaler)
|
||||
# scaler = torch.tanh(scaler)
|
||||
return x * scaler
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user