Downloads · 30 days
30
7% of all-time downloads
Palind/qwen25-0.5b-ppo-gsm8k
qwen25-0.5b-ppo-gsm8k is a text generation model from Palind. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
这是 verl 的 Quickstart: PPO training on GSM8K dataset。
Downloads · 30 days
30
7% of all-time downloads
All-time downloads
402
Public
Parameters
494M
1000 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors988 MB · 99%
From the Hugging Face model README
这是 verl 的 Quickstart: PPO training on GSM8K dataset。
An experimental full-parameter PPO training run based on
Qwen/Qwen2.5-0.5B-Instruct, trained with the verl framework on GSM8K.
This repository contains the merged Actor model in standard Hugging Face Transformers format. It does not contain the Critic, optimizer state, or the full distributed-training checkpoint.
verlTaskRunnerV1 / PPOTrainerSync)Qwen/Qwen2.5-0.5B-Instructopenai/gsm8k, 7,473 training examples and 1,319 test examples1e-61e-5The reward parser expects the final answer in the form #### number, matching
the standard GSM8K rule implementation used by verl.
Evaluation uses 1,319 GSM8K test examples, one stochastic generation per
prompt, temperature 1.0, top-p 1.0, and a maximum of 512 new tokens. Scores
were computed with verl.utils.reward_score.gsm8k.compute_score.
| Model | Strict accuracy | Flexible numeric extraction |
|---|---|---|
| Original Qwen2.5-0.5B-Instruct | 0.61% (8/1319) | 24.72% (326/1319) |
| This PPO checkpoint | 55.57% (733/1319) | 55.65% (734/1319) |
The strict metric requires the #### number format. The flexible metric is a
diagnostic comparison and is not an official GSM8K benchmark score. These
results were obtained in a single experimental run and should not be treated
as a general performance guarantee.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Palind/qwen25-0.5b-ppo-gsm8k"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{
"role": "user",
"content": (
"Solve the problem step by step and output the final answer "
'after "####".\n\nWhat is 12 + 5?'
),
}
]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
answer = tokenizer.decode(
outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True
)
print(answer)
The base model is released under the Apache-2.0 license. Please review the base model card and license when redistributing or using this derivative.