Triton kernels for MASE
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mase_triton-0.0.6.post4.tar.gz.
File metadata
- Download URL: mase_triton-0.0.6.post4.tar.gz
- Upload date:
- Size: 53.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ca61ad3a2402094ac1bd6510cddc51551c32ec7123bdf0ad556dbf1479db88
|
|
| MD5 |
247c1531c8306cdb22105284a751c2c9
|
|
| BLAKE2b-256 |
40747b48cdd7a54e712563d62f5d41681c5331f71daba39dd530d1c0ec6c7d43
|
Provenance
The following attestation bundles were made for mase_triton-0.0.6.post4.tar.gz:
Publisher:
release.yaml on DeepWok/mase-triton
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mase_triton-0.0.6.post4.tar.gz -
Subject digest:
23ca61ad3a2402094ac1bd6510cddc51551c32ec7123bdf0ad556dbf1479db88 - Sigstore transparency entry: 523680292
- Sigstore integration time:
-
Permalink:
DeepWok/mase-triton@8a117d1cea19287ad55f603bc3fcf832572ac5ff -
Branch / Tag:
refs/tags/0.0.6.post4 - Owner: https://github.com/DeepWok
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8a117d1cea19287ad55f603bc3fcf832572ac5ff -
Trigger Event:
push
-
Statement type:
File details
Details for the file mase_triton-0.0.6.post4-py3-none-any.whl.
File metadata
- Download URL: mase_triton-0.0.6.post4-py3-none-any.whl
- Upload date:
- Size: 61.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
264ceae871a52b74f3fc7172a3f15cd142a82dfe5a9520fbf54acb85126a77a9
|
|
| MD5 |
09502540fe48f45da5aab364e5a22726
|
|
| BLAKE2b-256 |
0347086befcf31b7c35d6b3c1cf935d0f1e5839ce57926042b51347bdfaa3ad8
|
Provenance
The following attestation bundles were made for mase_triton-0.0.6.post4-py3-none-any.whl:
Publisher:
release.yaml on DeepWok/mase-triton
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mase_triton-0.0.6.post4-py3-none-any.whl -
Subject digest:
264ceae871a52b74f3fc7172a3f15cd142a82dfe5a9520fbf54acb85126a77a9 - Sigstore transparency entry: 523680317
- Sigstore integration time:
-
Permalink:
DeepWok/mase-triton@8a117d1cea19287ad55f603bc3fcf832572ac5ff -
Branch / Tag:
refs/tags/0.0.6.post4 - Owner: https://github.com/DeepWok
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8a117d1cea19287ad55f603bc3fcf832572ac5ff -
Trigger Event:
push
-
Statement type: