$npx skillfedfor your agent

hyper-connections

Hyper-Connections

With conditionsPyPI Artificial IntelligenceReleased May 2026321.8K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — hyper_connections-0.4.11-py3-none-any.whl
v0.4.11 · released 2026-05-13 · Python >=3.9 · 3 runtime deps: einops, torch-einops-utils, torch

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
einopstorch-einops-utilstorch
MaintenanceActively maintained 93 days since the last release
Last repo commit
First released
Downloads321,759 / month, #7,619 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
multiple residual streams pytorchhyper connections neural networksresidual pathway splittingdeep learning residual architecturetorch residual connectionsbranching residual streamsneural network residual design
Topics
residual-networkstransformer-researchpytorch-extension
PyPI keywords
artificial intelligencedeep learningresidual

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

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.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also adam-atan2-pytorch · pytorchcv · CoLT5-attention · vector-quantize-pytorch · segmentation-models-pytorch · lion-pytorch · rotary-embedding-torch · conformer · vit-pytorch · e3nn