Downloads · 30 days
21
9% of all-time downloads
xxang/AStar-Thought-DeepSeek-R1-Distill-Qwen-32B
AStar-Thought-DeepSeek-R1-Distill-Qwen-32B is a text generation model from xxang. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
<div align="center" <img src="https://github.com/AI9Stars/AStar-Thought/blob/main/assets/compare.png?raw=true" width="800em" </img </div
Downloads · 30 days
21
9% of all-time downloads
All-time downloads
236
Public
Parameters
32.8B
65.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors65.5 GB · 100%
From the Hugging Face model README
AStar-Thought-DeepSeek-R1-Distill-Qwen-32B
A*-Thought introduces a unified framework designed to identify and isolate the most essential thoughts from the extensive reasoning chains produced by these models, automatically discovering compact and effective reasoning paths by leveraging signals at both step and path levels:
A*-Thought could improve both the performance and the efficiency of LRMs (e.g., DeepSeek-R1-Distill-Qwen-32B, QwQ-32B) under different budgets:
We open access to the following models trained on the AStar-Thought-1k dataset.
| Model | HF Repo | Description |
|---|---|---|
| AStar-Thought-QwQ-32B | HF Repo | QwQ-32B trained on the AStar-Thought-1k |
| AStar-Thought-DeepSeek-R1-Distill-Qwen-32B | HF Repo | DeepSeek-R1-Distill-Qwen-32B trained on the AStar-Thought-1k |
| AStar-Thought-s1.1-32B | HF Repo | s1.1-32B trained on the AStar-Thought-1k |
pip install -r requirements.txt
cd LLaMA-Factory
pip install -e ".[torch,metrics]"
Please upgrade vllm>=0.9.2 and llama-factory>=0.9.4 to support Qwen3.
device_map="0,1,2,3,4,5,6,7"
CUDA_VISIBLE_DEVICES="${device_map}" \
python long_cot_compress.py \
--scorer_model_path "openai-community/gpt2" \
--validator_model_path "simplescaling/s1.1-32B" \
--data_path "simplescaling/s1K-1.1" \
--cache_path "./res/cache/s1K-1.1-bis.jsonl" \
--output_path "./res/data/s1K-1.1-compressed.jsonl" \
--scorer_works_num 32 \
--scorer_device_map "${device_map}" \
--validator_device_map "${device_map}" \
--thought_begin_tag "<|begin_of_thought|>" \
--thought_end_tag "<|end_of_thought|>" \
--solution_begin_tag "<|begin_of_solution|>" \
--solution_end_tag "<|end_of_solution|>" \
--alpha 0.5 \
--beta 0.1 \
--min_search_steps 5 \
--max_search_steps 20 \
--load_s1k
You could modify it in run_compress.sh.
Write the compressed data path obtained in Step 1 to LLaMA-Factory/data/dataset_info.json
llamafactory-cli train examples/train_full/qwen2_full_sft.yaml
You could modify it in LLaMA-Factory/examples/train_full/qwen2_full_sft.yaml.
Write the model path obtained in Step 2 astarthought/evals/models/model_configs.yaml
CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7" \
python -m astarthought.evals.cli evaluate \
--model "your model path here" \
--task "math500" \
--sampling-params temperature=0.6,top_p=0.95,max_tokens=1024 \
--backend vllm \
--backend-args tensor_parallel_size=8 \
--result-dir ./res/eval
You could modify it in run_eval.sh.
The following hyperparameters were used during training:
@misc{astarthought,
title={A*-Thought: Efficient Reasoning via Bidirectional Compression for Low-Resource Settings},
author={Xiaoang Xu and Shuo Wang and Xu Han and Zhenghao Liu and Huijia Wu and Peipei Li and Zhiyuan Liu and Maosong Sun and Zhaofeng He},
journal={arXiv preprint arXiv:2505.24550v2},
year={2025},
url={https://arxiv.org/abs/2505.24550v2},
}