broccoli-ml 0.14.0__py3-none-any.whl → 0.14.1__py3-none-any.whl
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/transformer.py +3 -2
- {broccoli_ml-0.14.0.dist-info → broccoli_ml-0.14.1.dist-info}/METADATA +1 -1
- {broccoli_ml-0.14.0.dist-info → broccoli_ml-0.14.1.dist-info}/RECORD +5 -5
- {broccoli_ml-0.14.0.dist-info → broccoli_ml-0.14.1.dist-info}/LICENSE +0 -0
- {broccoli_ml-0.14.0.dist-info → broccoli_ml-0.14.1.dist-info}/WHEEL +0 -0
broccoli/transformer.py
CHANGED
@@ -255,9 +255,10 @@ class FeedforwardBlock(nn.Module):
|
|
255
255
|
self.process = nn.Sequential(
|
256
256
|
*[
|
257
257
|
nn.LayerNorm(input_features),
|
258
|
-
|
258
|
+
nn.Linear(input_features, self.max_features),
|
259
|
+
nn.LayerNorm(self.max_features),
|
260
|
+
SpectralNormLinear(self.max_features, output_features),
|
259
261
|
self.activation,
|
260
|
-
linear_module(ratio * output_features, output_features, bias=False),
|
261
262
|
self.dropout,
|
262
263
|
]
|
263
264
|
)
|
@@ -8,10 +8,10 @@ broccoli/eigenpatches.py,sha256=J6n2usN1oQuHEHYiBNyYpn_a9eQcHjOBiIlvSei520Y,2413
|
|
8
8
|
broccoli/linear.py,sha256=g8YrxNl6g_WcHrWVmbaBHJU5hv6daFS0r4TxAoPJ9UE,3012
|
9
9
|
broccoli/rope.py,sha256=hw7kBPNR9GQXj4GxyIAffsGKPfcTPOFh8Bc7oEHtaZY,12108
|
10
10
|
broccoli/tensor.py,sha256=E2JK5mQwJf75e23-JGcDoT7QxQf89DJReUo2et1LhRY,1716
|
11
|
-
broccoli/transformer.py,sha256=
|
11
|
+
broccoli/transformer.py,sha256=WfmhFXFm7qfzduzXVRo7L3y3wd5bs0AUPTZ6hjWa68A,15912
|
12
12
|
broccoli/utils.py,sha256=htq_hOsdhUhL0nJi9WkKiEYOjEoWqFpK5X49PtgTf-0,299
|
13
13
|
broccoli/vit.py,sha256=LkMLqjLXG5SnNMeWLQ1LFfuG-RvQ5YY7BLZ-fNrVcPY,16607
|
14
|
-
broccoli_ml-0.14.
|
15
|
-
broccoli_ml-0.14.
|
16
|
-
broccoli_ml-0.14.
|
17
|
-
broccoli_ml-0.14.
|
14
|
+
broccoli_ml-0.14.1.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
|
15
|
+
broccoli_ml-0.14.1.dist-info/METADATA,sha256=DxscxvT8W2xCjS4LOI_bsMP15PAnbUV_DErQ7KZOuI8,1257
|
16
|
+
broccoli_ml-0.14.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
17
|
+
broccoli_ml-0.14.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|