broccoli-ml 15.4.1__tar.gz → 15.4.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: 15.4.1
3
+ Version: 15.4.2
4
4
  Summary: Some useful Pytorch models, circa 2025
5
5
  License: MIT
6
6
  Author: Nicholas Bailey
@@ -520,13 +520,8 @@ class ViT(nn.Module):
520
520
  "SwiGLU": SwiGLU,
521
521
  }[transformer_activation]
522
522
 
523
- # Set alpha according to Microsoft's DeepNorm if layers > 50
524
- if transformer_layers > 50:
525
- self.alpha = (2 * transformer_layers) ** 0.25
526
- self.beta = 1.0 # beta is not needed as we norm the Q and K vectors in MSA!
527
- else:
528
- self.alpha = 1.0
529
- self.beta = 1.0 # beta is not needed as we norm the Q and K vectors in MSA!
523
+ self.alpha = (2 * transformer_layers) ** 0.25
524
+ self.beta = 1.0 # beta is not needed if we norm the Q and K vectors in MSA!
530
525
 
531
526
  self.encoder = ViTEncoder(
532
527
  input_size=input_size,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "broccoli-ml"
3
- version = "15.4.1"
3
+ version = "15.4.2"
4
4
  description = "Some useful Pytorch models, circa 2025"
5
5
  authors = [
6
6
  {name = "Nicholas Bailey"}
File without changes
File without changes