Views
No views yet

1git clone https://github.com/zz1358m/SofT-GRPO-master
2cd SofT-GRPO-master1conda create -n soft_grpo python=3.11.13 -y && conda activate soft_grpo
2pip install pip==25.2
3pip install torch==2.6.0 transformers==4.51.1 tensorboard==2.20.0 sgl_kernel==0.1.1 accelerate==1.10.1 torch_memory_saver==0.0.8 uvloop==0.21.0 jsonlines math_verify openai
4pip install flash_attn==2.7.3 --no-build-isolation # may take more time (20min). try `pip install flash_attn==2.7.3 --no-build-isolation` if find undefined symbol bug, or try downloading from its official github.
5
6cd Soft-Thinking+noise+loss-main/sglang_soft_thinking_pkg
7pip install -e "python[all]"
8cd ../..1cd verl-0.4.x
2pip3 install -e .
3cd ..pip install -r requirements.txt./Soft-Thinking+noise+loss-main/run_sample_discrete-token_grpo.sh./Soft-Thinking+noise+loss-main/run_sample_gumbel_grpo.sh./Soft-Thinking+noise+loss-main/run_sample_gumbel.sh./SofT-GRPO-deepscaler-8k.sh # change the LLM path, dataset path accordingly./SofT-GRPO-deepscaler-8k-qwen7.sh # change the LLM path, dataset path accordingly./SofT-GRPO-deepscaler-8k-llama3.sh # change the LLM path, dataset path accordingly1@article{zheng2025soft,
2 title={SofT-GRPO: Surpassing Discrete-Token LLM Reinforcement Learning via Gumbel-Reparameterized Soft-Thinking Policy Optimization},
3 author={Zheng, Zhi and Lee, Wee Sun},
4 journal={arXiv preprint arXiv:2511.06411},
5 year={2025}
6}