MASE-Triton
Software-emulation & acceleration triton kernels for MASE.
Install
Please ensure you are using Python 3.11 or later, and run MASE-Triton on CUDA-enabled GPU.
PyPI
pip install mase-triton
Build from Source
-
Install uv
-
Build the package
uv buildThe wheel file can be found in
dist/folder. You can install it bypip install path/to/wheel/file.whl
Functionality
- Random Bitflip
functional APIs: random bitflip function with backward support.layers.py: subclasses oftorch.nn.Modulethat can be used in neural networks.RandomBitflipDropoutRandomBitflipLinear
- Optical Transformer
functional APIs: optical transformer function with backward support.ot_quantizeot_linearot_matmul
layers.py: subclasses oftorch.nn.Modulethat can be used in neural networks.OpticalTransformerLinear
- MXFP: Simulate MXFP formats on CPU & GPU using PyTorch & Triton.
functionalextract_mxfp_tensor: Cast a tensor to MXFP format (extracting the shared exponent and Minifloat elements).compose_mxfp_tensor: Cast an MXFP tensor to FP format (composing MXFP components).mxfp_linear: functional linear operation with MXFP support.mxfp_matmul: functional matrix multiplication with MXFP support.
layersMXFPLinearPTQ: Linear layer with MXFP support for post-training quantization (no back propagation support).
- Minifloat: Simulate minifloat formats on CPU & GPU using PyTorch & Triton.
functionalextract_minifloat_component: Extract minifloat components from a tensor.compose_minifloat_component: Compose minifloat components back to a tensor.quantize_dequantize: Quantize and dequantize tensors using minifloat format.minifloat_linear: functional linear operation with minifloat support.minifloat_matmul: functional matrix multiplication with minifloat support.
layersMinifloatLinearPTQ: Linear layer with minifloat support for post-training quantization (no back propagation support).
Dev
-
Install uv
-
Install dependencies for development
uv sync
Metadata
Release files for mase-triton 0.0.7
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 |
|---|---|---|---|---|
| mase_triton-0.0.7.tar.gz | 54.7 kB | With provenance | Details for mase_triton-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mase_triton-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for mase_triton-0.0.7-py3-none-any.whl |
Total release size: 116.7 kB
Release files / mase_triton-0.0.7.tar.gz
| Download URL | mase_triton-0.0.7.tar.gz |
|---|---|
| Size | 54.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3979803670fdace520a07f9151758e61ea68bdc9067957fe9f70cf989f8128f
|
|
BLAKE2b-256 checksum How to use checksums |
552c5ac657f88515a0239912ab507daddfea501d75824742de698140b0edf1cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2026.
Transparency logRelease files / mase_triton-0.0.7-py3-none-any.whl
| Download URL | mase_triton-0.0.7-py3-none-any.whl |
|---|---|
| Size | 62.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75f001a6fc0fa487d2b44ecb0293ba6d4fd3484edb76e649ec446a2bd8d7560c
|
|
BLAKE2b-256 checksum How to use checksums |
ecec0df6507dae5a458710154d1039266d1f11ef2f03a78dc70a3b9e2b018d09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2026.
Transparency logSecurity for mase-triton 0.0.7
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mase_triton-0.0.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2026.
Transparency logA 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.