Views
No views yet

Input Tokens
↓
Base LLM (frozen during head training)
↓
Hidden States
├──→ LM Head → Logits
├──→ TempHead → Temperature
└──→ TopPHead → Top-PAutoDecoModelForCausalLM interface.| Base Model | #Base Params | #AutoDeco Params | Download |
|---|---|---|---|
| Llama-3.1-Nemotron-Nano-8B-v1 | 8B | 2.1M | 🤗 HuggingFace |
| DeepSeek-R1-Distill-Qwen-7B | 7B | 1.84M | 🤗 HuggingFace |
| Qwen3-30B-A3B-Instruct-2507 | 30B | 1.05M | 🤗 HuggingFace |
| OpenAI-GPT-OSS-20B | 20B | 1.48M | 🤗 HuggingFace |
| OpenAI-GPT-OSS-120B | 120B | 1.48M | 🤗 HuggingFace |
| Qwen3-235B-A22B-Thinking | 235B | 2.1M | 🤗 HuggingFace |
| DeepSeek-V3.1-Terminus | 671B | - | Comming Soon |
1# Clone repository
2cd AutoDeco
3
4# Install core dependencies
5pip install -r requirements.txt
6
7# Optional: for training monitoring
8pip install wandb1python script/construct_autodeco.py \
2 --base_model_name_or_path path_to_your_base_LLM \
3 --output_dir path_to_your_AutoDeco_model1{
2 "prompt": "formatted prompt text",
3 "completion": "expected completion"
4}
5
6# example
7{
8 "prompt": "<|im_start|>user\nEvaluate the limit:$$\\lim_{(x, y) \\to (1, 2)} \\frac{(x-1)(y-2)-x+3}{x^2-2x+y^2-4}$$\nMake sure you output the final answer within \\boxed{}<|im_end|>\n< im_start>assistant\n",
9 "completion": "......### ✅ Final Answer:\n$$\n\\boxed{-1}\n$$""
10}1# Edit script/trl_train.sh to configure parameters
2# Key parameters:
3# - MODEL_NAME_OR_PATH: Your initialized AutoDeco Model Path
4# - DATA_NAME: Training data filename (in data directory)
5# - MAX_LENGTH: Maximum sequence length
6# - train_temp: Whether to train temperature head
7# - train_top_p: Whether to train top-p head
8
9bash script/trl_train.sh1# Train only temperature head
2accelerate launch trl_train.py \
3 --model_name_or_path AutoDeco-Llama-3.1-8B \
4 --dataset_name train_data.jsonl \
5 --train_temp true \
6 --train_top_p false \
7 --learning_rate 5e-6 \
8 --num_train_epochs 1 \
9 --output_dir ckpt/llama3_temp_head1# Single evaluation
2python llm_eval.py \
3 --model_name_or_path ckpt/autodeco_model \
4 --dataset aime24 \
5 --temp 1.0 \
6 --top_p 1.0 \
7 --k 16 \
8 --seed 42
9
10# Batch evaluation with script (automatically generates multiple random seeds)
11bash script/test_generation.sh aime24 1.0 1.0 -1 1.0 path/to/modelgeneration_log/ directory, including:1# example
2vllm serve AutoDeco/
├── model/ # Model definitions
│ ├── templlm_auto.py # Unified AutoDeco model (recommended)
definitions
│
├── trainer/ # Trainers
│ └── trl_Temp.py # AutoDeco trainer
│
├── script/ # Scripts
│ ├── trl_train.sh # Training launch script
│ ├── test_generation.sh # Batch evaluation script
│ └── merge_autodeco.py # Merge or split heads
│
├── config/ # Configuration files
│ └── deepspeed/ # DeepSpeed configuration
│ └── deepspeed_zero3_gradaccu4.yaml
│
├── trl_train.py # Training main program
├── llm_eval.py # Evaluation main program (vLLM)
├── boxed_extract.py # Answer extraction tool
├── requirements.txt # requirements
└── README.md # This document
1python merge_autodeco.py split \
2 --full-checkpoint path_to_your_full_model \
3 --output path_to_split_headconfig.json: AutoDeco configuration (including base_model_name_or_path)autodeco_heads.safetensors: Heads weights1python merge_autodeco.py merge \
2 --autodeco-path path_to_autodeco_heads \
3 --base-model-path path_to_base_LLM \
4 --output path_to_your_full_model1@misc{wang2025endmanualdecodingtruly,
2 title={The End of Manual Decoding: Towards Truly End-to-End Language Models},
3 author={Zhichao Wang and Dongyang Ma and Xinting Huang and Deng Cai and Tian Lan and Jiahao Xu and Haitao Mi and Xiaoying Tang and Yan Wang},
4 year={2025},
5 eprint={2510.26697},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2510.26697},
9}