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
Metadata
Release files for agi-transformer 5.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agi_transformer-5.1.0.tar.gz | 325.8 kB | Without provenance | Details for agi_transformer-5.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agi_transformer-5.1.0-py3-none-any.whl | Python 3 | none | any | Details for agi_transformer-5.1.0-py3-none-any.whl |
Total release size: 339.1 kB
Release files / agi_transformer-5.1.0.tar.gz
| Download URL | agi_transformer-5.1.0.tar.gz |
|---|---|
| Size | 325.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c8ea1dc5d74e72c3c7718e33da94c67352186169374891b39f3709a17707812
|
|
BLAKE2b-256 checksum How to use checksums |
2e44c878a103b2ab4cc318232ef95f81fe099cc569c9f313e8d03ac9ecaf80c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / agi_transformer-5.1.0-py3-none-any.whl
| Download URL | agi_transformer-5.1.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e77be3905799201ec077f5e934c656431562d885808f901fb3c16b5a11c7fe0
|
|
BLAKE2b-256 checksum How to use checksums |
d0554be4427c86640c42e558a8a992bb7fefbee7325eb969cfe6b138914c4d5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for agi-transformer 5.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.