broccoli-ml 9.4.1__py3-none-any.whl → 9.4.2__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/linear.py CHANGED
@@ -203,6 +203,7 @@ class RecyclingLinear(nn.Module):
203
203
 
204
204
  if idx_tensor.size(0):
205
205
  centred_value_weights = self._mean_value_weights()
206
+ centred_value_weights = centred_value_weights.expand(indices.size(0), -1)
206
207
  if self.xglu:
207
208
  gate_indices = indices
208
209
  value_indices = indices + (self.linear.out_features // 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: broccoli-ml
3
- Version: 9.4.1
3
+ Version: 9.4.2
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -1,13 +1,13 @@
1
1
  broccoli/__init__.py,sha256=tmyspsVxqPZHRQCY_NRwpW4SMNBbtE8E_8z7l-SAzSo,127
2
2
  broccoli/activation.py,sha256=nrpTOrpg9k23_E4AJWy7VlXXAJCtCJCOR-TonEWJr04,3218
3
3
  broccoli/cnn.py,sha256=WjoPDSpe3ttwxCBNfCVRdaCHvbeZ7G-a5_i8fUsK_d8,4889
4
- broccoli/linear.py,sha256=ZLA5NW2aO-llEsfB9PuYDYbIpUUqHQKcmkBD7A85UiM,12244
4
+ broccoli/linear.py,sha256=yge7SCWWyGM_9fM595qfwJTRDDl_DtdLrO-EztJRdLc,12330
5
5
  broccoli/rope.py,sha256=GRqApBNmYCFaDak0WL1xE_BC5CTTYKQU_PBdeTcQcjc,12557
6
6
  broccoli/tensor.py,sha256=um8mrxkYbvNDo-QvHlmJm8Aw6qcngOlUZPoAk_PMReA,4480
7
7
  broccoli/transformer.py,sha256=ULk-QQX3hAI14-aCKhp9QSebzX4KUjlisEGup2Eycck,25565
8
8
  broccoli/utils.py,sha256=oOWzn6dJ5nC_9r4zq0emmfmaYACJXJNFS48AOpW2jqc,358
9
9
  broccoli/vit.py,sha256=sC6K3FK3a8ojOgvNWSWhuZHBtnFrrTQbsDdlagcKJH4,22224
10
- broccoli_ml-9.4.1.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
11
- broccoli_ml-9.4.1.dist-info/METADATA,sha256=HSwmRHALY-VP_sqb6zyIkNRH5KiPfs7Ng6bcsSixm60,1368
12
- broccoli_ml-9.4.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
- broccoli_ml-9.4.1.dist-info/RECORD,,
10
+ broccoli_ml-9.4.2.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
11
+ broccoli_ml-9.4.2.dist-info/METADATA,sha256=O0AsszSnchn3VNrPDMoHZSew5C5qNL77eIYlzJVy_UI,1368
12
+ broccoli_ml-9.4.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
+ broccoli_ml-9.4.2.dist-info/RECORD,,