rnow 0.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rnow/__init__.py +5 -0
- rnow/__main__.py +7 -0
- rnow/cli/__init__.py +6 -0
- rnow/cli/auth.py +67 -0
- rnow/cli/blob.py +98 -0
- rnow/cli/commands.py +2311 -0
- rnow/cli/common.py +28 -0
- rnow/cli/cube.py +255 -0
- rnow/cli/main.py +49 -0
- rnow/cli/test.py +728 -0
- rnow/cli/token_count.py +295 -0
- rnow/core/__init__.py +33 -0
- rnow/core/reward.py +333 -0
- rnow/core/tool.py +494 -0
- rnow/models.py +295 -0
- rnow/templates/deepseek-aha/config.yml +26 -0
- rnow/templates/deepseek-aha/rewards.py +36 -0
- rnow/templates/deepseek-aha/train.jsonl +1000 -0
- rnow/templates/mcp-tavily/config.yml +29 -0
- rnow/templates/mcp-tavily/requirements.txt +1 -0
- rnow/templates/mcp-tavily/rewards.py +25 -0
- rnow/templates/mcp-tavily/train.jsonl +500 -0
- rnow/templates/new/config.yml +26 -0
- rnow/templates/new/requirements.txt +1 -0
- rnow/templates/new/rewards.py +0 -0
- rnow/templates/new/train.jsonl +0 -0
- rnow/templates/rl-nextjs/config.yml +27 -0
- rnow/templates/rl-nextjs/requirements.txt +2 -0
- rnow/templates/rl-nextjs/rewards.py +446 -0
- rnow/templates/rl-nextjs/train.jsonl +1000 -0
- rnow/templates/rl-single/config.yml +27 -0
- rnow/templates/rl-single/requirements.txt +1 -0
- rnow/templates/rl-single/rewards.py +14 -0
- rnow/templates/rl-single/train.jsonl +1000 -0
- rnow/templates/rl-tools/config.yml +27 -0
- rnow/templates/rl-tools/env.py +38 -0
- rnow/templates/rl-tools/requirements.txt +3 -0
- rnow/templates/rl-tools/rewards.py +25 -0
- rnow/templates/rl-tools/train.jsonl +500 -0
- rnow/templates/sft/config.yml +20 -0
- rnow/templates/sft/train.jsonl +100 -0
- rnow/templates/tutorial-reward/config.yml +27 -0
- rnow/templates/tutorial-reward/requirements.txt +1 -0
- rnow/templates/tutorial-reward/rewards.py +15 -0
- rnow/templates/tutorial-reward/train.jsonl +1000 -0
- rnow/templates/tutorial-tool/config.yml +27 -0
- rnow/templates/tutorial-tool/env.py +7 -0
- rnow/templates/tutorial-tool/requirements.txt +3 -0
- rnow/templates/tutorial-tool/rewards.py +7 -0
- rnow/templates/tutorial-tool/train.jsonl +1266 -0
- rnow-0.2.4.dist-info/METADATA +135 -0
- rnow-0.2.4.dist-info/RECORD +56 -0
- rnow-0.2.4.dist-info/WHEEL +5 -0
- rnow-0.2.4.dist-info/entry_points.txt +2 -0
- rnow-0.2.4.dist-info/licenses/LICENSE +21 -0
- rnow-0.2.4.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
project_id: ""
|
|
2
|
+
project_name: "OpenMathReasoning"
|
|
3
|
+
dataset_id: ""
|
|
4
|
+
dataset_name: "math-problems"
|
|
5
|
+
dataset_type: rl
|
|
6
|
+
organization_id: ""
|
|
7
|
+
data:
|
|
8
|
+
train_file: train.jsonl
|
|
9
|
+
batch_size: 32
|
|
10
|
+
group_size: 16
|
|
11
|
+
model:
|
|
12
|
+
path: Qwen/Qwen3-8B
|
|
13
|
+
qlora_rank: 32
|
|
14
|
+
name: "Math Reasoning Model"
|
|
15
|
+
description: "RL model for mathematical reasoning"
|
|
16
|
+
algorithm:
|
|
17
|
+
loss_fn: ppo
|
|
18
|
+
adv_estimator: grpo
|
|
19
|
+
kl_penalty_coef: 0.01
|
|
20
|
+
rollout:
|
|
21
|
+
max_turns: 1
|
|
22
|
+
max_tokens: 16384
|
|
23
|
+
termination_policy: last_tool
|
|
24
|
+
trainer:
|
|
25
|
+
num_epochs: 4
|
|
26
|
+
learning_rate: 0.0001
|
|
27
|
+
save_step: 333
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
math-verify==0.5.0
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from rnow.core import RewardArgs, reward
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@reward
|
|
5
|
+
def accuracy(args: RewardArgs, messages: list) -> float:
|
|
6
|
+
"""Check if the boxed answer matches the expected answer.
|
|
7
|
+
|
|
8
|
+
Hints:
|
|
9
|
+
- Get response: messages[-1]["content"]
|
|
10
|
+
- Get expected: args.metadata["expected_answer"]
|
|
11
|
+
- Handle "A or B" format in expected answers
|
|
12
|
+
- Extract ALL \\boxed{} answers from response
|
|
13
|
+
- Return 1.0 if any match, 0.0 otherwise
|
|
14
|
+
"""
|
|
15
|
+
pass
|