Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95a53f39e7 | ||
|
|
0756df77c1 | ||
|
|
66b1f4b6b7 | ||
|
|
bb5e48292d | ||
|
|
187b7a438c | ||
|
|
1b725b84b8 | ||
|
|
c28eaf874b | ||
|
|
26db10418e | ||
|
|
c2a84f5604 | ||
|
|
bdac9df86e | ||
|
|
39ce147af0 | ||
|
|
5e9548d425 | ||
|
|
3d1056a607 |
@@ -25,10 +25,10 @@ jobs:
|
||||
const { owner, repo } = context.repo;
|
||||
const sha = context.sha;
|
||||
|
||||
let baseTag;
|
||||
let latestTag;
|
||||
try {
|
||||
const latestRelease = await github.rest.repos.getLatestRelease({ owner, repo });
|
||||
baseTag = latestRelease.data.tag_name;
|
||||
latestTag = latestRelease.data.tag_name;
|
||||
} catch (error) {
|
||||
if (error.status === 404) {
|
||||
core.notice("No releases found. Skipping .dev tag creation.");
|
||||
@@ -37,6 +37,18 @@ jobs:
|
||||
throw error;
|
||||
}
|
||||
|
||||
const semverMatch = /^(v?)(\d+)\.(\d+)(?:\.(\d+))?$/.exec(latestTag);
|
||||
if (!semverMatch) {
|
||||
core.setFailed(`Latest release tag '${latestTag}' is not semver-like.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const [, versionPrefix, majorRaw, minorRaw, patchRaw] = semverMatch;
|
||||
const major = Number.parseInt(majorRaw, 10);
|
||||
const minor = Number.parseInt(minorRaw, 10);
|
||||
const patch = Number.parseInt(patchRaw ?? "0", 10) + 1;
|
||||
const baseTag = `${versionPrefix}${major}.${minor}.${patch}`;
|
||||
|
||||
const prefix = `${baseTag}.dev`;
|
||||
const escapeRegex = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||||
const pattern = new RegExp(`^refs/tags/${escapeRegex(baseTag)}\\.dev(\\d+)$`);
|
||||
|
||||
@@ -65,10 +65,13 @@ jobs:
|
||||
include:
|
||||
- test: base
|
||||
runner: vm
|
||||
pytest_args: "tests/integration -m gpu --ignore=tests/integration/test_rl_lora.py --ignore=tests/integration/test_rl_multi_run_lora.py --ignore=tests/integration/test_benchmark_regression.py"
|
||||
pytest_args: "tests/integration -m gpu --ignore=tests/integration/test_rl_lora.py --ignore=tests/integration/test_rl_multi_run_lora.py --ignore=tests/integration/test_benchmark_regression.py --ignore=tests/integration/test_alphabet_sort.py"
|
||||
- test: rl_lora
|
||||
runner: vm
|
||||
pytest_args: "tests/integration/test_rl_lora.py -m gpu"
|
||||
- test: alphabet_sort
|
||||
runner: vm
|
||||
pytest_args: "tests/integration/test_alphabet_sort.py -m gpu"
|
||||
- test: rl_multi_run
|
||||
runner: 4xa6000
|
||||
pytest_args: "tests/integration/test_rl_multi_run_lora.py -m gpu"
|
||||
@@ -102,6 +105,8 @@ jobs:
|
||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
PRIME_API_KEY: ${{ secrets.PRIME_API_KEY }}
|
||||
PRIME_BASE_URL: ${{ secrets.PRIME_BASE_URL }}
|
||||
PRIME_TEAM_ID: ${{ secrets.PRIME_TEAM_ID }}
|
||||
GITHUB_REF_NAME: ${{ github.ref_name }}
|
||||
GITHUB_HEAD_REF: ${{ github.head_ref }}
|
||||
PYTEST_OUTPUT_DIR: /tmp/outputs
|
||||
|
||||
+2
-1
@@ -56,6 +56,7 @@ Documenting changes which affect configuration usage patterns (added/moved/remov
|
||||
- **`EvalSaveDiskConfig`**, **`EvalSaveConfig`**, **`RetryConfig`**, **`OnlineEvalConfig`**: Removed (2026-02-06)
|
||||
- **`TemperatureScheduleConfig`**: Renamed to `TemperatureSchedulerConfig` (2026-02-06)
|
||||
- **`optim.mu`**: Added Muon momentum (`mu`) config field (default: 0.95). Previously hardcoded to Muon class default. Also fixed `optim.betas1`/`optim.betas2` not being passed through to the Muon optimizer (2026-02-09)
|
||||
- **`dump_config`**: Added `--dump-config <path>` flag to the `rl` command. When set, writes the resolved subconfigs (trainer, orchestrator, inference, teacher_inference) to the given directory and exits without starting any processes (2026-02-12
|
||||
- **`dump_config`**: Added `--dump-config <path>` flag to the `rl` command. When set, writes the resolved subconfigs (trainer, orchestrator, inference, teacher_inference) to the given directory and exits without starting any processes (2026-02-12)
|
||||
- **`client.api_key_var`**: Changed default from "OPENAI_API_KEY" to "VLLM_API_KEY" (2026-02-12)
|
||||
- **`orchestrator.eval.cancel_inflight_rollouts_on_eval`**: Added flag to optionally cancel in-flight training rollouts before starting online evals. When enabled, avoids congestion by preventing training and eval rollouts from running simultaneously, but slows training as the rollout pipeline must refill after each eval (default: False) (2026-02-16)
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
inference_gpu_ids = [0]
|
||||
trainer_gpu_ids = [1]
|
||||
|
||||
max_steps = 10
|
||||
seq_len = 2048
|
||||
|
||||
[ckpt]
|
||||
|
||||
[model]
|
||||
name = "PrimeIntellect/Qwen3-0.6B"
|
||||
|
||||
[trainer.optim]
|
||||
lr = 1e-5
|
||||
|
||||
[orchestrator]
|
||||
batch_size = 128
|
||||
rollouts_per_example = 8
|
||||
|
||||
[orchestrator.sampling]
|
||||
max_tokens = 384
|
||||
|
||||
[[orchestrator.env]]
|
||||
id = "primeintellect/alphabet-sort"
|
||||
name = "alphabet-sort"
|
||||
args = { min_turns = 2, max_turns = 2, min_names_per_turn = 1, max_names_per_turn = 3, similarity_power = 4, power_per_turn = false }
|
||||
|
||||
[inference]
|
||||
+2
-2
@@ -45,7 +45,7 @@ sft = "prime_rl.trainer.sft.train:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
flash-attn = [
|
||||
"flash-attn @ https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.6.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl",
|
||||
"flash-attn @ https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl",
|
||||
]
|
||||
flash-attn-3 = [
|
||||
"flash_attn_3 @ https://github.com/samsja/flash-attn-builds/releases/download/v0.1/flash_attn_3-3.0.0b1-cp39-abi3-linux_x86_64.whl",
|
||||
@@ -77,7 +77,7 @@ override-dependencies = [
|
||||
|
||||
[tool.uv.sources]
|
||||
torch = { index = "pytorch-cu128" }
|
||||
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "ccef044" }
|
||||
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "ad77074" }
|
||||
torchtitan = { git = "https://github.com/pytorch/torchtitan", rev = "a1fdd7e" }
|
||||
dion = { git = "https://github.com/samsja/dion.git", rev = "d891eeb" }
|
||||
transformers = { git = "https://github.com/huggingface/transformers.git", rev = "609e3d5" }
|
||||
|
||||
@@ -284,7 +284,7 @@ class EnvConfig(BaseConfig):
|
||||
dict[str, Any],
|
||||
Field(
|
||||
description=(
|
||||
"Extra kwargs passed to an env (e.g. seq_len, interleaved_rollouts, score_rollouts). This field is auto-populated with the seq_len, interleaved_rollouts, and score_rollouts for training envs on the orchestrator. It is generally NOT recommended for this field to be overriden by the user. It's main use case is to match the extra_env_kwargs when running an env in an isolated environment server."
|
||||
"Extra kwargs passed to an env (e.g. seq_len, score_rollouts). This field is auto-populated with the seq_len, and score_rollouts for training envs on the orchestrator. It is generally NOT recommended for this field to be overriden by the user. It's main use case is to match the extra_env_kwargs when running an env in an isolated environment server."
|
||||
),
|
||||
),
|
||||
] = {}
|
||||
@@ -313,6 +313,17 @@ class EvalEnvConfig(EnvConfig):
|
||||
),
|
||||
] = 0
|
||||
|
||||
# TODO: should live on the EnvConfig and also apply to training envs but
|
||||
# this is hard right now because we use the vf.EnvGroup which treats all
|
||||
# envs as one. for now training envs hardcode no retries, but we should
|
||||
# probably treat them like environment groups long-term
|
||||
max_retries: Annotated[
|
||||
int,
|
||||
Field(
|
||||
description="Maximum number of times the environment will try to retry running a rollout.",
|
||||
),
|
||||
] = 0
|
||||
|
||||
|
||||
class ValConfig(BaseConfig):
|
||||
"""Configures the validation of the model."""
|
||||
@@ -365,6 +376,13 @@ class EvalConfig(BaseConfig):
|
||||
),
|
||||
] = True
|
||||
|
||||
cancel_inflight_rollouts_on_eval: Annotated[
|
||||
bool,
|
||||
Field(
|
||||
description="Whether to cancel in-flight training rollouts before starting online evals. This is useful to avoid congestion (e.g. do not have training + eval rollouts happening at the same time) but leads to slower training steps as rollouts get cancelled and the pipeline has to fill up after each eval",
|
||||
),
|
||||
] = False
|
||||
|
||||
|
||||
class CheckpointConfig(BaseConfig):
|
||||
"""Configures checkpointing the orchestrator."""
|
||||
@@ -798,7 +816,6 @@ class OrchestratorConfig(BaseSettings):
|
||||
def resolve_extra_env_kwargs(self):
|
||||
train_extra_env_kwargs = dict(
|
||||
seq_len=self.seq_len,
|
||||
interleaved_rollouts=True,
|
||||
score_rollouts=not self.buffer.skip_verification,
|
||||
)
|
||||
for env in self.env:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from loguru import logger
|
||||
from verifiers.workers import ZMQEnvServer
|
||||
|
||||
from prime_rl.orchestrator.env_server.config import EnvServerConfig
|
||||
@@ -9,7 +8,6 @@ from prime_rl.utils.utils import clean_exit, get_env_ids_to_install, install_env
|
||||
|
||||
|
||||
@clean_exit
|
||||
@logger.catch(reraise=True)
|
||||
def run_server(config: EnvServerConfig):
|
||||
setup_logger(config.log.level, json_logging=config.log.json_logging)
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import time
|
||||
from collections.abc import Awaitable, Callable
|
||||
from typing import Any
|
||||
|
||||
import numpy as np
|
||||
@@ -65,18 +66,27 @@ def compute_pass_at_k(rewards: list[int]) -> dict[str, float]:
|
||||
async def evaluate_env(
|
||||
env: vf.Environment,
|
||||
env_name: str,
|
||||
clients: list[vf.ClientConfig],
|
||||
model_name: str,
|
||||
sampling_args: dict,
|
||||
num_examples: int,
|
||||
rollouts_per_example: int,
|
||||
max_retries: int,
|
||||
ckpt_step: int,
|
||||
step: int | None,
|
||||
get_client: Callable[[], Awaitable[vf.ClientConfig]],
|
||||
):
|
||||
logger = get_logger()
|
||||
logger.info(f"Evaluating {env_name} ({num_examples=}, {rollouts_per_example=})")
|
||||
eval_start_time = time.perf_counter()
|
||||
outputs = await evaluate(env, clients, model_name, sampling_args, num_examples, rollouts_per_example)
|
||||
outputs = await evaluate(
|
||||
env=env,
|
||||
model_name=model_name,
|
||||
sampling_args=sampling_args,
|
||||
num_examples=num_examples,
|
||||
rollouts_per_example=rollouts_per_example,
|
||||
get_client=get_client,
|
||||
max_retries=max_retries,
|
||||
)
|
||||
eval_time = time.perf_counter() - eval_start_time
|
||||
|
||||
rows = []
|
||||
|
||||
@@ -24,7 +24,6 @@ monkey_patch_chat_completion_logprobs()
|
||||
|
||||
import pandas as pd
|
||||
import verifiers as vf
|
||||
from loguru import logger
|
||||
from transformers import AutoProcessor, AutoTokenizer
|
||||
|
||||
from prime_rl.orchestrator.buffer import Buffer
|
||||
@@ -42,7 +41,6 @@ from prime_rl.orchestrator.utils import (
|
||||
from prime_rl.orchestrator.vf_utils import (
|
||||
generate,
|
||||
get_completion_len,
|
||||
get_prompt_len,
|
||||
get_seq_len,
|
||||
setup_env_client,
|
||||
spawn_env_server,
|
||||
@@ -71,7 +69,6 @@ from prime_rl.utils.vlm import is_vlm_model
|
||||
|
||||
|
||||
@clean_exit
|
||||
@logger.catch(reraise=True)
|
||||
async def orchestrate(config: OrchestratorConfig):
|
||||
# Initialize the logger
|
||||
logger = setup_logger(
|
||||
@@ -384,21 +381,26 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
last_eval_step = ckpt_step
|
||||
logger.info(f"Running evals for checkpoint step {ckpt_step}")
|
||||
|
||||
# Pause weight updates during eval and cancel inflight rollouts
|
||||
# this avoid doing eval across different checkpoints and avoid congestion
|
||||
# Pause weight updates and re-scheduling of training rollouts during eval
|
||||
# to avoid evaluating across different checkpoints and avoid congestion
|
||||
scheduler.checkpoint_ready.clear()
|
||||
scheduler.cancel_all_inflight_rollouts()
|
||||
|
||||
# For heavy eval workloads, it might be necessary additionally cancel in-flight training rollouts
|
||||
if config.eval.cancel_inflight_rollouts_on_eval:
|
||||
logger.info("Cancelling in-flight training rollouts before starting evals to avoid congestion.")
|
||||
scheduler.cancel_inflight_rollouts()
|
||||
|
||||
results = await asyncio.gather(
|
||||
*[
|
||||
evaluate_env(
|
||||
env=eval_env,
|
||||
env_name=eval_env_name,
|
||||
clients=inference_pool.clients,
|
||||
get_client=inference_pool.get_next_client,
|
||||
model_name=scheduler.model_name,
|
||||
sampling_args=eval_sampling_args,
|
||||
num_examples=eval_env_config.num_examples or config.eval.num_examples,
|
||||
rollouts_per_example=eval_env_config.rollouts_per_example or config.eval.rollouts_per_example,
|
||||
max_retries=eval_env_config.max_retries,
|
||||
ckpt_step=ckpt_step,
|
||||
step=progress.step,
|
||||
)
|
||||
@@ -422,11 +424,11 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
val_task = asyncio.create_task(
|
||||
generate(
|
||||
env=train_env_group,
|
||||
clients=inference_pool.clients,
|
||||
model_name=scheduler.model_name,
|
||||
examples=val_examples,
|
||||
rollouts_per_example=config.val.rollouts_per_example,
|
||||
sampling_args=sampling_args,
|
||||
clients=inference_pool.clients,
|
||||
pbar_description="Generating rollouts (val)",
|
||||
)
|
||||
)
|
||||
@@ -475,12 +477,26 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
|
||||
# Collect results and assign advantages
|
||||
train_examples: list[TrainingSample] = []
|
||||
rollout_prefill_lens: list[int] = []
|
||||
rollout_decode_lens: list[int] = []
|
||||
num_prefill_tokens = 0
|
||||
num_decode_tokens = 0
|
||||
for rollout, advantage, samples in zip(train_rollouts, advantages, results):
|
||||
rollout_prefill_tokens = 0
|
||||
rollout_decode_tokens = 0
|
||||
if samples is not None:
|
||||
for sample in samples:
|
||||
sample.advantage = advantage
|
||||
sample.reward = rollout["reward"]
|
||||
train_examples.extend(samples)
|
||||
sample_decode_tokens = sum(sample.completion_mask)
|
||||
sample_prefill_tokens = len(sample.prompt_ids) + len(sample.completion_mask) - sample_decode_tokens
|
||||
rollout_decode_tokens += sample_decode_tokens
|
||||
rollout_prefill_tokens += sample_prefill_tokens
|
||||
train_examples.append(sample)
|
||||
rollout_prefill_lens.append(rollout_prefill_tokens)
|
||||
rollout_decode_lens.append(rollout_decode_tokens)
|
||||
num_prefill_tokens += rollout_prefill_tokens
|
||||
num_decode_tokens += rollout_decode_tokens
|
||||
|
||||
parallel_preprocess_time = time.perf_counter() - parallel_preprocess_start
|
||||
logger.debug(
|
||||
@@ -541,9 +557,9 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
"reward": [rollout["reward"] for rollout in train_rollouts],
|
||||
"is_truncated": [rollout["is_truncated"] for rollout in train_rollouts],
|
||||
"error": [rollout["error"] for rollout in train_rollouts],
|
||||
"completion_len": [get_completion_len(rollout) for rollout in train_rollouts],
|
||||
"prompt_len": [get_prompt_len(rollout) for rollout in train_rollouts],
|
||||
"seq_len": [get_seq_len(rollout) for rollout in train_rollouts],
|
||||
"prefill_len": rollout_prefill_lens,
|
||||
"decode_len": rollout_decode_lens,
|
||||
"num_turns": [len(rollout["trajectory"]) for rollout in train_rollouts],
|
||||
"generation_ms": [rollout["timing"]["generation_ms"] for rollout in train_rollouts],
|
||||
"scoring_ms": [rollout["timing"]["scoring_ms"] for rollout in train_rollouts],
|
||||
@@ -600,6 +616,8 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
to_log = {
|
||||
# Progress metrics
|
||||
"progress/tokens": num_tokens,
|
||||
"progress/prefill_tokens": num_prefill_tokens,
|
||||
"progress/decode_tokens": num_decode_tokens,
|
||||
"progress/samples": config.batch_size,
|
||||
"progress/problems": config.batch_size // config.rollouts_per_example,
|
||||
"progress/total_tokens": progress.total_tokens,
|
||||
@@ -610,12 +628,12 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
"seq_len/mean": results_df.groupby("example_id").seq_len.mean().mean(),
|
||||
"seq_len/max": results_df.groupby("example_id").seq_len.mean().max(),
|
||||
"seq_len/min": results_df.groupby("example_id").seq_len.mean().min(),
|
||||
"prompt_len/mean": results_df.groupby("example_id").prompt_len.mean().mean(),
|
||||
"prompt_len/max": results_df.groupby("example_id").prompt_len.mean().max(),
|
||||
"prompt_len/min": results_df.groupby("example_id").prompt_len.mean().min(),
|
||||
"completion_len/mean": results_df.groupby("example_id").completion_len.mean().mean(),
|
||||
"completion_len/max": results_df.groupby("example_id").completion_len.mean().max(),
|
||||
"completion_len/min": results_df.groupby("example_id").completion_len.mean().min(),
|
||||
"prefill_len/mean": results_df.groupby("example_id").prefill_len.mean().mean(),
|
||||
"prefill_len/max": results_df.groupby("example_id").prefill_len.mean().max(),
|
||||
"prefill_len/min": results_df.groupby("example_id").prefill_len.mean().min(),
|
||||
"decode_len/mean": results_df.groupby("example_id").decode_len.mean().mean(),
|
||||
"decode_len/max": results_df.groupby("example_id").decode_len.mean().max(),
|
||||
"decode_len/min": results_df.groupby("example_id").decode_len.mean().min(),
|
||||
"is_truncated/mean": results_df.groupby("example_id").is_truncated.mean().mean(),
|
||||
"is_truncated/max": results_df.groupby("example_id").is_truncated.mean().max(),
|
||||
"is_truncated/min": results_df.groupby("example_id").is_truncated.mean().min(),
|
||||
@@ -729,11 +747,12 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
evaluate_env(
|
||||
env=eval_env,
|
||||
env_name=eval_env_name,
|
||||
clients=inference_pool.clients,
|
||||
get_client=inference_pool.get_next_client,
|
||||
model_name=scheduler.model_name,
|
||||
sampling_args=eval_sampling_args,
|
||||
num_examples=eval_env_config.num_examples or config.eval.num_examples,
|
||||
rollouts_per_example=eval_env_config.rollouts_per_example or config.eval.rollouts_per_example,
|
||||
max_retries=eval_env_config.max_retries,
|
||||
ckpt_step=ckpt_step,
|
||||
step=progress.step,
|
||||
)
|
||||
@@ -757,7 +776,7 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
rollout_executor.shutdown(wait=False)
|
||||
|
||||
# Stop scheduler
|
||||
scheduler.cancel_all_inflight_rollouts()
|
||||
scheduler.cancel_inflight_rollouts()
|
||||
update_policy_task.cancel()
|
||||
|
||||
# Stop inference pool
|
||||
|
||||
@@ -2,6 +2,7 @@ from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import time
|
||||
from collections import Counter
|
||||
from pathlib import Path
|
||||
from typing import NamedTuple
|
||||
|
||||
@@ -94,11 +95,8 @@ class Scheduler:
|
||||
"""Update sampling args for future rollout requests."""
|
||||
self.sampling_args = sampling_args
|
||||
|
||||
def cancel_all_inflight_rollouts(self):
|
||||
"""Cancel all in-flight rollout requests.
|
||||
|
||||
Used when weights are updated to discard stale rollouts generated with old weights.
|
||||
"""
|
||||
def cancel_inflight_rollouts(self):
|
||||
"""Cancel all in-flight rollout requests."""
|
||||
count = len(self.inflight_group_rollouts)
|
||||
for future in list(self.inflight_group_rollouts.keys()):
|
||||
if not future.done():
|
||||
@@ -106,12 +104,21 @@ class Scheduler:
|
||||
self.inflight_group_rollouts.clear()
|
||||
self.cancelled_rollouts_count += count
|
||||
|
||||
async def _select_least_loaded_client(self) -> vf.ClientConfig:
|
||||
"""Select the client with the fewest in-flight tasks."""
|
||||
clients = self.inference_pool.clients
|
||||
while not clients:
|
||||
await asyncio.sleep(1)
|
||||
clients = self.inference_pool.clients
|
||||
inflight_by_url = Counter(info.client_config.api_base_url for info in self.inflight_group_rollouts.values())
|
||||
return min(clients, key=lambda c: inflight_by_url[c.api_base_url])
|
||||
|
||||
async def schedule_group_rollout(self):
|
||||
"""Asynchronously schedules a group rollout request."""
|
||||
if self.rate_limiter:
|
||||
await self.rate_limiter.acquire()
|
||||
example = self.buffer.sample_examples(n=1)[0]
|
||||
client_config = await self.inference_pool.get_next_client()
|
||||
client_config = await self._select_least_loaded_client()
|
||||
run_group_task = asyncio.create_task(
|
||||
run_group(
|
||||
env=self.env,
|
||||
|
||||
@@ -11,7 +11,7 @@ from openai.types.completion_usage import CompletionUsage
|
||||
from rich.console import Console
|
||||
from rich.table import Table
|
||||
from verifiers.utils.async_utils import maybe_semaphore
|
||||
from verifiers.utils.client_utils import setup_client
|
||||
from verifiers.utils.client_utils import setup_openai_client
|
||||
|
||||
from prime_rl.orchestrator.config import SamplingConfig
|
||||
from prime_rl.transport import TrainingSample
|
||||
@@ -151,7 +151,7 @@ async def compute_teacher_logprobs(
|
||||
"""Compute teacher model logprobs for a batch of training samples via prefill."""
|
||||
|
||||
async def _compute_single(client_config: vf.ClientConfig, sample: TrainingSample) -> list[float]:
|
||||
client = setup_client(client_config)
|
||||
client = setup_openai_client(client_config)
|
||||
|
||||
async with await get_semaphore():
|
||||
response = await client.post(
|
||||
@@ -168,7 +168,10 @@ async def compute_teacher_logprobs(
|
||||
},
|
||||
cast_to=ChatCompletion,
|
||||
)
|
||||
return [0.0 if lp is None else float(next(iter(lp.values()))["logprob"]) for lp in response.prompt_logprobs]
|
||||
return [
|
||||
0.0 if lp is None else float(next(iter(lp.values()))["logprob"])
|
||||
for lp in getattr(response, "prompt_logprobs", [])
|
||||
]
|
||||
|
||||
return await asyncio.gather(*[_compute_single(client, sample) for client, sample in zip(cycle(clients), samples)])
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import asyncio
|
||||
import logging
|
||||
import multiprocessing as mp
|
||||
from collections.abc import Awaitable, Callable
|
||||
from itertools import cycle
|
||||
from multiprocessing import Process
|
||||
from typing import Any
|
||||
|
||||
import verifiers as vf
|
||||
@@ -11,7 +12,7 @@ from verifiers.workers import ZMQEnvClient, ZMQEnvServer
|
||||
|
||||
from prime_rl.utils.logger import InterceptHandler, ProgressTracker, get_logger
|
||||
|
||||
DEFAULT_RETRIES = 3
|
||||
DEFAULT_RETRIES = 0
|
||||
REQUIRED_STATE_COLUMNS = ["trajectory", "sampling_args"]
|
||||
DEFAULT_STATE_COLUMNS = []
|
||||
|
||||
@@ -32,7 +33,10 @@ def spawn_env_server(
|
||||
Mirrors vf.Environment.start_server().
|
||||
"""
|
||||
address = address or f"tcp://127.0.0.1:{get_free_port()}"
|
||||
Process(
|
||||
# Use spawn to avoid inheriting file descriptors (e.g. sockets) from
|
||||
# the parent process, which has caused hangs when multiple env server
|
||||
# subprocesses share the same fds.
|
||||
mp.get_context("spawn").Process(
|
||||
target=ZMQEnvServer.run_server,
|
||||
args=(
|
||||
env_id,
|
||||
@@ -81,32 +85,6 @@ async def wait_for_env_servers(
|
||||
await asyncio.gather(*[wait_for_env_server(env_client) for env_client in env_clients])
|
||||
|
||||
|
||||
async def run_rollout(
|
||||
env: vf.Environment,
|
||||
client: vf.ClientConfig,
|
||||
model_name: str,
|
||||
example: dict,
|
||||
sampling_args: dict,
|
||||
max_retries: int = DEFAULT_RETRIES,
|
||||
state_columns: list[str] = DEFAULT_STATE_COLUMNS,
|
||||
) -> vf.RolloutOutput:
|
||||
"""
|
||||
Wrapper for vf.Environment.run_rollout().
|
||||
|
||||
Asynchronously generates and scores a rollout.
|
||||
"""
|
||||
state_columns = state_columns + REQUIRED_STATE_COLUMNS
|
||||
rollout_input = vf.RolloutInput(**example)
|
||||
return await env.run_rollout(
|
||||
rollout_input,
|
||||
client=client,
|
||||
model=model_name,
|
||||
sampling_args=sampling_args,
|
||||
max_retries=max_retries,
|
||||
state_columns=state_columns,
|
||||
)
|
||||
|
||||
|
||||
async def run_group(
|
||||
env: vf.Environment,
|
||||
client: vf.ClientConfig,
|
||||
@@ -137,11 +115,12 @@ async def run_group(
|
||||
# TODO: migrate this to vf.Environment.generate() once it supports multiple clients
|
||||
async def generate(
|
||||
env: vf.Environment,
|
||||
clients: list[vf.ClientConfig],
|
||||
model_name: str,
|
||||
examples: list,
|
||||
rollouts_per_example: int,
|
||||
sampling_args: dict,
|
||||
clients: list[vf.ClientConfig] | None = None,
|
||||
get_client: Callable[[], Awaitable[vf.ClientConfig]] | None = None,
|
||||
max_retries: int = DEFAULT_RETRIES,
|
||||
state_columns: list[str] = DEFAULT_STATE_COLUMNS,
|
||||
pbar_description: str = "Generating rollouts",
|
||||
@@ -154,10 +133,20 @@ async def generate(
|
||||
Asynchronously generates and scores a list of groups.
|
||||
"""
|
||||
|
||||
if not clients and get_client is None:
|
||||
raise ValueError("generate requires at least one client or a get_client callback")
|
||||
|
||||
if get_client is None:
|
||||
client_cycle = cycle(clients)
|
||||
|
||||
async def get_client() -> vf.ClientConfig:
|
||||
return next(client_cycle)
|
||||
|
||||
total_rollouts = len(examples) * rollouts_per_example
|
||||
pbar = ProgressTracker(total=total_rollouts, desc=pbar_description)
|
||||
|
||||
async def run_group_with_progress(client, example):
|
||||
async def run_group_with_progress(example):
|
||||
client = await get_client()
|
||||
result = await run_group(
|
||||
env=env,
|
||||
client=client,
|
||||
@@ -173,7 +162,7 @@ async def generate(
|
||||
|
||||
try:
|
||||
group_outputs_list: list[list[vf.RolloutOutput]] = await asyncio.gather(
|
||||
*[run_group_with_progress(client, example) for client, example in zip(cycle(clients), examples)]
|
||||
*[run_group_with_progress(example) for example in examples]
|
||||
)
|
||||
finally:
|
||||
pbar.close()
|
||||
@@ -183,11 +172,12 @@ async def generate(
|
||||
|
||||
async def evaluate(
|
||||
env: vf.Environment,
|
||||
clients: list[vf.ClientConfig],
|
||||
model_name: str,
|
||||
sampling_args: dict,
|
||||
num_examples: int,
|
||||
rollouts_per_example: int,
|
||||
clients: list[vf.ClientConfig] | None = None,
|
||||
get_client: Callable[[], Awaitable[vf.ClientConfig]] | None = None,
|
||||
max_retries: int = DEFAULT_RETRIES,
|
||||
state_columns: list[str] = DEFAULT_STATE_COLUMNS,
|
||||
) -> list[vf.RolloutOutput]:
|
||||
@@ -202,6 +192,7 @@ async def evaluate(
|
||||
outputs = await generate(
|
||||
env=env,
|
||||
clients=clients,
|
||||
get_client=get_client,
|
||||
model_name=model_name,
|
||||
examples=inputs,
|
||||
# _get_eval_inputs() already repeats the examples, this currently means
|
||||
|
||||
@@ -12,7 +12,6 @@ import torch
|
||||
import torch.distributed as dist
|
||||
import torch.distributed.nn as dist_nn
|
||||
from torch.profiler import profile, ProfilerActivity, record_function
|
||||
from loguru import logger
|
||||
from prime_rl.trainer.ckpt import setup_ckpt_managers
|
||||
from prime_rl.trainer.multi_ckpt import setup_multi_checkpoint_manager
|
||||
from prime_rl.trainer.optim import setup_optimizer, setup_multi_optimizer
|
||||
@@ -63,7 +62,6 @@ from torchtitan.distributed.utils import clip_grad_norm_
|
||||
|
||||
|
||||
@clean_exit
|
||||
@logger.catch(reraise=True)
|
||||
def train(config: RLTrainerConfig):
|
||||
# Setup world and logger
|
||||
world = get_world()
|
||||
|
||||
@@ -12,7 +12,6 @@ from prime_rl.trainer.models.layers.attn import substitute_prime_rl_flash_attn
|
||||
from prime_rl.utils.act_offloading import maybe_activation_offloading
|
||||
import torch
|
||||
from torch.profiler import profile, ProfilerActivity, record_function
|
||||
from loguru import logger
|
||||
from prime_rl.trainer.ckpt import setup_ckpt_managers
|
||||
from prime_rl.utils.pathing import resolve_latest_ckpt_step
|
||||
from prime_rl.trainer.sft.config import SFTTrainerConfig
|
||||
@@ -51,7 +50,6 @@ from torchtitan.distributed.utils import clip_grad_norm_
|
||||
|
||||
|
||||
@clean_exit
|
||||
@logger.catch(reraise=True)
|
||||
def train(config: SFTTrainerConfig):
|
||||
# Setup world and logger
|
||||
world = get_world()
|
||||
|
||||
@@ -106,7 +106,7 @@ async def setup_inference_pool(client_config: ClientConfig, model_name: str) ->
|
||||
return await ElasticInferencePool.from_config(client_config, model_name=model_name)
|
||||
|
||||
logger.info(
|
||||
f"Initializing OpenAI client (base_url={', '.join(client_config.base_url)}, "
|
||||
f"Initializing static inference pool (base_url={', '.join(client_config.base_url)}, "
|
||||
f"api_key_var={client_config.api_key_var}, headers={client_config.headers})"
|
||||
)
|
||||
return StaticInferencePool(
|
||||
@@ -117,9 +117,10 @@ async def setup_inference_pool(client_config: ClientConfig, model_name: str) ->
|
||||
|
||||
|
||||
def setup_clients(client_config: ClientConfig) -> list[vf.ClientConfig]:
|
||||
def _setup_client(client_idx: int, base_url: str) -> vf.ClientConfig:
|
||||
def setup_client(client_idx: int, base_url: str) -> vf.ClientConfig:
|
||||
return vf.ClientConfig(
|
||||
client_idx=client_idx,
|
||||
client_type="openai_chat_completions_token",
|
||||
api_base_url=base_url,
|
||||
api_key_var=client_config.api_key_var,
|
||||
timeout=client_config.timeout,
|
||||
@@ -129,7 +130,7 @@ def setup_clients(client_config: ClientConfig) -> list[vf.ClientConfig]:
|
||||
extra_headers=client_config.headers,
|
||||
)
|
||||
|
||||
return [_setup_client(client_idx, base_url) for client_idx, base_url in enumerate(client_config.base_url)]
|
||||
return [setup_client(client_idx, base_url) for client_idx, base_url in enumerate(client_config.base_url)]
|
||||
|
||||
|
||||
def setup_admin_clients(client_config: ClientConfig) -> list[AsyncClient]:
|
||||
|
||||
@@ -14,7 +14,7 @@ NO_BOLD = "\033[22m"
|
||||
RESET = "\033[0m"
|
||||
|
||||
|
||||
def _build_log_entry(record) -> dict:
|
||||
def build_log_entry(record) -> dict:
|
||||
"""Build a flat JSON log entry from a loguru record."""
|
||||
extra = record["extra"]
|
||||
|
||||
@@ -54,14 +54,14 @@ def _build_log_entry(record) -> dict:
|
||||
return log_entry
|
||||
|
||||
|
||||
def _json_sink(message) -> None:
|
||||
def json_sink(message) -> None:
|
||||
"""Sink that outputs flat JSON to stdout for log aggregation (Loki, Grafana, etc.)."""
|
||||
log_entry = _build_log_entry(message.record)
|
||||
log_entry = build_log_entry(message.record)
|
||||
sys.stdout.write(json_module.dumps(log_entry) + "\n")
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
class _JsonFileSink:
|
||||
class JsonFileSink:
|
||||
"""File sink that keeps the handle open and writes flat JSON lines."""
|
||||
|
||||
def __init__(self, log_file: Path):
|
||||
@@ -74,7 +74,7 @@ class _JsonFileSink:
|
||||
self._file.close()
|
||||
|
||||
def write(self, message) -> None:
|
||||
log_entry = _build_log_entry(message.record)
|
||||
log_entry = build_log_entry(message.record)
|
||||
self._file.write(json_module.dumps(log_entry) + "\n")
|
||||
self._file.flush()
|
||||
|
||||
@@ -102,17 +102,19 @@ class InterceptHandler(logging.Handler):
|
||||
|
||||
|
||||
def setup_logger(
|
||||
log_level: str,
|
||||
log_level: str = "info",
|
||||
log_file: Path | None = None,
|
||||
append: bool = False,
|
||||
tag: str | None = None,
|
||||
json_logging: bool = False,
|
||||
):
|
||||
global _LOGGER, _JSON_LOGGING
|
||||
if _LOGGER is not None:
|
||||
raise RuntimeError("Logger already set. Please call `setup_logger` only once.")
|
||||
_JSON_LOGGING = json_logging
|
||||
|
||||
# Clean up old logger instance to prevent resource leaks
|
||||
if _LOGGER is not None:
|
||||
_LOGGER.remove()
|
||||
|
||||
# Format message with optional tag prefix
|
||||
tag_prefix = f"[{tag}] " if tag else ""
|
||||
message = "".join(
|
||||
@@ -154,7 +156,7 @@ def setup_logger(
|
||||
|
||||
# Install console handler (enqueue=True only for JSON mode to avoid blocking in async contexts)
|
||||
if json_logging:
|
||||
logger.add(_json_sink, level=log_level.upper(), enqueue=True)
|
||||
logger.add(json_sink, level=log_level.upper(), enqueue=True)
|
||||
else:
|
||||
logger.add(sys.stdout, format=format, level=log_level.upper(), colorize=True)
|
||||
|
||||
@@ -163,7 +165,7 @@ def setup_logger(
|
||||
if not append and log_file.exists():
|
||||
log_file.unlink()
|
||||
if json_logging:
|
||||
file_sink = _JsonFileSink(log_file)
|
||||
file_sink = JsonFileSink(log_file)
|
||||
logger.add(file_sink.write, level=log_level.upper(), enqueue=True)
|
||||
else:
|
||||
logger.add(log_file, format=format, level=log_level.upper(), colorize=True)
|
||||
@@ -178,23 +180,17 @@ def setup_logger(
|
||||
|
||||
|
||||
def get_logger():
|
||||
"""
|
||||
Get the global logger. This function is shared across submodules such as
|
||||
training and inference to access the global logger instance. Raises if the
|
||||
logger has not been set.
|
||||
|
||||
Returns:
|
||||
The global logger.
|
||||
"""
|
||||
global _LOGGER
|
||||
if _LOGGER is None:
|
||||
raise RuntimeError("Logger not set. Please call `set_logger` first.")
|
||||
_LOGGER = setup_logger()
|
||||
return _LOGGER
|
||||
|
||||
|
||||
def reset_logger():
|
||||
"""Reset the global logger. Useful mainly in test to clear loggers between tests."""
|
||||
"""Reset the logger. Useful mainly in tests."""
|
||||
global _LOGGER, _JSON_LOGGING
|
||||
if _LOGGER is not None:
|
||||
_LOGGER.remove()
|
||||
_LOGGER = None
|
||||
_JSON_LOGGING = False
|
||||
|
||||
|
||||
@@ -130,6 +130,7 @@ def clean_exit(func: Callable) -> Callable:
|
||||
wandb.finish()
|
||||
return ret
|
||||
except Exception as e:
|
||||
get_logger().opt(exception=True).error(f"Fatal error in {func.__name__}")
|
||||
wandb.finish(exit_code=1)
|
||||
raise e
|
||||
finally:
|
||||
@@ -146,6 +147,7 @@ def clean_exit(func: Callable) -> Callable:
|
||||
wandb.finish()
|
||||
return ret
|
||||
except Exception as e:
|
||||
get_logger().opt(exception=True).error(f"Fatal error in {func.__name__}")
|
||||
wandb.finish(exit_code=1)
|
||||
raise e
|
||||
finally:
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
from typing import Callable
|
||||
|
||||
import pytest
|
||||
|
||||
from tests.conftest import ProcessResult
|
||||
from tests.utils import check_no_error, check_number_goes_up_or_down, check_reward_in_range, strip_escape_codes
|
||||
|
||||
pytestmark = [pytest.mark.gpu, pytest.mark.slow]
|
||||
|
||||
|
||||
TIMEOUT = 900 # 15 minutes
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def rl_output_dir(output_dir: Path) -> Path:
|
||||
rl_dir = output_dir / "alphabet_sort_start"
|
||||
rl_dir.mkdir(parents=True, exist_ok=True)
|
||||
return rl_dir
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def wandb_name(branch_name: str) -> str:
|
||||
"""Fixture for W&B name for alphabet sort RL CI integration tests."""
|
||||
return f"test-alphabet-sort-{branch_name}"
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def rl_process(
|
||||
run_process: Callable[..., ProcessResult],
|
||||
rl_output_dir: Path,
|
||||
wandb_project: str,
|
||||
wandb_name: str,
|
||||
) -> ProcessResult:
|
||||
cmd = [
|
||||
"uv",
|
||||
"run",
|
||||
"rl",
|
||||
"@",
|
||||
"configs/ci/integration/alphabet_sort/start.toml",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
wandb_name,
|
||||
"--output-dir",
|
||||
rl_output_dir.as_posix(),
|
||||
]
|
||||
return run_process(cmd, timeout=TIMEOUT)
|
||||
|
||||
|
||||
check_reward_goes_up = partial(check_number_goes_up_or_down, go_up=True, pattern=r"Reward:\s*(\d+\.\d{4})")
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def test_no_error(rl_process: ProcessResult, rl_output_dir: Path):
|
||||
"""Tests that the RL process does not fail."""
|
||||
check_no_error(rl_process, rl_output_dir)
|
||||
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, rl_output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process."""
|
||||
with open(rl_output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_in_range(rl_process: ProcessResult, test_no_error, rl_output_dir: Path):
|
||||
"""Tests that the reward is in range in the RL process."""
|
||||
with open(rl_output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.05)
|
||||
@@ -118,7 +118,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "anthropic"
|
||||
version = "0.71.0"
|
||||
version = "0.79.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "anyio" },
|
||||
@@ -130,9 +130,9 @@ dependencies = [
|
||||
{ name = "sniffio" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/82/4f/70682b068d897841f43223df82d96ec1d617435a8b759c4a2d901a50158b/anthropic-0.71.0.tar.gz", hash = "sha256:eb8e6fa86d049061b3ef26eb4cbae0174ebbff21affa6de7b3098da857d8de6a", size = 489102, upload-time = "2025-10-16T15:54:40.08Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/15/b1/91aea3f8fd180d01d133d931a167a78a3737b3fd39ccef2ae8d6619c24fd/anthropic-0.79.0.tar.gz", hash = "sha256:8707aafb3b1176ed6c13e2b1c9fb3efddce90d17aee5d8b83a86c70dcdcca871", size = 509825, upload-time = "2026-02-07T18:06:18.388Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/77/073e8ac488f335aec7001952825275582fb8f433737e90f24eeef9d878f6/anthropic-0.71.0-py3-none-any.whl", hash = "sha256:85c5015fcdbdc728390f11b17642a65a4365d03b12b799b18b6cc57e71fdb327", size = 355035, upload-time = "2025-10-16T15:54:38.238Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/b2/cc0b8e874a18d7da50b0fda8c99e4ac123f23bf47b471827c5f6f3e4a767/anthropic-0.79.0-py3-none-any.whl", hash = "sha256:04cbd473b6bbda4ca2e41dd670fe2f829a911530f01697d0a1e37321eb75f3cf", size = 405918, upload-time = "2026-02-07T18:06:20.246Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -755,14 +755,14 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "flash-attn"
|
||||
version = "2.6.3+cu128torch2.10"
|
||||
source = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.6.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl" }
|
||||
version = "2.8.3+cu128torch2.10"
|
||||
source = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl" }
|
||||
dependencies = [
|
||||
{ name = "einops" },
|
||||
{ name = "torch" },
|
||||
]
|
||||
wheels = [
|
||||
{ url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.6.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl", hash = "sha256:e883225b48075ea57790527ae3f653421a58c25d207375d00a1dfa9221b5bd43" },
|
||||
{ url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl", hash = "sha256:5ef676dfd01d198eed36795d924eb6af4c87674896de6bd102390afa7f522bc0" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
@@ -2334,7 +2334,7 @@ requires-dist = [
|
||||
{ name = "beartype", specifier = ">=0.21.0" },
|
||||
{ name = "datasets", specifier = ">=4.0.0" },
|
||||
{ name = "dion", git = "https://github.com/samsja/dion.git?rev=d891eeb" },
|
||||
{ name = "flash-attn", marker = "extra == 'flash-attn'", url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.6.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl" },
|
||||
{ name = "flash-attn", marker = "extra == 'flash-attn'", url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu128torch2.10-cp312-cp312-linux_x86_64.whl" },
|
||||
{ name = "flash-attn-3", marker = "extra == 'flash-attn-3'", url = "https://github.com/samsja/flash-attn-builds/releases/download/v0.1/flash_attn_3-3.0.0b1-cp39-abi3-linux_x86_64.whl" },
|
||||
{ name = "flash-attn-cute", marker = "extra == 'flash-attn-cute'", git = "https://github.com/Dao-AILab/flash-attention.git?subdirectory=flash_attn%2Fcute&rev=main" },
|
||||
{ name = "jaxtyping", specifier = ">=0.3.2" },
|
||||
@@ -2358,7 +2358,7 @@ requires-dist = [
|
||||
{ name = "torchtitan", git = "https://github.com/pytorch/torchtitan?rev=a1fdd7e" },
|
||||
{ name = "transformers", git = "https://github.com/huggingface/transformers.git?rev=609e3d5" },
|
||||
{ name = "uvloop", specifier = ">=0.21.0" },
|
||||
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ccef044" },
|
||||
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ad77074" },
|
||||
{ name = "vllm", url = "https://github.com/vllm-project/vllm/releases/download/v0.16.0/vllm-0.16.0-cp38-abi3-manylinux_2_31_x86_64.whl" },
|
||||
{ name = "wandb", specifier = ">=0.24.2" },
|
||||
]
|
||||
@@ -3686,9 +3686,10 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "verifiers"
|
||||
version = "0.1.10"
|
||||
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ccef044#ccef04486cda1759981dfc41b81b3939e5b69a9f" }
|
||||
version = "0.1.11.dev0"
|
||||
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ad77074#ad77074e6e8585242425aabd598fc102584a0777" }
|
||||
dependencies = [
|
||||
{ name = "anthropic" },
|
||||
{ name = "datasets" },
|
||||
{ name = "gepa" },
|
||||
{ name = "jinja2" },
|
||||
|
||||
Reference in New Issue
Block a user