mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-02-05 21:19:56 +00:00
Remove block scaler
This commit is contained in:
@@ -659,6 +659,6 @@ class VisionDirectAdapter(torch.nn.Module):
|
||||
|
||||
def post_weight_update(self):
|
||||
# force block scaler to be mean of 1
|
||||
if self.block_scaler is not None:
|
||||
self.block_scaler.data = self.block_scaler.data / self.block_scaler.data.mean()
|
||||
# if self.block_scaler is not None:
|
||||
# self.block_scaler.data = self.block_scaler.data / self.block_scaler.data.mean()
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user