Open models

Wiki chapters and blog posts about Open models.

Wiki

Mixture of Experts (MoE): Routing, Load Balancing and Sparse Activation

A mixture-of-experts layer swaps the feed-forward network for many experts and routes each token to only k of them, so total parameters grow while per-token compute stays small. This page computes total and active parameters for Mixtral and DeepSeek-V3 and lets you try load balancing.

Intermediate 31 min read

Modern LLM Architecture: From GPT-2 to Llama, Qwen and DeepSeek

Almost every mainstream open LLM is a refined decoder-only Transformer: Pre-Norm with RMSNorm, a SwiGLU feed-forward network, RoPE positions and GQA attention, and some add mixture of experts (MoE) to grow parameters without growing compute in proportion.

Intermediate 15 min read

Blog posts

DeepSeek-V3 Technical Report: MoE, MLA, FP8 and Low-Cost Training

DeepSeek-V3 is a 671B-parameter MoE model that activates 37B per token. It adds auxiliary-loss-free balancing and multi-token prediction to MLA and DeepSeekMoE, and trains with FP8 and DualPipe on 2048 H800 GPUs in 2.788M GPU hours. This post covers methods, numbers and limits.

Paper notes arXiv 2024

Chameleon: Early-fusion token modeling for images and text

Chameleon trains one Transformer from scratch over discrete image and text tokens. Its 7B and 34B models handle interleaved multimodal input and output instead of attaching vision to a frozen LLM.

Paper notes arXiv 2024

Phi-3: Small models and the textbook-quality data strategy

Phi-3-mini trains 3.8B parameters on 3.3T tokens using heavily filtered and synthetic textbook-quality data. It demonstrates local deployment potential while acknowledging capacity limits in factual knowledge.

Paper notes arXiv 2024

Mixtral of Experts: An Open MoE That Matches Llama 2 70B with 13B Active Parameters

Mixtral 8x7B keeps Mistral 7B's architecture but replaces every feed-forward layer with 8 experts and routes each token to 2: about 47B parameters in total, about 13B used per token. This post covers the architecture, the benchmark evidence, the routing analysis and which claims deserve a discount.

Paper notes arXiv 2024

LLaMA: Train Smaller Models for Longer, on Public Data Only

LLaMA is a family of 7B to 65B foundation models from Meta (2023), trained on public data only. The paper reports LLaMA-13B beating GPT-3 175B on most benchmarks. This post covers the inference-budget argument, data, architecture, training cost and evidence, and which claims need a discount.

Paper notes arXiv 2023

Topics