Catalog PyPI
Back to packageRELEASE DETAILS

5.1.0

PyPI

agi-transformer

AGi Transformer v5.1 Advanced — FP4-E2M1, Parallel Blocks, Mamba, Double Buffering

fp4llmmambaquantizationtransformertriton
Published17 May 2026
Direct dependencies9
Transitive dependenciesNot calculated

README

Version 5.1.0 documentation

AGi Transformer v5.1 — Advanced Core

High-performance transformer library with FP4-E2M1 quantization, Parallel Blocks, Mamba layers, and Triton double-buffering kernels.

Features

  • FP4-E2M1 Format: 1 sign + 2 exponent + 1 mantissa (superior to NF4 for Gaussian weights)
  • Parallel Block Architecture: PaLM-style simultaneous Attention + FFN (15% speedup)
  • Mamba/TTT Hybrid: Replace middle attention with O(L) linear recurrent layers
  • Double Buffering: Triton kernel preloads Block K+1 while computing Block K
  • Matrix Swizzling: XOR-based shared memory indexing eliminates bank conflicts
  • Dynamic Scaled Clamping: Per-row adaptive bounds based on block maxima
  • Vector SmoothAlpha: Per-channel 4096-parameter scaling (not scalar)
  • AdaRound + KLD: Learnable rounding with distribution-preserving loss

Quick Start

pip install -e .
python scripts/train.py --steps 5000 --d-model 512 --n-layers 8

Project Structure

src/agi_core/
├── kernels/      # Triton AOT kernels (FP4, Double Buffer, Swizzle)
├── layers/       # Quantized Linear, Mamba, Parallel Block
├── model/        # AGiParallelTransformer
├── ops/csrc/     # C++/CUDA extensions (optional AOT)
└── utils/        # Quantization helpers, logging

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
torch
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
torch>=2.1.0runtime
triton
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
triton>=3.0.0runtime
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
numpy>=1.24.0runtime
matplotlib
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
matplotlib>=3.7.0runtime
tqdm
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
tqdm>=4.65.0runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
pytest>=7.0; extra == "dev"runtime
black
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
black; extra == "dev"runtime
ruff
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
ruff; extra == "dev"runtime
mypy
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
mypy; extra == "dev"runtime

Distribution files

2 collected
agi_transformer-5.1.0-py3-none-any.whl

bdist_wheel · 13.03 KB · Python py3

Source file
agi_transformer-5.1.0.tar.gz

sdist · 318.12 KB · Python source

Source file

Repository

PENDING
agi-framework/agi-transformer

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:13 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:a46cbcef1bbd3546a066c4a40709c380b0b70bb1eefd72b690fddbcc6401055f

Other collected versions

View all collected versions →