Catalog PyPI
PACKAGE EXPLORERView in registry

agi-transformer

PyPI

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

fp4llmmambaquantizationtransformertriton
Versions collected1
Direct dependencies9From release 5.1.0
Last observed21 Oct, 09:13 UTC

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.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
5.1.017 May 20269

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:19d709273ee15e3e5a40651f85463ef2e1c28349c69186e0e1a5c25e0bd49869