broccoli-ml 0.40.0__py3-none-any.whl → 1.0.0__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/vit.py CHANGED
@@ -85,6 +85,14 @@ class SequencePoolClassificationHead(ClassificationHead):
85
85
  def __init__(self, d_model, linear_module, out_dim, batch_norm=True):
86
86
  super().__init__(d_model, linear_module, out_dim, batch_norm=batch_norm)
87
87
  self.summarize = SequencePool(d_model, linear_module)
88
+ # Rebuild the classification process with the correct summary module:
89
+ self.classification_process = nn.Sequential(
90
+ *[
91
+ self.summarize,
92
+ self.projection,
93
+ self.batch_norm,
94
+ ]
95
+ )
88
96
 
89
97
 
90
98
  class ViTEncoder(nn.Module):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: broccoli-ml
3
- Version: 0.40.0
3
+ Version: 1.0.0
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -10,8 +10,8 @@ broccoli/rope.py,sha256=hw7kBPNR9GQXj4GxyIAffsGKPfcTPOFh8Bc7oEHtaZY,12108
10
10
  broccoli/tensor.py,sha256=um8mrxkYbvNDo-QvHlmJm8Aw6qcngOlUZPoAk_PMReA,4480
11
11
  broccoli/transformer.py,sha256=Xw1oBLsvVeHmMqgurhorRa49nrjfooLev5uBPFeK9og,17004
12
12
  broccoli/utils.py,sha256=htq_hOsdhUhL0nJi9WkKiEYOjEoWqFpK5X49PtgTf-0,299
13
- broccoli/vit.py,sha256=qnA7Utyp83CQ2o7kdkDB0d9Yj2UHFOVhNF8TtqwefIc,17781
14
- broccoli_ml-0.40.0.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
15
- broccoli_ml-0.40.0.dist-info/METADATA,sha256=f9pHDub9pIvrB5SIoiTsfAKrHRhHyZGFNdWNJhDwnH0,1257
16
- broccoli_ml-0.40.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- broccoli_ml-0.40.0.dist-info/RECORD,,
13
+ broccoli/vit.py,sha256=AKU8fLyzvMaLYw1V70meyb_t3HLxZOfQ6DKwNOPWd_s,18049
14
+ broccoli_ml-1.0.0.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
15
+ broccoli_ml-1.0.0.dist-info/METADATA,sha256=7Jg7wN6IPLbzr_RpjpR7IOQxmFq7NliBR52J5YhJZD8,1256
16
+ broccoli_ml-1.0.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ broccoli_ml-1.0.0.dist-info/RECORD,,