Qwen3.6-35B-A3B-FP8 Speculative Route Predictors
MoE Model Acceleration on 16GB VRAM
2 min readupdated
A set of trained routing predictors for running the large Qwen/Qwen3.6-35B-A3B-FP8 model alongside DFlash 2 speculative decoding (incoai/Qwen3.6-35B-A3B-DFlash2, k=7) in the Precog engine. The tool predicts required experts in the MoE architecture (Mixture of Experts — an AI model where only a part of the model is activated for each token) in advance, manages their memory offloading, and supports hybrid compute distribution between CPU and GPU. This enables over 91 tokens per second on an RTX 4080 class graphics card with 16GB of video memory at a 24k context. The solution is useful for developers and enthusiasts running local AI agents and chats on consumer GPUs.
Key features
- Three ready checkpoints: a universal base predictor (1319.5 MB), as well as specialized profiles for OpenCode (611.6 MB) and Pi (303.0 MB) multi-step agents.
- Smart preloading and eviction of MoE experts on top of DFlash 2 speculative decoding reduces latency when VRAM is limited.
- Optional hybrid 3-way routing mode on processors with 6 or more cores (
FREETOKEN_SPEC_HYBRID_3WAY=1) for short requests and chats. - Noticeable generation speed boost — over +40% compared to standard FreeToken Default DFlash 2 in all scenarios.
What you can do
- Run the local OpenCode coding agent based on
Qwen3.6-35B-A3B-FP8with thepredictor_v13_opencode_ft.ptprofile, achieving ~70 tok/s on an RTX 4080. - Accelerate multi-step AI agents in the Pi environment using the specialized
predictor_v13_pi_ft.ptcheckpoint. - Use the universal
predictor_dflash2_k7_token_v13_sep.ptcheckpoint for fast single-step requests and long-context dialogues up to 24k.
Example
export FREETOKEN_SPEC_PREDICTOR=/path/to/predictor_dflash2_k7_token_v13_sep.pt
export FREETOKEN_SPEC_PREFETCH_THRESHOLD=0.65
export FREETOKEN_SPEC_PREFETCH_LEAD=1
export FREETOKEN_OVERLAP_RESIDENT=1
export FREETOKEN_SPEC_EVICT_GLOBAL=1
export FREETOKEN_SPEC_CONF_STOP=0.55
export FREETOKEN_SPEC_TOKEN_GPU_TOPK=2048Read more
DetailsHardware and test conditions: RTX 4080 16GB, 24k context, Greedy mode.
Tier 1 (60 single-step requests): 91.09 med / 91.05 tot tok/s (+41.0% over FreeToken Default DFlash 2, +14.0% over Strata 0.2.22 4-bit).
Tier 2 (12 dialogues of 5 turns each): 87.20 med / 87.42 tot tok/s (+41.2% over FreeToken Default DFlash 2).
Tier 3 agents: 69.94 med tok/s (38.71 E2E) in OpenCode and 70.84 med tok/s (46.57 E2E) in Pi.










Comments