Views
No views yet
| File | Model | Dataset | Parameters | Description |
|---|---|---|---|---|
ar_openwebtxt.ckpt | AR | OpenWebText | ~100M | Autoregressive teacher model (GPT-2 tokenizer, seq_len=1024) |
ar_best_lm1b.ckpt | AR | LM1B | ~100M | Autoregressive teacher model (custom tokenizer, seq_len=128) |
pflm_owt_k4.ckpt | PFLM (k=4) | OpenWebText | ~100M | Push-forward LM, decodes 4 tokens per forward pass |
pflm_lm1b_k4.ckpt | PFLM (k=4) | LM1B | ~100M | Push-forward LM, decodes 4 tokens per forward pass |
1from huggingface_hub import hf_hub_download
2
3# Download a specific checkpoint
4ckpt_path = hf_hub_download(
5 repo_id="zwave/K-Forcing",
6 filename="pflm_owt_k4.ckpt", # or: ar_openwebtxt.ckpt, ar_best_lm1b.ckpt, pflm_lm1b_k4.ckpt
7)1from huggingface_hub import snapshot_download
2
3snapshot_download(repo_id="zwave/K-Forcing", local_dir="./checkpoints")huggingface-cli download zwave/K-Forcing --local-dir ./checkpoints1git clone https://github.com/alibaba-damo-academy/K-Forcing.git
2cd K-Forcing
3
4# Setup environment
5mkdir -p wheels
6wget -P wheels https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.6/flash_attn-2.5.6+cu122torch2.2cxx11abiFALSE-cp39-cp39-linux_x86_64.whl
7uv sync1python batch_inference_with_prefix.py \
2 --model ar --task owt \
3 --ckpt_path ./checkpoints/ar_openwebtxt.ckpt \
4 --prefix_file assets/prefix_owt_examples.jsonl \
5 --batch_size 4 --n_per_prefix 11python batch_inference_with_prefix.py \
2 --model pflm --task owt \
3 --ckpt_path ./checkpoints/pflm_owt_k4.ckpt \
4 --prefix_file assets/prefix_owt_examples.jsonl \
5 --batch_size 4 --n_per_prefix 1 --K 2 --freq_penalty 0.31@misc{tang2026kforcingjointnextktokendecoding,
2 title={K-Forcing: Joint Next-K-Token Decoding via Push-Forward Language Modeling},
3 author={Zhiwei Tang and Yuanyu He and Yizheng Han and Wangbo Zhao and Jiasheng Tang and Fan Wang and Bohan Zhuang},
4 year={2026},
5 eprint={2606.10820},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG},
8 url={https://arxiv.org/abs/2606.10820},
9}