jaygala24/Qwen3-1.7B-GRPO-math-reasoning
019
Qwen3-1.7B-GRPO-math-reasoning
This model is a fine-tuned version of Qwen3-1.7B using GRPO (Group Relative Policy Optimization) without KL penalty for mathematical reasoning.
Trained with PipelineRL.
Training Details
Datasets
RL Algorithm
Training Hyperparameters
Evaluation Results
Pass@k on math reasoning benchmarks (N=32 samples per problem, temperature=1.0):
GSM8K test: 1319 problems · MATH-500: 500 problems · Overall: 1819 problems (overall weighted by problem count).
Training Curves
W&B Run
Full training logs: https://wandb.ai/jaygala24-team/rl-post-training/runs/qwen3_1.7b_grpo_no_kl_3a1f_4xh100_197367_finetune_f0321bea
Usage
Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("jaygala24/Qwen3-1.7B-GRPO-math-reasoning", revision="step-0200") # or whatever branch name, e.g. "step-0400", "step-0600"
tokenizer = AutoTokenizer.from_pretrained("jaygala24/Qwen3-1.7B-GRPO-math-reasoning", revision="step-0200") # or whatever branch name, e.g. "step-0400", "step-0600"
prompt = "Please reason step by step, and put your final answer within \\boxed{{}}.\n\nWhat is the sum of 123 and 456?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=4096, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))vLLM
from vllm import LLM, SamplingParams
llm = LLM(model="jaygala24/Qwen3-1.7B-GRPO-math-reasoning", revision="step-0200") # or whatever branch name, e.g. "step-0400", "step-0600"
sampling_params = SamplingParams(temperature=0.7, max_tokens=4096)
prompt = "Please reason step by step, and put your final answer within \\boxed{}.\n\nWhat is the sum of 123 and 456?"
outputs = llm.generate([prompt], sampling_params)
print(outputs[0].outputs[0].text)Framework
- PipelineRL
- Transformers
- DeepSpeed (ZeRO Stage 3)
