// Run models locally
FreeToken
FreeToken is FlashML's Apache-2.0 edge-native Mixture-of-Experts serving engine for running frontier-scale open-weight MoE models (290B+) on personal and consumer hardware. It treats GPUs, CPUs, host memory and interconnects as one elastic platform, with bandwidth-adaptive CPU–GPU co-execution, global LRU expert caching, the FTW fast weight format, runtime VRAM re-allocation between expert and KV caches, and semantic-aware caching for agentic context edits. It supports models such as DeepSeek-V4-Flash, Qwen3.6-35B-A3B and GLM-5.2 in MXFP4, NVFP4, FP8 and BF16, runs natively on NVIDIA RTX 30/40/50 GPUs, and exposes Anthropic/OpenAI-compatible APIs for agents like Codex, Claude Code and OpenCode. A desktop app for Windows and Linux is available at flashml.ai, and the CLI installs with uv or pip.
Open source Maintained For developers
IN ONE PARAGRAPH
FreeToken is freeToken is FlashML's Apache-2.0 edge-native Mixture-of-Experts serving engine for running frontier-scale open-weight MoE models (290B+) on personal and consumer hardware. It treats GPUs, CPUs, host memory and interconnects as one elastic platform, with bandwidth-adaptive CPU–GPU co-execution, global LRU expert caching, the FTW fast weight format, runtime VRAM re-allocation between expert and KV caches, and semantic-aware caching for agentic context edits. It supports models such as DeepSeek-V4-Flash, Qwen3.6-35B-A3B and GLM-5.2 in MXFP4, NVFP4, FP8 and BF16, runs natively on NVIDIA RTX 30/40/50 GPUs, and exposes Anthropic/OpenAI-compatible APIs for agents like Codex, Claude Code and OpenCode. A desktop app for Windows and Linux is available at flashml.ai, and the CLI installs with uv or pip.
Good for: Developers and teams who want to run models locally.
01How to start
- 1Read the official quick-start (link above).
- 2Install or sign up as the official guide describes.
- 3Try it on a small example before wiring it into a project.
02README (from the project)
The following is from the README of FlashML-org/FreeToken, licensed under Apache-2.0; copyright belongs to the original authors. View original ↗
| Download | Paper | Developer Slack | Community Discord | Community WeChat |
Unlock datacenter-class intelligence on the hardware you already own — Run 290B+ frontier MoE models locally on your gaming PC at blistering interactive speeds.
About
FreeToken is an edge-native Mixture-of-Experts (MoE) serving engine designed for running frontier-scale open-weight models on personal and consumer hardware. It treats heterogeneous edge resources—GPUs, CPUs, host memory, and interconnects—as a unified, elastic inference platform. Its core features include:
- Fast Edge-Native Runtime: Provides efficient MoE serving with bandwidth-adaptive CPU–GPU co-execution ($q^\star$ policy), full-layer double-buffered prefill streaming, global LRU expert caching, graph-compatible execution, and the FTW fast weight format.
- Semantic-Aware Caching: Features semantic anchor checkpoints for recurrent state and KV caches, allowing agentic context edits (e.g., tool calls, thinking blocks) to avoid redundant context recomputation.
- Elastic Memory Management: Supports dynamic, runtime VRAM re-allocation between expert caches and KV memory without engine restarts or weight reloading.
- Broad MoE & Ecosystem Support: Supports frontier open-weight MoE models (e.g., DeepSeek-V4-Flash, Qwen3.6-35B-A3B, GLM-5.2) across various parameter scales and quantization formats (e.g., MXFP4, NVFP4, FP8, BF16), with Anthropic/OpenAI-compatible APIs for seamless integration with real-world coding and tool-calling agents (e.g., Codex, Claude Code, OpenCode, OpenClaw, DeepSeek Harness).
- Diverse Consumer Hardware: Scales across consumer laptops, gaming desktops, and workstation GPUs, with native support for NVIDIA RTX 30, RTX 40, and RTX 50 series GPUs.
Getting Started
Desktop app
Download FreeToken for Windows or Linux at flashml.ai. It sets the engine up for you and gives you a GUI for running models, chatting, and tuning the engine.
CLI
Install FreeToken with uv (recommended) or pip:
uv pip install "freetoken[accel]"
Or build from source:
git clone https://github.com/FlashML-org/FreeToken.git && cd FreeToken
uv venv && source .venv/bin/activate
uv pip install -e ".[accel]"
For More details:
- Install FreeToken
- Quick start
- Supported models
- CLI reference
- Repairing old FTW checkpoints
- Diagnosing a checkpoint that fails to load
Citation
If you use FreeToken for your research, please cite our paper:
@article{yang2026freetoken,
title={FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution},
author={Yang, Shuo and Fan, Xiaoze and Pan, Melissa and Xi, Haocheng and Wang, Zhe and Sun, Shanlin and Keutzer, Kurt and Han, Song and Zaharia, Matei and Xu, Chenfeng and Stoica, Ion},
journal={arXiv preprint arXiv:2608.16157},
year={2026}
}
Acknowledgment
FreeToken was deeply inspired by mini-sglang, and learned the design and reused code from the following projects: SGLang, vLLM, FlashInfer, flash-linear-attention, LightLLM and llama.cpp.
License
03Alternatives & comparison
Compare side by side →04Related
- ›Elements of AI · 赫尔辛基大学 / MinnaLearnMultilingual (incl. EN/ZH)
- ›AI For Everyone · DeepLearning.AI / 吴恩达English
- ›Generative AI for Everyone · DeepLearning.AI / 吴恩达English
- ›Introduction to Generative AI 学习路径 · Google Cloud SkillsEnglish
- ›Microsoft Learn: Fundamentals of Generative AI · Microsoft LearnMultilingual (incl. EN/ZH)
- All tutorials →
Versions, why it is listed, for AI to read
For AI agents
- Interfaces:its own app or website
- Machine-readable record:/api/v1/software/freetoken.json · llms.txt
- Added 2026-11-02 · updated 2026-11-02