ucalyptus / prem-1B-grpo

huggingface.co
Total runs: 22
24-hour runs: 0
7-day runs: 10
30-day runs: 19
Model's Last Updated: February 05 2025
text-generation

Introduction of prem-1B-grpo

Model Details of prem-1B-grpo

GRPO-Trained Math Reasoning Model

Model Description

This model was fine-tuned using GRPO (Generative Reward-Powered Optimization), a reinforcement learning technique that optimizes language models using multiple reward functions to improve both output format consistency and mathematical reasoning abilities.

Disclaimer

Not an official Prem Labs product. This is WIP.

Base Model
  • Started with the premai-io/prem-1B-chat base model
  • Uses Flash Attention 2 for efficient training
  • Model architecture: Causal Language Model (CLM)
GRPO Training Details

GRPO training involves optimizing the model using two specific reward functions:

  1. Format Reward Function

    • Ensures responses follow a strict XML-style format:
    <reasoning>
    [step-by-step solution]
    </reasoning>
    <answer>
    [numerical answer]
    </answer>
    
    • Rewards are given for:
      • Strict format adherence (0.5 points)
      • Soft format matching (0.3 points)
      • Integer answer format (0.5 points)
      • Proper XML structure (up to 0.5 points)
  2. Correctness Reward Function

    • Evaluates mathematical accuracy
    • Awards 2.0 points for correct numerical answers
    • Awards 0.0 points for incorrect answers
Training Configuration
  • Learning rate: 5e-6
  • Batch size: 2 per device
  • Gradient accumulation steps: 2
  • Training epochs: 1
  • Uses cosine learning rate scheduler
  • Warmup ratio: 0.1
  • Uses bfloat16 precision
  • Maximum prompt length: 256 tokens
  • Maximum completion length: 200 tokens
  • Number of generations per prompt: 16
Dataset
  • Trained on the GSM8K (Grade School Math 8K) dataset
  • Dataset contains grade-school level math word problems
  • Each problem includes a question and step-by-step solution
Intended Use
  • Solving mathematical word problems
  • Providing step-by-step reasoning for solutions
  • Educational assistance and math tutoring
Limitations
  • Limited to the complexity level of GSM8K problems
  • May struggle with problems requiring knowledge beyond the training data
  • Performance depends on proper formatting of input queries
Training Infrastructure
  • Supports distributed training across multiple GPUs
  • Uses NCCL backend for distributed processing
  • Implements gradient clipping (max norm: 0.1)
Evaluation

The model's performance is continuously evaluated during training based on:

  1. Format adherence to the XML structure
  2. Mathematical accuracy of answers
  3. Quality of step-by-step reasoning
Citation

If you use this model, please cite both the original GRPO paper and the GSM8K dataset.

Training Details
Training Data

The model was trained on the GSM8K dataset , which contains 8.5K grade school math word problems.

Training Procedure
  • Hardware: Multi-GPU setup with NVIDIA GPUs
  • Framework: Hugging Face Transformers, TRL (Transformer Reinforcement Learning)
  • Optimization: GRPO with dual reward functions

Runs of ucalyptus prem-1B-grpo on huggingface.co

22
Total runs
0
24-hour runs
10
3-day runs
10
7-day runs
19
30-day runs

More Information About prem-1B-grpo huggingface.co Model

More prem-1B-grpo license Visit here:

https://choosealicense.com/licenses/apache-2.0

prem-1B-grpo huggingface.co

prem-1B-grpo huggingface.co is an AI model on huggingface.co that provides prem-1B-grpo's model effect (), which can be used instantly with this ucalyptus prem-1B-grpo model. huggingface.co supports a free trial of the prem-1B-grpo model, and also provides paid use of the prem-1B-grpo. Support call prem-1B-grpo model through api, including Node.js, Python, http.

ucalyptus prem-1B-grpo online free

prem-1B-grpo huggingface.co is an online trial and call api platform, which integrates prem-1B-grpo's modeling effects, including api services, and provides a free online trial of prem-1B-grpo, you can try prem-1B-grpo online for free by clicking the link below.

ucalyptus prem-1B-grpo online free url in huggingface.co:

https://huggingface.co/ucalyptus/prem-1B-grpo

prem-1B-grpo install

prem-1B-grpo is an open source model from GitHub that offers a free installation service, and any user can find prem-1B-grpo on GitHub to install. At the same time, huggingface.co provides the effect of prem-1B-grpo install, users can directly use prem-1B-grpo installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

prem-1B-grpo install url in huggingface.co:

https://huggingface.co/ucalyptus/prem-1B-grpo

Url of prem-1B-grpo

prem-1B-grpo huggingface.co Url

Provider of prem-1B-grpo huggingface.co

ucalyptus
ORGANIZATIONS

Other API from ucalyptus