CoolFace
Modelpublic

mudler/Laguna-XS-2.1-APEX-GGUF

sourceHugging Faceopenmdw-1.1updated 1mo agoView on Hugging Face
13likes2.2mdownloads
Model Card

<!-- apex-banner-v2 --> <div style="background-color: #f59e0b; color: white; padding: 20px; border-radius: 10px; text-align: center; margin: 20px 0;"> <h2 style="color: white; margin: 0 0 10px 0;">โšก Each donation = another big MoE quantized</h2> <p style="font-size: 18px; margin: 0 0 15px 0;">I host <b>30+ free APEX MoE quantizations</b> as independent research. My only local hardware is an <b>NVIDIA DGX Spark</b> (122 GB unified memory), enough for ~30-50B-class MoEs, but <b>bigger ones (200B+) require rented compute</b> on H100/H200/Blackwell, typically $20-100 per quant.<br>If APEX quants are useful to you, your support directly funds those bigger runs.</p> <p style="font-size: 20px; margin: 0;"> <a href="https://www.patreon.com/cw/mudler" style="color: white; text-decoration: underline;">๐ŸŽ‰ Patreon (Monthly)</a> &nbsp;|&nbsp; <a href="https://www.buymeacoffee.com/mudler" style="color: white; text-decoration: underline;">โ˜• Buy Me a Coffee</a> &nbsp;|&nbsp; <a href="https://github.com/sponsors/mudler" style="color: white; text-decoration: underline;">โญ GitHub Sponsors</a> </p> </div>

Laguna-XS-2.1 โ€” APEX GGUF

APEX (Adaptive Precision for EXpert Models) quantizations of poolside/Laguna-XS-2.1 โ€” poolside's Laguna XS.2 Mixture-of-Experts model for coding and agentic software engineering.

Brought to you by the [LocalAI](https://github.com/mudler/LocalAI) team | APEX Project | Technical Report

Requires a recent llama.cpp with Laguna support (PR #25165). Older builds cannot load arch=laguna.

Available Files

FileProfileBest For
Laguna-XS-2.1-APEX-I-Balanced.ggufI-BalancedBest overall โ€” imatrix-enhanced
Laguna-XS-2.1-APEX-I-Quality.ggufI-QualityHighest quality with imatrix
Laguna-XS-2.1-APEX-Quality.ggufQualityHighest quality (no imatrix)
Laguna-XS-2.1-APEX-Balanced.ggufBalancedGeneral purpose
Laguna-XS-2.1-APEX-I-Compact.ggufI-CompactConsumer GPUs, imatrix-enhanced
Laguna-XS-2.1-APEX-Compact.ggufCompactConsumer GPUs
Laguna-XS-2.1-APEX-I-Mini.ggufI-MiniSmallest viable, fastest inference

What is APEX?

APEX is a quantization strategy for Mixture-of-Experts (MoE) models. It classifies tensors by role (routed expert, shared expert, attention, dense FFN) and applies a layer-wise precision gradient โ€” edge layers get higher precision, middle layers compress more aggressively. I-variants use diverse imatrix calibration (chat, code, reasoning, tool-calling, agentic traces, Wikipedia).

In MoE models the routed-expert FFN tensors dominate the weight budget but only ~8/256 experts fire per token, so APEX compresses middle-layer routed experts hardest while preserving edge layers, attention, and the always-active shared expert.

APEX layout for Laguna

Laguna XS.2 has a structure APEX handles explicitly:

  • โ€”Layer 0 is a leading dense FFN (no experts) โ€” pinned to Q8_0, since every token traverses it.
  • โ€”Layers 1โ€“39 are MoE โ€” 256 routed experts + a shared expert, 8 active per token, sigmoid gating.
  • โ€”Shared expert (ffn_*_shexp) kept at Q8_0 on every tier (always active).
  • โ€”Routed experts follow the 5+5 symmetric edge gradient (higher precision at the first/last layers, most aggressive in the middle).
  • โ€”Router (ffn_gate_inp), norms and the exp_probs_b gating bias stay at full precision.

Architecture

  • โ€”Model: Laguna-XS-2.1 (LagunaForCausalLM, arch laguna)
  • โ€”Layers: 40 (1 dense + 39 MoE) ยท Experts: 256 routed + 1 shared (8 active)
  • โ€”Attention: 48 heads / 8 KV, per-layer output gate, hybrid full + sliding-window, YaRN rope
  • โ€”Vocab: 100352 ยท text-only
  • โ€”Calibration: v1.3 diverse dataset

Run with LocalAI

bash
local-ai run mudler/Laguna-XS-2.1-APEX-GGUF@Laguna-XS-2.1-APEX-I-Balanced.gguf

Credits

APEX is brought to you by the LocalAI team. Built on llama.cpp. Base model by poolside.