正在自动登录…
HazyResearch/ ncm
Next-Concept Modeling (NCM) 是一个用于并行文本生成的两阶段框架,通过多尺度残差VQ分词器将序列表示为离散码的层次结构,并由Transformer从粗到细预测该层次,实现快速、并行的文本生成。适用于研究并行生成方法、评估模型性能的研究人员。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/26 00:56:21 · 查看原文
- 累计 Stars
- 1,003
- 当前热度
- 7~30 天 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/26 00:56:21
- 使用方式
通过命令行运行评估脚本,需要下载检查点和数据集。
查看 README 依据
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: ```bash hf download hazyresearch/ncm-checkpoints --local-dir artifacts hf download hazyresearch/ncm-datasets --repo-type dataset --local-dir data ``` Then run: ```bash 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 3.10 或更高版本,以及支持 CUDA 的 PyTorch 安装。
查看 README 依据
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: ```bash hf download hazyresearch/ncm-checkpoints --local-dir artifacts hf download hazyresearch/ncm-datasets --repo-type dataset --local-dir data ``` Then run: ```bash 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
- 已知限制
评估脚本在可见 GPU 上运行生成分片,并合并结果。
查看 README 依据
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
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/11 11:21:35
- 首次达标收录
- 2026/10/26 00:51:29
- 统计更新时间
- 2026/10/26 01:25:59
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.0 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/26 00:51:29 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/14 17:13:20
- 许可证标识
- MIT
- Fork 数
- 130
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目