broccoli-ml 13.0.2__tar.gz → 13.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/PKG-INFO +1 -1
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/transformer.py +0 -6
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/vit.py +1 -1
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/pyproject.toml +1 -1
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/LICENSE +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/README.md +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/__init__.py +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/activation.py +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/cnn.py +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/linear.py +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/rope.py +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/tensor.py +0 -0
- {broccoli_ml-13.0.2 → broccoli_ml-13.0.4}/broccoli/utils.py +0 -0
|
@@ -387,9 +387,6 @@ class FeedforwardBlock(nn.Module):
|
|
|
387
387
|
self.beta = beta
|
|
388
388
|
self.xglu = activation.__name__.endswith("GLU")
|
|
389
389
|
|
|
390
|
-
if self.post_norm:
|
|
391
|
-
self.layernorm = nn.LayerNorm(output_features)
|
|
392
|
-
|
|
393
390
|
if activation_kwargs is not None:
|
|
394
391
|
self.activation = activation(**activation_kwargs)
|
|
395
392
|
else:
|
|
@@ -467,9 +464,6 @@ class FeedforwardBlock(nn.Module):
|
|
|
467
464
|
return processed
|
|
468
465
|
|
|
469
466
|
def reset_parameters(self):
|
|
470
|
-
if self.post_norm:
|
|
471
|
-
self.layernorm.reset_parameters()
|
|
472
|
-
|
|
473
467
|
# Iterate over the sequential block to reset parameters
|
|
474
468
|
for module in self.process:
|
|
475
469
|
if hasattr(module, "reset_parameters"):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|