Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c6ac2bd47 | ||
|
|
4d64d38a60 | ||
|
|
d3fe2a8044 | ||
|
|
df5f991bf4 | ||
|
|
546fd69709 | ||
|
|
321c8aa825 | ||
|
|
84b413fd73 |
@@ -90,14 +90,24 @@ jobs:
|
||||
assert find_package_resource("templates") is None, "templates should not be in slim wheel"
|
||||
print("slim install OK — configs import with no heavy deps loaded")
|
||||
PY
|
||||
- name: Verify a real config (with [slurm]) parses on slim install
|
||||
- name: Verify real configs (with [slurm]) parse on slim install
|
||||
run: |
|
||||
/tmp/slim/bin/python - <<'PY'
|
||||
from pydantic_config import cli
|
||||
from prime_rl.configs.sft import SFTConfig
|
||||
from prime_rl.configs.rl import RLConfig
|
||||
rl = cli(RLConfig, args=["@", "examples/Intellect-3.1/rl.toml"])
|
||||
assert rl.slurm is not None, "expected [slurm] in example config"
|
||||
# On slim, template_path can't be auto-resolved (heavy wheel absent) — must stay None.
|
||||
assert rl.slurm.template_path is None, f"unexpected template_path on slim: {rl.slurm.template_path}"
|
||||
# Configs that don't pull in a v1 env package parse on the slim
|
||||
# (prime-rl-configs-only) install: the SFT config has no env sections, and the
|
||||
# reverse_text RL recipe uses a v0 env id (resolved lazily, not imported at parse).
|
||||
# RL configs on a v1 taskset can't parse here because vf.EnvServerConfig imports the
|
||||
# (uninstalled) env package at parse time.
|
||||
for cfg_cls, args in [
|
||||
(SFTConfig, ["@", "examples/reverse_text/slurm_sft.toml"]),
|
||||
(RLConfig, ["@", "examples/reverse_text/rl.toml", "@", "examples/reverse_text/slurm_rl.toml"]),
|
||||
]:
|
||||
cfg = cli(cfg_cls, args=args)
|
||||
assert cfg.slurm is not None, f"expected [slurm] in {args}"
|
||||
# On slim, template_path can't be auto-resolved (heavy wheel absent) — must stay None.
|
||||
assert cfg.slurm.template_path is None, f"unexpected template_path on slim: {cfg.slurm.template_path}"
|
||||
print("slim parse OK")
|
||||
PY
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
max_steps = 10
|
||||
seq_len = 2048
|
||||
|
||||
[weight_broadcast]
|
||||
# TEMP: NCCL weight broadcast currently crashes the trainer on CI GPU runners
|
||||
# (trainer exits during NCCL init). Use filesystem transport until the NCCL
|
||||
# path is fixed. See CI RL integration test failures on main.
|
||||
type = "filesystem"
|
||||
|
||||
[ckpt]
|
||||
|
||||
[model]
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
max_steps = 20
|
||||
seq_len = 2048
|
||||
|
||||
[weight_broadcast]
|
||||
# TEMP: NCCL weight broadcast currently crashes the trainer on CI GPU runners
|
||||
# (trainer exits during NCCL init). Use filesystem transport until the NCCL
|
||||
# path is fixed. See CI RL integration test failures on main.
|
||||
type = "filesystem"
|
||||
|
||||
[ckpt]
|
||||
resume_step = 15
|
||||
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
max_steps = 15
|
||||
seq_len = 2048
|
||||
|
||||
[weight_broadcast]
|
||||
# TEMP: NCCL weight broadcast currently crashes the trainer on CI GPU runners
|
||||
# (trainer exits during NCCL init). Use filesystem transport until the NCCL
|
||||
# path is fixed. See CI RL integration test failures on main.
|
||||
type = "filesystem"
|
||||
|
||||
[ckpt]
|
||||
|
||||
[model]
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
max_steps = 20
|
||||
seq_len = 2048
|
||||
|
||||
[weight_broadcast]
|
||||
# TEMP: NCCL weight broadcast currently crashes the trainer on CI GPU runners
|
||||
# (trainer exits during NCCL init). Use filesystem transport until the NCCL
|
||||
# path is fixed. See CI RL integration test failures on main.
|
||||
type = "filesystem"
|
||||
|
||||
[ckpt]
|
||||
|
||||
[model]
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
max_steps = 15
|
||||
seq_len = 2048
|
||||
|
||||
[weight_broadcast]
|
||||
# TEMP: NCCL weight broadcast currently crashes the trainer on CI GPU runners
|
||||
# (trainer exits during NCCL init). Use filesystem transport until the NCCL
|
||||
# path is fixed. See CI RL integration test failures on main.
|
||||
type = "filesystem"
|
||||
|
||||
[model]
|
||||
name = "PrimeIntellect/Qwen3-0.6B-Reverse-Text-SFT"
|
||||
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
max_steps = 15
|
||||
seq_len = 2048
|
||||
|
||||
[weight_broadcast]
|
||||
# TEMP: NCCL weight broadcast currently crashes the trainer on CI GPU runners
|
||||
# (trainer exits during NCCL init). Use filesystem transport until the NCCL
|
||||
# path is fixed. See CI RL integration test failures on main.
|
||||
type = "filesystem"
|
||||
|
||||
[model]
|
||||
name = "PrimeIntellect/Qwen3-0.6B-Reverse-Text-SFT"
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ max_inflight_rollouts = 512
|
||||
group_size = 8
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
args = { dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" }
|
||||
name = "hendrycks-math"
|
||||
taskset = { id = "math-env-v1", dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 50
|
||||
|
||||
@@ -16,7 +16,8 @@ rollouts_per_example = 4
|
||||
max_completion_tokens = 4096
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "general-agent-solver-rlm"
|
||||
taskset = { id = "general-agent-v1", task = { tools = { colocated = true } } }
|
||||
harness = { id = "null", runtime = { type = "modal" } }
|
||||
|
||||
[trainer]
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@ rollouts_per_example = 16
|
||||
max_off_policy_steps = 32
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "general-agent-solver-rlm"
|
||||
taskset = { id = "general-agent-v1", task = { tools = { colocated = true } } }
|
||||
harness = { id = "null", runtime = { type = "modal" } }
|
||||
|
||||
[orchestrator.train.env.args]
|
||||
min_tier = 1
|
||||
|
||||
@@ -32,7 +32,8 @@ rollouts_per_example = 8
|
||||
max_off_policy_steps = 32
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "general-agent-solver-rlm"
|
||||
taskset = { id = "general-agent-v1", task = { tools = { colocated = true } } }
|
||||
harness = { id = "null", runtime = { type = "modal" } }
|
||||
|
||||
[inference]
|
||||
gpu_memory_utilization = 0.85
|
||||
|
||||
@@ -16,9 +16,9 @@ group_size = 16
|
||||
max_completion_tokens = 2048
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "gsm8k"
|
||||
args = { dataset_name = "openai/gsm8k", dataset_subset = "main", math_verify_max_workers = 128, math_verify_timeout = 60 }
|
||||
taskset = { id = "gsm8k-v1", split = "train" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[trainer] # Default trainer config
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ group_size = 16
|
||||
max_completion_tokens = 2048
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "hendrycks-math"
|
||||
args = { dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", math_verify_max_workers = 128, math_verify_timeout = 60 }
|
||||
taskset = { id = "math-env-v1", dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", task = { math_verify_timeout = 60 } }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 10
|
||||
|
||||
@@ -51,9 +51,9 @@ group_size = 8
|
||||
max_completion_tokens = 2048
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "hendrycks-math"
|
||||
args = { dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", math_verify_max_workers = 128, math_verify_timeout = 60 }
|
||||
taskset = { id = "math-env-v1", dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", task = { math_verify_timeout = 60 } }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 10
|
||||
|
||||
@@ -50,9 +50,9 @@ group_size = 16
|
||||
max_completion_tokens = 4096
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "hendrycks-math"
|
||||
args = { dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", math_verify_max_workers = 128, math_verify_timeout = 60 }
|
||||
taskset = { id = "math-env-v1", dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", task = { math_verify_timeout = 60 } }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 10
|
||||
|
||||
@@ -23,7 +23,7 @@ batch_size = 128
|
||||
group_size = 8
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "primeintellect/wordle"
|
||||
id = "wordle"
|
||||
name = "wordle"
|
||||
|
||||
[orchestrator.train.sampling]
|
||||
|
||||
Vendored
+1
-1
Submodule deps/research-environments updated: 504bd26206...06232831fd
@@ -218,7 +218,7 @@ The shipped end-to-end examples in [`examples/`](https://github.com/PrimeIntelle
|
||||
|
||||
- [**Qwen 3 30B – A3B Math**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/examples/qwen30b_math) — `Qwen3-30B-A3B` on hard math.
|
||||
- [**Qwen 3 30B – A3B SWE**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/examples/qwen30b_swe) — `Qwen3-30B-A3B` on hard SWE.
|
||||
- [**INTELLECT-3.1**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/examples/Intellect-3.1) — reproduces our INTELLECT-3.1 training run.
|
||||
- [**INTELLECT-3.1**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/examples/intellect-3.1) — reproduces our INTELLECT-3.1 training run.
|
||||
- [**MiniMax-M2.5 SWE**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/examples/minimax_m2.5_swe) — `MiniMax-M2.5` on agentic SWE.
|
||||
- [**High-throughput GLM-5**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/examples/glm5_pd_disag) — `GLM-5` with P/D disaggregation and FP8 inference.
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ group_size = 8
|
||||
max_completion_tokens = 768
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "primeintellect/alphabet-sort"
|
||||
id = "alphabet-sort"
|
||||
name = "alphabet-sort"
|
||||
args = { min_turns = 3, max_turns = 5, power_per_turn = false }
|
||||
|
||||
|
||||
@@ -72,9 +72,9 @@ name = "zai-org/GLM-5-FP8"
|
||||
interval = 20
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe-bench-verified-quick"
|
||||
args = { dataset_name="PrimeIntellect/SWE-Bench-Verified-Quick", max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
name = "swe-bench-verified"
|
||||
taskset = { id = "swebench-verified-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["glm5-pd-disag", "swe-bench-verified"] } }
|
||||
|
||||
[[orchestrator.post_batch_filters]]
|
||||
type = "gibberish"
|
||||
|
||||
@@ -17,16 +17,17 @@ group_size = 8
|
||||
seq_len = 8192
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env" # included in lock file
|
||||
args = { dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" }
|
||||
name = "hendrycks-math"
|
||||
taskset = { id = "math-env-v1", dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 50
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "primeintellect/aime2024"
|
||||
name = "aime2024"
|
||||
taskset = { id = "aime24-v1" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
group_size = 32
|
||||
|
||||
[trainer.model]
|
||||
|
||||
@@ -48,34 +48,34 @@ batch_size = 2048
|
||||
oversampling_factor = 2
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe"
|
||||
ratio = 0.3
|
||||
args = { max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
taskset = { id = "r2e-gym-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["intellect-3.1", "swe"] } }
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "deepdive"
|
||||
name = "deepdive"
|
||||
ratio = 0.2
|
||||
args = { finish_with_tool = true, open_max_workers = 128, cache_dir = "/tmp/i3_deepdive_cache_train" }
|
||||
taskset = { id = "deepdive-v1" }
|
||||
harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], runtime = { type = "prime", labels = ["intellect-3.1", "deepdive"] } }
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "math"
|
||||
ratio = 0.3
|
||||
args = { min_avg_reward = 0.0, max_avg_reward = 0.874}
|
||||
taskset = { id = "i3_math_v1" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "logic-env"
|
||||
name = "logic"
|
||||
ratio = 0.2
|
||||
args = { min_avg_reward = 0.0, max_avg_reward = 0.874 }
|
||||
taskset = { id = "i3_logic_v1", filter = { max = 0.874 } }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "code-env"
|
||||
name = "code"
|
||||
ratio = 0.2
|
||||
args = { pool_size = 512 }
|
||||
taskset = { id = "i3_code_v1" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[[orchestrator.pre_batch_filters]]
|
||||
type = "zero_advantage"
|
||||
@@ -85,12 +85,14 @@ enforce = true
|
||||
interval = 25
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe-bench-verified-quick"
|
||||
args = { dataset_name="PrimeIntellect/SWE-Bench-Verified-Quick", max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
name = "swe-bench-verified"
|
||||
taskset = { id = "swebench-verified-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["intellect-3.1", "swe-bench-verified"] } }
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "aime2025"
|
||||
name = "aime2025"
|
||||
taskset = { id = "aime25-v1" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[inference.parallel]
|
||||
tp = 8
|
||||
@@ -50,17 +50,17 @@ max_off_policy_steps = 16
|
||||
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe"
|
||||
args = { max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
taskset = { id = "r2e-gym-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["minimax-swe", "swe"] } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 25
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe-bench-verified-quick"
|
||||
args = { dataset_name="PrimeIntellect/SWE-Bench-Verified-Quick", max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
name = "swe-bench-verified"
|
||||
taskset = { id = "swebench-verified-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["minimax-swe", "swe-bench-verified"] } }
|
||||
|
||||
[inference.parallel]
|
||||
tp = 8
|
||||
|
||||
@@ -42,9 +42,9 @@ group_size = 16
|
||||
max_completion_tokens = 2048
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "hendrycks-math"
|
||||
args = { dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", math_verify_max_workers = 128, math_verify_timeout = 60 }
|
||||
taskset = { id = "math-env-v1", dataset_name = "PrimeIntellect/Hendrycks-Math", dataset_subset = "default", task = { math_verify_timeout = 60 } }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[inference.parallel]
|
||||
tp = 4
|
||||
|
||||
@@ -49,14 +49,17 @@ max_off_policy_steps = 8
|
||||
max_completion_tokens = 32768
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "math-env"
|
||||
name = "math"
|
||||
taskset = { id = "i3_math_v1" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 25
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "aime2025"
|
||||
name = "aime2025"
|
||||
taskset = { id = "aime25-v1" }
|
||||
harness = { id = "null", runtime = { type = "subprocess" } }
|
||||
|
||||
[inference.parallel]
|
||||
tp = 8
|
||||
@@ -47,17 +47,17 @@ oversampling_factor = 2
|
||||
max_off_policy_steps = 16
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe"
|
||||
args = { max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
taskset = { id = "r2e-gym-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["qwen30b-swe", "swe"] } }
|
||||
|
||||
[orchestrator.eval]
|
||||
interval = 25
|
||||
|
||||
[[orchestrator.eval.env]]
|
||||
id = "mini-swe-agent-plus"
|
||||
name = "swe-bench-verified-quick"
|
||||
args = { dataset_name="PrimeIntellect/SWE-Bench-Verified-Quick", max_turns = 200, cpu_cores = 2, memory_gb = 4, disk_size_gb = 4, labels = ["mini-swe-agent-plus"], total_timeout_minutes = 720, sandbox_client_max_workers = 256, max_command_timeouts = 3, sandbox_command_timeout = 30}
|
||||
name = "swe-bench-verified"
|
||||
taskset = { id = "swebench-verified-v1" }
|
||||
harness = { id = "default", runtime = { type = "prime", labels = ["qwen30b-swe", "swe-bench-verified"] } }
|
||||
|
||||
[inference.parallel]
|
||||
tp = 8
|
||||
@@ -45,7 +45,7 @@ type = "zero_advantage"
|
||||
enforce = true
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "primeintellect/wiki-search"
|
||||
id = "wiki-search"
|
||||
|
||||
[ckpt] # Checkpoint at the end of training
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ batch_size = 1024
|
||||
group_size = 16
|
||||
|
||||
[[orchestrator.train.env]]
|
||||
id = "primeintellect/wordle"
|
||||
id = "wordle"
|
||||
name = "wordle"
|
||||
|
||||
[orchestrator.train.sampling]
|
||||
|
||||
@@ -1,10 +1,45 @@
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from pydantic import BaseModel
|
||||
from pydantic_config import BaseConfig as BaseConfig # noqa: F401
|
||||
from pydantic_config import cli # noqa: F401
|
||||
|
||||
|
||||
def to_toml_dict(config: BaseModel, exclude: set[str] | None = None) -> dict:
|
||||
"""Dump a config to a TOML-serializable dict.
|
||||
|
||||
TOML cannot represent null, so None fields left at their default are dropped
|
||||
(they re-resolve identically on re-parse) while explicitly-set None fields
|
||||
are encoded as the string ``"None"``, which ``BaseConfig`` converts back to
|
||||
``None``. Dropping those too would silently revert explicit None overrides
|
||||
(e.g. ``--trainer.model.compile None``) to their non-None defaults when the
|
||||
written config is re-parsed.
|
||||
"""
|
||||
return _encode_model(config, config.model_dump(exclude=exclude, mode="json"))
|
||||
|
||||
|
||||
def _encode_model(model: BaseModel, dumped: dict) -> dict:
|
||||
encoded = {}
|
||||
for name, value in dumped.items():
|
||||
if value is None:
|
||||
if name in model.model_fields_set:
|
||||
encoded[name] = "None"
|
||||
continue
|
||||
encoded[name] = _encode_value(getattr(model, name), value)
|
||||
return encoded
|
||||
|
||||
|
||||
def _encode_value(attr: Any, value: Any) -> Any:
|
||||
if isinstance(attr, BaseModel) and isinstance(value, dict):
|
||||
return _encode_model(attr, value)
|
||||
if isinstance(value, list) and isinstance(attr, (list, tuple)):
|
||||
return [_encode_value(a, v) for a, v in zip(attr, value)]
|
||||
if isinstance(value, dict) and isinstance(attr, dict):
|
||||
return {k: _encode_value(a, v) for (k, v), a in zip(value.items(), attr.values())}
|
||||
return "None" if value is None else value
|
||||
|
||||
|
||||
def find_package_resource(subdir: str) -> Path | None:
|
||||
"""Find a directory contributed to the `prime_rl` namespace package by any installed wheel.
|
||||
|
||||
|
||||
+48
-48
@@ -86,16 +86,16 @@ envs = [
|
||||
"graphwalks-v1",
|
||||
"gsm8k-v1",
|
||||
"i3-code-v1",
|
||||
"i3-logic-v1",
|
||||
"i3-math-v1",
|
||||
"i3-science-v1",
|
||||
"ifbench-v1",
|
||||
"ifeval-v1",
|
||||
"lean-v1",
|
||||
"livecodebench-v1",
|
||||
"logic-env",
|
||||
"longcot-mini-v1",
|
||||
"longcot-v1",
|
||||
"longpdfs-v1",
|
||||
"math-env",
|
||||
"math-env-v1",
|
||||
"math-python",
|
||||
"math500-v1",
|
||||
@@ -241,69 +241,69 @@ prime-rl-configs = { path = "packages/prime-rl-configs", editable = true }
|
||||
verifiers = { path = "deps/verifiers", editable = true }
|
||||
renderers = { path = "deps/renderers", editable = true }
|
||||
prime-pydantic-config = { path = "deps/pydantic-config", editable = true }
|
||||
aime24-v1 = { path = "deps/research-environments/environments/aime24_v1", editable = true }
|
||||
aime25-v1 = { path = "deps/research-environments/environments/aime25_v1", editable = true }
|
||||
aime26-v1 = { path = "deps/research-environments/environments/aime26_v1", editable = true }
|
||||
aime24-v1 = { path = "deps/research-environments/environments/math/aime24_v1", editable = true }
|
||||
aime25-v1 = { path = "deps/research-environments/environments/math/aime25_v1", editable = true }
|
||||
aime26-v1 = { path = "deps/research-environments/environments/math/aime26_v1", editable = true }
|
||||
alphabet-sort = { path = "deps/verifiers/environments/alphabet_sort", editable = true }
|
||||
alphabet-sort-v1 = { path = "deps/verifiers/environments/alphabet_sort_v1", editable = true }
|
||||
apex-shortlist-v1 = { path = "deps/research-environments/environments/apex_shortlist_v1", editable = true }
|
||||
arxivmath-v1 = { path = "deps/research-environments/environments/arxivmath_v1", editable = true }
|
||||
browsecomp-v1 = { path = "deps/research-environments/environments/browsecomp_v1", editable = true }
|
||||
apex-shortlist-v1 = { path = "deps/research-environments/environments/math/apex_shortlist_v1", editable = true }
|
||||
arxivmath-v1 = { path = "deps/research-environments/environments/math/arxivmath_v1", editable = true }
|
||||
browsecomp-v1 = { path = "deps/research-environments/environments/search/browsecomp_v1", editable = true }
|
||||
code-golf-v1 = { path = "deps/verifiers/environments/code_golf_v1", editable = true }
|
||||
color-codeword-v1 = { path = "deps/verifiers/environments/color_codeword_v1", editable = true }
|
||||
deepdive-v1 = { path = "deps/research-environments/environments/deepdive_v1", editable = true }
|
||||
deepdive-v1 = { path = "deps/research-environments/environments/search/deepdive_v1", editable = true }
|
||||
deepwiki-v1 = { path = "deps/verifiers/environments/deepwiki_v1", editable = true }
|
||||
forth-lang-v1 = { path = "deps/research-environments/environments/forth_lang_v1", editable = true }
|
||||
general-agent-v1 = { path = "deps/research-environments/environments/general_agent_v1", editable = true }
|
||||
forth-lang-v1 = { path = "deps/research-environments/environments/code/forth_lang_v1", editable = true }
|
||||
general-agent-v1 = { path = "deps/research-environments/environments/tool_use/general_agent_v1", editable = true }
|
||||
glossary-v1 = { path = "deps/verifiers/environments/glossary_v1", editable = true }
|
||||
gpqa-v1 = { path = "deps/research-environments/environments/gpqa_v1", editable = true }
|
||||
graphwalks-v1 = { path = "deps/research-environments/environments/graphwalks_v1", editable = true }
|
||||
gpqa-v1 = { path = "deps/research-environments/environments/science/gpqa_v1", editable = true }
|
||||
graphwalks-v1 = { path = "deps/research-environments/environments/long_context/graphwalks_v1", editable = true }
|
||||
gsm8k-v1 = { path = "deps/verifiers/environments/gsm8k_v1", editable = true }
|
||||
i3-code-v1 = { path = "deps/research-environments/environments/i3_code_v1", editable = true }
|
||||
i3-science-v1 = { path = "deps/research-environments/environments/i3_science_v1", editable = true }
|
||||
ifbench-v1 = { path = "deps/research-environments/environments/ifbench_v1", editable = true }
|
||||
ifeval-v1 = { path = "deps/research-environments/environments/ifeval_v1", editable = true }
|
||||
lean-v1 = { path = "deps/research-environments/environments/lean_v1", editable = true }
|
||||
livecodebench-v1 = { path = "deps/research-environments/environments/livecodebench_v1", editable = true }
|
||||
logic-env = { path = "deps/research-environments/environments/logic_env", editable = true }
|
||||
longcot-mini-v1 = { path = "deps/research-environments/environments/longcot_mini_v1", editable = true }
|
||||
longcot-v1 = { path = "deps/research-environments/environments/longcot_v1", editable = true }
|
||||
longpdfs-v1 = { path = "deps/research-environments/environments/longpdfs_v1", editable = true }
|
||||
math-env = { path = "deps/research-environments/environments/math_env", editable = true }
|
||||
math-env-v1 = { path = "deps/research-environments/environments/math_env_v1", editable = true }
|
||||
i3-code-v1 = { path = "deps/research-environments/environments/code/i3_code_v1", editable = true }
|
||||
i3-logic-v1 = { path = "deps/research-environments/environments/reasoning/i3_logic_v1", editable = true }
|
||||
i3-math-v1 = { path = "deps/research-environments/environments/math/i3_math_v1", editable = true }
|
||||
i3-science-v1 = { path = "deps/research-environments/environments/science/i3_science_v1", editable = true }
|
||||
ifbench-v1 = { path = "deps/research-environments/environments/if/ifbench_v1", editable = true }
|
||||
ifeval-v1 = { path = "deps/research-environments/environments/if/ifeval_v1", editable = true }
|
||||
lean-v1 = { path = "deps/research-environments/environments/math/lean_v1", editable = true }
|
||||
livecodebench-v1 = { path = "deps/research-environments/environments/code/livecodebench_v1", editable = true }
|
||||
longcot-mini-v1 = { path = "deps/research-environments/environments/long_context/longcot_mini_v1", editable = true }
|
||||
longcot-v1 = { path = "deps/research-environments/environments/long_context/longcot_v1", editable = true }
|
||||
longpdfs-v1 = { path = "deps/research-environments/environments/long_context/longpdfs_v1", editable = true }
|
||||
math-env-v1 = { path = "deps/research-environments/environments/math/math_env_v1", editable = true }
|
||||
math-python = { path = "deps/verifiers/environments/math_python", editable = true }
|
||||
math500-v1 = { path = "deps/research-environments/environments/math500_v1", editable = true }
|
||||
mmlu-pro-v1 = { path = "deps/research-environments/environments/mmlu_pro_v1", editable = true }
|
||||
mrcr-v2-v1 = { path = "deps/research-environments/environments/mrcr_v2_v1", editable = true }
|
||||
oolong-pairs-v1 = { path = "deps/research-environments/environments/oolong_pairs_v1", editable = true }
|
||||
oolong-real-v1 = { path = "deps/research-environments/environments/oolong_real_v1", editable = true }
|
||||
oolong-synth-v1 = { path = "deps/research-environments/environments/oolong_synth_v1", editable = true }
|
||||
openseeker-v1 = { path = "deps/research-environments/environments/openseeker_v1", editable = true }
|
||||
openthoughts-tblite-v1 = { path = "deps/research-environments/environments/openthoughts_tblite_v1", editable = true }
|
||||
papersearchqa-v1 = { path = "deps/research-environments/environments/papersearchqa_v1", editable = true }
|
||||
patterned-needle-in-haystack-v1 = { path = "deps/research-environments/environments/patterned_needle_in_haystack_v1", editable = true }
|
||||
prolog-v1 = { path = "deps/research-environments/environments/prolog_v1", editable = true }
|
||||
math500-v1 = { path = "deps/research-environments/environments/math/math500_v1", editable = true }
|
||||
mmlu-pro-v1 = { path = "deps/research-environments/environments/knowledge/mmlu_pro_v1", editable = true }
|
||||
mrcr-v2-v1 = { path = "deps/research-environments/environments/long_context/mrcr_v2_v1", editable = true }
|
||||
oolong-pairs-v1 = { path = "deps/research-environments/environments/long_context/oolong_pairs_v1", editable = true }
|
||||
oolong-real-v1 = { path = "deps/research-environments/environments/long_context/oolong_real_v1", editable = true }
|
||||
oolong-synth-v1 = { path = "deps/research-environments/environments/long_context/oolong_synth_v1", editable = true }
|
||||
openseeker-v1 = { path = "deps/research-environments/environments/search/openseeker_v1", editable = true }
|
||||
openthoughts-tblite-v1 = { path = "deps/research-environments/environments/terminal/openthoughts_tblite_v1", editable = true }
|
||||
papersearchqa-v1 = { path = "deps/research-environments/environments/search/papersearchqa_v1", editable = true }
|
||||
patterned-needle-in-haystack-v1 = { path = "deps/research-environments/environments/long_context/patterned_needle_in_haystack_v1", editable = true }
|
||||
prolog-v1 = { path = "deps/research-environments/environments/reasoning/prolog_v1", editable = true }
|
||||
r2e-gym-v1 = { path = "deps/research-environments/environments/swe/r2e_gym_v1", editable = true }
|
||||
redsearcher-v1 = { path = "deps/research-environments/environments/redsearcher_v1", editable = true }
|
||||
redsearcher-v1 = { path = "deps/research-environments/environments/search/redsearcher_v1", editable = true }
|
||||
reverse-text = { path = "deps/verifiers/environments/reverse_text", editable = true }
|
||||
reverse-text-v1 = { path = "deps/verifiers/environments/reverse_text_v1", editable = true }
|
||||
s1-deepresearch-v1 = { path = "deps/research-environments/environments/s1_deepresearch_v1", editable = true }
|
||||
s1-deepresearch-v1 = { path = "deps/research-environments/environments/search/s1_deepresearch_v1", editable = true }
|
||||
scaleswe-v1 = { path = "deps/research-environments/environments/swe/scaleswe_v1", editable = true }
|
||||
simpleqa-v1 = { path = "deps/research-environments/environments/simpleqa_v1", editable = true }
|
||||
simpleqa-verified-v1 = { path = "deps/research-environments/environments/simpleqa_verified_v1", editable = true }
|
||||
simpleqa-v1 = { path = "deps/research-environments/environments/knowledge/simpleqa_v1", editable = true }
|
||||
simpleqa-verified-v1 = { path = "deps/research-environments/environments/knowledge/simpleqa_verified_v1", editable = true }
|
||||
swebench-pro-v1 = { path = "deps/research-environments/environments/swe/swebench_pro_v1", editable = true }
|
||||
swebench-verified-v1 = { path = "deps/research-environments/environments/swe/swebench_verified_v1", editable = true }
|
||||
swelego-v1 = { path = "deps/research-environments/environments/swe/swelego_v1", editable = true }
|
||||
tau2-bench-v1 = { path = "deps/research-environments/environments/tau2_bench_v1", editable = true }
|
||||
terminal-bench-2-v1 = { path = "deps/research-environments/environments/terminal_bench_2_v1", editable = true }
|
||||
tmax-v1 = { path = "deps/research-environments/environments/tmax_v1", editable = true }
|
||||
unscramble-v1 = { path = "deps/research-environments/environments/unscramble_v1", editable = true }
|
||||
uuid-ctf-v1 = { path = "deps/research-environments/environments/uuid_ctf_v1", editable = true }
|
||||
verbatim-copy-v1 = { path = "deps/research-environments/environments/verbatim_copy_v1", editable = true }
|
||||
wideseek-v1 = { path = "deps/research-environments/environments/wideseek_v1", editable = true }
|
||||
tau2-bench-v1 = { path = "deps/research-environments/environments/tool_use/tau2_bench_v1", editable = true }
|
||||
terminal-bench-2-v1 = { path = "deps/research-environments/environments/terminal/terminal_bench_2_v1", editable = true }
|
||||
tmax-v1 = { path = "deps/research-environments/environments/terminal/tmax_v1", editable = true }
|
||||
unscramble-v1 = { path = "deps/research-environments/environments/reasoning/unscramble_v1", editable = true }
|
||||
uuid-ctf-v1 = { path = "deps/research-environments/environments/reasoning/uuid_ctf_v1", editable = true }
|
||||
verbatim-copy-v1 = { path = "deps/research-environments/environments/long_context/verbatim_copy_v1", editable = true }
|
||||
wideseek-v1 = { path = "deps/research-environments/environments/search/wideseek_v1", editable = true }
|
||||
wiki-search = { path = "deps/verifiers/environments/wiki_search", editable = true }
|
||||
wiki-search-v1 = { path = "deps/verifiers/environments/wiki_search_v1", editable = true }
|
||||
wikispeedia-v1 = { path = "deps/research-environments/environments/wikispeedia_v1", editable = true }
|
||||
wikispeedia-v1 = { path = "deps/research-environments/environments/reasoning/wikispeedia_v1", editable = true }
|
||||
wordle = { path = "deps/verifiers/environments/wordle", editable = true }
|
||||
wordle-v1 = { path = "deps/verifiers/environments/wordle_v1", editable = true }
|
||||
torch = { index = "pytorch-cu128" }
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
"""Export a verifiers v1 eval run (traces.jsonl) as an SFT dataset for `uv run sft`.
|
||||
|
||||
Reads a finished run's saved traces and reshapes them into the dataset shape the SFT trainer
|
||||
consumes directly (see `prime_rl.trainer.sft.data`): a `messages` column (OpenAI chat wire
|
||||
shape) plus a `tools` column (the tools the model was shown, from `Trace.tools`,
|
||||
JSON-encoded — heterogeneous JSON-schema dicts don't fit a fixed Arrow schema). One row per
|
||||
branch: a linear rollout contributes one sample, a compacted/subagent rollout one per branch
|
||||
(one training sample is built per branch).
|
||||
|
||||
Selection: generation-errored traces (`stop_condition == "error"`) always drop — a broken
|
||||
transcript is not a sample. A scoring-only error keeps the generation outcome as its stop
|
||||
condition and a complete conversation, so it stays; its reward may be partial/zero, which
|
||||
`--min-reward` handles.
|
||||
|
||||
Usage (from the prime-rl repo):
|
||||
uv run python scripts/export_sft.py <run-dir> [--min-reward 1.0] [--drop-truncated]
|
||||
[-o OUT_DIR] [--push HF_REPO_ID]
|
||||
|
||||
Writes `<run-dir>/sft/train.parquet` by default — point the trainer at it with
|
||||
`--data.name <run-dir>/sft`. Requires a verifiers release carrying `Trace.tools`
|
||||
(PrimeIntellect-ai/verifiers#1963).
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from datasets import Dataset
|
||||
from verifiers.v1 import Trace, WireTrace
|
||||
from verifiers.v1.dialects.chat import message_to_wire
|
||||
|
||||
|
||||
def sft_rows(trace: Trace) -> list[dict]:
|
||||
"""A trace's SFT rows — one per branch: the branch's conversation as OpenAI chat wire
|
||||
dicts plus the trace's advertised tools, JSON-encoded."""
|
||||
tools = json.dumps([t.model_dump(mode="json", exclude_none=True) for t in trace.tools or []])
|
||||
return [
|
||||
{
|
||||
"messages": [message_to_wire(m) for m in branch.messages],
|
||||
"tools": tools,
|
||||
}
|
||||
for branch in trace.branches
|
||||
if branch.messages
|
||||
]
|
||||
|
||||
|
||||
def keep(trace: Trace, min_reward: float | None, drop_truncated: bool) -> bool:
|
||||
"""Whether a trace is worth training on (see module docstring for the error semantics)."""
|
||||
if trace.stop_condition == "error":
|
||||
return False
|
||||
if drop_truncated and trace.is_truncated:
|
||||
return False
|
||||
return min_reward is None or trace.reward >= min_reward
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||
parser.add_argument("run_dir", type=Path, help="the eval run dir (holds traces.jsonl)")
|
||||
parser.add_argument("--min-reward", type=float, default=None, help="keep traces with reward >= this")
|
||||
parser.add_argument("--drop-truncated", action="store_true", help="drop budget-cut traces")
|
||||
parser.add_argument("-o", "--output-dir", type=Path, default=None, help="default: <run-dir>/sft")
|
||||
parser.add_argument("--push", default=None, help="HF repo id to push to instead of writing parquet")
|
||||
args = parser.parse_args()
|
||||
|
||||
traces_path = args.run_dir / "traces.jsonl"
|
||||
if not traces_path.exists():
|
||||
raise SystemExit(f"no traces.jsonl in {args.run_dir}")
|
||||
|
||||
total, rows = 0, []
|
||||
with traces_path.open(encoding="utf-8") as f:
|
||||
for line in f:
|
||||
if not line.strip():
|
||||
continue
|
||||
total += 1
|
||||
trace = WireTrace.model_validate(json.loads(line))
|
||||
if keep(trace, args.min_reward, args.drop_truncated):
|
||||
rows.extend(sft_rows(trace))
|
||||
print(f"export-sft: {total} trace(s) -> {len(rows)} row(s)")
|
||||
if not rows:
|
||||
raise SystemExit("export-sft: no rows to export after selection")
|
||||
|
||||
dataset = Dataset.from_list(rows)
|
||||
if args.push:
|
||||
dataset.push_to_hub(args.push)
|
||||
print(f"export-sft: pushed to {args.push}")
|
||||
return
|
||||
out = args.output_dir or args.run_dir / "sft"
|
||||
out.mkdir(parents=True, exist_ok=True)
|
||||
dataset.to_parquet(str(out / "train.parquet"))
|
||||
print(f"export-sft: wrote {out / 'train.parquet'} -> train with --data.name {out}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -8,7 +8,7 @@ from typing import Any
|
||||
import tomli_w
|
||||
|
||||
from prime_rl.configs.inference import InferenceConfig
|
||||
from prime_rl.utils.config import cli
|
||||
from prime_rl.utils.config import cli, to_toml_dict
|
||||
from prime_rl.utils.logger import setup_logger
|
||||
from prime_rl.utils.pathing import format_log_message, get_config_dir, get_log_dir
|
||||
from prime_rl.utils.process import DEFAULT_COMMON_ENV_VARS, DEFAULT_INFERENCE_ENV_VARS, set_proc_title
|
||||
@@ -33,7 +33,7 @@ def write_config(config: InferenceConfig, output_dir: Path, exclude: set[str] |
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
config_path = output_dir / INFERENCE_TOML
|
||||
with open(config_path, "wb") as f:
|
||||
tomli_w.dump(config.model_dump(exclude=exclude, exclude_none=True, mode="json"), f)
|
||||
tomli_w.dump(to_toml_dict(config, exclude=exclude), f)
|
||||
return config_path
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ from prime_rl.configs.algorithm import FrozenModelConfig
|
||||
from prime_rl.configs.inference import VllmRouterConfig
|
||||
from prime_rl.configs.rl import RLConfig
|
||||
from prime_rl.entrypoints.inference import vllm_overrides_fragment
|
||||
from prime_rl.utils.config import cli
|
||||
from prime_rl.utils.config import cli, to_toml_dict
|
||||
from prime_rl.utils.logger import get_logger, setup_logger
|
||||
from prime_rl.utils.pathing import (
|
||||
clean_future_steps,
|
||||
@@ -56,9 +56,8 @@ def get_physical_gpu_ids() -> list[int]:
|
||||
def write_config(config: RLConfig, output_dir: Path, exclude: set[str] | None = None) -> None:
|
||||
"""Write resolved config to disk, excluding launcher-only fields."""
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
config_dict = config.model_dump(exclude=exclude, exclude_none=True, mode="json")
|
||||
with open(output_dir / RL_TOML, "wb") as f:
|
||||
tomli_w.dump(config_dict, f)
|
||||
tomli_w.dump(to_toml_dict(config, exclude=exclude), f)
|
||||
|
||||
|
||||
def write_subconfigs(config: RLConfig, output_dir: Path) -> None:
|
||||
@@ -66,16 +65,16 @@ def write_subconfigs(config: RLConfig, output_dir: Path) -> None:
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with open(output_dir / TRAINER_TOML, "wb") as f:
|
||||
tomli_w.dump(config.trainer.model_dump(exclude_none=True, mode="json"), f)
|
||||
tomli_w.dump(to_toml_dict(config.trainer), f)
|
||||
|
||||
with open(output_dir / ORCHESTRATOR_TOML, "wb") as f:
|
||||
tomli_w.dump(config.orchestrator.model_dump(exclude_none=True, mode="json"), f)
|
||||
tomli_w.dump(to_toml_dict(config.orchestrator), f)
|
||||
|
||||
if config.inference is not None:
|
||||
# Exclude launcher-only fields that are not needed by the vLLM server
|
||||
exclude_inference = {"deployment", "slurm", "output_dir", "dry_run"}
|
||||
with open(output_dir / INFERENCE_TOML, "wb") as f:
|
||||
tomli_w.dump(config.inference.model_dump(exclude=exclude_inference, exclude_none=True, mode="json"), f)
|
||||
tomli_w.dump(to_toml_dict(config.inference, exclude=exclude_inference), f)
|
||||
|
||||
|
||||
def rl_local(config: RLConfig):
|
||||
|
||||
@@ -9,7 +9,7 @@ from threading import Event, Thread
|
||||
import tomli_w
|
||||
|
||||
from prime_rl.configs.sft import SFTConfig
|
||||
from prime_rl.utils.config import cli
|
||||
from prime_rl.utils.config import cli, to_toml_dict
|
||||
from prime_rl.utils.logger import setup_logger
|
||||
from prime_rl.utils.pathing import format_log_message, get_config_dir, get_log_dir, validate_output_dir
|
||||
from prime_rl.utils.process import (
|
||||
@@ -28,9 +28,8 @@ SFT_SBATCH = "sft.sbatch"
|
||||
def write_config(config: SFTConfig, config_path: Path, exclude: set[str] | None = None) -> None:
|
||||
"""Write resolved config to disk, excluding launcher-only fields."""
|
||||
config_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
config_dict = config.model_dump(exclude=exclude, exclude_none=True, mode="json")
|
||||
with open(config_path, "wb") as f:
|
||||
tomli_w.dump(config_dict, f)
|
||||
tomli_w.dump(to_toml_dict(config, exclude=exclude), f)
|
||||
|
||||
|
||||
def write_slurm_script(config: SFTConfig, config_path: Path, script_path: Path) -> None:
|
||||
|
||||
@@ -72,6 +72,7 @@ from prime_rl.trainer.model import setup_tokenizer
|
||||
from prime_rl.transport import TrainingBatch, setup_training_batch_sender
|
||||
from prime_rl.utils.async_utils import EventLoopLagMonitor, EventLoopLagStats, safe_cancel
|
||||
from prime_rl.utils.client import init_nccl_broadcast
|
||||
from prime_rl.utils.config import to_toml_dict
|
||||
from prime_rl.utils.heartbeat import Heartbeat
|
||||
from prime_rl.utils.logger import format_time, get_logger, setup_logger
|
||||
from prime_rl.utils.monitor import setup_monitor
|
||||
@@ -195,7 +196,7 @@ class Orchestrator:
|
||||
config_dir = config.output_dir / "control"
|
||||
config_dir.mkdir(parents=True, exist_ok=True)
|
||||
with open(config_dir / "orch.toml", "wb") as f:
|
||||
tomli_w.dump(config.model_dump(exclude_none=True, mode="json"), f)
|
||||
tomli_w.dump(to_toml_dict(config), f)
|
||||
|
||||
get_logger().info(f"Initializing tokenizer ({config.tokenizer})")
|
||||
self.tokenizer = setup_tokenizer(config.tokenizer)
|
||||
|
||||
@@ -30,6 +30,19 @@ from prime_rl.transport import TrainingSample
|
||||
from prime_rl.utils.logger import get_logger
|
||||
|
||||
|
||||
def payload_tokens(rollout: Rollout) -> int:
|
||||
"""Token cost of the rollout's trainer-bound payload — the samples built by
|
||||
``process_rollout``. This is what actually ships: forked traces can drop
|
||||
branches with no trainable tokens, so ``Trace.num_total_tokens`` (which sums
|
||||
over all branches) may overcount. For linear traces the two agree.
|
||||
|
||||
Zero-payload rollouts (no trainable samples at all) fall back to the trace
|
||||
total so they still advance token batching — a degenerate all-zero-payload
|
||||
stream then ships empty batches and trips the orchestrator's
|
||||
consecutive-empty-batch abort instead of stalling the readiness check."""
|
||||
return sum(len(sample.token_ids) for sample in rollout.samples) or rollout.num_total_tokens
|
||||
|
||||
|
||||
class TrainSink:
|
||||
"""Three-level train sink. Constructed once, fed via ``add(rollout)``."""
|
||||
|
||||
@@ -57,15 +70,18 @@ class TrainSink:
|
||||
self.pre_filters = pre_filters
|
||||
self.post_filters = post_filters
|
||||
|
||||
# Observation window for the next shipped batch: rollouts of groups
|
||||
# finalized since the last ship (errored + filtered + survivors).
|
||||
# In-progress groups stay out until they finalize.
|
||||
self.pending_rollouts: TrainRollouts = TrainRollouts()
|
||||
# Keyed by the dispatcher's group UUID. ``(env_name, task_idx)``
|
||||
# isn't unique — the same task can be re-sampled while an
|
||||
# earlier group is still in flight
|
||||
self.pending_rollouts: TrainRollouts = TrainRollouts()
|
||||
self.pending_groups: dict[uuid.UUID, list[Rollout]] = defaultdict(list)
|
||||
self.pending_batch: list[Rollout] = []
|
||||
# Running token total of ``pending_batch`` (token-batched runs), kept in
|
||||
# sync on append/pop so the readiness check never re-walks the uncached
|
||||
# ``Trace.num_total_tokens`` graph property per arrival.
|
||||
# Running payload-token total of ``pending_batch`` (token-batched
|
||||
# runs), kept in sync on append/pop so the readiness check never
|
||||
# re-sums per arrival.
|
||||
self.pending_tokens: int = 0
|
||||
|
||||
# Reset by the orchestrator after each ship via ``reset_pre_filter_stats``
|
||||
@@ -117,13 +133,18 @@ class TrainSink:
|
||||
|
||||
async def add(self, rollout: Rollout) -> TrainBatch | None:
|
||||
"""Process one arrival; finalize the group on the ``group_size``-th
|
||||
arrival; return a ``TrainBatch`` if the batch threshold is met."""
|
||||
arrival; return a ``TrainBatch`` if the finalization pushed (or left)
|
||||
the batch over its threshold. Arrivals into still-incomplete groups
|
||||
never ship a batch."""
|
||||
await self.process_rollout(rollout)
|
||||
env_name = rollout.env_name
|
||||
self.pending_rollouts.append(rollout)
|
||||
self.pending_groups[rollout.group_id].append(rollout)
|
||||
if len(self.pending_groups[rollout.group_id]) >= self.group_size_for(env_name):
|
||||
await self.process_group(rollout.group_id)
|
||||
if len(self.pending_groups[rollout.group_id]) < self.group_size_for(env_name):
|
||||
return None
|
||||
await self.process_group(rollout.group_id)
|
||||
# ``pending_batch`` only grows on group finalization, so readiness is
|
||||
# only re-checked here — the window of a shipped batch then always
|
||||
# contains at least the group that finalized it.
|
||||
ready = (
|
||||
len(self.pending_batch) >= self.batch_size
|
||||
if self.batch_size is not None
|
||||
@@ -159,6 +180,12 @@ class TrainSink:
|
||||
group = self.pending_groups.pop(group_id, [])
|
||||
if not group:
|
||||
return
|
||||
# Window membership follows group finalization, not arrival: a rollout
|
||||
# only becomes observable (metrics / persistence) once its whole group
|
||||
# is finalized, so a batch's window never claims rollouts of a group
|
||||
# that ships later. Dropped groups still land here — they were observed.
|
||||
for r in group:
|
||||
self.pending_rollouts.append(r)
|
||||
env_name = group[0].env_name
|
||||
task_idx = group[0].task.data.idx
|
||||
survivors = [r for r in group if not r.has_error]
|
||||
@@ -211,7 +238,7 @@ class TrainSink:
|
||||
r.is_filtered = False
|
||||
self.pending_batch.append(r)
|
||||
if self.token_batch_size is not None:
|
||||
self.pending_tokens += r.num_total_tokens
|
||||
self.pending_tokens += payload_tokens(r)
|
||||
|
||||
# Per-group summary. One line per finalized group; per-filter
|
||||
# detection breakdown lives at debug level in ``apply_filters``
|
||||
@@ -238,7 +265,7 @@ class TrainSink:
|
||||
cut = 0
|
||||
running = 0
|
||||
for i, r in enumerate(self.pending_batch):
|
||||
running += r.num_total_tokens
|
||||
running += payload_tokens(r)
|
||||
cut = i + 1
|
||||
if running >= self.token_batch_size:
|
||||
break
|
||||
@@ -253,11 +280,12 @@ class TrainSink:
|
||||
# advantage stream and loss routing on each sample. Filtered rollouts don't ship.
|
||||
samples: list[TrainingSample] = [sample for r in cohort if not r.is_filtered for sample in r.samples]
|
||||
|
||||
# ``rollouts`` is the whole arrival window (errored + filtered + survivors); ``samples`` is
|
||||
# the shipped cohort's trainable payload. ``rollouts.effective`` / ``rollouts.metrics`` derive
|
||||
# the clean subset + metric views on demand. Reset the window only when the batch actually
|
||||
# ships (non-empty samples) — an empty batch is dropped unlogged by the orchestrator, so keep
|
||||
# accumulating its arrivals (and any overflow) into the next shipped batch's window.
|
||||
# ``rollouts`` is the observation window — every rollout of every group finalized since the
|
||||
# last ship (errored + filtered + survivors) — while ``samples`` is the shipped cohort's
|
||||
# trainable payload. ``rollouts.effective`` / ``rollouts.metrics`` derive the clean subset +
|
||||
# metric views on demand. Reset the window only when the batch actually ships (non-empty
|
||||
# samples) — an empty batch is dropped unlogged by the orchestrator, so keep accumulating its
|
||||
# finalized groups (and any overflow) into the next shipped batch's window.
|
||||
rollouts = self.pending_rollouts
|
||||
if samples:
|
||||
self.pending_rollouts = TrainRollouts()
|
||||
|
||||
@@ -147,11 +147,12 @@ class Rollout(vf.Trace[DataT], Generic[DataT]):
|
||||
|
||||
@dataclass
|
||||
class TrainBatch:
|
||||
"""``rollouts`` is the full arrival window since the last ship (errored + filtered included; its
|
||||
``.effective`` / ``.metrics`` views drive logging). ``samples`` is the trainer-bound payload (the
|
||||
shipped cohort's post-filter survivors) — an empty list means nothing ships, which would stall the
|
||||
trainer. Trainable counts derive from ``rollouts`` (``r.is_trainable``) and token totals from
|
||||
``samples``, so neither is carried as a field."""
|
||||
"""``rollouts`` is the observation window since the last ship — every rollout of every group
|
||||
finalized in that span (errored + filtered included; rollouts of still-incomplete groups wait
|
||||
for a later window). Its ``.effective`` / ``.metrics`` views drive logging. ``samples`` is the
|
||||
trainer-bound payload (the shipped cohort's post-filter survivors) — an empty list means nothing
|
||||
ships, which would stall the trainer. Trainable counts derive from ``rollouts``
|
||||
(``r.is_trainable``) and token totals from ``samples``, so neither is carried as a field."""
|
||||
|
||||
rollouts: TrainRollouts
|
||||
samples: list[TrainingSample]
|
||||
|
||||
@@ -92,6 +92,9 @@ class InterceptHandler(logging.Handler):
|
||||
if self.prefix is not None:
|
||||
message = f"[{self.prefix}] {message}"
|
||||
logger.opt(depth=depth, exception=record.exc_info).log(level, message)
|
||||
# A failed worker exits immediately, so drain its queued JSON traceback first.
|
||||
if _JSON_LOGGING and record.exc_info:
|
||||
logger.complete()
|
||||
|
||||
|
||||
def setup_logger(
|
||||
|
||||
@@ -13,7 +13,7 @@ from prime_rl.configs.rl import RLConfig
|
||||
from prime_rl.configs.sft import SFTConfig
|
||||
from prime_rl.configs.trainer import ModelConfig as TrainerModelConfig
|
||||
from prime_rl.configs.trainer import TrainerConfig
|
||||
from prime_rl.utils.config import BaseConfig, cli
|
||||
from prime_rl.utils.config import BaseConfig, cli, to_toml_dict
|
||||
|
||||
# All config config classes
|
||||
CONFIG_CLASSES = [
|
||||
@@ -167,6 +167,22 @@ def test_removed_fused_lm_head_chunk_size_field_is_rejected():
|
||||
TrainerModelConfig.model_validate({"fused_lm_head_chunk_size": "auto"})
|
||||
|
||||
|
||||
def test_to_toml_dict_roundtrips_explicit_none(tmp_path):
|
||||
"""An explicit None override survives the write/re-parse round-trip used by SLURM launches."""
|
||||
config = cli(TrainerConfig, args=["--model.compile", "None", "--optim.max_norm", "None"])
|
||||
assert config.model.compile is None
|
||||
assert config.optim.max_norm is None
|
||||
|
||||
write_toml(tmp_path / "cfg.toml", to_toml_dict(config))
|
||||
reloaded = cli(TrainerConfig, args=["@", str(tmp_path / "cfg.toml")])
|
||||
assert reloaded.model.compile is None
|
||||
assert reloaded.optim.max_norm is None
|
||||
assert reloaded == config
|
||||
|
||||
# Unset None fields stay dropped, so defaults still resolve on re-parse
|
||||
assert "max_steps" not in to_toml_dict(cli(TrainerConfig, args=[]))
|
||||
|
||||
|
||||
def test_env_algo_overrides_top_level():
|
||||
config = OrchestratorConfig.model_validate(
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "aime24-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/aime24_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/aime24_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -82,7 +82,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "aime25-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/aime25_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/aime25_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -97,7 +97,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "aime26-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/aime26_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/aime26_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -273,7 +273,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "apex-shortlist-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/apex_shortlist_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/apex_shortlist_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -297,7 +297,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "arxivmath-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/arxivmath_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/arxivmath_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -412,7 +412,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "browsecomp-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/browsecomp_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/browsecomp_v1" }
|
||||
dependencies = [
|
||||
{ name = "httpx" },
|
||||
{ name = "openai" },
|
||||
@@ -918,7 +918,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "deepdive-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/deepdive_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/deepdive_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -1348,7 +1348,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "forth-lang-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/forth_lang_v1" }
|
||||
source = { editable = "deps/research-environments/environments/code/forth_lang_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -1404,7 +1404,7 @@ http = [
|
||||
[[package]]
|
||||
name = "general-agent-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/general_agent_v1" }
|
||||
source = { editable = "deps/research-environments/environments/tool_use/general_agent_v1" }
|
||||
dependencies = [
|
||||
{ name = "pydantic" },
|
||||
{ name = "verifiers", extra = ["harbor"] },
|
||||
@@ -1520,7 +1520,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "gpqa-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/gpqa_v1" }
|
||||
source = { editable = "deps/research-environments/environments/science/gpqa_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -1537,7 +1537,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "graphwalks-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/graphwalks_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/graphwalks_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -1788,7 +1788,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "i3-code-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/i3_code_v1" }
|
||||
source = { editable = "deps/research-environments/environments/code/i3_code_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "orjson" },
|
||||
@@ -1802,10 +1802,46 @@ requires-dist = [
|
||||
{ name = "verifiers", specifier = ">=0.2.0" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "i3-logic-v1"
|
||||
version = "0.2.0"
|
||||
source = { editable = "deps/research-environments/environments/reasoning/i3_logic_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "markdown" },
|
||||
{ name = "math-verify" },
|
||||
{ name = "sympy" },
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "datasets" },
|
||||
{ name = "markdown", specifier = ">=3.5.1" },
|
||||
{ name = "math-verify", specifier = ">=0.8.0" },
|
||||
{ name = "sympy", specifier = ">=1.12.0" },
|
||||
{ name = "verifiers", specifier = ">=0.2.0" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "i3-math-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/math/i3_math_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers", specifier = ">=0.2.0" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "i3-science-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/i3_science_v1" }
|
||||
source = { editable = "deps/research-environments/environments/science/i3_science_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -1838,7 +1874,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "ifbench-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/ifbench_v1" }
|
||||
source = { editable = "deps/research-environments/environments/if/ifbench_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "emoji" },
|
||||
@@ -1869,7 +1905,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "ifeval-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/ifeval_v1" }
|
||||
source = { editable = "deps/research-environments/environments/if/ifeval_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "immutabledict" },
|
||||
@@ -2267,7 +2303,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "lean-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/lean_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/lean_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -2330,7 +2366,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "livecodebench-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/livecodebench_v1" }
|
||||
source = { editable = "deps/research-environments/environments/code/livecodebench_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "huggingface-hub" },
|
||||
@@ -2379,25 +2415,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/ef/11292bb0b85cf4c93447cab5a29f64576ed14d3ab4280e35ddd23486594a/lm_format_enforcer-0.11.3-py3-none-any.whl", hash = "sha256:cf586350875def1ae7a8fba84fcbbfc8371424b6c9d05c1fcba70aa233fbf06f", size = 45418, upload-time = "2025-08-24T19:37:46.325Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "logic-env"
|
||||
version = "0.1.2"
|
||||
source = { editable = "deps/research-environments/environments/logic_env" }
|
||||
dependencies = [
|
||||
{ name = "markdown" },
|
||||
{ name = "math-verify" },
|
||||
{ name = "sympy" },
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "markdown", specifier = ">=3.5.1" },
|
||||
{ name = "math-verify", specifier = ">=0.8.0" },
|
||||
{ name = "sympy", specifier = ">=1.12.0" },
|
||||
{ name = "verifiers", specifier = ">=0.1.15.dev443" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "loguru"
|
||||
version = "0.7.3"
|
||||
@@ -2424,7 +2441,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "longcot-mini-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/longcot_mini_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/longcot_mini_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "longcot" },
|
||||
@@ -2441,7 +2458,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "longcot-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/longcot_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/longcot_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "longcot" },
|
||||
@@ -2458,7 +2475,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "longpdfs-v1"
|
||||
version = "0.0.1"
|
||||
source = { editable = "deps/research-environments/environments/longpdfs_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/longpdfs_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -2523,27 +2540,10 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/89/e0/4486f11e51bbba8b0c041098859e869e304d1c261e59244baa3d295d47b7/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77f0643abe7495da77fb436f50f8dab76dbc6e5fd25d39589a0f1fe6548bfa2b", size = 23015, upload-time = "2025-09-27T18:36:37.868Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "math-env"
|
||||
version = "0.1.6"
|
||||
source = { editable = "deps/research-environments/environments/math_env" }
|
||||
dependencies = [
|
||||
{ name = "math-verify" },
|
||||
{ name = "prime-sandboxes" },
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "math-verify", specifier = ">=0.8.0" },
|
||||
{ name = "prime-sandboxes", specifier = ">=0.2.19" },
|
||||
{ name = "verifiers", specifier = ">=0.1.15.dev443" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "math-env-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/math_env_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/math_env_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -2587,7 +2587,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "math500-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/math500_v1" }
|
||||
source = { editable = "deps/research-environments/environments/math/math500_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -2730,7 +2730,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "mmlu-pro-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/mmlu_pro_v1" }
|
||||
source = { editable = "deps/research-environments/environments/knowledge/mmlu_pro_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -2802,7 +2802,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "mrcr-v2-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/mrcr_v2_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/mrcr_v2_v1" }
|
||||
dependencies = [
|
||||
{ name = "filelock" },
|
||||
{ name = "httpx" },
|
||||
@@ -3315,7 +3315,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "oolong-pairs-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/oolong_pairs_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/oolong_pairs_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "huggingface-hub" },
|
||||
@@ -3332,7 +3332,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "oolong-real-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/oolong_real_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/oolong_real_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -3349,7 +3349,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "oolong-synth-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/oolong_synth_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/oolong_synth_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -3435,7 +3435,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "openseeker-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/openseeker_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/openseeker_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -3575,7 +3575,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "openthoughts-tblite-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/openthoughts_tblite_v1" }
|
||||
source = { editable = "deps/research-environments/environments/terminal/openthoughts_tblite_v1" }
|
||||
dependencies = [
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
@@ -3651,7 +3651,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "papersearchqa-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/papersearchqa_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/papersearchqa_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -3695,7 +3695,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "patterned-needle-in-haystack-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/patterned_needle_in_haystack_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/patterned_needle_in_haystack_v1" }
|
||||
dependencies = [
|
||||
{ name = "nltk" },
|
||||
{ name = "verifiers" },
|
||||
@@ -3977,16 +3977,16 @@ envs = [
|
||||
{ name = "graphwalks-v1" },
|
||||
{ name = "gsm8k-v1" },
|
||||
{ name = "i3-code-v1" },
|
||||
{ name = "i3-logic-v1" },
|
||||
{ name = "i3-math-v1" },
|
||||
{ name = "i3-science-v1" },
|
||||
{ name = "ifbench-v1" },
|
||||
{ name = "ifeval-v1" },
|
||||
{ name = "lean-v1" },
|
||||
{ name = "livecodebench-v1" },
|
||||
{ name = "logic-env" },
|
||||
{ name = "longcot-mini-v1" },
|
||||
{ name = "longcot-v1" },
|
||||
{ name = "longpdfs-v1" },
|
||||
{ name = "math-env" },
|
||||
{ name = "math-env-v1" },
|
||||
{ name = "math-python" },
|
||||
{ name = "math500-v1" },
|
||||
@@ -4058,72 +4058,72 @@ mamba-ssm = [
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "aime24-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/aime24_v1" },
|
||||
{ name = "aime25-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/aime25_v1" },
|
||||
{ name = "aime26-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/aime26_v1" },
|
||||
{ name = "aime24-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/aime24_v1" },
|
||||
{ name = "aime25-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/aime25_v1" },
|
||||
{ name = "aime26-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/aime26_v1" },
|
||||
{ name = "aiolimiter", specifier = ">=1.2.1" },
|
||||
{ name = "alphabet-sort", marker = "extra == 'envs'", editable = "deps/verifiers/environments/alphabet_sort" },
|
||||
{ name = "alphabet-sort-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/alphabet_sort_v1" },
|
||||
{ name = "apex-shortlist-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/apex_shortlist_v1" },
|
||||
{ name = "arxivmath-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/arxivmath_v1" },
|
||||
{ name = "apex-shortlist-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/apex_shortlist_v1" },
|
||||
{ name = "arxivmath-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/arxivmath_v1" },
|
||||
{ name = "beartype", specifier = ">=0.21.0" },
|
||||
{ name = "browsecomp-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/browsecomp_v1" },
|
||||
{ name = "browsecomp-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/browsecomp_v1" },
|
||||
{ name = "code-golf-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/code_golf_v1" },
|
||||
{ name = "color-codeword-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/color_codeword_v1" },
|
||||
{ name = "datasets", specifier = ">=4.0.0" },
|
||||
{ name = "deep-ep", marker = "platform_machine == 'x86_64' and extra == 'disagg'", url = "https://github.com/PrimeIntellect-ai/prime-rl/releases/download/v0.5.0/deep_ep-1.2.1+29d31c0-cp312-cp312-linux_x86_64.whl" },
|
||||
{ name = "deep-gemm", marker = "platform_machine == 'x86_64' and extra == 'disagg'", url = "https://github.com/PrimeIntellect-ai/prime-rl/releases/download/v0.5.0/deep_gemm-2.5.0+891d57b-cp312-cp312-linux_x86_64.whl" },
|
||||
{ name = "deepdive-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/deepdive_v1" },
|
||||
{ name = "deepdive-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/deepdive_v1" },
|
||||
{ name = "deepwiki-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/deepwiki_v1" },
|
||||
{ name = "dion", git = "https://github.com/samsja/dion.git?rev=d891eeb" },
|
||||
{ name = "flash-attn", marker = "platform_machine == 'x86_64' and extra == 'flash-attn'", url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.9.4/flash_attn-2.8.3+cu128torch2.11-cp312-cp312-linux_x86_64.whl" },
|
||||
{ name = "flash-attn-3", marker = "extra == 'flash-attn-3'", index = "https://download.pytorch.org/whl/test/cu128" },
|
||||
{ name = "flash-attn-4", marker = "extra == 'flash-attn-cute'", git = "https://github.com/Dao-AILab/flash-attention.git?subdirectory=flash_attn%2Fcute&rev=96bd151" },
|
||||
{ name = "flash-linear-attention", git = "https://github.com/fla-org/flash-linear-attention" },
|
||||
{ name = "forth-lang-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/forth_lang_v1" },
|
||||
{ name = "general-agent-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/general_agent_v1" },
|
||||
{ name = "forth-lang-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/code/forth_lang_v1" },
|
||||
{ name = "general-agent-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/tool_use/general_agent_v1" },
|
||||
{ name = "glossary-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/glossary_v1" },
|
||||
{ name = "gpqa-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/gpqa_v1" },
|
||||
{ name = "graphwalks-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/graphwalks_v1" },
|
||||
{ name = "gpqa-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/science/gpqa_v1" },
|
||||
{ name = "graphwalks-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/graphwalks_v1" },
|
||||
{ name = "gsm8k-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/gsm8k_v1" },
|
||||
{ name = "i3-code-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/i3_code_v1" },
|
||||
{ name = "i3-science-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/i3_science_v1" },
|
||||
{ name = "ifbench-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/ifbench_v1" },
|
||||
{ name = "ifeval-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/ifeval_v1" },
|
||||
{ name = "i3-code-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/code/i3_code_v1" },
|
||||
{ name = "i3-logic-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/reasoning/i3_logic_v1" },
|
||||
{ name = "i3-math-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/i3_math_v1" },
|
||||
{ name = "i3-science-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/science/i3_science_v1" },
|
||||
{ name = "ifbench-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/if/ifbench_v1" },
|
||||
{ name = "ifeval-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/if/ifeval_v1" },
|
||||
{ name = "jaxtyping", specifier = ">=0.3.2" },
|
||||
{ name = "kernels", marker = "extra == 'gpt-oss'" },
|
||||
{ name = "lean-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/lean_v1" },
|
||||
{ name = "lean-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/lean_v1" },
|
||||
{ name = "liger-kernel", specifier = ">=0.5.10" },
|
||||
{ name = "livecodebench-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/livecodebench_v1" },
|
||||
{ name = "logic-env", marker = "extra == 'envs'", editable = "deps/research-environments/environments/logic_env" },
|
||||
{ name = "livecodebench-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/code/livecodebench_v1" },
|
||||
{ name = "loguru", specifier = ">=0.7.3" },
|
||||
{ name = "longcot-mini-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/longcot_mini_v1" },
|
||||
{ name = "longcot-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/longcot_v1" },
|
||||
{ name = "longpdfs-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/longpdfs_v1" },
|
||||
{ name = "math-env", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math_env" },
|
||||
{ name = "math-env-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math_env_v1" },
|
||||
{ name = "longcot-mini-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/longcot_mini_v1" },
|
||||
{ name = "longcot-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/longcot_v1" },
|
||||
{ name = "longpdfs-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/longpdfs_v1" },
|
||||
{ name = "math-env-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/math_env_v1" },
|
||||
{ name = "math-python", marker = "extra == 'envs'", editable = "deps/verifiers/environments/math_python" },
|
||||
{ name = "math500-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math500_v1" },
|
||||
{ name = "mmlu-pro-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/mmlu_pro_v1" },
|
||||
{ name = "math500-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/math/math500_v1" },
|
||||
{ name = "mmlu-pro-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/knowledge/mmlu_pro_v1" },
|
||||
{ name = "modelexpress", marker = "extra == 'modelexpress'", specifier = "==0.3.0" },
|
||||
{ name = "mooncake-transfer-engine", specifier = ">=0.3.10.post2" },
|
||||
{ name = "mrcr-v2-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/mrcr_v2_v1" },
|
||||
{ name = "mrcr-v2-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/mrcr_v2_v1" },
|
||||
{ name = "msgspec", specifier = ">=0.18" },
|
||||
{ name = "nixl", marker = "extra == 'disagg'" },
|
||||
{ name = "nixl-cu12", marker = "platform_machine == 'x86_64' and extra == 'disagg'", url = "https://github.com/PrimeIntellect-ai/prime-rl/releases/download/v0.5.0/nixl_cu12-0.10.1-cp312-cp312-linux_x86_64.whl" },
|
||||
{ name = "numpy", specifier = ">=2.2.6" },
|
||||
{ name = "nvidia-ml-py", specifier = ">=12.575.51" },
|
||||
{ name = "oolong-pairs-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/oolong_pairs_v1" },
|
||||
{ name = "oolong-real-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/oolong_real_v1" },
|
||||
{ name = "oolong-synth-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/oolong_synth_v1" },
|
||||
{ name = "oolong-pairs-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/oolong_pairs_v1" },
|
||||
{ name = "oolong-real-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/oolong_real_v1" },
|
||||
{ name = "oolong-synth-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/oolong_synth_v1" },
|
||||
{ name = "openai", specifier = ">=1.106.1" },
|
||||
{ name = "openseeker-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/openseeker_v1" },
|
||||
{ name = "openthoughts-tblite-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/openthoughts_tblite_v1" },
|
||||
{ name = "openseeker-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/openseeker_v1" },
|
||||
{ name = "openthoughts-tblite-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/terminal/openthoughts_tblite_v1" },
|
||||
{ name = "orjson", specifier = ">=3.10" },
|
||||
{ name = "orjson", specifier = ">=3.11.0" },
|
||||
{ name = "pandas", specifier = ">=2.0" },
|
||||
{ name = "papersearchqa-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/papersearchqa_v1" },
|
||||
{ name = "patterned-needle-in-haystack-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/patterned_needle_in_haystack_v1" },
|
||||
{ name = "papersearchqa-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/papersearchqa_v1" },
|
||||
{ name = "patterned-needle-in-haystack-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/patterned_needle_in_haystack_v1" },
|
||||
{ name = "prime", specifier = ">=0.6.4" },
|
||||
{ name = "prime-pydantic-config", editable = "deps/pydantic-config" },
|
||||
{ name = "prime-rl", extras = ["disagg"], marker = "extra == 'all'" },
|
||||
@@ -4132,41 +4132,41 @@ requires-dist = [
|
||||
{ name = "prime-rl", extras = ["flash-attn-cute"], marker = "extra == 'all'" },
|
||||
{ name = "prime-rl", extras = ["quack"], marker = "extra == 'all'" },
|
||||
{ name = "prime-rl-configs", editable = "packages/prime-rl-configs" },
|
||||
{ name = "prolog-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/prolog_v1" },
|
||||
{ name = "prolog-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/reasoning/prolog_v1" },
|
||||
{ name = "pyarrow", specifier = ">=21.0.0" },
|
||||
{ name = "pybase64", specifier = ">=1.4.2" },
|
||||
{ name = "pyzmq", specifier = ">=27.1.0" },
|
||||
{ name = "quack-kernels", marker = "extra == 'quack'", specifier = ">=0.4.1" },
|
||||
{ name = "r2e-gym-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/swe/r2e_gym_v1" },
|
||||
{ name = "redsearcher-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/redsearcher_v1" },
|
||||
{ name = "redsearcher-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/redsearcher_v1" },
|
||||
{ name = "renderers", editable = "deps/renderers" },
|
||||
{ name = "reverse-text", marker = "extra == 'envs'", editable = "deps/verifiers/environments/reverse_text" },
|
||||
{ name = "reverse-text-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/reverse_text_v1" },
|
||||
{ name = "rich", specifier = ">=14.0.0" },
|
||||
{ name = "ring-flash-attn", specifier = ">=0.1.8" },
|
||||
{ name = "s1-deepresearch-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/s1_deepresearch_v1" },
|
||||
{ name = "s1-deepresearch-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/s1_deepresearch_v1" },
|
||||
{ name = "scaleswe-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/swe/scaleswe_v1" },
|
||||
{ name = "setproctitle", specifier = ">=1.3.0" },
|
||||
{ name = "simpleqa-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/simpleqa_v1" },
|
||||
{ name = "simpleqa-verified-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/simpleqa_verified_v1" },
|
||||
{ name = "simpleqa-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/knowledge/simpleqa_v1" },
|
||||
{ name = "simpleqa-verified-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/knowledge/simpleqa_verified_v1" },
|
||||
{ name = "swebench-pro-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/swe/swebench_pro_v1" },
|
||||
{ name = "swebench-verified-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/swe/swebench_verified_v1" },
|
||||
{ name = "swelego-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/swe/swelego_v1" },
|
||||
{ name = "tau2-bench-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/tau2_bench_v1" },
|
||||
{ name = "tau2-bench-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/tool_use/tau2_bench_v1" },
|
||||
{ name = "tenacity", specifier = ">=8.2.0" },
|
||||
{ name = "terminal-bench-2-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/terminal_bench_2_v1" },
|
||||
{ name = "terminal-bench-2-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/terminal/terminal_bench_2_v1" },
|
||||
{ name = "tilelang", specifier = ">=0.1.8" },
|
||||
{ name = "tmax-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/tmax_v1" },
|
||||
{ name = "tmax-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/terminal/tmax_v1" },
|
||||
{ name = "torch", specifier = ">=2.9.0", index = "https://download.pytorch.org/whl/cu128" },
|
||||
{ name = "torchaudio", index = "https://download.pytorch.org/whl/cu128" },
|
||||
{ name = "torchdata", specifier = ">=0.11.0" },
|
||||
{ name = "torchtitan", git = "https://github.com/pytorch/torchtitan?rev=23e4dfc" },
|
||||
{ name = "torchvision", index = "https://download.pytorch.org/whl/cu128" },
|
||||
{ name = "transformers", specifier = "==5.6.2" },
|
||||
{ name = "unscramble-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/unscramble_v1" },
|
||||
{ name = "uuid-ctf-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/uuid_ctf_v1" },
|
||||
{ name = "unscramble-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/reasoning/unscramble_v1" },
|
||||
{ name = "uuid-ctf-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/reasoning/uuid_ctf_v1" },
|
||||
{ name = "uvloop", specifier = ">=0.21.0" },
|
||||
{ name = "verbatim-copy-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/verbatim_copy_v1" },
|
||||
{ name = "verbatim-copy-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/long_context/verbatim_copy_v1" },
|
||||
{ name = "verifiers", extras = ["harbor"], editable = "deps/verifiers" },
|
||||
{ name = "vllm", marker = "platform_machine != 'aarch64' and platform_machine != 'x86_64'", specifier = ">=0.24.0" },
|
||||
{ name = "vllm", marker = "platform_machine == 'aarch64'", url = "https://github.com/vllm-project/vllm/releases/download/v0.24.0/vllm-0.24.0+cu129-cp38-abi3-manylinux_2_28_aarch64.whl" },
|
||||
@@ -4174,10 +4174,10 @@ requires-dist = [
|
||||
{ name = "vllm-router", marker = "platform_machine == 'x86_64' and extra == 'disagg'", url = "https://github.com/PrimeIntellect-ai/router/releases/download/v0.1.26/vllm_router-0.1.26-cp38-abi3-manylinux_2_28_x86_64.whl" },
|
||||
{ name = "wandb", specifier = ">=0.26.1" },
|
||||
{ name = "wandb-workspaces", specifier = ">=0.4.3" },
|
||||
{ name = "wideseek-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/wideseek_v1" },
|
||||
{ name = "wideseek-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/search/wideseek_v1" },
|
||||
{ name = "wiki-search", marker = "extra == 'envs'", editable = "deps/verifiers/environments/wiki_search" },
|
||||
{ name = "wiki-search-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/wiki_search_v1" },
|
||||
{ name = "wikispeedia-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/wikispeedia_v1" },
|
||||
{ name = "wikispeedia-v1", marker = "extra == 'envs'", editable = "deps/research-environments/environments/reasoning/wikispeedia_v1" },
|
||||
{ name = "wordle", marker = "extra == 'envs'", editable = "deps/verifiers/environments/wordle" },
|
||||
{ name = "wordle-v1", marker = "extra == 'envs'", editable = "deps/verifiers/environments/wordle_v1" },
|
||||
]
|
||||
@@ -4251,7 +4251,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "prolog-v1"
|
||||
version = "0.4.0"
|
||||
source = { editable = "deps/research-environments/environments/prolog_v1" }
|
||||
source = { editable = "deps/research-environments/environments/reasoning/prolog_v1" }
|
||||
dependencies = [
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
@@ -4757,7 +4757,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "redsearcher-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/redsearcher_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/redsearcher_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -4960,7 +4960,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "s1-deepresearch-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/s1_deepresearch_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/s1_deepresearch_v1" }
|
||||
dependencies = [
|
||||
{ name = "huggingface-hub" },
|
||||
{ name = "verifiers" },
|
||||
@@ -5123,7 +5123,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "simpleqa-v1"
|
||||
version = "0.2.0"
|
||||
source = { editable = "deps/research-environments/environments/simpleqa_v1" }
|
||||
source = { editable = "deps/research-environments/environments/knowledge/simpleqa_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -5140,7 +5140,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "simpleqa-verified-v1"
|
||||
version = "0.2.0"
|
||||
source = { editable = "deps/research-environments/environments/simpleqa_verified_v1" }
|
||||
source = { editable = "deps/research-environments/environments/knowledge/simpleqa_verified_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -5480,7 +5480,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "tau2-bench-v1"
|
||||
version = "0.3.0"
|
||||
source = { editable = "deps/research-environments/environments/tau2_bench_v1" }
|
||||
source = { editable = "deps/research-environments/environments/tool_use/tau2_bench_v1" }
|
||||
dependencies = [
|
||||
{ name = "tau2" },
|
||||
{ name = "verifiers" },
|
||||
@@ -5534,7 +5534,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "terminal-bench-2-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/terminal_bench_2_v1" }
|
||||
source = { editable = "deps/research-environments/environments/terminal/terminal_bench_2_v1" }
|
||||
dependencies = [
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
@@ -5680,7 +5680,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "tmax-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/tmax_v1" }
|
||||
source = { editable = "deps/research-environments/environments/terminal/tmax_v1" }
|
||||
dependencies = [
|
||||
{ name = "verifiers", extra = ["harbor"] },
|
||||
]
|
||||
@@ -6000,7 +6000,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "unscramble-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/unscramble_v1" }
|
||||
source = { editable = "deps/research-environments/environments/reasoning/unscramble_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "verifiers" },
|
||||
@@ -6024,7 +6024,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "uuid-ctf-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/uuid_ctf_v1" }
|
||||
source = { editable = "deps/research-environments/environments/reasoning/uuid_ctf_v1" }
|
||||
dependencies = [
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
@@ -6070,7 +6070,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "verbatim-copy-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/verbatim_copy_v1" }
|
||||
source = { editable = "deps/research-environments/environments/long_context/verbatim_copy_v1" }
|
||||
dependencies = [
|
||||
{ name = "faker" },
|
||||
{ name = "verifiers" },
|
||||
@@ -6768,7 +6768,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "wideseek-v1"
|
||||
version = "0.2.0"
|
||||
source = { editable = "deps/research-environments/environments/wideseek_v1" }
|
||||
source = { editable = "deps/research-environments/environments/search/wideseek_v1" }
|
||||
dependencies = [
|
||||
{ name = "datasets" },
|
||||
{ name = "openai" },
|
||||
@@ -6830,7 +6830,7 @@ requires-dist = [
|
||||
[[package]]
|
||||
name = "wikispeedia-v1"
|
||||
version = "0.1.0"
|
||||
source = { editable = "deps/research-environments/environments/wikispeedia_v1" }
|
||||
source = { editable = "deps/research-environments/environments/reasoning/wikispeedia_v1" }
|
||||
dependencies = [
|
||||
{ name = "verifiers" },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user