hyper-connections
Hyper-Connections
Decision gist · record as of 2026-08-14
Yes, if you are actively researching or experimenting with advanced residual connection architectures in PyTorch. The library is low-friction to install, has no security issues, and offers a clean API for integrating multi-stream residuals into existing models. Not necessary for standard production models using conventional residual connections.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires PyTorch and Python 3.9 or later; intended for use within existing neural network training pipelines.
- Low install friction with a pure Python wheel and only three runtime dependencies (torch, einops, torch-einops-utils).
- Repository is active with recent commits and no known vulnerabilities.
License · maintenance · safety
permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations—only attribution and license inclusion required.
last release 2026-05-13 (93 days) · last repo commit 2026-05-13 · 188 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 321,759 downloads/mo, #7,619 on PyPI
Alternatives
Verify before relying
pip install hyper-connections
import torch
from hyper_connections import get_init_and_expand_reduce_stream_functions
init_hyper_conn, expand_stream, reduce_stream = get_init_and_expand_reduce_stream_functions(4)
residual = torch.randn(2, 1024, 512)
residual = expand_stream(residual)
residual = reduce_stream(residual)- Whether the library supports automatic differentiation through all stream operations without gradient issues.
- Performance overhead of expand/reduce operations compared to standard residual connections at scale.
- Compatibility with specific PyTorch versions or distributed training frameworks.
What it is and what it does
Hyper-Connections is a PyTorch library that implements the multiple residual streams architecture from the Hyper-Connections paper (arXiv:2409.19606). It provides utilities to split a single residual pathway into multiple independent streams, apply branch operations to each stream separately, and then recombine them—a technique proposed to improve deep network training. The library wraps around standard PyTorch layers and offers both a high-level API (expand_stream, reduce_stream, init_hyper_conn) and lower-level control for manual stream management.
The package depends on torch, einops, and torch-einops-utils for tensor manipulation. It supports disabling the multi-stream behavior for ablation studies and includes experimental support for fractionated feature dimensions from follow-up research. The library is actively maintained, has no known security vulnerabilities, and is designed to integrate into existing model architectures with minimal code changes.
Use it for
- Experimenting with multi-stream residual architectures in transformer or CNN models to improve training stability.
- Comparing standard residual connections against hyper-connections by toggling disable=True without refactoring code.
- Implementing fractionated feature dimension splits across residual pathways as proposed in follow-up papers.
- Prototyping deep networks (1000+ layers) where multiple residual streams may reduce gradient flow issues.
- Researching variants of residual connections for improved convergence in large-scale deep learning models.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively researching or experimenting with advanced residual connection architectures in PyTorch.
The library is low-friction to install, has no security issues, and offers a clean API for integrating multi-stream residuals into existing models. Not necessary for standard production models using conventional residual connections.
Install
hyper-connections on PyPI
Before you install
Low install friction with a pure Python wheel and only three runtime dependencies (torch, einops, torch-einops-utils). Repository is active with recent commits and no known vulnerabilities.
Requires PyTorch and Python 3.9 or later; intended for use within existing neural network training pipelines.
License in practice
MIT License permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations—only attribution and license inclusion required.
Quickstart
pip install hyper-connections
import torch
from hyper_connections import get_init_and_expand_reduce_stream_functions
init_hyper_conn, expand_stream, reduce_stream = get_init_and_expand_reduce_stream_functions(4)
residual = torch.randn(2, 1024, 512)
residual = expand_stream(residual)
residual = reduce_stream(residual)
Verify before relying
- Whether the library supports automatic differentiation through all stream operations without gradient issues.
- Performance overhead of expand/reduce operations compared to standard residual connections at scale.
- Compatibility with specific PyTorch versions or distributed training frameworks.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageseinopstorch-einops-utilstorch |
| Maintenance | Actively maintained 93 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 321,759 / month, #7,619 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Artificial Intelligence |
Evidence: hyper_connections-0.4.11-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multiple residual streams pytorch”
- hyper-connectionsImplements multiple residual streams in neural networks as proposed…
- vector-quantize-pytorchImplements vector quantization layers for PyTorch, enabling discrete…
- mosaicml-streamingStreams large training datasets from cloud storage (AWS S3, GCS,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also adam-atan2-pytorch · pytorchcv · CoLT5-attention · vector-quantize-pytorch · segmentation-models-pytorch · lion-pytorch · rotary-embedding-torch · conformer · vit-pytorch · e3nn