Downloads · 30 days
17
8% of all-time downloads
michaelbzhu/Qwen2.5-Math-1.5B-GSM8K-GRPO
Qwen2.5-Math-1.5B-GSM8K-GRPO is a text generation model from michaelbzhu. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
used GRPO on top of Qwen/Qwen2.5-Math-1.5B model on the gsm8k training set
Downloads · 30 days
17
8% of all-time downloads
All-time downloads
205
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
From the Hugging Face model README
used GRPO on top of Qwen/Qwen2.5-Math-1.5B model on the gsm8k training set
hyperparameters:
lr = 3e-5
n_grpo_steps = 100
advantage_eps = 1e-6
rollout_batch_size = 256
group_size = 8
gradient_accumulation_steps = 128
epochs_per_rollout_batch = 1
train_batch_size = 256 # on policy since same as rollout_batch_size
use_std_normalization = True
optim = torch.optim.AdamW(
hf_model.parameters(), lr=lr, weight_decay=0.0, betas=(0.9, 0.95)
)
scheduler = LinearLR(optim, start_factor=1.0, end_factor=0.1, total_iters=n_grpo_steps)
prompt template:
A conversation between User and Assistant. The User asks a question, and the Assistant solves it. The Assistant first thinks about the reasoning process in the mind and then provides the User with the answer. The reasoning process is enclosed within <think> </think> and answer is enclosed within <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.
User: {question}
Assistant: <think>
reward format checks for proper use of <think></think> and <answer></answer> tags
performance on GSM8K test set
correct format: 1172/1319
correct reward: 966/1319