Run this model with HF Jobs

Run rushigulum/grpo on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/rushigulum/grpo. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/rushigulum/grpo on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/rushigulum/grpo. Ask me which benchmark to run, then save the scores and the per-example results to a new private dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/rushigulum/grpo. Push it to a new private model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Uploaded model

  • Developed by: rushigulum
  • License: apache-2.0
  • Finetuned from model : Qwen/Qwen2.5-3B-Instruct

This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.

Nano R1 is a fine-tuned variant of Qwen2.5-3B-Instruct, aligned using Group Relative Preference Optimization (GRPO) for reasoning-intensive tasks such as math problem-solving. The model is trained with Unsloth + TRL + vLLM to ensure efficient fine-tuning, faster inference, and improved contextual accuracy.

Key Highlights:

  • = Base Model: Qwen2.5-3B-Instruct (via HuggingFace)

  • = Fine-Tuning: GRPO reinforcement learning with custom reward functions

  • = Optimizations: LoRA adapters, 4-bit quantization, vLLM inference

  • = Dataset: GSM8K (math reasoning) with structured XML reasoning prompts

  • = Deployment: Hugging Face Hub integration

  • Model Loading with LoRA Base: Qwen/Qwen2.5-3B-Instruct Optimizations: 4-bit quantization, LoRA rank=64, gradient checkpointing.

  • Reward Functions Semantic Correctness β†’ via Sentence-BERT embeddings. Strict XML Compliance β†’ ensures reasoning/answer separation. Numerical Answer Check β†’ enforces valid math outputs. Length & Format Penalty β†’ prevents overly long/unstructured responses.

  • GRPO Training Optimizer: AdamW (8-bit) Batch size: 1 (accumulated) Learning rate: 5e-6 Steps: 150 (demo run) Inference engine: vLLM for efficiency

  • Valuation Benchmarked on GSM8K validation set. Metrics: Final Answer Accuracy (semantic similarity > threshold). Format Compliance (% responses following XML structure). Average Reward Score across completions.

  • Results Improved reasoning structure with consistent / format. Higher semantic accuracy vs baseline Qwen2.5-3B. Optimized inference speed using vLLM.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for rushigulum/grpo

Base model

Qwen/Qwen2.5-3B
Finetuned
(1,734)
this model

Dataset used to train rushigulum/grpo