{
  "id": 599,
  "kind": "code",
  "title": "nanowhale",
  "summary": "huggingface/nanowhale ports DeepSeek-V4 (MLA, 4+1 MoE with top-2, Hyper-Connections hc_mult=4 / Sinkhorn, MTP) into HF Trainer/SFTTrainer at hidden 320 / 8 layers / vocab 129,280 / ctx 2048 (~110M params: 41M embed + 69M non-embed). Pretrain 5K steps on FineWeb-Edu (~2.6B tokens, final loss ~5.3, 1×H100) then 3K-step SmolTalk SFT. Checkpoints on HF as cmpatino/nanowhale-100m-base and cmpatino/nanowhale-100m. README flags bf16 NaNs from Hyper-Connections at this scale (use fp32) and a from_pretrained re-init quirk. README license MIT; GitHub API has no SPDX (no LICENSE file). Companion HF base card is Apache-2.0.",
  "body": "",
  "notes": "Primary: GitHub README + API (README MIT, API license null / no LICENSE file; Python; 386 stars / 45 forks at check). Weights live at cmpatino/nanowhale-100m-base (HF card Apache-2.0, 4 likes at check) and cmpatino/nanowhale-100m; not copied into hf_* because the leftover is the GitHub training repo. Discord posted the repo. Training uses public FineWeb-Edu / SmolTalk, so no datasets_local row.",
  "url": "https://github.com/huggingface/nanowhale",
  "links": [],
  "authors": [
    "cmpatino"
  ],
  "tags": [
    "nanowhale",
    "deepseek-v4",
    "moe",
    "mla",
    "hyper-connections",
    "huggingface",
    "small-lm"
  ],
  "topics": "DeepSeek-V4, small LMs, MoE, MLA",
  "venue": "Hugging Face (GitHub)",
  "publisher": "",
  "source": "github",
  "language": "",
  "access": "free",
  "license": "MIT",
  "published_year": 2026,
  "added_at": "2026-08-14T18:35:00.000Z",
  "verified_at": "2026-08-14T18:35:00.000Z",
  "attrs": {
    "scale": "386 stars; 45 forks at check. ~110M params; pretrain 5K steps / ~2.6B tokens; SFT 3K steps. Held-out PPL 13.62 (base) / 12.90 (SFT) in the README.",
    "purpose": "Train a ~110M DeepSeek-V4-architecture LM from scratch as a miniature reference implementation",
    "time_period": "GitHub created 2026-05-04; pushed 2026-05-04; updated 2026-08-13. Discord posted 2026-05-08."
  },
  "enrichment": {
    "github": {
      "forks": 44,
      "stars": 390,
      "pushed": "2026-05-04",
      "created": "2026-05-04",
      "archived": false,
      "language": "Python",
      "full_name": "huggingface/nanowhale",
      "fetched_at": "2026-10-03T14:33:37.304Z"
    }
  },
  "enriched_at": "2026-10-03T14:33:37.335Z",
  "license_class": "permissive",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "618",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:37.335Z",
  "page": "https://papers.projxon.ai/entries/599",
  "markdown": "https://papers.projxon.ai/entries/599.md",
  "api": "https://papers.projxon.ai/api/entries/599",
  "relations": [
    {
      "relation": "about",
      "direction": "in",
      "note": "",
      "via": "manual",
      "entry": {
        "id": 1206,
        "kind": "note",
        "title": "Mixture-of-experts language models: where the work is (overview)",
        "summary": "An overview of the 43 entries on mixture-of-experts models: the open releases, load balancing at extreme sparsity, expert design, training and serving, and what the collection lacks. Written by Claude Opus 5.5.",
        "url": "",
        "authors": [
          "Claude Opus 5.5"
        ],
        "tags": [
          "synthesis",
          "ai-written",
          "moe"
        ],
        "venue": "",
        "source": "",
        "license": "",
        "published_year": null,
        "added_at": "2026-10-03T15:08:32.032Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": null,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1206",
        "markdown": "https://papers.projxon.ai/entries/1206.md",
        "api": "https://papers.projxon.ai/api/entries/1206"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 566,
      "kind": "paper",
      "title": "DeepSeek-V3 Technical Report",
      "summary": "671B-parameter DeepSeekMoE (37B active: 1 shared + 8 of 256 routed experts, node-limited M=4) with Multi-head Latent Attention, auxiliary-loss-free load balancing, and 1-depth multi-token prediction. FP8 mixed precision, DualPipe pipeline parallelism, trained on 14.8T tokens with 2048 H800 GPUs. Full training 2.788M H800 GPU-hours (pretrain 2664K / context 119K / post-train 5K; ~$5.576M at $2/GPU-hour); no irrecoverable loss spikes. Context 4K→32K→128K via YaRN. Chat: MMLU 88.5, MMLU-Pro 75.9, GPQA-Diamond 59.1, MATH-500 90.2, AIME 2024 39.2, LiveCodeBench CoT 40.5, Arena-Hard 85.5. Code https://github.com/deepseek-ai/DeepSeek-V3.",
      "url": "https://arxiv.org/abs/2412.19437",
      "authors": [
        "DeepSeek-AI"
      ],
      "tags": [
        "deepseek-v3",
        "moe",
        "mla",
        "mtp",
        "fp8",
        "dualpipe",
        "load-balancing",
        "671b"
      ],
      "venue": "arXiv / DeepSeek",
      "source": "",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/566",
      "markdown": "https://papers.projxon.ai/entries/566.md",
      "api": "https://papers.projxon.ai/api/entries/566"
    },
    {
      "id": 452,
      "kind": "paper",
      "title": "LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing",
      "summary": "LongCat Sparse Attention (LSA) composes three indexer changes on DSA: Streaming-Aware Indexing (sink+sliding-window contiguous budget plus dynamic sparse tokens for coalesced HBM), Cross-Layer Indexing (N=2 owner/reuse with distillation; halves indexer passes), and training-free Hierarchical Indexing (coarse page recall then token refine; net win at >=256K). Matches full MLA on general/long-context benches at 69B-A3B and 560B-A27B, enables 1M-token native training, and underpins LongCat-2.0 (1.6T-A48B). Releases LongCat-Flash-Lite-Sparse (69B-A3B).",
      "url": "https://arxiv.org/abs/2608.01662",
      "authors": [
        "Wen Zan",
        "Jiaqi Zhang",
        "Jianchao Tan",
        "Hong Liu",
        "Cunguang Wang",
        "Xiang Li",
        "Duyue Ma",
        "Guanyu Wu",
        "Yifan Lu",
        "Fengcun Li",
        "Yerui Sun",
        "Peng Pei",
        "Yuchen Xie",
        "Xunliang Cai"
      ],
      "tags": [
        "sparse-attention",
        "dsa",
        "lightning-indexer",
        "long-context",
        "longcat",
        "meituan",
        "moe",
        "mla"
      ],
      "venue": "arXiv / Meituan LongCat",
      "source": "arxiv",
      "license": "arXiv perpetual non-exclusive license 1.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:24:56.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 2,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/452",
      "markdown": "https://papers.projxon.ai/entries/452.md",
      "api": "https://papers.projxon.ai/api/entries/452"
    },
    {
      "id": 1322,
      "kind": "paper",
      "title": "Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression",
      "summary": "Chunked KV-cache compression groups consecutive tokens into fixed-size windows and compresses each window into fewer cache entries at a fixed stride S, cutting long-context memory and attention cost. The paper shows this creates a new positional coordinate — the token's phase, its position modulo S — and a systematic failure mode called phase sensitivity: the same information can be easy to retrieve at one phase and difficult at another. In the DeepSeek-V4 family (which uses compressed sparse attention, CSA, with stride S=4), single-token needle-in-a-haystack retrieval at 128K context differs by up to 40.2 percentage points across phases, and a code-completion top-1 prediction flips periodically with period 4 matching the CSA stride. To isolate the cause, the authors pretrained a family of Qwen3-0.6B-derived transformers from scratch with chunked KV compression as the only substantial architectural change: every compressed variant shows periodicity matching the compression stride — even plain within-window averaging — while full-attention baselines show none. Window boundaries (key-value pairs split across windows) do not fully explain it: accuracy varies widely across phases that keep the pair inside one window. Mechanistic analysis (KV-head/layer knockouts in their models and attention-readout interventions) reveals phase specialization: different heads contribute asymmetrically to retrieval at different phases, also in DeepSeek-V4 itself. Compression gates that can learn separate positional preferences develop persistent per-head phase preferences during pretraining, and an idealized bigram-retrieval analysis shows gradient flow drives gates toward sharp static phase concentration. The practical takeaway: evaluating chunked-KV models requires measuring across compression phases (e.g., shifting the input by a few tokens while keeping the queried information fixed) — high average accuracy can coexist with systematic periodic positional failures.",
      "url": "https://arxiv.org/abs/2609.36322",
      "authors": [
        "Xingyu Zhu",
        "Pu (Luke) Yi",
        "Ziheng Cheng",
        "Ang Lv",
        "Jing Liu",
        "Lexing Ying",
        "Yiyuan Ma",
        "Xin Dong"
      ],
      "tags": [
        "phase-sensitivity",
        "kv-cache-compression",
        "compressed-sparse-attention",
        "deepseek-v4",
        "long-context-retrieval",
        "attention-mechanisms",
        "needle-in-a-haystack"
      ],
      "venue": "arXiv:2609.36322 (cs.LG), submitted 28 Sep 2026; work at ByteDance Seed + Princeton/Stanford/UC Berkeley",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-09T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1322",
      "markdown": "https://papers.projxon.ai/entries/1322.md",
      "api": "https://papers.projxon.ai/api/entries/1322"
    },
    {
      "id": 1223,
      "kind": "model",
      "title": "Kolibri-1: 78B Open-Weight MoE with 3.46B Active Parameters and Hybrid SWA",
      "summary": "78B-parameter open-weight Mixture-of-Experts model with only 3.46B active parameters, up to 1M tokens of context, released under Apache 2.0 for self-hosted use (German/English). Key architectural detail: hybrid sliding-window attention with a 4:1 SWA:GQA attention ratio in the MoE layers. The tech report's visible sections cover the model architecture (config table) and Exact Quantile Balancing (EQB) — quantile balancing with bias updates and microbatching. Positioned as Europe's entry onto the Pareto frontier for efficient open MoE models; the announcement commentary noted Chinese labs' attention architectures (MLA + GDN at Sberbank) as the comparison bar and 'scale that up' as the next step. Released Oct 3, 2026 with a tech report at aleph-alpha.com/downloads/tech-report.pdf.",
      "url": "https://huggingface.co/Aleph-Alpha/Kolibri-1",
      "authors": [
        "Aleph Alpha"
      ],
      "tags": [
        "kolibri",
        "moe",
        "hybrid-swa",
        "gqa",
        "open-weights",
        "long-context",
        "aleph-alpha",
        "78b"
      ],
      "venue": "Aleph Alpha release, announced 3 Oct 2026",
      "source": "huggingface",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-04T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1223",
      "markdown": "https://papers.projxon.ai/entries/1223.md",
      "api": "https://papers.projxon.ai/api/entries/1223"
    },
    {
      "id": 481,
      "kind": "paper",
      "title": "PithTrain: A Compact and Agent-Native MoE Training System",
      "summary": "Defines agent-task efficiency (ATE) and ships PithTrain, an ~11K-line Python-native MoE stack (PP, FSDP DP, CP, EP, DualPipeV overlap, torch.compile, FP8) built on compactness, no implicit indirection, and in-repo agent skills. Matches or exceeds Megatron-LM tokens/s on GPT-OSS-20B, Qwen3-30B-A3B, and DeepSeek-V2-Lite on H100/B200 (e.g. 280.0K vs 264.1K tok/s on 4×8 H100 Qwen3-30B-A3B PP4/EP8). ATE-Bench (12 Q&A, 4 operate/profile, 4 new-feature ports) with Claude Opus 4.7: up to 62% fewer agent turns and 64% less active GPU time vs production frameworks on the hardest new-feature tasks. Code Apache-2.0 https://github.com/mlc-ai/pith-train.",
      "url": "https://arxiv.org/abs/2605.31463",
      "authors": [
        "Ruihang Lai",
        "Hao Kang",
        "Haozhan Tang",
        "Akaash R. Parthasarathy",
        "Zichun Yu",
        "Junru Shao",
        "Todd C. Mowry",
        "Chenyan Xiong",
        "Tianqi Chen"
      ],
      "tags": [
        "pithtrain",
        "moe",
        "agent-native",
        "megatron",
        "ate-bench",
        "cmu",
        "mlc"
      ],
      "venue": "arXiv / Carnegie Mellon University / NVIDIA",
      "source": "arxiv",
      "license": "CC BY 4.0 (paper); Apache-2.0 (PithTrain code)",
      "published_year": 2026,
      "added_at": "2026-08-14T16:58:34.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/481",
      "markdown": "https://papers.projxon.ai/entries/481.md",
      "api": "https://papers.projxon.ai/api/entries/481"
    },
    {
      "id": 637,
      "kind": "model",
      "title": "Inkling: open-weight controllable-effort multimodal MoE",
      "summary": "Inkling (released 2026-07-15): 66-layer decoder-only MoE, 975B total / 41B active (6-of-256 experts + 2 shared), hybrid local/global attention, native text/image/audio in, text out, 1M context. Sibling Inkling-Small 276B/12B. Apache-2.0 weights on HF. Distinctive RL: Reward = task reward − λ × (# reasoning tokens), with λ and effort-instruction varied across rollouts so the model learns to spend thought rather than maximize it; inference effort is a continuous 0–0.99 knob. Model-card highlights at effort=0.99 include HLE text 29.7% / tools 46.0%, AIME 2026 97.1%, GPQA Diamond 87.2%, SWE-bench Verified 77.6%. Discord post is Vipul Gupta’s note of that RL trick, not a TML thread.",
      "url": "https://thinkingmachines.ai/model-card/inkling/",
      "authors": [
        "Thinking Machines Lab"
      ],
      "tags": [
        "inkling",
        "thinking-machines",
        "moe",
        "reasoning-effort",
        "open-weights",
        "rl",
        "x"
      ],
      "venue": "Thinking Machines Lab",
      "source": "web",
      "license": "Apache-2.0",
      "published_year": null,
      "added_at": "2026-08-14T19:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/637",
      "markdown": "https://papers.projxon.ai/entries/637.md",
      "api": "https://papers.projxon.ai/api/entries/637"
    }
  ]
}
