Skip to main content

A modular neural network component library

Project description

HaloBlocks Logo

HaloBlocks

A modern, high-performance Python library for modular neural network components. In HaloBlocks, every model component is treated as a first-class, composable "block"—from specialized attention layers and heads to advanced Mixture-of-Experts (MoE) modules.

Features

  • Modular Architecture: Build complex models by composing small, reusable blocks.
  • Mixture of Experts: Built-in support for Deepseek-style MoE with routed and shared experts.
  • VLA Integration: Includes specialized blocks for Vision-Language-Action models, such as Flow Matching action decoders.
  • Aesthetic First: Designed for clarity, performance, and ease of use.

Installation

pip install haloblocks

Quick Start

from haloblocks.core.factory import BlockFactory

# Create a Multi-Head Attention block
config = {
    'type': 'multi_head_attn',
    'emb_dim': 256,
    'num_heads': 8
}
attn_block = BlockFactory.create(config)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haloblocks-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haloblocks-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file haloblocks-0.1.0.tar.gz.

File metadata

  • Download URL: haloblocks-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for haloblocks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93c5aba60540d59c191ad380387c741b5ab06ba4467db1974d5973f93dfe666b
MD5 7a5f30025de38e100dde2e0089b7e4b7
BLAKE2b-256 b91147663de135c3bec263da3a8f627de8f24e31d4fa66f847240a35a0c381a4

See more details on using hashes here.

File details

Details for the file haloblocks-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: haloblocks-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for haloblocks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 809d5dbffdcf80dd8427cb757a3cfecd5274184a5f0f7185b264b96f34912c29
MD5 bae321fa8b9414155c8c712174b3ed7b
BLAKE2b-256 4d0adbe85bfb20a708b86496caba2ba19d0fcb990f22a643a5e2ddfde5759fb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page