← Back to Reading
Daily Dose of DS 2026-11-07

7 MoE routing strategies in production, clearly explained

Onyx is an open-source, self-hostable AI chat platform licensed under the MIT license that functions with various large language models including Claude, GPT, Gemini, and Llama. It provides multi-tool agents, MCP support, a code interpreter, and self-hosting capabilities via Docker. Unlike Claude's runtime querying via MCP-based connectors, Onyx indexes team data across more than 40 connectors for faster and more reliable search. Additionally, its deep research feature ranks first on the DeepResearchBench benchmark, surpassing proprietary alternatives. Mixture of Experts (MoE) models must balance expert selection quality against computational efficiency and communication overhead, as routing tokens solely to top-scoring experts causes workload imbalances. Different MoE routing strategies—including top-k routing, Expert Choice, confidence thresholds, global matching, deterministic hashing, Soft MoE, and node-limited routing—address this tradeoff in diverse ways. Several routing approaches originated in training or vision research and require careful adaptation before being used in autoregressive text generation. Effective production serving requires profiling routing, token communication, expert execution, and output combination individually to identify bottlenecks. A model's benchmark score does not reflect how it behaves in production under heavy API loads. To address this, a practical 10-week learning roadmap comprising 50 half-hour sessions was introduced on GitHub covering essential LLM inference engineering topics. The curriculum emphasizes understanding hardware bottlenecks with the roofline model, deploying inference engines like vLLM and SGLang, mastering techniques like prefix caching and continuous batching, and setting up proper observability. Ultimately, the exercises guide engineers to build, instrument, load-test, and benchmark a cost-aware inference service.

Contents 3 sections
  1. 01An open-source alternative to Claude (33k+ stars)!
  2. 027 MoE routing strategies in production, clearly explained
  3. 03As an AI engineer, please learn:
OPEN-SOURCE

An open-source alternative to Claude (33k+ stars)!

Onyx is an open-source, self-hostable AI chat platform licensed under the MIT license that functions with various large language models including Claude, GPT, Gemini, and Llama. It provides multi-tool agents, MCP support, a code interpreter, and self-hosting capabilities via Docker. Unlike Claude's runtime querying via MCP-based connectors, Onyx indexes team data across more than 40 connectors for faster and more reliable search. Additionally, its deep research feature ranks first on the DeepResearchBench benchmark, surpassing proprietary alternatives.

  • Onyx is an open-source (MIT licensed) AI chat platform that supports models such as Claude, GPT, Gemini, Llama, and open-weight models.
  • The platform features agents that chain tools, MCP support, a code interpreter, and self-hosting deployment via Docker.
  • Onyx indexes data across over 40 connectors (including Slack, Drive, Confluence, Jira, and GitHub) rather than querying at runtime like Claude.
  • Onyx's deep research capability is ranked number one on DeepResearchBench, outperforming proprietary alternatives.
LLM INFERENCE

7 MoE routing strategies in production, clearly explained

Mixture of Experts (MoE) models must balance expert selection quality against computational efficiency and communication overhead, as routing tokens solely to top-scoring experts causes workload imbalances. Different MoE routing strategies—including top-k routing, Expert Choice, confidence thresholds, global matching, deterministic hashing, Soft MoE, and node-limited routing—address this tradeoff in diverse ways. Several routing approaches originated in training or vision research and require careful adaptation before being used in autoregressive text generation. Effective production serving requires profiling routing, token communication, expert execution, and output combination individually to identify bottlenecks.

  • Standard top-k routing fixes expert count per token but cannot guarantee balanced expert workloads across serving batches.
  • Expert Choice reverses routing by having experts pick tokens within a capacity limit, which balances expert load but may leave some tokens unassigned.
  • BASE Layers demonstrates global matching to assign tokens under expert capacity constraints at the cost of additional solver overhead.
  • Soft MoE uses slots to process weighted mixtures of tokens rather than discrete tokens, presenting causality challenges for autoregressive decoding.
  • DeepSeek-V3 implements node-limited routing to restrict each token to a maximum of four nodes, mitigating cross-node communication overhead.
AI ENGINEERING

As an AI engineer, please learn:

A model's benchmark score does not reflect how it behaves in production under heavy API loads. To address this, a practical 10-week learning roadmap comprising 50 half-hour sessions was introduced on GitHub covering essential LLM inference engineering topics. The curriculum emphasizes understanding hardware bottlenecks with the roofline model, deploying inference engines like vLLM and SGLang, mastering techniques like prefix caching and continuous batching, and setting up proper observability. Ultimately, the exercises guide engineers to build, instrument, load-test, and benchmark a cost-aware inference service.

  • Small-batch token decoding is frequently memory-bound under the roofline model.
  • Inference observability should be built prior to optimization, tracking metrics like time to first token (TTFT), inter-token latency, throughput, and queue depth with Prometheus and Grafana.
  • Prefix caching reuses shared-prefix computation rather than the generation of new tokens.
  • Evaluating quantization methods like AWQ and GPTQ across FP8 and INT4 requires balancing quality against memory use and speed.
  • A structured 10-week roadmap on GitHub guides engineers to deploy services, run high-concurrency load tests (up to 1,000+ requests), and publish reproducible benchmarks.