broccoli-ml 0.31.1__tar.gz → 0.31.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: broccoli-ml
3
- Version: 0.31.1
3
+ Version: 0.31.2
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -379,13 +379,12 @@ class TransformerBlock(nn.Module):
379
379
  process_x = process_x + self.ff(process_x)
380
380
  else: # post-norm
381
381
  process_x = process_x + self.attn(process_x, process_x, process_x)
382
- norm_process_x = self.layer_norm_1(process_x)
382
+ process_x = self.layer_norm_1(process_x)
383
383
  process_x = process_x + self.ff(process_x)
384
+ process_x = self.layer_norm_2(process_x)
384
385
 
385
386
  # Always post norm as eventually we reach the classification head!
386
- x = self.layer_norm_2(
387
- torch.cat([identity_x, process_x])[unshuffle_indices, :, :].contiguous()
388
- )
387
+ x = torch.cat([identity_x, process_x])[unshuffle_indices, :, :].contiguous()
389
388
 
390
389
  return x
391
390
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "0.31.1"
3
+ version = "0.31.2"
4
4
  description = "Some useful Pytorch models, circa 2025"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes