Instructions to use KTTRCDL/HiLoRD_GSM8K_step_000900 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use KTTRCDL/HiLoRD_GSM8K_step_000900 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Configuration Parsing Warning:In adapter_config.json: "peft.task_type" must be a string
HiLo-RD: Cross-Budget Self-Distillation for Masked Diffusion Language Models
Introduction
We propose HiLo-RD (High-to-Low Budget Representation Distillation) to improve masked diffusion language models (MDLMs) under a limited generation budget. Unlike autoregressive models, MDLMs choose both what to generate and where to commit it. This creates two coupled challenges: predicting useful content before reasoning is complete, and deciding when to fix answer tokens that shape later predictions. We identify budget-induced premature commitment: even when a correct solution fits, the model can fix answer fragments near the window boundary before resolving intermediate steps. These fragments become context for later predictions and redirect subsequent reasoning. Existing post-training methods do not directly transfer the stronger trajectories that the same model follows with a larger window. HiLo-RD addresses this gap by (1) pairing large-window teacher states with cropped small-window views and (2) matching their hidden representations at committed positions. This supervision guides both token prediction and commitment order without an external teacher. Across mathematics benchmarks, HiLo-RD improves low-budget accuracy and shortens responses; these gains extend to code generation without code-domain training. On GSM8K, accuracy rises by 9.4 percentage points as mean readable length falls by about 25%. Attention diagnostics and fixed-budget order interventions support the proposed mechanism. Together, these results show that large-window reasoning can improve small-window decoding.
Quick Start
This repository provides the GSM8K step-900 LoRA adapter for GSAI-ML/LLaDA-8B-Instruct. Use it with the base model and HiLo-RD's masked-diffusion evaluation code below.
1. Install and prepare
Requirements: Linux, Python >= 3.10, and NVIDIA GPUs with CUDA support. Run the commands from the cloned project directory.
git clone https://github.com/KTTRCDL/HiLoRD.git
cd HiLoRD
conda create -n hilo-rd python=3.10 -y
conda activate hilo-rd
pip install -r requirements.txt
python -m hilo_rd.prepare
mkdir -p runs
Preparation downloads the pinned base model and GSM8K from ModelScope and exports the dataset as JSONL. The base model includes custom code loaded with trust_remote_code=True; review its code and terms before loading.
2. Download the adapter
Choose one provider. Both commands save the adapter to local_models/HiLoRD_GSM8K_step_000900.
Hugging Face
python -c "from huggingface_hub import snapshot_download; snapshot_download('KTTRCDL/HiLoRD_GSM8K_step_000900', local_dir='local_models/HiLoRD_GSM8K_step_000900')"
ModelScope alternative
python -c "from modelscope import snapshot_download; snapshot_download('kttrcdl/HiLoRD_GSM8K_step_000900', local_dir='local_models/HiLoRD_GSM8K_step_000900')"
3. Evaluate on GSM8K
python -m hilo_rd.evaluate --gpus 4 --config configs/hilo_rd_gsm8k_1024_to_512.yaml \
--model-path local_models/LLaDA-8B-Instruct --test-data local_data/gsm8k/test.jsonl \
--adapter-path local_models/HiLoRD_GSM8K_step_000900 --output-dir runs/hilo-rd-refer
This runs inference and scoring on all 1,319 GSM8K test records with four-shot prompts, a 512-token generation budget, and early stopping. Set --gpus to the number of available GPUs. Results are saved as predictions.jsonl and metrics.json in the output directory; use a new output directory for each run.
Evaluation
The released step-900 adapter achieved 78.24% (1032/1319) on A100 GPUs. Paper reference results use different hardware and training/evaluation settings; see the project results.
License
The HiLo-RD adapter is released under Apache-2.0. The base model and dataset retain their providers' terms.
Citation
@misc{li2026hilordcrossbudgetselfdistillationmasked,
title={HiLo-RD: Cross-Budget Self-Distillation for Masked Diffusion Language Models},
author={Xiang Li and Chengting Yu and Jungang Li and Yilun Zheng and Junzhuo Li and Xingyao Zhang and Wenbo Su and Xuming Hu},
year={2026},
eprint={2610.36901},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2610.36901},
}
- Downloads last month
- 4
Model tree for KTTRCDL/HiLoRD_GSM8K_step_000900
Base model
GSAI-ML/LLaDA-8B-Instruct