Downloads · 30 days
14
5% of all-time downloads
LichengLiu03/Qwen2.5-3B-UFO-1turn
Qwen2.5-3B-UFO-1turn is a text generation model from LichengLiu03. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is based on Qwen2.5-3B-Instruct and trained with PPO (Proximal Policy Optimization) on the MetaMathQA dataset for mathematical reasoning.
Downloads · 30 days
14
5% of all-time downloads
All-time downloads
258
Public
Parameters
3.4B
47.6 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors6.8 GB · 100%
From the Hugging Face model README
This model is based on Qwen2.5-3B-Instruct and trained with PPO (Proximal Policy Optimization) on the MetaMathQA dataset for mathematical reasoning.
Github: https://github.com/lichengliu03/unary-feedback
Website: https://unary-feedback.github.io/
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("LichengLiu03/qwen2.5-3b-ppo-metamath-full")
model = AutoModelForCausalLM.from_pretrained(
"LichengLiu03/qwen2.5-3b-ppo-metamath-full",
torch_dtype=torch.float16,
device_map="auto"
)
# Example math problem
prompt = "Solve this math problem: If a circle has a radius of 5cm, what is its area?"
inputs = tokenizer(prompt, return_tensors="pt")
# Generate answer
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model is optimized for mathematical reasoning with PPO, and compared to the base model, it improves:
This model is licensed under Apache 2.0.