GitHub 火线榜

GitHub 火线榜 · 仓库档案

HazyResearch/ncm

NCM: Next Concept Modeling (简介来自仓库自身文档。)

数据截至 10月26日HazyResearch

最好成绩

#38

黑马榜 · 增速黑马

当前上榜 · 黑马 #38

1054

累计 Star

132

Fork 总数

3

近 30 天在榜天数

许可证: MIT最近 push: 10月14日Open Issues(含 PR): 12自 2026-10-25 起采集;未知 = 尚未采集到

上榜 3 天 · 近 30 天 +92 星 · 日均 +31最猛 10-25 单日 +49连续在榜 3 天

当前上榜

  • 38

    黑马榜 · 增速黑马

    1054 星 · 132 fork · 本周增速

    黑马 →
  • 46

    实时里程碑 · 破星直播

    997 星 · 129 fork · 距下一档

    里程碑 →

近 30 天势头

累计 Star 走势

名次走势

每日新增 Star

自 2026-10-25 起采集;未知 = 尚未采集到

项目文档

NCM logo Next-Concept Modeling

Fast, Parallel Coarse-to-Fine Text Generation

Paper Hugging Face collection Blog post Scaling Intelligence blog post X thread MIT license

Next-Concept Modeling (NCM) is a two-stage framework for parallel text generation. A multiscale residual VQ tokenizer represents a sequence as a hierarchy of discrete codes, and a transformer predicts that hierarchy from coarse to fine. Positions within a level are generated in parallel, so generation requires one forward evaluation per level.

Comparison of autoregressive, diffusion, and next-concept generation

Highlights

Coarse-to-fine generation

NCM generates coarse to fine: each level predicts a longer sequence in parallel, and decoding every level shows a sample being refined from a rough sketch to the full output in a few steps.

TinyStories, XSum and WMT14 samples refined level by level

Quality at a fraction of the cost

NCM beats or matches strong diffusion baselines on different tasks & datasets while generating 9-31× faster.

Generation quality against wall-clock time on LM1B and XSum, and hard Sudoku accuracy by method

Released models

Weights and tokenized datasets are hosted in the NCM Hugging Face collection. Each released model consists of a frozen tokenizer and a next-concept generator.

TaskModelTokenizerGeneratorConfigData
XSum–tokenizer.ptgenerator.ptconfig.yamltest set
WMT14 De–En–tokenizer.ptgenerator.ptconfig.yamltest set
Sudokueasytokenizer.ptgenerator.ptconfig.yamltest boards
mediumtokenizer.ptgenerator.ptconfig.yaml
hardtokenizer.ptgenerator.ptconfig.yaml
LM1Bsmalltokenizer.ptgenerator.ptconfig.yamltokenized text
mediumgenerator.ptconfig.yaml
largegenerator.ptconfig.yaml
TinyStories–tokenizer.ptgenerator.ptconfig.yamltokenized text
OpenWebText–tokenizer.ptgenerator.ptconfig.yamltokenized text

Installation

git clone https://github.com/HazyResearch/ncm.git
cd ncm
pip install -r requirements.txt

Python 3.10 or newer and a CUDA-capable PyTorch installation are recommended.

Evaluation

Download the checkpoints and evaluation inputs:

hf download hazyresearch/ncm-checkpoints --local-dir artifacts
hf download hazyresearch/ncm-datasets --repo-type dataset --local-dir data

Then run:

python evaluate.py --config config/eval/<task>.yaml --checkpoint-dir artifacts/<task> --data-dir data/<task>
# <task> is one of xsum, wmt14, sudoku-easy, sudoku-medium or sudoku-hard

python evaluate.py --config config/eval/<dataset>.yaml --checkpoint-dir artifacts/<dataset>
# <dataset> is tinystories, owt or lm1b-<size> with <size> one of small, medium or large

This runs one generation shard per visible GPU, merges them, and prints ROUGE-1/2/L and generative perplexity for XSum; cased and lowercased sacreBLEU, chrF and length ratio for WMT14; solved, cell and valid-grid rates for Sudoku; and generative perplexity under GPT-2 large with unigram entropy, over 5 seeds of 256 unconditional samples, for TinyStories, OpenWebText and LM1B, the latter under the FLM scoring protocol. Add --cfg <scale> for classifier-free guidance on XSum and WMT14; the guided WMT14 row uses --cfg 1.0.

Repository layout

  • evaluate.py: evaluation entry point
  • scripts/: per-GPU generation shard and the merge that scores it
  • config/eval/: one config per released checkpoint, identical to the config.yaml shipped with it
  • models/, tokenization/: generator and tokenizer implementations

Citation

@misc{kumbong2026nextconcept,
      title={Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation},
      author={Hermann Kumbong and Ishan S. Khare and Iddah Mlauzi and Andrew Woen and Charles Ding and E. Kelly Buchanan and Simran Arora and Azalia Mirhoseini and Christopher Ré},
      year={2026},
      eprint={2610.14162},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2610.14162},
}

Released under the MIT license.

把上榜徽章放进你的 README · HazyResearch/ncm[![把上榜徽章放进你的 README](https://git.vaiox.xyz/api/badge/HazyResearch/ncm.svg)](https://git.vaiox.xyz/zh/repo/HazyResearch/ncm)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/zh/repo/HazyResearch/ncm"><img src="https://git.vaiox.xyz/api/badge/HazyResearch/ncm.svg" alt="把上榜徽章放进你的 README" height="20"></a>

← 回到榜单

GitHub 火线榜往日榜发现联系我们 · Contact