Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 25 min read Announcement mediumAdept

Welcome GPT OSS, the new open-source model family from OpenAI!

OpenAI's gpt-oss-120b (117B total, 5.1B active) and gpt-oss-20b (21B total, 3.6B active) are Apache 2.0 open-weight mixture-of-experts reasoning models. Their MoE weights are quantized to MXFP4, so the large model fits on one 80GB H100 and the small one runs in 16GB. Architecture notes cover softmax-after-topk routing, alternating full and 128-token sliding-window attention, and learned per-head attention sinks. The guide shows how to run the models via Inference Providers, transformers (MXFP4 kernels, Flash Attention 3 with sinks on Hopper, MegaBlocks MoE kernels as a bf16 fallback), llama.cpp and vLLM, plus fine-tuning with TRL and chat template handling.

Assumes: LLM inference basicsHugging Face transformersGPU memory and quantization

Related posts

  • Tricks from OpenAI gpt-oss YOU 🫵 can use with transformers

    Hugging Face hardMaster

    Hugging Face upgraded transformers to support OpenAI's gpt-oss models, and most of the new features carry over to other models. These include pre-built kernels downloaded from the Hub (Liger RMSNorm, MegaBlocks MoE, Flash Attention 3 with attention sinks), native MXFP4 4-bit quantization via Triton kernels, tensor and expert parallelism, dynamic sliding window caching, continuous batching with paged attention, and faster loading. MXFP4 stores E2M1 values in 32-element blocks with shared scales. That lets gpt-oss-20B run in about 16 GB of VRAM and 120B in about 80 GB, versus roughly 4× the memory in the bf16 fallback. Benchmarks show the custom and MXFP4 kernels pay off mainly at larger batch sizes.

  • Run fast, private agents on-device with LFM2.5-24B-A2B

    Hugging Face mediumAdept

    LFM2.5-24B-A2B is an open-weight 24B-parameter MoE reasoning model with 2B active parameters per token, aimed at running tool-using agents on local hardware. It keeps LFM2's 40-layer hybrid of gated short convolutions and GQA with 64 experts and top-4 routing. The context window grows from 32K to 131K tokens, the vocabulary doubles to 128K, pre-training scales to ~33T tokens, and post-training runs SFT, teacher specialization, two on-policy distillation stages and agentic RL inside harnesses like OpenClaw and Hermes Agent. It leads larger MoEs such as Qwen3.6-35B-A3B on most tool-use and instruction-following benchmarks but trails on knowledge and coding tasks like SWE-Bench Verified. It decodes 184 tok/s on an M5 Max and up to 21K tok/s on a B300, and ships with transformers code and an OpenAI-compatible harness configuration.

  • Welcome Muse Spark Open: open-weight frontier multimodal mixture-of-experts model from Meta

    Hugging Face mediumAdept

    Muse Spark Open is Meta's open-weight multimodal mixture-of-experts model with ~816B total and ~42B active parameters, 256 experts per layer with 8 routed per token, a 1M-token context, and text, image, audio and video inputs producing text output, aimed at agentic coding. The architecture uses 62 layers with grouped-query attention (128 query and 16 KV heads), QK-norm, gated residuals, a 1.8B perception encoder and a convolutional audio encoder emitting 12.5 tokens per second. The KV cache costs about 250 KB per token, or ~266 GB at 1M tokens. BF16 weights (~1.5 TB) need 4×8 H200 nodes and NVFP4 fits a single B200 node. Transformers examples cover tensor and expert parallelism, reasoning-effort levels, image, video and audio inputs, and tool calling.

  • Optimize and deploy with Optimum-Intel and OpenVINO GenAI

    Hugging Face mediumAdept

    Hugging Face Transformers LLMs can be exported to OpenVINO IR with Optimum-Intel, quantized with NNCF, and deployed through the lightweight OpenVINO GenAI LLMPipeline from Python or C++. Models over one billion parameters default to INT8 weights during export. For Llama 3.1 8B the recommendation is to stack AWQ, scale estimation and mixed INT4/INT8 quantization using a calibration dataset. Wikitext perplexity goes from 7.34 in FP32 to 7.35 at INT8 and 7.83 at INT4. Code examples cover export via API and CLI, generation config, streaming, and chat mode that reuses the KV cache across turns.

  • Welcome Mixtral - a SOTA Mixture of Experts on Hugging Face

    Hugging Face mediumAdept

    Mixtral 8x7B is Mistral's sparse Mixture-of-Experts LLM. It replaces feed-forward layers with MoE layers that route each token to 2 of 8 experts, so it has about 45B total parameters but decodes at roughly the speed of a 12B dense model. On release it beat Llama 2 70B on the Open LLM Leaderboard and matched GPT-3.5 on MT-Bench (8.30), under an Apache 2.0 license. Hugging Face shipped integrations for running it with Transformers and Text Generation Inference, plus QLoRA fine-tuning with TRL on one A100 (attention projections only, since sparse MLP layers interact poorly with PEFT). For quantization, VRAM needs are about 90 GB in fp16 and about 23 GB in 4-bit, and GPTQ performs better when the expert gating layers are left unquantized (perplexity 4.40 vs 4.25 in fp16).

The quest for software engineering knowledge.

Look:
Layout: