Run AI models 2x faster on CPU with zero quality loss
Project description
Fast LLM
Run any AI model 2x faster on CPU — zero quality loss, zero training.
pip install fast-llm
fast-llm run Qwen/Qwen2.5-0.5B --quantize --benchmark
How it works
INT8 dynamic quantization converts model weights from 32-bit to 8-bit precision. This cuts memory bandwidth in half — the main bottleneck on CPU inference. The output is coherent English, indistinguishable from the original.
| Mode | Speed | Output |
|---|---|---|
| FP32 (before) | 1.18 tok/s | "The future of AI is in the hands of the people." |
| INT8 (after) | 2.32 tok/s | "The future of AI is the future of the world." |
Install
Linux / macOS
curl -sSf https://fast-llm.dev/install.sh | sh
Windows (PowerShell)
powershell -c "iex ((New-Object Net.WebClient).DownloadString('https://fast-llm.dev/install.ps1'))"
pip (all platforms)
pip install fast-llm
Usage
# Quantize + benchmark
fast-llm run Qwen/Qwen2.5-0.5B --quantize --benchmark
# Quantize only (faster, no benchmark)
fast-llm run microsoft/Phi-3-mini-4k-instruct --quantize
# Exact mode (same output, thread optimization only)
fast-llm run meta-llama/Llama-3.2-1B --exact --benchmark
Works with any HuggingFace causal language model: Qwen, Llama 3, Phi-3, Mistral, Gemma, DeepSeek, and more.
Requirements
- Python 3.8+
- PyTorch 2.0+ (CPU)
- 1–4 GB RAM per billion parameters
License
MIT
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
fastllm_turbo-1.0.0.tar.gz
(7.7 kB
view details)
File details
Details for the file fastllm_turbo-1.0.0.tar.gz.
File metadata
- Download URL: fastllm_turbo-1.0.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ab33bbbf8aa27fdc4510191a0c21a0c5fd747180b43401c090ba1779d258404
|
|
| MD5 |
ad850ec4423aa15942d0568011a73ce6
|
|
| BLAKE2b-256 |
18193b846ab61d3cc9142b5980e7b54537c8b23da68213c777726f730d3e2425
|