Skip to content
FossShelf
Home / Categories / For AI Engineers

FreeToken

Run 290B+ MoE models locally on consumer GPUs

Replaces Together Ai, Groq, Fireworks Ai

17.25K starsApache-2.0last commit 14 Nov 2026
Screenshot of FreeToken

Who it's for

Local AI coding agent backend

A software developer wants to run Codex, Claude Code, or OpenCode against a 70B+ MoE model locally for code completion and review without sending code to cloud APIs. FreeToken provides the OpenAI-compatible endpoint on their RTX 4090 workstation.

User is comfortable with cloud API costs and has no data-sovereignty requirements.

Privacy-sensitive enterprise inference

A team handling confidential documents needs a capable model for summarization and Q&A but cannot send data to external APIs. FreeToken runs DeepSeek-V4-Flash on an on-premises workstation with no data leaving the network.

Team already has on-premises GPU servers with vLLM or SGLang deployed.

AI researcher running frontier MoE experiments

A researcher studying MoE model behavior wants to run DeepSeek-V4-Flash or Qwen3-235B locally for reproducible experiments. FreeToken provides a CLI with quantization control and an API compatible with standard evaluation harnesses.

Researcher has access to a GPU cluster and prefers vLLM or SGLang for multi-GPU scaling.

Enthusiast desktop AI setup

A hobbyist with a high-end gaming PC (RTX 4090 or RTX 5090) wants to run the largest open-weight models available and interact with them through a desktop GUI without cloud subscriptions.

User only needs smaller models (7B-13B) that already run well in llama.cpp or Ollama.

The problem

Frontier-scale MoE models such as DeepSeek-V4-0324 and Qwen3-235B have hundreds of billions of parameters and cannot fit in the VRAM of a single consumer GPU. Running them locally previously required either high-end server hardware with multiple datacenter GPUs or accepting very slow inference by naively offloading weights to CPU RAM. There was no efficient engine that could treat the combination of GPU VRAM, host RAM, and CPU as a single coherent inference platform while maintaining interactive response speeds.

How it works

Bandwidth-adaptive CPU-GPU co-execution

The q* policy dynamically routes expert computation between CPU and GPU based on available memory bandwidth, allowing models far larger than VRAM capacity to run at interactive speeds without manual configuration.

Global LRU expert caching

Frequently activated MoE experts are cached in VRAM using a least-recently-used eviction policy, combined with full-layer double-buffered prefill streaming and graph-compatible execution for the FTW fast weight format.

Semantic anchor checkpoints

Recurrent state and KV caches are checkpointed at semantic boundaries. Agentic context edits such as tool call results or thinking block insertions reuse the cached state and skip redundant recomputation of unchanged context.

Elastic VRAM management

VRAM is reallocated dynamically at runtime between the expert cache and KV memory. No engine restart or weight reload is needed, so the engine adapts to changing workloads (long context vs. high throughput) on the fly.

OpenAI- and Anthropic-compatible APIs

FreeToken exposes standard REST APIs compatible with the OpenAI and Anthropic client libraries, making it a drop-in local backend for agents and tools such as Codex, Claude Code, OpenCode, OpenClaw, and the DeepSeek Harness.

Broad quantization and model support

Supports DeepSeek-V4-Flash, Qwen3.6-35B-A3B, GLM-5.2, and other open-weight MoE models across MXFP4, NVFP4, FP8, and BF16 quantization formats on NVIDIA RTX 30, 40, and 50 series GPUs.

Features

  • Bandwidth-adaptive CPU-GPU co-execution
  • Global LRU expert caching
  • Semantic anchor checkpoints
  • Elastic VRAM management
  • OpenAI- and Anthropic-compatible APIs
  • Broad quantization and model support

How to install

uv pip install "freetoken[accel]"

Recommended for this setup

Strengths

  • Runs 290B+ models on gaming hardware: By combining GPU VRAM, CPU, and host memory as a unified inference platform, FreeToken enables models that previously required multi-GPU server setups to run on a single consumer desktop with an RTX 40 or RTX 50 series GPU.
  • Agent-friendly with zero API changes: The OpenAI- and Anthropic-compatible API surface means existing coding agents and LLM tools connect to a local FreeToken instance with only a base URL change, no client code modification needed.
  • Desktop GUI lowers the setup barrier: The Windows and Linux desktop application handles engine setup automatically and provides a built-in chat interface and engine tuning controls, making local 290B model inference accessible without CLI knowledge.
  • Research-backed design: FreeToken is accompanied by a peer-reviewed arXiv paper (2608.16157) from researchers at UC Berkeley, MIT, and Stanford, providing documented methodology for the q* policy and semantic caching techniques.

Trade-offs

  • NVIDIA-only GPU support: FreeToken targets NVIDIA RTX 30, 40, and 50 series GPUs. AMD GPU users and Apple Silicon Mac users are not supported and will need to look at alternatives such as llama.cpp or MLX for local inference.
  • Focused on MoE architectures: The engine is optimized specifically for Mixture-of-Experts models. Dense models like LLaMA or Mistral will not benefit from the expert-caching and co-execution features that make FreeToken fast on MoE architectures.
  • Large models still require significant RAM: Running 290B+ parameter models requires substantial system RAM (often 200GB+) alongside the GPU, even with quantization. Consumer laptops and machines with 32GB or less of RAM will be limited to smaller model variants.

Tech stack

Languages
Python, Cuda, C, C++, Shell
Frameworks
FastAPI
Databases
—
Tooling
—

FAQ

What GPU do I need to run FreeToken?

FreeToken supports NVIDIA RTX 30, RTX 40, and RTX 50 series GPUs. For 290B+ parameter models you will also need large amounts of system RAM (often 200GB+) since the engine offloads experts to host memory using CPU-GPU co-execution.

Which models does FreeToken support?

FreeToken supports frontier open-weight MoE models including DeepSeek-V4-Flash, Qwen3.6-35B-A3B, and GLM-5.2. It supports quantization in MXFP4, NVFP4, FP8, and BF16 formats. The full list is in the docs/models.md file in the repository.

Can I use FreeToken with my existing OpenAI or Anthropic client code?

Yes. FreeToken exposes OpenAI- and Anthropic-compatible REST APIs, so you can point existing client libraries or agents at the local FreeToken endpoint by changing only the base URL.

Is there a desktop app or do I need to use the command line?

Both options are available. A desktop application for Windows and Linux can be downloaded from flashml.ai and handles engine setup and model management through a GUI. A Python CLI package is also available via pip or uv for headless and scripted use.

How does FreeToken handle models larger than my VRAM?

FreeToken uses a bandwidth-adaptive CPU-GPU co-execution policy (called q*) that routes MoE expert computation to the CPU when VRAM is insufficient. Combined with a global LRU expert cache and double-buffered prefill streaming, this allows interactive inference on models far larger than the GPU's VRAM alone.

Similar tools

More in AI Engineers