hyper-connections 0.3.5__tar.gz → 0.3.6__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.
Files changed (16) hide show
  1. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/PKG-INFO +1 -1
  2. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/manifold_constrained_hyper_connections.py +2 -6
  3. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/pyproject.toml +1 -1
  4. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/.github/workflows/python-publish.yml +0 -0
  5. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/.github/workflows/test.yml +0 -0
  6. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/.gitignore +0 -0
  7. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/LICENSE +0 -0
  8. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/README.md +0 -0
  9. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper-connections.png +0 -0
  10. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/__init__.py +0 -0
  11. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/hyper_connections.py +0 -0
  12. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/hyper_connections_channel_first.py +0 -0
  13. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/hyper_connections_with_multi_branch_inputs.py +0 -0
  14. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/hyper_connections_with_multi_input_streams.py +0 -0
  15. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/hyper_connections/residuals.py +0 -0
  16. {hyper_connections-0.3.5 → hyper_connections-0.3.6}/tests/test_hyper_connections.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper-connections
3
- Version: 0.3.5
3
+ Version: 0.3.6
4
4
  Summary: Hyper-Connections
5
5
  Project-URL: Homepage, https://pypi.org/project/hyper-connections/
6
6
  Project-URL: Repository, https://github.com/lucidrains/hyper-connections
@@ -222,7 +222,7 @@ class ManifoldConstrainedHyperConnections(Module):
222
222
 
223
223
  # they used layernorm in paper, but rmsnorm is fine given what we know now
224
224
 
225
- self.norm = RMSNorm(dim * num_residual_streams * num_fracs)
225
+ self.norm = RMSNorm(dim)
226
226
 
227
227
  assert num_residual_streams > 0, '`num_residual_streams` must be greater than 0'
228
228
 
@@ -312,11 +312,7 @@ class ManifoldConstrainedHyperConnections(Module):
312
312
 
313
313
  # norm
314
314
 
315
- normed = rearrange(residuals, 'b ... f s d -> b ... (f s d)')
316
-
317
- normed = self.norm(normed)
318
-
319
- normed = rearrange(normed, 'b ... (f s d) -> b ... f s d', f = self.num_fracs, s = streams)
315
+ normed = self.norm(residuals)
320
316
 
321
317
  # alpha for weighted sum of residuals going into branch
322
318
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyper-connections"
3
- version = "0.3.5"
3
+ version = "0.3.6"
4
4
  description = "Hyper-Connections"
5
5
  authors = [
6
6
  { name = "Phil Wang", email = "lucidrains@gmail.com" }