Mase is a Machine Learning compiler based on PyTorch FX, maintained by researchers at Imperial College London. We provide a set of tools for inference and training optimization of state-of-the-art language and vision models. The following features are supported, among others:
-
Efficient AI Optimization: MASE provides a set of composable tools for optimizing AI models. The tools are designed to be modular and can be used in a variety of ways to optimize models for different hardware targets. The tools can be used to optimize models for inference, training, or both. We support features such as the following:
- Quantization Search: mixed-precision quantization of any PyTorch model. We support microscaling and other numerical formats, at various granularities.
- Quantization-Aware Training (QAT): finetuning quantized models to minimize accuracy loss.
- And more!
-
Hardware Generation: automatic generation of high-performance FPGA accelerators for arbitrary Pytorch models, through the Emit Verilog flow.
-
Distributed Deployment (Beta): Automatic parallelization of models across distributed GPU clusters, based on the Alpa algorithm.
For more details, refer to the Tutorials. If you enjoy using the framework, you can support us by starring the repository on GitHub!
- Fast Prototyping Next-Generation Accelerators for New ML Models using MASE: ML Accelerator System Exploration, link
@article{cheng2023fast, title={Fast prototyping next-generation accelerators for new ml models using mase: Ml accelerator system exploration}, author={Cheng, Jianyi and Zhang, Cheng and Yu, Zhewen and Montgomerie-Corcoran, Alex and Xiao, Can and Bouganis, Christos-Savvas and Zhao, Yiren}, journal={arXiv preprint arXiv:2307.15517}, year={2023}}
- MASE: An Efficient Representation for Software-Defined ML Hardware System Exploration, link
@article{zhangmase, title={MASE: An Efficient Representation for Software-Defined ML Hardware System Exploration}, author={Zhang, Cheng and Cheng, Jianyi and Yu, Zhewen and Zhao, Yiren}}
This repo contains the following directories:
src/chop
- MASE's software stacksrc/mase_components
- Internal hardware librarysrc/mase_cocotb
- Internal hardware testing flowsrc/mase_hls
- HLS component of MASEscripts
- Run and test scriptstest
- Unit testingdocs
- Documentationmlir-air
- MLIR AIR for ACAP devicessetup.py
- Installation entry pointDocker
- Docker container configurations
- Direct Google Meet link
- Join the Mase Slack
- If you want to discuss anything in future meetings, please add them as comments in the meeting agenda so we can review and add them.
If you think MASE is helpful, please donate for our work, we appreciate your support!