Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .DS_Store +0 -0
- .cursorignore +16 -0
- .gitattributes +16 -0
- .gitignore +15 -0
- .python-version +1 -0
- README.md +273 -0
- data/grpo/test.csv +0 -0
- data/grpo/train.csv +0 -0
- data/sft/train.csv +0 -0
- main.py +16 -0
- models/grpo/README.md +72 -0
- models/grpo/adapter_config.json +46 -0
- models/grpo/adapter_model.safetensors +3 -0
- models/grpo/added_tokens.json +24 -0
- models/grpo/chat_template.jinja +54 -0
- models/grpo/checkpoint-10/README.md +209 -0
- models/grpo/checkpoint-10/adapter_config.json +46 -0
- models/grpo/checkpoint-10/adapter_model.safetensors +3 -0
- models/grpo/checkpoint-10/added_tokens.json +24 -0
- models/grpo/checkpoint-10/chat_template.jinja +54 -0
- models/grpo/checkpoint-10/merges.txt +0 -0
- models/grpo/checkpoint-10/optimizer.pt +3 -0
- models/grpo/checkpoint-10/rng_state.pth +3 -0
- models/grpo/checkpoint-10/scheduler.pt +3 -0
- models/grpo/checkpoint-10/special_tokens_map.json +31 -0
- models/grpo/checkpoint-10/tokenizer.json +3 -0
- models/grpo/checkpoint-10/tokenizer_config.json +209 -0
- models/grpo/checkpoint-10/trainer_state.json +304 -0
- models/grpo/checkpoint-10/training_args.bin +3 -0
- models/grpo/checkpoint-10/vocab.json +0 -0
- models/grpo/checkpoint-20/README.md +209 -0
- models/grpo/checkpoint-20/adapter_config.json +46 -0
- models/grpo/checkpoint-20/adapter_model.safetensors +3 -0
- models/grpo/checkpoint-20/added_tokens.json +24 -0
- models/grpo/checkpoint-20/chat_template.jinja +54 -0
- models/grpo/checkpoint-20/merges.txt +0 -0
- models/grpo/checkpoint-20/optimizer.pt +3 -0
- models/grpo/checkpoint-20/rng_state.pth +3 -0
- models/grpo/checkpoint-20/scheduler.pt +3 -0
- models/grpo/checkpoint-20/special_tokens_map.json +31 -0
- models/grpo/checkpoint-20/tokenizer.json +3 -0
- models/grpo/checkpoint-20/tokenizer_config.json +209 -0
- models/grpo/checkpoint-20/trainer_state.json +574 -0
- models/grpo/checkpoint-20/training_args.bin +3 -0
- models/grpo/checkpoint-20/vocab.json +0 -0
- models/grpo/checkpoint-30/README.md +209 -0
- models/grpo/checkpoint-30/adapter_config.json +46 -0
- models/grpo/checkpoint-30/adapter_model.safetensors +3 -0
- models/grpo/checkpoint-30/added_tokens.json +24 -0
- models/grpo/checkpoint-30/chat_template.jinja +54 -0
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
.cursorignore
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python-generated files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[oc]
|
| 4 |
+
build/
|
| 5 |
+
dist/
|
| 6 |
+
wheels/
|
| 7 |
+
*.egg-info
|
| 8 |
+
|
| 9 |
+
# Virtual environments
|
| 10 |
+
.venv
|
| 11 |
+
|
| 12 |
+
# Dataset
|
| 13 |
+
data/
|
| 14 |
+
|
| 15 |
+
# Environment variables
|
| 16 |
+
.env
|
.gitattributes
CHANGED
|
@@ -33,3 +33,19 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
models/grpo/checkpoint-10/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
models/grpo/checkpoint-20/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
models/grpo/checkpoint-30/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
models/grpo/checkpoint-39/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
models/grpo/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
models/sft/checkpoint-10/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
models/sft/checkpoint-100/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
models/sft/checkpoint-20/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
models/sft/checkpoint-30/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
models/sft/checkpoint-40/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
models/sft/checkpoint-50/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
models/sft/checkpoint-60/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
models/sft/checkpoint-70/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
models/sft/checkpoint-80/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
models/sft/checkpoint-90/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
models/sft/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python-generated files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[oc]
|
| 4 |
+
build/
|
| 5 |
+
dist/
|
| 6 |
+
wheels/
|
| 7 |
+
*.egg-info
|
| 8 |
+
|
| 9 |
+
# Virtual environments
|
| 10 |
+
.venv
|
| 11 |
+
|
| 12 |
+
# Dataset
|
| 13 |
+
|
| 14 |
+
# Environment variables
|
| 15 |
+
.env
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.12
|
README.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GRPO Countdown Problem
|
| 2 |
+
|
| 3 |
+
A project for training language models to solve arithmetic countdown problems using Supervised Fine-Tuning (SFT) followed by Group Relative Policy Optimization (GRPO).
|
| 4 |
+
|
| 5 |
+
## Overview
|
| 6 |
+
|
| 7 |
+
This project implements a two-stage training pipeline:
|
| 8 |
+
|
| 9 |
+
1. **SFT (Supervised Fine-Tuning)**: Train the model on arithmetic problems with correct solutions
|
| 10 |
+
2. **GRPO (Group Relative Policy Optimization)**: Further optimize the model using reward-based learning
|
| 11 |
+
|
| 12 |
+
The goal is to train a language model to solve arithmetic countdown problems where you must use exactly four given numbers with basic arithmetic operations (+, -, *, /) to reach a target value.
|
| 13 |
+
|
| 14 |
+
## Project Structure
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
grpo-countdown-problem/
|
| 18 |
+
├── data/ # Training and test datasets
|
| 19 |
+
├── models/ # Saved model checkpoints
|
| 20 |
+
│ ├── sft/ # SFT model outputs
|
| 21 |
+
│ └── grpo/ # GRPO model outputs
|
| 22 |
+
├── src/
|
| 23 |
+
│ ├── config/ # Configuration files
|
| 24 |
+
│ │ ├── grpo/ # GRPO training configs
|
| 25 |
+
│ │ └── sft/ # SFT training configs
|
| 26 |
+
│ ├── dataset/ # Dataset loading and processing
|
| 27 |
+
│ ├── examples/ # Example scripts for inference
|
| 28 |
+
│ ├── scripts/ # Data generation and processing
|
| 29 |
+
│ ├── training/ # Training scripts
|
| 30 |
+
│ │ ├── grpo/ # GRPO training
|
| 31 |
+
│ │ └── sft/ # SFT training
|
| 32 |
+
│ └── utils/ # Utility functions
|
| 33 |
+
├── main.py # Main entry point
|
| 34 |
+
├── pyproject.toml # Project dependencies
|
| 35 |
+
└── README.md # This file
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
## Requirements
|
| 39 |
+
|
| 40 |
+
- Python 3.12+
|
| 41 |
+
- CUDA-capable GPU (recommended)
|
| 42 |
+
- At least 8GB GPU memory for Qwen2.5-Math-1.5B model
|
| 43 |
+
|
| 44 |
+
## Installation
|
| 45 |
+
|
| 46 |
+
1. **Clone the repository:**
|
| 47 |
+
```bash
|
| 48 |
+
git clone <repository-url>
|
| 49 |
+
cd grpo-countdown-problem
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
2. **Install dependencies using uv (recommended):**
|
| 53 |
+
```bash
|
| 54 |
+
# Install uv if you haven't already
|
| 55 |
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 56 |
+
|
| 57 |
+
# Install project dependencies
|
| 58 |
+
uv sync
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
**Or using pip:**
|
| 62 |
+
```bash
|
| 63 |
+
pip install -e .
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
3. **Set up environment variables (if using OpenAI for data generation):**
|
| 67 |
+
```bash
|
| 68 |
+
cp .env.example .env
|
| 69 |
+
# Edit .env and add your OpenAI API key
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Data Preparation
|
| 73 |
+
|
| 74 |
+
### Generate Training Data
|
| 75 |
+
|
| 76 |
+
1. **Generate SFT training data:**
|
| 77 |
+
```bash
|
| 78 |
+
python src/scripts/generate_training_dataset_sft.py \
|
| 79 |
+
--output_path data/sft/train.csv \
|
| 80 |
+
--num_problems 10000 \
|
| 81 |
+
--num_workers 4
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
2. **Generate GRPO training data:**
|
| 85 |
+
```bash
|
| 86 |
+
python src/scripts/generate_training_dataset_grpo.py \
|
| 87 |
+
--output_path data/grpo/train.csv \
|
| 88 |
+
--num_problems 10000 \
|
| 89 |
+
--num_workers 4
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
3. **Generate test data:**
|
| 93 |
+
```bash
|
| 94 |
+
python src/scripts/generate_training_dataset_grpo.py \
|
| 95 |
+
--output_path data/grpo/test.csv \
|
| 96 |
+
--num_problems 1000 \
|
| 97 |
+
--num_workers 4
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### Data Format
|
| 101 |
+
|
| 102 |
+
The CSV files contain the following columns:
|
| 103 |
+
- `id`: Unique problem identifier
|
| 104 |
+
- `problem_description`: Natural language description of the problem
|
| 105 |
+
- `correct_answer`: The target arithmetic expression
|
| 106 |
+
- `num1`, `num2`, `num3`, `num4`: The four numbers to use
|
| 107 |
+
- `reasoning` (SFT only): Step-by-step solution explanation
|
| 108 |
+
|
| 109 |
+
## Training
|
| 110 |
+
|
| 111 |
+
### Stage 1: Supervised Fine-Tuning (SFT)
|
| 112 |
+
|
| 113 |
+
Train the base model on arithmetic problems with supervised learning:
|
| 114 |
+
|
| 115 |
+
```bash
|
| 116 |
+
python src/training/sft/train_sft_hydra.py
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
**Configuration:** The training uses Hydra configuration files in `src/config/sft/`:
|
| 120 |
+
- `config.yaml`: Main configuration
|
| 121 |
+
- `dataset/default.yaml`: Dataset settings
|
| 122 |
+
- `model/qwen2.5-3b.yaml`: Model and LoRA settings
|
| 123 |
+
- `training/default.yaml`: Training hyperparameters
|
| 124 |
+
|
| 125 |
+
**Key parameters:**
|
| 126 |
+
- Base model: `Qwen/Qwen2.5-Math-1.5B`
|
| 127 |
+
- LoRA rank: 64
|
| 128 |
+
- Learning rate: 2e-5
|
| 129 |
+
- Batch size: 4 (per device)
|
| 130 |
+
- Epochs: 2
|
| 131 |
+
|
| 132 |
+
**Output:** Trained SFT model saved to `models/sft/`
|
| 133 |
+
|
| 134 |
+
### Stage 2: Group Relative Policy Optimization (GRPO)
|
| 135 |
+
|
| 136 |
+
Further optimize the SFT model using reward-based learning:
|
| 137 |
+
|
| 138 |
+
```bash
|
| 139 |
+
python src/training/grpo/train_grpo_hydra.py
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
**Configuration:** Uses Hydra configuration files in `src/config/grpo/`:
|
| 143 |
+
- `config.yaml`: Main configuration (includes SFT model path)
|
| 144 |
+
- `dataset/default.yaml`: Dataset settings
|
| 145 |
+
- `model/qwen2.5-3b.yaml`: Model and LoRA settings
|
| 146 |
+
- `training/default.yaml`: Training hyperparameters
|
| 147 |
+
|
| 148 |
+
**Key parameters:**
|
| 149 |
+
- Builds on SFT model from `models/sft/`
|
| 150 |
+
- Learning rate: 1e-5
|
| 151 |
+
- Batch size: 2 (per device)
|
| 152 |
+
- Epochs: 1
|
| 153 |
+
- Generations per prompt: 8
|
| 154 |
+
- Reward function: Mathematical correctness
|
| 155 |
+
|
| 156 |
+
**Output:** Trained GRPO model saved to `models/grpo/`
|
| 157 |
+
|
| 158 |
+
### Custom Configuration
|
| 159 |
+
|
| 160 |
+
You can override configuration parameters:
|
| 161 |
+
|
| 162 |
+
```bash
|
| 163 |
+
# Override dataset size
|
| 164 |
+
python src/training/sft/train_sft_hydra.py dataset.max_rows=5000
|
| 165 |
+
|
| 166 |
+
# Override learning rate and batch size
|
| 167 |
+
python src/training/grpo/train_grpo_hydra.py \
|
| 168 |
+
training.learning_rate=5e-6 \
|
| 169 |
+
training.per_device_train_batch_size=1
|
| 170 |
+
|
| 171 |
+
# Use different output directory
|
| 172 |
+
python src/training/sft/train_sft_hydra.py output_dir=models/sft_experiment
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
## Inference
|
| 176 |
+
|
| 177 |
+
### Interactive Problem Solving
|
| 178 |
+
|
| 179 |
+
Use the trained model to solve individual problems:
|
| 180 |
+
|
| 181 |
+
```bash
|
| 182 |
+
python src/examples/run_model.py
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
This will load both SFT and GRPO models and solve a sample problem.
|
| 186 |
+
|
| 187 |
+
### Batch Evaluation
|
| 188 |
+
|
| 189 |
+
Evaluate model accuracy on a test dataset:
|
| 190 |
+
|
| 191 |
+
```bash
|
| 192 |
+
python src/examples/calculate_accuracy.py \
|
| 193 |
+
--csv_path data/grpo/test.csv \
|
| 194 |
+
--sft_model_path models/sft/ \
|
| 195 |
+
--grpo_model_path models/grpo/ \
|
| 196 |
+
--max_samples 100 \
|
| 197 |
+
--output_path results/evaluation_results.csv
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
+
**Parameters:**
|
| 201 |
+
- `--csv_path`: Path to test CSV file
|
| 202 |
+
- `--sft_model_path`: Path to SFT model directory
|
| 203 |
+
- `--grpo_model_path`: Path to GRPO model directory
|
| 204 |
+
- `--max_samples`: Limit number of test samples (optional)
|
| 205 |
+
- `--output_path`: Save detailed results to CSV (optional)
|
| 206 |
+
- `--temperature`: Sampling temperature (default: 1.0)
|
| 207 |
+
- `--max_new_tokens`: Maximum tokens to generate (default: 4096)
|
| 208 |
+
|
| 209 |
+
**Evaluation Metrics:**
|
| 210 |
+
- **Accuracy**: Percentage of problems solved correctly
|
| 211 |
+
- **Valid Format Rate**: Percentage of responses in valid arithmetic format
|
| 212 |
+
- **Uses All Numbers Rate**: Percentage of responses using all four numbers
|
| 213 |
+
|
| 214 |
+
### Model-only Evaluation
|
| 215 |
+
|
| 216 |
+
Evaluate specific model stages:
|
| 217 |
+
|
| 218 |
+
```bash
|
| 219 |
+
# Evaluate only SFT model (no GRPO)
|
| 220 |
+
python src/examples/calculate_accuracy.py \
|
| 221 |
+
--csv_path data/grpo/test.csv \
|
| 222 |
+
--sft_model_path models/sft/ \
|
| 223 |
+
--no_grpo
|
| 224 |
+
|
| 225 |
+
# Evaluate only base model (no SFT or GRPO)
|
| 226 |
+
python src/examples/calculate_accuracy.py \
|
| 227 |
+
--csv_path data/grpo/test.csv \
|
| 228 |
+
--no_sft --no_grpo
|
| 229 |
+
```
|
| 230 |
+
|
| 231 |
+
## Configuration Details
|
| 232 |
+
|
| 233 |
+
### Model Configuration
|
| 234 |
+
|
| 235 |
+
The project uses **Qwen2.5-Math-1.5B** as the base model with LoRA (Low-Rank Adaptation) for efficient fine-tuning:
|
| 236 |
+
|
| 237 |
+
- **LoRA rank**: 64
|
| 238 |
+
- **LoRA alpha**: 128
|
| 239 |
+
- **Target modules**: All attention and MLP layers
|
| 240 |
+
- **LoRA dropout**: 0.1
|
| 241 |
+
|
| 242 |
+
### Training Configuration
|
| 243 |
+
|
| 244 |
+
**SFT Training:**
|
| 245 |
+
- **Optimizer**: AdamW 8-bit
|
| 246 |
+
- **Learning rate**: 2e-5 with linear scheduler
|
| 247 |
+
- **Warmup ratio**: 0.1
|
| 248 |
+
- **Weight decay**: 0.01
|
| 249 |
+
- **Max sequence length**: 4096
|
| 250 |
+
|
| 251 |
+
**GRPO Training:**
|
| 252 |
+
- **Optimizer**: AdamW 8-bit
|
| 253 |
+
- **Learning rate**: 1e-5 with cosine scheduler
|
| 254 |
+
- **Warmup ratio**: 0.1
|
| 255 |
+
- **Weight decay**: 0.0
|
| 256 |
+
- **Temperature**: 1.0
|
| 257 |
+
- **Generations per prompt**: 8
|
| 258 |
+
|
| 259 |
+
## Monitoring Training
|
| 260 |
+
|
| 261 |
+
Both training scripts log to TensorBoard:
|
| 262 |
+
|
| 263 |
+
```bash
|
| 264 |
+
# View training logs
|
| 265 |
+
tensorboard --logdir models/sft/runs # For SFT training
|
| 266 |
+
tensorboard --logdir models/grpo/runs # For GRPO training
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
## Example Problem
|
| 270 |
+
|
| 271 |
+
**Input:** "Use 53, 3, 47, and 36 exactly once each with only +, -, *, and / operators to create an expression equal to 133."
|
| 272 |
+
|
| 273 |
+
**Expected Output:** A valid arithmetic expression like `53 + 47 + 36 - 3`
|
data/grpo/test.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/grpo/train.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/sft/train.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
main.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from src.dataset import load_csv_dataset_sft
|
| 2 |
+
from src.dataset.sft import map_problem_description_to_conversation_sft
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def main() -> None:
|
| 6 |
+
"""
|
| 7 |
+
Main function
|
| 8 |
+
"""
|
| 9 |
+
dataset = load_csv_dataset_sft(
|
| 10 |
+
"data/sft/train.csv", "train", map_problem_description_to_conversation_sft
|
| 11 |
+
)
|
| 12 |
+
print(dataset)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
if __name__ == "__main__":
|
| 16 |
+
main()
|
models/grpo/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-Math-1.5B
|
| 3 |
+
library_name: peft
|
| 4 |
+
model_name: grpo
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-Math-1.5B
|
| 7 |
+
- grpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
licence: license
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Model Card for grpo
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-Math-1.5B](https://huggingface.co/Qwen/Qwen2.5-Math-1.5B).
|
| 18 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 19 |
+
|
| 20 |
+
## Quick start
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from transformers import pipeline
|
| 24 |
+
|
| 25 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 26 |
+
generator = pipeline("text-generation", model="None", device="cuda")
|
| 27 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 28 |
+
print(output["generated_text"])
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
|
| 37 |
+
|
| 38 |
+
### Framework versions
|
| 39 |
+
|
| 40 |
+
- PEFT 0.18.1
|
| 41 |
+
- TRL: 0.27.1
|
| 42 |
+
- Transformers: 4.57.6
|
| 43 |
+
- Pytorch: 2.9.0+cu126
|
| 44 |
+
- Datasets: 4.0.0
|
| 45 |
+
- Tokenizers: 0.22.2
|
| 46 |
+
|
| 47 |
+
## Citations
|
| 48 |
+
|
| 49 |
+
Cite GRPO as:
|
| 50 |
+
|
| 51 |
+
```bibtex
|
| 52 |
+
@article{shao2024deepseekmath,
|
| 53 |
+
title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
|
| 54 |
+
author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo},
|
| 55 |
+
year = 2024,
|
| 56 |
+
eprint = {arXiv:2402.03300},
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
Cite TRL as:
|
| 62 |
+
|
| 63 |
+
```bibtex
|
| 64 |
+
@misc{vonwerra2022trl,
|
| 65 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
| 66 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
|
| 67 |
+
year = 2020,
|
| 68 |
+
journal = {GitHub repository},
|
| 69 |
+
publisher = {GitHub},
|
| 70 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 71 |
+
}
|
| 72 |
+
```
|
models/grpo/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-Math-1.5B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 128,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 64,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"gate_proj",
|
| 33 |
+
"v_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"k_proj",
|
| 38 |
+
"q_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "CAUSAL_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
models/grpo/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc40358071350f519ded257c36279a6fa9853841e6c46d6195183368d251a3b8
|
| 3 |
+
size 295488936
|
models/grpo/added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
models/grpo/chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'Please reason step by step, and put your final answer within \\boxed{}.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
models/grpo/checkpoint-10/README.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-Math-1.5B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-Math-1.5B
|
| 7 |
+
- grpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for Model ID
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
### Model Description
|
| 22 |
+
|
| 23 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
- **Developed by:** [More Information Needed]
|
| 28 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
+
- **Model type:** [More Information Needed]
|
| 31 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
+
- **License:** [More Information Needed]
|
| 33 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
+
|
| 35 |
+
### Model Sources [optional]
|
| 36 |
+
|
| 37 |
+
<!-- Provide the basic links for the model. -->
|
| 38 |
+
|
| 39 |
+
- **Repository:** [More Information Needed]
|
| 40 |
+
- **Paper [optional]:** [More Information Needed]
|
| 41 |
+
- **Demo [optional]:** [More Information Needed]
|
| 42 |
+
|
| 43 |
+
## Uses
|
| 44 |
+
|
| 45 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
+
|
| 47 |
+
### Direct Use
|
| 48 |
+
|
| 49 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
+
|
| 51 |
+
[More Information Needed]
|
| 52 |
+
|
| 53 |
+
### Downstream Use [optional]
|
| 54 |
+
|
| 55 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
+
|
| 57 |
+
[More Information Needed]
|
| 58 |
+
|
| 59 |
+
### Out-of-Scope Use
|
| 60 |
+
|
| 61 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
+
|
| 63 |
+
[More Information Needed]
|
| 64 |
+
|
| 65 |
+
## Bias, Risks, and Limitations
|
| 66 |
+
|
| 67 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
+
|
| 69 |
+
[More Information Needed]
|
| 70 |
+
|
| 71 |
+
### Recommendations
|
| 72 |
+
|
| 73 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
+
|
| 75 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
+
|
| 77 |
+
## How to Get Started with the Model
|
| 78 |
+
|
| 79 |
+
Use the code below to get started with the model.
|
| 80 |
+
|
| 81 |
+
[More Information Needed]
|
| 82 |
+
|
| 83 |
+
## Training Details
|
| 84 |
+
|
| 85 |
+
### Training Data
|
| 86 |
+
|
| 87 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
+
|
| 89 |
+
[More Information Needed]
|
| 90 |
+
|
| 91 |
+
### Training Procedure
|
| 92 |
+
|
| 93 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
+
|
| 95 |
+
#### Preprocessing [optional]
|
| 96 |
+
|
| 97 |
+
[More Information Needed]
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
#### Training Hyperparameters
|
| 101 |
+
|
| 102 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
+
|
| 104 |
+
#### Speeds, Sizes, Times [optional]
|
| 105 |
+
|
| 106 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
+
|
| 108 |
+
[More Information Needed]
|
| 109 |
+
|
| 110 |
+
## Evaluation
|
| 111 |
+
|
| 112 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
+
|
| 114 |
+
### Testing Data, Factors & Metrics
|
| 115 |
+
|
| 116 |
+
#### Testing Data
|
| 117 |
+
|
| 118 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
#### Factors
|
| 123 |
+
|
| 124 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
+
|
| 126 |
+
[More Information Needed]
|
| 127 |
+
|
| 128 |
+
#### Metrics
|
| 129 |
+
|
| 130 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
+
|
| 132 |
+
[More Information Needed]
|
| 133 |
+
|
| 134 |
+
### Results
|
| 135 |
+
|
| 136 |
+
[More Information Needed]
|
| 137 |
+
|
| 138 |
+
#### Summary
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
## Model Examination [optional]
|
| 143 |
+
|
| 144 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
+
|
| 146 |
+
[More Information Needed]
|
| 147 |
+
|
| 148 |
+
## Environmental Impact
|
| 149 |
+
|
| 150 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
+
|
| 152 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 153 |
+
|
| 154 |
+
- **Hardware Type:** [More Information Needed]
|
| 155 |
+
- **Hours used:** [More Information Needed]
|
| 156 |
+
- **Cloud Provider:** [More Information Needed]
|
| 157 |
+
- **Compute Region:** [More Information Needed]
|
| 158 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
+
|
| 160 |
+
## Technical Specifications [optional]
|
| 161 |
+
|
| 162 |
+
### Model Architecture and Objective
|
| 163 |
+
|
| 164 |
+
[More Information Needed]
|
| 165 |
+
|
| 166 |
+
### Compute Infrastructure
|
| 167 |
+
|
| 168 |
+
[More Information Needed]
|
| 169 |
+
|
| 170 |
+
#### Hardware
|
| 171 |
+
|
| 172 |
+
[More Information Needed]
|
| 173 |
+
|
| 174 |
+
#### Software
|
| 175 |
+
|
| 176 |
+
[More Information Needed]
|
| 177 |
+
|
| 178 |
+
## Citation [optional]
|
| 179 |
+
|
| 180 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
+
|
| 182 |
+
**BibTeX:**
|
| 183 |
+
|
| 184 |
+
[More Information Needed]
|
| 185 |
+
|
| 186 |
+
**APA:**
|
| 187 |
+
|
| 188 |
+
[More Information Needed]
|
| 189 |
+
|
| 190 |
+
## Glossary [optional]
|
| 191 |
+
|
| 192 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
+
|
| 194 |
+
[More Information Needed]
|
| 195 |
+
|
| 196 |
+
## More Information [optional]
|
| 197 |
+
|
| 198 |
+
[More Information Needed]
|
| 199 |
+
|
| 200 |
+
## Model Card Authors [optional]
|
| 201 |
+
|
| 202 |
+
[More Information Needed]
|
| 203 |
+
|
| 204 |
+
## Model Card Contact
|
| 205 |
+
|
| 206 |
+
[More Information Needed]
|
| 207 |
+
### Framework versions
|
| 208 |
+
|
| 209 |
+
- PEFT 0.18.1
|
models/grpo/checkpoint-10/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-Math-1.5B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 128,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 64,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"gate_proj",
|
| 33 |
+
"v_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"k_proj",
|
| 38 |
+
"q_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "CAUSAL_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
models/grpo/checkpoint-10/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8805ac69de429cf7ae58ea71129a15643338f1c2bcd6d7b082681be8c2ad8ab
|
| 3 |
+
size 295488936
|
models/grpo/checkpoint-10/added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
models/grpo/checkpoint-10/chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'Please reason step by step, and put your final answer within \\boxed{}.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
models/grpo/checkpoint-10/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/grpo/checkpoint-10/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec347c3c649c09adad74a6491db474c4ecaf79f261b61274de3beec0ecb71324
|
| 3 |
+
size 591203579
|
models/grpo/checkpoint-10/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6fee731f291b6810a59e3fcab5611a95ab2d788056c44e38f49e2ee1c723c47
|
| 3 |
+
size 14645
|
models/grpo/checkpoint-10/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0f0dea0e393dc4c725bd0fc8c33f5112af6fe030518d1b34bdafde69682b890
|
| 3 |
+
size 1465
|
models/grpo/checkpoint-10/special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|endoftext|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
models/grpo/checkpoint-10/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5eee858c5123a4279c3e1f7b81247343f356ac767940b2692a928ad929543214
|
| 3 |
+
size 11422063
|
models/grpo/checkpoint-10/tokenizer_config.json
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"additional_special_tokens": [
|
| 183 |
+
"<|im_start|>",
|
| 184 |
+
"<|im_end|>",
|
| 185 |
+
"<|object_ref_start|>",
|
| 186 |
+
"<|object_ref_end|>",
|
| 187 |
+
"<|box_start|>",
|
| 188 |
+
"<|box_end|>",
|
| 189 |
+
"<|quad_start|>",
|
| 190 |
+
"<|quad_end|>",
|
| 191 |
+
"<|vision_start|>",
|
| 192 |
+
"<|vision_end|>",
|
| 193 |
+
"<|vision_pad|>",
|
| 194 |
+
"<|image_pad|>",
|
| 195 |
+
"<|video_pad|>"
|
| 196 |
+
],
|
| 197 |
+
"bos_token": null,
|
| 198 |
+
"clean_up_tokenization_spaces": false,
|
| 199 |
+
"eos_token": "<|endoftext|>",
|
| 200 |
+
"errors": "replace",
|
| 201 |
+
"extra_special_tokens": {},
|
| 202 |
+
"model_max_length": 131072,
|
| 203 |
+
"pad_token": "<|endoftext|>",
|
| 204 |
+
"padding_side": "left",
|
| 205 |
+
"split_special_tokens": false,
|
| 206 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
+
"truncation_side": "left",
|
| 208 |
+
"unk_token": null
|
| 209 |
+
}
|
models/grpo/checkpoint-10/trainer_state.json
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.2564102564102564,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 10,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"clip_ratio/high_max": 0.0,
|
| 14 |
+
"clip_ratio/high_mean": 0.0,
|
| 15 |
+
"clip_ratio/low_mean": 0.0,
|
| 16 |
+
"clip_ratio/low_min": 0.0,
|
| 17 |
+
"clip_ratio/region_mean": 0.0,
|
| 18 |
+
"completions/clipped_ratio": 0.80078125,
|
| 19 |
+
"completions/max_length": 256.0,
|
| 20 |
+
"completions/max_terminated_length": 253.0,
|
| 21 |
+
"completions/mean_length": 237.14453125,
|
| 22 |
+
"completions/mean_terminated_length": 161.3529510498047,
|
| 23 |
+
"completions/min_length": 10.0,
|
| 24 |
+
"completions/min_terminated_length": 10.0,
|
| 25 |
+
"entropy": 1.3392305374145508,
|
| 26 |
+
"epoch": 0.02564102564102564,
|
| 27 |
+
"frac_reward_zero_std": 0.2890625,
|
| 28 |
+
"grad_norm": 0.07342787832021713,
|
| 29 |
+
"learning_rate": 0.0,
|
| 30 |
+
"loss": 0.0068,
|
| 31 |
+
"num_tokens": 153643.0,
|
| 32 |
+
"reward": 0.859375,
|
| 33 |
+
"reward_std": 1.100690484046936,
|
| 34 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.859375,
|
| 35 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1006906032562256,
|
| 36 |
+
"step": 1,
|
| 37 |
+
"step_time": 86.24474567199923
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"clip_ratio/high_max": 0.0,
|
| 41 |
+
"clip_ratio/high_mean": 0.0,
|
| 42 |
+
"clip_ratio/low_mean": 0.0,
|
| 43 |
+
"clip_ratio/low_min": 0.0,
|
| 44 |
+
"clip_ratio/region_mean": 0.0,
|
| 45 |
+
"completions/clipped_ratio": 0.83984375,
|
| 46 |
+
"completions/max_length": 256.0,
|
| 47 |
+
"completions/max_terminated_length": 253.0,
|
| 48 |
+
"completions/mean_length": 239.8671875,
|
| 49 |
+
"completions/mean_terminated_length": 155.26828002929688,
|
| 50 |
+
"completions/min_length": 37.0,
|
| 51 |
+
"completions/min_terminated_length": 37.0,
|
| 52 |
+
"entropy": 1.1771463677287102,
|
| 53 |
+
"epoch": 0.05128205128205128,
|
| 54 |
+
"frac_reward_zero_std": 0.3515625,
|
| 55 |
+
"grad_norm": 0.06119547039270401,
|
| 56 |
+
"learning_rate": 2.5e-06,
|
| 57 |
+
"loss": 0.0204,
|
| 58 |
+
"num_tokens": 308163.0,
|
| 59 |
+
"reward": 0.88671875,
|
| 60 |
+
"reward_std": 1.3041635751724243,
|
| 61 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.88671875,
|
| 62 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3041635751724243,
|
| 63 |
+
"step": 2,
|
| 64 |
+
"step_time": 86.508452252001
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"clip_ratio/high_max": 0.0,
|
| 68 |
+
"clip_ratio/high_mean": 0.0,
|
| 69 |
+
"clip_ratio/low_mean": 0.0,
|
| 70 |
+
"clip_ratio/low_min": 0.0,
|
| 71 |
+
"clip_ratio/region_mean": 0.0,
|
| 72 |
+
"completions/clipped_ratio": 0.85546875,
|
| 73 |
+
"completions/max_length": 256.0,
|
| 74 |
+
"completions/max_terminated_length": 253.0,
|
| 75 |
+
"completions/mean_length": 244.81640625,
|
| 76 |
+
"completions/mean_terminated_length": 178.6216278076172,
|
| 77 |
+
"completions/min_length": 48.0,
|
| 78 |
+
"completions/min_terminated_length": 48.0,
|
| 79 |
+
"entropy": 1.1922413893043995,
|
| 80 |
+
"epoch": 0.07692307692307693,
|
| 81 |
+
"frac_reward_zero_std": 0.375,
|
| 82 |
+
"grad_norm": 0.056310124695301056,
|
| 83 |
+
"learning_rate": 5e-06,
|
| 84 |
+
"loss": 0.0119,
|
| 85 |
+
"num_tokens": 463868.0,
|
| 86 |
+
"reward": 0.90234375,
|
| 87 |
+
"reward_std": 1.124693512916565,
|
| 88 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.90234375,
|
| 89 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1246936321258545,
|
| 90 |
+
"step": 3,
|
| 91 |
+
"step_time": 85.8330284170006
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"clip_ratio/high_max": 0.0,
|
| 95 |
+
"clip_ratio/high_mean": 0.0,
|
| 96 |
+
"clip_ratio/low_mean": 0.0,
|
| 97 |
+
"clip_ratio/low_min": 0.0,
|
| 98 |
+
"clip_ratio/region_mean": 0.0,
|
| 99 |
+
"completions/clipped_ratio": 0.84765625,
|
| 100 |
+
"completions/max_length": 256.0,
|
| 101 |
+
"completions/max_terminated_length": 255.0,
|
| 102 |
+
"completions/mean_length": 243.02734375,
|
| 103 |
+
"completions/mean_terminated_length": 170.84616088867188,
|
| 104 |
+
"completions/min_length": 82.0,
|
| 105 |
+
"completions/min_terminated_length": 82.0,
|
| 106 |
+
"entropy": 1.2269665226340294,
|
| 107 |
+
"epoch": 0.10256410256410256,
|
| 108 |
+
"frac_reward_zero_std": 0.3984375,
|
| 109 |
+
"grad_norm": 0.05933857336640358,
|
| 110 |
+
"learning_rate": 7.500000000000001e-06,
|
| 111 |
+
"loss": 0.0091,
|
| 112 |
+
"num_tokens": 619011.0,
|
| 113 |
+
"reward": 0.91796875,
|
| 114 |
+
"reward_std": 1.1119270324707031,
|
| 115 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.91796875,
|
| 116 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1119270324707031,
|
| 117 |
+
"step": 4,
|
| 118 |
+
"step_time": 85.85383133499909
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"clip_ratio/high_max": 0.0,
|
| 122 |
+
"clip_ratio/high_mean": 0.0,
|
| 123 |
+
"clip_ratio/low_mean": 0.0,
|
| 124 |
+
"clip_ratio/low_min": 0.0,
|
| 125 |
+
"clip_ratio/region_mean": 0.0,
|
| 126 |
+
"completions/clipped_ratio": 0.80859375,
|
| 127 |
+
"completions/max_length": 256.0,
|
| 128 |
+
"completions/max_terminated_length": 256.0,
|
| 129 |
+
"completions/mean_length": 235.5390625,
|
| 130 |
+
"completions/mean_terminated_length": 149.10203552246094,
|
| 131 |
+
"completions/min_length": 11.0,
|
| 132 |
+
"completions/min_terminated_length": 11.0,
|
| 133 |
+
"entropy": 1.1289030984044075,
|
| 134 |
+
"epoch": 0.1282051282051282,
|
| 135 |
+
"frac_reward_zero_std": 0.3203125,
|
| 136 |
+
"grad_norm": 0.06574889272451401,
|
| 137 |
+
"learning_rate": 1e-05,
|
| 138 |
+
"loss": 0.0168,
|
| 139 |
+
"num_tokens": 772231.0,
|
| 140 |
+
"reward": 1.10546875,
|
| 141 |
+
"reward_std": 1.3549507856369019,
|
| 142 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.10546875,
|
| 143 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3549507856369019,
|
| 144 |
+
"step": 5,
|
| 145 |
+
"step_time": 85.96325700299985
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"clip_ratio/high_max": 0.0,
|
| 149 |
+
"clip_ratio/high_mean": 0.0,
|
| 150 |
+
"clip_ratio/low_mean": 0.0,
|
| 151 |
+
"clip_ratio/low_min": 0.0,
|
| 152 |
+
"clip_ratio/region_mean": 0.0,
|
| 153 |
+
"completions/clipped_ratio": 0.73828125,
|
| 154 |
+
"completions/max_length": 256.0,
|
| 155 |
+
"completions/max_terminated_length": 256.0,
|
| 156 |
+
"completions/mean_length": 233.44140625,
|
| 157 |
+
"completions/mean_terminated_length": 169.80596923828125,
|
| 158 |
+
"completions/min_length": 46.0,
|
| 159 |
+
"completions/min_terminated_length": 46.0,
|
| 160 |
+
"entropy": 1.2140139639377594,
|
| 161 |
+
"epoch": 0.15384615384615385,
|
| 162 |
+
"frac_reward_zero_std": 0.2734375,
|
| 163 |
+
"grad_norm": 0.06448275595903397,
|
| 164 |
+
"learning_rate": 9.979871469976197e-06,
|
| 165 |
+
"loss": 0.0187,
|
| 166 |
+
"num_tokens": 924882.0,
|
| 167 |
+
"reward": 1.21875,
|
| 168 |
+
"reward_std": 1.1127601861953735,
|
| 169 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.21875,
|
| 170 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1127601861953735,
|
| 171 |
+
"step": 6,
|
| 172 |
+
"step_time": 86.28028441999868
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"clip_ratio/high_max": 0.0,
|
| 176 |
+
"clip_ratio/high_mean": 0.0,
|
| 177 |
+
"clip_ratio/low_mean": 0.0,
|
| 178 |
+
"clip_ratio/low_min": 0.0,
|
| 179 |
+
"clip_ratio/region_mean": 0.0,
|
| 180 |
+
"completions/clipped_ratio": 0.828125,
|
| 181 |
+
"completions/max_length": 256.0,
|
| 182 |
+
"completions/max_terminated_length": 254.0,
|
| 183 |
+
"completions/mean_length": 241.78515625,
|
| 184 |
+
"completions/mean_terminated_length": 173.2954559326172,
|
| 185 |
+
"completions/min_length": 36.0,
|
| 186 |
+
"completions/min_terminated_length": 36.0,
|
| 187 |
+
"entropy": 1.241826605051756,
|
| 188 |
+
"epoch": 0.1794871794871795,
|
| 189 |
+
"frac_reward_zero_std": 0.2421875,
|
| 190 |
+
"grad_norm": 0.06542028486728668,
|
| 191 |
+
"learning_rate": 9.91964794299315e-06,
|
| 192 |
+
"loss": 0.0025,
|
| 193 |
+
"num_tokens": 1079615.0,
|
| 194 |
+
"reward": 1.29296875,
|
| 195 |
+
"reward_std": 1.1359151601791382,
|
| 196 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.29296875,
|
| 197 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1359151601791382,
|
| 198 |
+
"step": 7,
|
| 199 |
+
"step_time": 85.96726177399978
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"clip_ratio/high_max": 0.0,
|
| 203 |
+
"clip_ratio/high_mean": 0.0,
|
| 204 |
+
"clip_ratio/low_mean": 0.0,
|
| 205 |
+
"clip_ratio/low_min": 0.0,
|
| 206 |
+
"clip_ratio/region_mean": 0.0,
|
| 207 |
+
"completions/clipped_ratio": 0.7578125,
|
| 208 |
+
"completions/max_length": 256.0,
|
| 209 |
+
"completions/max_terminated_length": 256.0,
|
| 210 |
+
"completions/mean_length": 231.3046875,
|
| 211 |
+
"completions/mean_terminated_length": 154.03225708007812,
|
| 212 |
+
"completions/min_length": 44.0,
|
| 213 |
+
"completions/min_terminated_length": 44.0,
|
| 214 |
+
"entropy": 1.2537630051374435,
|
| 215 |
+
"epoch": 0.20512820512820512,
|
| 216 |
+
"frac_reward_zero_std": 0.3046875,
|
| 217 |
+
"grad_norm": 0.06004541367292404,
|
| 218 |
+
"learning_rate": 9.819814303479268e-06,
|
| 219 |
+
"loss": 0.0227,
|
| 220 |
+
"num_tokens": 1231799.0,
|
| 221 |
+
"reward": 1.33984375,
|
| 222 |
+
"reward_std": 1.1537383794784546,
|
| 223 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.33984375,
|
| 224 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1537383794784546,
|
| 225 |
+
"step": 8,
|
| 226 |
+
"step_time": 85.93508993700198
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"clip_ratio/high_max": 0.0,
|
| 230 |
+
"clip_ratio/high_mean": 0.0,
|
| 231 |
+
"clip_ratio/low_mean": 0.0,
|
| 232 |
+
"clip_ratio/low_min": 0.0,
|
| 233 |
+
"clip_ratio/region_mean": 0.0,
|
| 234 |
+
"completions/clipped_ratio": 0.7265625,
|
| 235 |
+
"completions/max_length": 256.0,
|
| 236 |
+
"completions/max_terminated_length": 250.0,
|
| 237 |
+
"completions/mean_length": 229.26953125,
|
| 238 |
+
"completions/mean_terminated_length": 158.24285888671875,
|
| 239 |
+
"completions/min_length": 51.0,
|
| 240 |
+
"completions/min_terminated_length": 51.0,
|
| 241 |
+
"entropy": 1.1602798961102962,
|
| 242 |
+
"epoch": 0.23076923076923078,
|
| 243 |
+
"frac_reward_zero_std": 0.2421875,
|
| 244 |
+
"grad_norm": 0.07147325575351715,
|
| 245 |
+
"learning_rate": 9.681174353198687e-06,
|
| 246 |
+
"loss": 0.0138,
|
| 247 |
+
"num_tokens": 1383510.0,
|
| 248 |
+
"reward": 1.62890625,
|
| 249 |
+
"reward_std": 1.3191591501235962,
|
| 250 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.62890625,
|
| 251 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3191591501235962,
|
| 252 |
+
"step": 9,
|
| 253 |
+
"step_time": 86.19385715199951
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"clip_ratio/high_max": 0.0,
|
| 257 |
+
"clip_ratio/high_mean": 0.0,
|
| 258 |
+
"clip_ratio/low_mean": 0.0,
|
| 259 |
+
"clip_ratio/low_min": 0.0,
|
| 260 |
+
"clip_ratio/region_mean": 0.0,
|
| 261 |
+
"completions/clipped_ratio": 0.671875,
|
| 262 |
+
"completions/max_length": 256.0,
|
| 263 |
+
"completions/max_terminated_length": 255.0,
|
| 264 |
+
"completions/mean_length": 222.59375,
|
| 265 |
+
"completions/mean_terminated_length": 154.1904754638672,
|
| 266 |
+
"completions/min_length": 49.0,
|
| 267 |
+
"completions/min_terminated_length": 49.0,
|
| 268 |
+
"entropy": 1.2778590954840183,
|
| 269 |
+
"epoch": 0.2564102564102564,
|
| 270 |
+
"frac_reward_zero_std": 0.25,
|
| 271 |
+
"grad_norm": 0.06555230915546417,
|
| 272 |
+
"learning_rate": 9.504844339512096e-06,
|
| 273 |
+
"loss": -0.0007,
|
| 274 |
+
"num_tokens": 1533384.0,
|
| 275 |
+
"reward": 1.66015625,
|
| 276 |
+
"reward_std": 1.3186944723129272,
|
| 277 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.66015625,
|
| 278 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3186945915222168,
|
| 279 |
+
"step": 10,
|
| 280 |
+
"step_time": 85.93042380499901
|
| 281 |
+
}
|
| 282 |
+
],
|
| 283 |
+
"logging_steps": 1,
|
| 284 |
+
"max_steps": 39,
|
| 285 |
+
"num_input_tokens_seen": 1533384,
|
| 286 |
+
"num_train_epochs": 1,
|
| 287 |
+
"save_steps": 10,
|
| 288 |
+
"stateful_callbacks": {
|
| 289 |
+
"TrainerControl": {
|
| 290 |
+
"args": {
|
| 291 |
+
"should_epoch_stop": false,
|
| 292 |
+
"should_evaluate": false,
|
| 293 |
+
"should_log": false,
|
| 294 |
+
"should_save": true,
|
| 295 |
+
"should_training_stop": false
|
| 296 |
+
},
|
| 297 |
+
"attributes": {}
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
"total_flos": 0.0,
|
| 301 |
+
"train_batch_size": 16,
|
| 302 |
+
"trial_name": null,
|
| 303 |
+
"trial_params": null
|
| 304 |
+
}
|
models/grpo/checkpoint-10/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94f496ed302bcefe707e417d1679ee1a4274555a4b156df7e28e043c3e0d2bc9
|
| 3 |
+
size 7697
|
models/grpo/checkpoint-10/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/grpo/checkpoint-20/README.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-Math-1.5B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-Math-1.5B
|
| 7 |
+
- grpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for Model ID
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
### Model Description
|
| 22 |
+
|
| 23 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
- **Developed by:** [More Information Needed]
|
| 28 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
+
- **Model type:** [More Information Needed]
|
| 31 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
+
- **License:** [More Information Needed]
|
| 33 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
+
|
| 35 |
+
### Model Sources [optional]
|
| 36 |
+
|
| 37 |
+
<!-- Provide the basic links for the model. -->
|
| 38 |
+
|
| 39 |
+
- **Repository:** [More Information Needed]
|
| 40 |
+
- **Paper [optional]:** [More Information Needed]
|
| 41 |
+
- **Demo [optional]:** [More Information Needed]
|
| 42 |
+
|
| 43 |
+
## Uses
|
| 44 |
+
|
| 45 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
+
|
| 47 |
+
### Direct Use
|
| 48 |
+
|
| 49 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
+
|
| 51 |
+
[More Information Needed]
|
| 52 |
+
|
| 53 |
+
### Downstream Use [optional]
|
| 54 |
+
|
| 55 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
+
|
| 57 |
+
[More Information Needed]
|
| 58 |
+
|
| 59 |
+
### Out-of-Scope Use
|
| 60 |
+
|
| 61 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
+
|
| 63 |
+
[More Information Needed]
|
| 64 |
+
|
| 65 |
+
## Bias, Risks, and Limitations
|
| 66 |
+
|
| 67 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
+
|
| 69 |
+
[More Information Needed]
|
| 70 |
+
|
| 71 |
+
### Recommendations
|
| 72 |
+
|
| 73 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
+
|
| 75 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
+
|
| 77 |
+
## How to Get Started with the Model
|
| 78 |
+
|
| 79 |
+
Use the code below to get started with the model.
|
| 80 |
+
|
| 81 |
+
[More Information Needed]
|
| 82 |
+
|
| 83 |
+
## Training Details
|
| 84 |
+
|
| 85 |
+
### Training Data
|
| 86 |
+
|
| 87 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
+
|
| 89 |
+
[More Information Needed]
|
| 90 |
+
|
| 91 |
+
### Training Procedure
|
| 92 |
+
|
| 93 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
+
|
| 95 |
+
#### Preprocessing [optional]
|
| 96 |
+
|
| 97 |
+
[More Information Needed]
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
#### Training Hyperparameters
|
| 101 |
+
|
| 102 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
+
|
| 104 |
+
#### Speeds, Sizes, Times [optional]
|
| 105 |
+
|
| 106 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
+
|
| 108 |
+
[More Information Needed]
|
| 109 |
+
|
| 110 |
+
## Evaluation
|
| 111 |
+
|
| 112 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
+
|
| 114 |
+
### Testing Data, Factors & Metrics
|
| 115 |
+
|
| 116 |
+
#### Testing Data
|
| 117 |
+
|
| 118 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
#### Factors
|
| 123 |
+
|
| 124 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
+
|
| 126 |
+
[More Information Needed]
|
| 127 |
+
|
| 128 |
+
#### Metrics
|
| 129 |
+
|
| 130 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
+
|
| 132 |
+
[More Information Needed]
|
| 133 |
+
|
| 134 |
+
### Results
|
| 135 |
+
|
| 136 |
+
[More Information Needed]
|
| 137 |
+
|
| 138 |
+
#### Summary
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
## Model Examination [optional]
|
| 143 |
+
|
| 144 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
+
|
| 146 |
+
[More Information Needed]
|
| 147 |
+
|
| 148 |
+
## Environmental Impact
|
| 149 |
+
|
| 150 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
+
|
| 152 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 153 |
+
|
| 154 |
+
- **Hardware Type:** [More Information Needed]
|
| 155 |
+
- **Hours used:** [More Information Needed]
|
| 156 |
+
- **Cloud Provider:** [More Information Needed]
|
| 157 |
+
- **Compute Region:** [More Information Needed]
|
| 158 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
+
|
| 160 |
+
## Technical Specifications [optional]
|
| 161 |
+
|
| 162 |
+
### Model Architecture and Objective
|
| 163 |
+
|
| 164 |
+
[More Information Needed]
|
| 165 |
+
|
| 166 |
+
### Compute Infrastructure
|
| 167 |
+
|
| 168 |
+
[More Information Needed]
|
| 169 |
+
|
| 170 |
+
#### Hardware
|
| 171 |
+
|
| 172 |
+
[More Information Needed]
|
| 173 |
+
|
| 174 |
+
#### Software
|
| 175 |
+
|
| 176 |
+
[More Information Needed]
|
| 177 |
+
|
| 178 |
+
## Citation [optional]
|
| 179 |
+
|
| 180 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
+
|
| 182 |
+
**BibTeX:**
|
| 183 |
+
|
| 184 |
+
[More Information Needed]
|
| 185 |
+
|
| 186 |
+
**APA:**
|
| 187 |
+
|
| 188 |
+
[More Information Needed]
|
| 189 |
+
|
| 190 |
+
## Glossary [optional]
|
| 191 |
+
|
| 192 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
+
|
| 194 |
+
[More Information Needed]
|
| 195 |
+
|
| 196 |
+
## More Information [optional]
|
| 197 |
+
|
| 198 |
+
[More Information Needed]
|
| 199 |
+
|
| 200 |
+
## Model Card Authors [optional]
|
| 201 |
+
|
| 202 |
+
[More Information Needed]
|
| 203 |
+
|
| 204 |
+
## Model Card Contact
|
| 205 |
+
|
| 206 |
+
[More Information Needed]
|
| 207 |
+
### Framework versions
|
| 208 |
+
|
| 209 |
+
- PEFT 0.18.1
|
models/grpo/checkpoint-20/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-Math-1.5B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 128,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 64,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"gate_proj",
|
| 33 |
+
"v_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"k_proj",
|
| 38 |
+
"q_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "CAUSAL_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
models/grpo/checkpoint-20/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0263d2404cfa7d65bfc653ed760fec21598c9b2a8d457d505f9ede4d96afc60b
|
| 3 |
+
size 295488936
|
models/grpo/checkpoint-20/added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
models/grpo/checkpoint-20/chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'Please reason step by step, and put your final answer within \\boxed{}.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
models/grpo/checkpoint-20/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/grpo/checkpoint-20/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1b405bf22e8d35e00bdea8755f8b483ed9461986e0da1f75439b4d8c3c000da
|
| 3 |
+
size 591203579
|
models/grpo/checkpoint-20/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be3e0004889015c9c538d90e1b8ae6db4b3654cd8388cf501ef9ceb46cc5217f
|
| 3 |
+
size 14645
|
models/grpo/checkpoint-20/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a65770a20cd6925dd627ba1022bf44d16624250db38e4590c6dc7768c69e2cb0
|
| 3 |
+
size 1465
|
models/grpo/checkpoint-20/special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|endoftext|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
models/grpo/checkpoint-20/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5eee858c5123a4279c3e1f7b81247343f356ac767940b2692a928ad929543214
|
| 3 |
+
size 11422063
|
models/grpo/checkpoint-20/tokenizer_config.json
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"additional_special_tokens": [
|
| 183 |
+
"<|im_start|>",
|
| 184 |
+
"<|im_end|>",
|
| 185 |
+
"<|object_ref_start|>",
|
| 186 |
+
"<|object_ref_end|>",
|
| 187 |
+
"<|box_start|>",
|
| 188 |
+
"<|box_end|>",
|
| 189 |
+
"<|quad_start|>",
|
| 190 |
+
"<|quad_end|>",
|
| 191 |
+
"<|vision_start|>",
|
| 192 |
+
"<|vision_end|>",
|
| 193 |
+
"<|vision_pad|>",
|
| 194 |
+
"<|image_pad|>",
|
| 195 |
+
"<|video_pad|>"
|
| 196 |
+
],
|
| 197 |
+
"bos_token": null,
|
| 198 |
+
"clean_up_tokenization_spaces": false,
|
| 199 |
+
"eos_token": "<|endoftext|>",
|
| 200 |
+
"errors": "replace",
|
| 201 |
+
"extra_special_tokens": {},
|
| 202 |
+
"model_max_length": 131072,
|
| 203 |
+
"pad_token": "<|endoftext|>",
|
| 204 |
+
"padding_side": "left",
|
| 205 |
+
"split_special_tokens": false,
|
| 206 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
+
"truncation_side": "left",
|
| 208 |
+
"unk_token": null
|
| 209 |
+
}
|
models/grpo/checkpoint-20/trainer_state.json
ADDED
|
@@ -0,0 +1,574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.5128205128205128,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 20,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"clip_ratio/high_max": 0.0,
|
| 14 |
+
"clip_ratio/high_mean": 0.0,
|
| 15 |
+
"clip_ratio/low_mean": 0.0,
|
| 16 |
+
"clip_ratio/low_min": 0.0,
|
| 17 |
+
"clip_ratio/region_mean": 0.0,
|
| 18 |
+
"completions/clipped_ratio": 0.80078125,
|
| 19 |
+
"completions/max_length": 256.0,
|
| 20 |
+
"completions/max_terminated_length": 253.0,
|
| 21 |
+
"completions/mean_length": 237.14453125,
|
| 22 |
+
"completions/mean_terminated_length": 161.3529510498047,
|
| 23 |
+
"completions/min_length": 10.0,
|
| 24 |
+
"completions/min_terminated_length": 10.0,
|
| 25 |
+
"entropy": 1.3392305374145508,
|
| 26 |
+
"epoch": 0.02564102564102564,
|
| 27 |
+
"frac_reward_zero_std": 0.2890625,
|
| 28 |
+
"grad_norm": 0.07342787832021713,
|
| 29 |
+
"learning_rate": 0.0,
|
| 30 |
+
"loss": 0.0068,
|
| 31 |
+
"num_tokens": 153643.0,
|
| 32 |
+
"reward": 0.859375,
|
| 33 |
+
"reward_std": 1.100690484046936,
|
| 34 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.859375,
|
| 35 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1006906032562256,
|
| 36 |
+
"step": 1,
|
| 37 |
+
"step_time": 86.24474567199923
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"clip_ratio/high_max": 0.0,
|
| 41 |
+
"clip_ratio/high_mean": 0.0,
|
| 42 |
+
"clip_ratio/low_mean": 0.0,
|
| 43 |
+
"clip_ratio/low_min": 0.0,
|
| 44 |
+
"clip_ratio/region_mean": 0.0,
|
| 45 |
+
"completions/clipped_ratio": 0.83984375,
|
| 46 |
+
"completions/max_length": 256.0,
|
| 47 |
+
"completions/max_terminated_length": 253.0,
|
| 48 |
+
"completions/mean_length": 239.8671875,
|
| 49 |
+
"completions/mean_terminated_length": 155.26828002929688,
|
| 50 |
+
"completions/min_length": 37.0,
|
| 51 |
+
"completions/min_terminated_length": 37.0,
|
| 52 |
+
"entropy": 1.1771463677287102,
|
| 53 |
+
"epoch": 0.05128205128205128,
|
| 54 |
+
"frac_reward_zero_std": 0.3515625,
|
| 55 |
+
"grad_norm": 0.06119547039270401,
|
| 56 |
+
"learning_rate": 2.5e-06,
|
| 57 |
+
"loss": 0.0204,
|
| 58 |
+
"num_tokens": 308163.0,
|
| 59 |
+
"reward": 0.88671875,
|
| 60 |
+
"reward_std": 1.3041635751724243,
|
| 61 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.88671875,
|
| 62 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3041635751724243,
|
| 63 |
+
"step": 2,
|
| 64 |
+
"step_time": 86.508452252001
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"clip_ratio/high_max": 0.0,
|
| 68 |
+
"clip_ratio/high_mean": 0.0,
|
| 69 |
+
"clip_ratio/low_mean": 0.0,
|
| 70 |
+
"clip_ratio/low_min": 0.0,
|
| 71 |
+
"clip_ratio/region_mean": 0.0,
|
| 72 |
+
"completions/clipped_ratio": 0.85546875,
|
| 73 |
+
"completions/max_length": 256.0,
|
| 74 |
+
"completions/max_terminated_length": 253.0,
|
| 75 |
+
"completions/mean_length": 244.81640625,
|
| 76 |
+
"completions/mean_terminated_length": 178.6216278076172,
|
| 77 |
+
"completions/min_length": 48.0,
|
| 78 |
+
"completions/min_terminated_length": 48.0,
|
| 79 |
+
"entropy": 1.1922413893043995,
|
| 80 |
+
"epoch": 0.07692307692307693,
|
| 81 |
+
"frac_reward_zero_std": 0.375,
|
| 82 |
+
"grad_norm": 0.056310124695301056,
|
| 83 |
+
"learning_rate": 5e-06,
|
| 84 |
+
"loss": 0.0119,
|
| 85 |
+
"num_tokens": 463868.0,
|
| 86 |
+
"reward": 0.90234375,
|
| 87 |
+
"reward_std": 1.124693512916565,
|
| 88 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.90234375,
|
| 89 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1246936321258545,
|
| 90 |
+
"step": 3,
|
| 91 |
+
"step_time": 85.8330284170006
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"clip_ratio/high_max": 0.0,
|
| 95 |
+
"clip_ratio/high_mean": 0.0,
|
| 96 |
+
"clip_ratio/low_mean": 0.0,
|
| 97 |
+
"clip_ratio/low_min": 0.0,
|
| 98 |
+
"clip_ratio/region_mean": 0.0,
|
| 99 |
+
"completions/clipped_ratio": 0.84765625,
|
| 100 |
+
"completions/max_length": 256.0,
|
| 101 |
+
"completions/max_terminated_length": 255.0,
|
| 102 |
+
"completions/mean_length": 243.02734375,
|
| 103 |
+
"completions/mean_terminated_length": 170.84616088867188,
|
| 104 |
+
"completions/min_length": 82.0,
|
| 105 |
+
"completions/min_terminated_length": 82.0,
|
| 106 |
+
"entropy": 1.2269665226340294,
|
| 107 |
+
"epoch": 0.10256410256410256,
|
| 108 |
+
"frac_reward_zero_std": 0.3984375,
|
| 109 |
+
"grad_norm": 0.05933857336640358,
|
| 110 |
+
"learning_rate": 7.500000000000001e-06,
|
| 111 |
+
"loss": 0.0091,
|
| 112 |
+
"num_tokens": 619011.0,
|
| 113 |
+
"reward": 0.91796875,
|
| 114 |
+
"reward_std": 1.1119270324707031,
|
| 115 |
+
"rewards/mathematical_correctness_reward_function/mean": 0.91796875,
|
| 116 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1119270324707031,
|
| 117 |
+
"step": 4,
|
| 118 |
+
"step_time": 85.85383133499909
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"clip_ratio/high_max": 0.0,
|
| 122 |
+
"clip_ratio/high_mean": 0.0,
|
| 123 |
+
"clip_ratio/low_mean": 0.0,
|
| 124 |
+
"clip_ratio/low_min": 0.0,
|
| 125 |
+
"clip_ratio/region_mean": 0.0,
|
| 126 |
+
"completions/clipped_ratio": 0.80859375,
|
| 127 |
+
"completions/max_length": 256.0,
|
| 128 |
+
"completions/max_terminated_length": 256.0,
|
| 129 |
+
"completions/mean_length": 235.5390625,
|
| 130 |
+
"completions/mean_terminated_length": 149.10203552246094,
|
| 131 |
+
"completions/min_length": 11.0,
|
| 132 |
+
"completions/min_terminated_length": 11.0,
|
| 133 |
+
"entropy": 1.1289030984044075,
|
| 134 |
+
"epoch": 0.1282051282051282,
|
| 135 |
+
"frac_reward_zero_std": 0.3203125,
|
| 136 |
+
"grad_norm": 0.06574889272451401,
|
| 137 |
+
"learning_rate": 1e-05,
|
| 138 |
+
"loss": 0.0168,
|
| 139 |
+
"num_tokens": 772231.0,
|
| 140 |
+
"reward": 1.10546875,
|
| 141 |
+
"reward_std": 1.3549507856369019,
|
| 142 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.10546875,
|
| 143 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3549507856369019,
|
| 144 |
+
"step": 5,
|
| 145 |
+
"step_time": 85.96325700299985
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"clip_ratio/high_max": 0.0,
|
| 149 |
+
"clip_ratio/high_mean": 0.0,
|
| 150 |
+
"clip_ratio/low_mean": 0.0,
|
| 151 |
+
"clip_ratio/low_min": 0.0,
|
| 152 |
+
"clip_ratio/region_mean": 0.0,
|
| 153 |
+
"completions/clipped_ratio": 0.73828125,
|
| 154 |
+
"completions/max_length": 256.0,
|
| 155 |
+
"completions/max_terminated_length": 256.0,
|
| 156 |
+
"completions/mean_length": 233.44140625,
|
| 157 |
+
"completions/mean_terminated_length": 169.80596923828125,
|
| 158 |
+
"completions/min_length": 46.0,
|
| 159 |
+
"completions/min_terminated_length": 46.0,
|
| 160 |
+
"entropy": 1.2140139639377594,
|
| 161 |
+
"epoch": 0.15384615384615385,
|
| 162 |
+
"frac_reward_zero_std": 0.2734375,
|
| 163 |
+
"grad_norm": 0.06448275595903397,
|
| 164 |
+
"learning_rate": 9.979871469976197e-06,
|
| 165 |
+
"loss": 0.0187,
|
| 166 |
+
"num_tokens": 924882.0,
|
| 167 |
+
"reward": 1.21875,
|
| 168 |
+
"reward_std": 1.1127601861953735,
|
| 169 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.21875,
|
| 170 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1127601861953735,
|
| 171 |
+
"step": 6,
|
| 172 |
+
"step_time": 86.28028441999868
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"clip_ratio/high_max": 0.0,
|
| 176 |
+
"clip_ratio/high_mean": 0.0,
|
| 177 |
+
"clip_ratio/low_mean": 0.0,
|
| 178 |
+
"clip_ratio/low_min": 0.0,
|
| 179 |
+
"clip_ratio/region_mean": 0.0,
|
| 180 |
+
"completions/clipped_ratio": 0.828125,
|
| 181 |
+
"completions/max_length": 256.0,
|
| 182 |
+
"completions/max_terminated_length": 254.0,
|
| 183 |
+
"completions/mean_length": 241.78515625,
|
| 184 |
+
"completions/mean_terminated_length": 173.2954559326172,
|
| 185 |
+
"completions/min_length": 36.0,
|
| 186 |
+
"completions/min_terminated_length": 36.0,
|
| 187 |
+
"entropy": 1.241826605051756,
|
| 188 |
+
"epoch": 0.1794871794871795,
|
| 189 |
+
"frac_reward_zero_std": 0.2421875,
|
| 190 |
+
"grad_norm": 0.06542028486728668,
|
| 191 |
+
"learning_rate": 9.91964794299315e-06,
|
| 192 |
+
"loss": 0.0025,
|
| 193 |
+
"num_tokens": 1079615.0,
|
| 194 |
+
"reward": 1.29296875,
|
| 195 |
+
"reward_std": 1.1359151601791382,
|
| 196 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.29296875,
|
| 197 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1359151601791382,
|
| 198 |
+
"step": 7,
|
| 199 |
+
"step_time": 85.96726177399978
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"clip_ratio/high_max": 0.0,
|
| 203 |
+
"clip_ratio/high_mean": 0.0,
|
| 204 |
+
"clip_ratio/low_mean": 0.0,
|
| 205 |
+
"clip_ratio/low_min": 0.0,
|
| 206 |
+
"clip_ratio/region_mean": 0.0,
|
| 207 |
+
"completions/clipped_ratio": 0.7578125,
|
| 208 |
+
"completions/max_length": 256.0,
|
| 209 |
+
"completions/max_terminated_length": 256.0,
|
| 210 |
+
"completions/mean_length": 231.3046875,
|
| 211 |
+
"completions/mean_terminated_length": 154.03225708007812,
|
| 212 |
+
"completions/min_length": 44.0,
|
| 213 |
+
"completions/min_terminated_length": 44.0,
|
| 214 |
+
"entropy": 1.2537630051374435,
|
| 215 |
+
"epoch": 0.20512820512820512,
|
| 216 |
+
"frac_reward_zero_std": 0.3046875,
|
| 217 |
+
"grad_norm": 0.06004541367292404,
|
| 218 |
+
"learning_rate": 9.819814303479268e-06,
|
| 219 |
+
"loss": 0.0227,
|
| 220 |
+
"num_tokens": 1231799.0,
|
| 221 |
+
"reward": 1.33984375,
|
| 222 |
+
"reward_std": 1.1537383794784546,
|
| 223 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.33984375,
|
| 224 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1537383794784546,
|
| 225 |
+
"step": 8,
|
| 226 |
+
"step_time": 85.93508993700198
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"clip_ratio/high_max": 0.0,
|
| 230 |
+
"clip_ratio/high_mean": 0.0,
|
| 231 |
+
"clip_ratio/low_mean": 0.0,
|
| 232 |
+
"clip_ratio/low_min": 0.0,
|
| 233 |
+
"clip_ratio/region_mean": 0.0,
|
| 234 |
+
"completions/clipped_ratio": 0.7265625,
|
| 235 |
+
"completions/max_length": 256.0,
|
| 236 |
+
"completions/max_terminated_length": 250.0,
|
| 237 |
+
"completions/mean_length": 229.26953125,
|
| 238 |
+
"completions/mean_terminated_length": 158.24285888671875,
|
| 239 |
+
"completions/min_length": 51.0,
|
| 240 |
+
"completions/min_terminated_length": 51.0,
|
| 241 |
+
"entropy": 1.1602798961102962,
|
| 242 |
+
"epoch": 0.23076923076923078,
|
| 243 |
+
"frac_reward_zero_std": 0.2421875,
|
| 244 |
+
"grad_norm": 0.07147325575351715,
|
| 245 |
+
"learning_rate": 9.681174353198687e-06,
|
| 246 |
+
"loss": 0.0138,
|
| 247 |
+
"num_tokens": 1383510.0,
|
| 248 |
+
"reward": 1.62890625,
|
| 249 |
+
"reward_std": 1.3191591501235962,
|
| 250 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.62890625,
|
| 251 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3191591501235962,
|
| 252 |
+
"step": 9,
|
| 253 |
+
"step_time": 86.19385715199951
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"clip_ratio/high_max": 0.0,
|
| 257 |
+
"clip_ratio/high_mean": 0.0,
|
| 258 |
+
"clip_ratio/low_mean": 0.0,
|
| 259 |
+
"clip_ratio/low_min": 0.0,
|
| 260 |
+
"clip_ratio/region_mean": 0.0,
|
| 261 |
+
"completions/clipped_ratio": 0.671875,
|
| 262 |
+
"completions/max_length": 256.0,
|
| 263 |
+
"completions/max_terminated_length": 255.0,
|
| 264 |
+
"completions/mean_length": 222.59375,
|
| 265 |
+
"completions/mean_terminated_length": 154.1904754638672,
|
| 266 |
+
"completions/min_length": 49.0,
|
| 267 |
+
"completions/min_terminated_length": 49.0,
|
| 268 |
+
"entropy": 1.2778590954840183,
|
| 269 |
+
"epoch": 0.2564102564102564,
|
| 270 |
+
"frac_reward_zero_std": 0.25,
|
| 271 |
+
"grad_norm": 0.06555230915546417,
|
| 272 |
+
"learning_rate": 9.504844339512096e-06,
|
| 273 |
+
"loss": -0.0007,
|
| 274 |
+
"num_tokens": 1533384.0,
|
| 275 |
+
"reward": 1.66015625,
|
| 276 |
+
"reward_std": 1.3186944723129272,
|
| 277 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.66015625,
|
| 278 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3186945915222168,
|
| 279 |
+
"step": 10,
|
| 280 |
+
"step_time": 85.93042380499901
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"clip_ratio/high_max": 0.0,
|
| 284 |
+
"clip_ratio/high_mean": 0.0,
|
| 285 |
+
"clip_ratio/low_mean": 0.0,
|
| 286 |
+
"clip_ratio/low_min": 0.0,
|
| 287 |
+
"clip_ratio/region_mean": 0.0,
|
| 288 |
+
"completions/clipped_ratio": 0.66796875,
|
| 289 |
+
"completions/max_length": 256.0,
|
| 290 |
+
"completions/max_terminated_length": 254.0,
|
| 291 |
+
"completions/mean_length": 219.453125,
|
| 292 |
+
"completions/mean_terminated_length": 145.92941284179688,
|
| 293 |
+
"completions/min_length": 38.0,
|
| 294 |
+
"completions/min_terminated_length": 38.0,
|
| 295 |
+
"entropy": 1.2968238294124603,
|
| 296 |
+
"epoch": 0.28205128205128205,
|
| 297 |
+
"frac_reward_zero_std": 0.3046875,
|
| 298 |
+
"grad_norm": 0.0640135407447815,
|
| 299 |
+
"learning_rate": 9.292243968009332e-06,
|
| 300 |
+
"loss": 0.0186,
|
| 301 |
+
"num_tokens": 1682622.0,
|
| 302 |
+
"reward": 1.64453125,
|
| 303 |
+
"reward_std": 1.355674147605896,
|
| 304 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.64453125,
|
| 305 |
+
"rewards/mathematical_correctness_reward_function/std": 1.355674147605896,
|
| 306 |
+
"step": 11,
|
| 307 |
+
"step_time": 86.73103137099861
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"clip_ratio/high_max": 0.0,
|
| 311 |
+
"clip_ratio/high_mean": 0.0,
|
| 312 |
+
"clip_ratio/low_mean": 0.0,
|
| 313 |
+
"clip_ratio/low_min": 0.0,
|
| 314 |
+
"clip_ratio/region_mean": 0.0,
|
| 315 |
+
"completions/clipped_ratio": 0.70703125,
|
| 316 |
+
"completions/max_length": 256.0,
|
| 317 |
+
"completions/max_terminated_length": 256.0,
|
| 318 |
+
"completions/mean_length": 227.4921875,
|
| 319 |
+
"completions/mean_terminated_length": 158.69334411621094,
|
| 320 |
+
"completions/min_length": 53.0,
|
| 321 |
+
"completions/min_terminated_length": 53.0,
|
| 322 |
+
"entropy": 1.1798847801983356,
|
| 323 |
+
"epoch": 0.3076923076923077,
|
| 324 |
+
"frac_reward_zero_std": 0.234375,
|
| 325 |
+
"grad_norm": 0.06765235960483551,
|
| 326 |
+
"learning_rate": 9.045084971874738e-06,
|
| 327 |
+
"loss": 0.0153,
|
| 328 |
+
"num_tokens": 1833938.0,
|
| 329 |
+
"reward": 1.74609375,
|
| 330 |
+
"reward_std": 1.2469509840011597,
|
| 331 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.74609375,
|
| 332 |
+
"rewards/mathematical_correctness_reward_function/std": 1.2469509840011597,
|
| 333 |
+
"step": 12,
|
| 334 |
+
"step_time": 85.93055903300046
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"clip_ratio/high_max": 0.0,
|
| 338 |
+
"clip_ratio/high_mean": 0.0,
|
| 339 |
+
"clip_ratio/low_mean": 0.0,
|
| 340 |
+
"clip_ratio/low_min": 0.0,
|
| 341 |
+
"clip_ratio/region_mean": 0.0,
|
| 342 |
+
"completions/clipped_ratio": 0.72265625,
|
| 343 |
+
"completions/max_length": 256.0,
|
| 344 |
+
"completions/max_terminated_length": 255.0,
|
| 345 |
+
"completions/mean_length": 227.6640625,
|
| 346 |
+
"completions/mean_terminated_length": 153.8309783935547,
|
| 347 |
+
"completions/min_length": 42.0,
|
| 348 |
+
"completions/min_terminated_length": 42.0,
|
| 349 |
+
"entropy": 1.0747726932168007,
|
| 350 |
+
"epoch": 0.3333333333333333,
|
| 351 |
+
"frac_reward_zero_std": 0.265625,
|
| 352 |
+
"grad_norm": 0.06723812222480774,
|
| 353 |
+
"learning_rate": 8.765357330018056e-06,
|
| 354 |
+
"loss": 0.0142,
|
| 355 |
+
"num_tokens": 1985174.0,
|
| 356 |
+
"reward": 1.92578125,
|
| 357 |
+
"reward_std": 1.4164161682128906,
|
| 358 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.92578125,
|
| 359 |
+
"rewards/mathematical_correctness_reward_function/std": 1.4164161682128906,
|
| 360 |
+
"step": 13,
|
| 361 |
+
"step_time": 86.18083131499952
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"clip_ratio/high_max": 0.0,
|
| 365 |
+
"clip_ratio/high_mean": 0.0,
|
| 366 |
+
"clip_ratio/low_mean": 0.0,
|
| 367 |
+
"clip_ratio/low_min": 0.0,
|
| 368 |
+
"clip_ratio/region_mean": 0.0,
|
| 369 |
+
"completions/clipped_ratio": 0.671875,
|
| 370 |
+
"completions/max_length": 256.0,
|
| 371 |
+
"completions/max_terminated_length": 256.0,
|
| 372 |
+
"completions/mean_length": 216.9453125,
|
| 373 |
+
"completions/mean_terminated_length": 136.9761962890625,
|
| 374 |
+
"completions/min_length": 19.0,
|
| 375 |
+
"completions/min_terminated_length": 19.0,
|
| 376 |
+
"entropy": 1.048094429075718,
|
| 377 |
+
"epoch": 0.358974358974359,
|
| 378 |
+
"frac_reward_zero_std": 0.2890625,
|
| 379 |
+
"grad_norm": 0.06610685586929321,
|
| 380 |
+
"learning_rate": 8.455313244934324e-06,
|
| 381 |
+
"loss": 0.015,
|
| 382 |
+
"num_tokens": 2133660.0,
|
| 383 |
+
"reward": 1.8671875,
|
| 384 |
+
"reward_std": 1.1740400791168213,
|
| 385 |
+
"rewards/mathematical_correctness_reward_function/mean": 1.8671875,
|
| 386 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1740400791168213,
|
| 387 |
+
"step": 14,
|
| 388 |
+
"step_time": 86.0845494640007
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"clip_ratio/high_max": 0.0,
|
| 392 |
+
"clip_ratio/high_mean": 0.0,
|
| 393 |
+
"clip_ratio/low_mean": 0.0,
|
| 394 |
+
"clip_ratio/low_min": 0.0,
|
| 395 |
+
"clip_ratio/region_mean": 0.0,
|
| 396 |
+
"completions/clipped_ratio": 0.6171875,
|
| 397 |
+
"completions/max_length": 256.0,
|
| 398 |
+
"completions/max_terminated_length": 250.0,
|
| 399 |
+
"completions/mean_length": 207.58984375,
|
| 400 |
+
"completions/mean_terminated_length": 129.5408172607422,
|
| 401 |
+
"completions/min_length": 39.0,
|
| 402 |
+
"completions/min_terminated_length": 39.0,
|
| 403 |
+
"entropy": 1.1446622498333454,
|
| 404 |
+
"epoch": 0.38461538461538464,
|
| 405 |
+
"frac_reward_zero_std": 0.2734375,
|
| 406 |
+
"grad_norm": 0.07915058732032776,
|
| 407 |
+
"learning_rate": 8.117449009293668e-06,
|
| 408 |
+
"loss": 0.0438,
|
| 409 |
+
"num_tokens": 2279705.0,
|
| 410 |
+
"reward": 2.02734375,
|
| 411 |
+
"reward_std": 1.1960861682891846,
|
| 412 |
+
"rewards/mathematical_correctness_reward_function/mean": 2.02734375,
|
| 413 |
+
"rewards/mathematical_correctness_reward_function/std": 1.1960861682891846,
|
| 414 |
+
"step": 15,
|
| 415 |
+
"step_time": 86.29595133900057
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"clip_ratio/high_max": 0.0,
|
| 419 |
+
"clip_ratio/high_mean": 0.0,
|
| 420 |
+
"clip_ratio/low_mean": 0.0,
|
| 421 |
+
"clip_ratio/low_min": 0.0,
|
| 422 |
+
"clip_ratio/region_mean": 0.0,
|
| 423 |
+
"completions/clipped_ratio": 0.6328125,
|
| 424 |
+
"completions/max_length": 256.0,
|
| 425 |
+
"completions/max_terminated_length": 252.0,
|
| 426 |
+
"completions/mean_length": 209.8671875,
|
| 427 |
+
"completions/mean_terminated_length": 130.3616943359375,
|
| 428 |
+
"completions/min_length": 49.0,
|
| 429 |
+
"completions/min_terminated_length": 49.0,
|
| 430 |
+
"entropy": 1.0856149233877659,
|
| 431 |
+
"epoch": 0.41025641025641024,
|
| 432 |
+
"frac_reward_zero_std": 0.2421875,
|
| 433 |
+
"grad_norm": 0.07183024287223816,
|
| 434 |
+
"learning_rate": 7.754484907260513e-06,
|
| 435 |
+
"loss": 0.0186,
|
| 436 |
+
"num_tokens": 2426473.0,
|
| 437 |
+
"reward": 2.00390625,
|
| 438 |
+
"reward_std": 1.272632122039795,
|
| 439 |
+
"rewards/mathematical_correctness_reward_function/mean": 2.00390625,
|
| 440 |
+
"rewards/mathematical_correctness_reward_function/std": 1.272632122039795,
|
| 441 |
+
"step": 16,
|
| 442 |
+
"step_time": 86.06944787800421
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"clip_ratio/high_max": 0.0,
|
| 446 |
+
"clip_ratio/high_mean": 0.0,
|
| 447 |
+
"clip_ratio/low_mean": 0.0,
|
| 448 |
+
"clip_ratio/low_min": 0.0,
|
| 449 |
+
"clip_ratio/region_mean": 0.0,
|
| 450 |
+
"completions/clipped_ratio": 0.59375,
|
| 451 |
+
"completions/max_length": 256.0,
|
| 452 |
+
"completions/max_terminated_length": 249.0,
|
| 453 |
+
"completions/mean_length": 203.3203125,
|
| 454 |
+
"completions/mean_terminated_length": 126.3269271850586,
|
| 455 |
+
"completions/min_length": 42.0,
|
| 456 |
+
"completions/min_terminated_length": 42.0,
|
| 457 |
+
"entropy": 1.1112723909318447,
|
| 458 |
+
"epoch": 0.4358974358974359,
|
| 459 |
+
"frac_reward_zero_std": 0.3203125,
|
| 460 |
+
"grad_norm": 0.07727660983800888,
|
| 461 |
+
"learning_rate": 7.369343312364994e-06,
|
| 462 |
+
"loss": 0.0017,
|
| 463 |
+
"num_tokens": 2571503.0,
|
| 464 |
+
"reward": 2.3515625,
|
| 465 |
+
"reward_std": 1.4637573957443237,
|
| 466 |
+
"rewards/mathematical_correctness_reward_function/mean": 2.3515625,
|
| 467 |
+
"rewards/mathematical_correctness_reward_function/std": 1.4637575149536133,
|
| 468 |
+
"step": 17,
|
| 469 |
+
"step_time": 86.03456121599811
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"clip_ratio/high_max": 0.0,
|
| 473 |
+
"clip_ratio/high_mean": 0.0,
|
| 474 |
+
"clip_ratio/low_mean": 0.0,
|
| 475 |
+
"clip_ratio/low_min": 0.0,
|
| 476 |
+
"clip_ratio/region_mean": 0.0,
|
| 477 |
+
"completions/clipped_ratio": 0.57421875,
|
| 478 |
+
"completions/max_length": 256.0,
|
| 479 |
+
"completions/max_terminated_length": 251.0,
|
| 480 |
+
"completions/mean_length": 200.82421875,
|
| 481 |
+
"completions/mean_terminated_length": 126.412841796875,
|
| 482 |
+
"completions/min_length": 44.0,
|
| 483 |
+
"completions/min_terminated_length": 44.0,
|
| 484 |
+
"entropy": 1.0709168612957,
|
| 485 |
+
"epoch": 0.46153846153846156,
|
| 486 |
+
"frac_reward_zero_std": 0.3671875,
|
| 487 |
+
"grad_norm": 0.07580733299255371,
|
| 488 |
+
"learning_rate": 6.965125158269619e-06,
|
| 489 |
+
"loss": 0.023,
|
| 490 |
+
"num_tokens": 2716018.0,
|
| 491 |
+
"reward": 2.24609375,
|
| 492 |
+
"reward_std": 1.2295321226119995,
|
| 493 |
+
"rewards/mathematical_correctness_reward_function/mean": 2.24609375,
|
| 494 |
+
"rewards/mathematical_correctness_reward_function/std": 1.229532241821289,
|
| 495 |
+
"step": 18,
|
| 496 |
+
"step_time": 86.06337975900169
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"clip_ratio/high_max": 0.0,
|
| 500 |
+
"clip_ratio/high_mean": 0.0,
|
| 501 |
+
"clip_ratio/low_mean": 0.0,
|
| 502 |
+
"clip_ratio/low_min": 0.0,
|
| 503 |
+
"clip_ratio/region_mean": 0.0,
|
| 504 |
+
"completions/clipped_ratio": 0.5859375,
|
| 505 |
+
"completions/max_length": 256.0,
|
| 506 |
+
"completions/max_terminated_length": 256.0,
|
| 507 |
+
"completions/mean_length": 203.3125,
|
| 508 |
+
"completions/mean_terminated_length": 128.7547149658203,
|
| 509 |
+
"completions/min_length": 46.0,
|
| 510 |
+
"completions/min_terminated_length": 46.0,
|
| 511 |
+
"entropy": 1.0283005349338055,
|
| 512 |
+
"epoch": 0.48717948717948717,
|
| 513 |
+
"frac_reward_zero_std": 0.421875,
|
| 514 |
+
"grad_norm": 0.06546252965927124,
|
| 515 |
+
"learning_rate": 6.545084971874738e-06,
|
| 516 |
+
"loss": 0.0157,
|
| 517 |
+
"num_tokens": 2861190.0,
|
| 518 |
+
"reward": 2.3203125,
|
| 519 |
+
"reward_std": 1.2008728981018066,
|
| 520 |
+
"rewards/mathematical_correctness_reward_function/mean": 2.3203125,
|
| 521 |
+
"rewards/mathematical_correctness_reward_function/std": 1.2008728981018066,
|
| 522 |
+
"step": 19,
|
| 523 |
+
"step_time": 86.31491269100479
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"clip_ratio/high_max": 0.0,
|
| 527 |
+
"clip_ratio/high_mean": 0.0,
|
| 528 |
+
"clip_ratio/low_mean": 0.0,
|
| 529 |
+
"clip_ratio/low_min": 0.0,
|
| 530 |
+
"clip_ratio/region_mean": 0.0,
|
| 531 |
+
"completions/clipped_ratio": 0.5234375,
|
| 532 |
+
"completions/max_length": 256.0,
|
| 533 |
+
"completions/max_terminated_length": 256.0,
|
| 534 |
+
"completions/mean_length": 190.8125,
|
| 535 |
+
"completions/mean_terminated_length": 119.2131118774414,
|
| 536 |
+
"completions/min_length": 43.0,
|
| 537 |
+
"completions/min_terminated_length": 43.0,
|
| 538 |
+
"entropy": 1.0640101097524166,
|
| 539 |
+
"epoch": 0.5128205128205128,
|
| 540 |
+
"frac_reward_zero_std": 0.3359375,
|
| 541 |
+
"grad_norm": 0.07372903823852539,
|
| 542 |
+
"learning_rate": 6.112604669781572e-06,
|
| 543 |
+
"loss": 0.0409,
|
| 544 |
+
"num_tokens": 3002934.0,
|
| 545 |
+
"reward": 2.54296875,
|
| 546 |
+
"reward_std": 1.3038816452026367,
|
| 547 |
+
"rewards/mathematical_correctness_reward_function/mean": 2.54296875,
|
| 548 |
+
"rewards/mathematical_correctness_reward_function/std": 1.3038816452026367,
|
| 549 |
+
"step": 20,
|
| 550 |
+
"step_time": 85.70871102700039
|
| 551 |
+
}
|
| 552 |
+
],
|
| 553 |
+
"logging_steps": 1,
|
| 554 |
+
"max_steps": 39,
|
| 555 |
+
"num_input_tokens_seen": 3002934,
|
| 556 |
+
"num_train_epochs": 1,
|
| 557 |
+
"save_steps": 10,
|
| 558 |
+
"stateful_callbacks": {
|
| 559 |
+
"TrainerControl": {
|
| 560 |
+
"args": {
|
| 561 |
+
"should_epoch_stop": false,
|
| 562 |
+
"should_evaluate": false,
|
| 563 |
+
"should_log": false,
|
| 564 |
+
"should_save": true,
|
| 565 |
+
"should_training_stop": false
|
| 566 |
+
},
|
| 567 |
+
"attributes": {}
|
| 568 |
+
}
|
| 569 |
+
},
|
| 570 |
+
"total_flos": 0.0,
|
| 571 |
+
"train_batch_size": 16,
|
| 572 |
+
"trial_name": null,
|
| 573 |
+
"trial_params": null
|
| 574 |
+
}
|
models/grpo/checkpoint-20/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94f496ed302bcefe707e417d1679ee1a4274555a4b156df7e28e043c3e0d2bc9
|
| 3 |
+
size 7697
|
models/grpo/checkpoint-20/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/grpo/checkpoint-30/README.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-Math-1.5B
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-Math-1.5B
|
| 7 |
+
- grpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for Model ID
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
### Model Description
|
| 22 |
+
|
| 23 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
- **Developed by:** [More Information Needed]
|
| 28 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
+
- **Model type:** [More Information Needed]
|
| 31 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
+
- **License:** [More Information Needed]
|
| 33 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
+
|
| 35 |
+
### Model Sources [optional]
|
| 36 |
+
|
| 37 |
+
<!-- Provide the basic links for the model. -->
|
| 38 |
+
|
| 39 |
+
- **Repository:** [More Information Needed]
|
| 40 |
+
- **Paper [optional]:** [More Information Needed]
|
| 41 |
+
- **Demo [optional]:** [More Information Needed]
|
| 42 |
+
|
| 43 |
+
## Uses
|
| 44 |
+
|
| 45 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
+
|
| 47 |
+
### Direct Use
|
| 48 |
+
|
| 49 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
+
|
| 51 |
+
[More Information Needed]
|
| 52 |
+
|
| 53 |
+
### Downstream Use [optional]
|
| 54 |
+
|
| 55 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
+
|
| 57 |
+
[More Information Needed]
|
| 58 |
+
|
| 59 |
+
### Out-of-Scope Use
|
| 60 |
+
|
| 61 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
+
|
| 63 |
+
[More Information Needed]
|
| 64 |
+
|
| 65 |
+
## Bias, Risks, and Limitations
|
| 66 |
+
|
| 67 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
+
|
| 69 |
+
[More Information Needed]
|
| 70 |
+
|
| 71 |
+
### Recommendations
|
| 72 |
+
|
| 73 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
+
|
| 75 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
+
|
| 77 |
+
## How to Get Started with the Model
|
| 78 |
+
|
| 79 |
+
Use the code below to get started with the model.
|
| 80 |
+
|
| 81 |
+
[More Information Needed]
|
| 82 |
+
|
| 83 |
+
## Training Details
|
| 84 |
+
|
| 85 |
+
### Training Data
|
| 86 |
+
|
| 87 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
+
|
| 89 |
+
[More Information Needed]
|
| 90 |
+
|
| 91 |
+
### Training Procedure
|
| 92 |
+
|
| 93 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
+
|
| 95 |
+
#### Preprocessing [optional]
|
| 96 |
+
|
| 97 |
+
[More Information Needed]
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
#### Training Hyperparameters
|
| 101 |
+
|
| 102 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
+
|
| 104 |
+
#### Speeds, Sizes, Times [optional]
|
| 105 |
+
|
| 106 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
+
|
| 108 |
+
[More Information Needed]
|
| 109 |
+
|
| 110 |
+
## Evaluation
|
| 111 |
+
|
| 112 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
+
|
| 114 |
+
### Testing Data, Factors & Metrics
|
| 115 |
+
|
| 116 |
+
#### Testing Data
|
| 117 |
+
|
| 118 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
#### Factors
|
| 123 |
+
|
| 124 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
+
|
| 126 |
+
[More Information Needed]
|
| 127 |
+
|
| 128 |
+
#### Metrics
|
| 129 |
+
|
| 130 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
+
|
| 132 |
+
[More Information Needed]
|
| 133 |
+
|
| 134 |
+
### Results
|
| 135 |
+
|
| 136 |
+
[More Information Needed]
|
| 137 |
+
|
| 138 |
+
#### Summary
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
## Model Examination [optional]
|
| 143 |
+
|
| 144 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
+
|
| 146 |
+
[More Information Needed]
|
| 147 |
+
|
| 148 |
+
## Environmental Impact
|
| 149 |
+
|
| 150 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
+
|
| 152 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 153 |
+
|
| 154 |
+
- **Hardware Type:** [More Information Needed]
|
| 155 |
+
- **Hours used:** [More Information Needed]
|
| 156 |
+
- **Cloud Provider:** [More Information Needed]
|
| 157 |
+
- **Compute Region:** [More Information Needed]
|
| 158 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
+
|
| 160 |
+
## Technical Specifications [optional]
|
| 161 |
+
|
| 162 |
+
### Model Architecture and Objective
|
| 163 |
+
|
| 164 |
+
[More Information Needed]
|
| 165 |
+
|
| 166 |
+
### Compute Infrastructure
|
| 167 |
+
|
| 168 |
+
[More Information Needed]
|
| 169 |
+
|
| 170 |
+
#### Hardware
|
| 171 |
+
|
| 172 |
+
[More Information Needed]
|
| 173 |
+
|
| 174 |
+
#### Software
|
| 175 |
+
|
| 176 |
+
[More Information Needed]
|
| 177 |
+
|
| 178 |
+
## Citation [optional]
|
| 179 |
+
|
| 180 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
+
|
| 182 |
+
**BibTeX:**
|
| 183 |
+
|
| 184 |
+
[More Information Needed]
|
| 185 |
+
|
| 186 |
+
**APA:**
|
| 187 |
+
|
| 188 |
+
[More Information Needed]
|
| 189 |
+
|
| 190 |
+
## Glossary [optional]
|
| 191 |
+
|
| 192 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
+
|
| 194 |
+
[More Information Needed]
|
| 195 |
+
|
| 196 |
+
## More Information [optional]
|
| 197 |
+
|
| 198 |
+
[More Information Needed]
|
| 199 |
+
|
| 200 |
+
## Model Card Authors [optional]
|
| 201 |
+
|
| 202 |
+
[More Information Needed]
|
| 203 |
+
|
| 204 |
+
## Model Card Contact
|
| 205 |
+
|
| 206 |
+
[More Information Needed]
|
| 207 |
+
### Framework versions
|
| 208 |
+
|
| 209 |
+
- PEFT 0.18.1
|
models/grpo/checkpoint-30/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-Math-1.5B",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 128,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 64,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"gate_proj",
|
| 33 |
+
"v_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"up_proj",
|
| 37 |
+
"k_proj",
|
| 38 |
+
"q_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "CAUSAL_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
models/grpo/checkpoint-30/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8fea088efffa75b8bfd6d8833442fa89adcccd16446f59fc7a2a6db8de203bf
|
| 3 |
+
size 295488936
|
models/grpo/checkpoint-30/added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
models/grpo/checkpoint-30/chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'Please reason step by step, and put your final answer within \\boxed{}.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|