MengAiDev/MatmulFree-cpu

CPU MatmulFree LLM

Python

0

9 commits

updated Jun 2, 2025

See the code

README

MatmulFree-cpu

CPU MatmulFree LLM

If you like our project, please give us a star ⭐ on GitHub for the latest updates.

Quick Start

Install & Run

Run:

git clone https://github.com/MengAiDev/MatmulFree-cpu
cd MatmulFree-cpu
pip install -e .
python generate.py

Usage

You can use the generate.py script to generate text with the pre-trained models. The script supports various command-line arguments to customize the generation process. Change name variable in generate.py to use different models.

Pre-trained Model Zoo

Model SizeLayerHidden dimensionTrained tokens
370M24102415B
1.3B242048100B
2.7B322560100B

License

This project is licensed under the MIT License. See the LICENSE file for details. Part of the code is used from MatmulFree

@article{zhu2024scalable,
title={Scalable MatMul-free Language Modeling},
author={Zhu, Rui-Jie and Zhang, Yu and Sifferman, Ethan and Sheaves, Tyler and Wang, Yiqiao and Richmond, Dustin and Zhou, Peng and Eshraghian, Jason K},
journal={arXiv preprint arXiv:2406.02528},
year={2024}
}
ai
cpu
llms
machine-learning
matmul-free

MengAiDev/MatmulFree-cpu

CPU MatmulFree LLM

Python

0

9 commits

updated Jun 2, 2025

See the code

README

MatmulFree-cpu

CPU MatmulFree LLM

If you like our project, please give us a star ⭐ on GitHub for the latest updates.

Quick Start

Install & Run

Run:

git clone https://github.com/MengAiDev/MatmulFree-cpu
cd MatmulFree-cpu
pip install -e .
python generate.py

Usage

You can use the generate.py script to generate text with the pre-trained models. The script supports various command-line arguments to customize the generation process. Change name variable in generate.py to use different models.

Pre-trained Model Zoo

Model SizeLayerHidden dimensionTrained tokens
370M24102415B
1.3B242048100B
2.7B322560100B

License

This project is licensed under the MIT License. See the LICENSE file for details. Part of the code is used from MatmulFree

@article{zhu2024scalable,
title={Scalable MatMul-free Language Modeling},
author={Zhu, Rui-Jie and Zhang, Yu and Sifferman, Ethan and Sheaves, Tyler and Wang, Yiqiao and Richmond, Dustin and Zhou, Peng and Eshraghian, Jason K},
journal={arXiv preprint arXiv:2406.02528},
year={2024}
}
ai
cpu
llms
machine-learning
matmul-free