Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30a14c1702 | ||
|
|
a646ad6050 | ||
|
|
10135d4814 | ||
|
|
29cc7b24ef | ||
|
|
deb1aa92bc | ||
|
|
5c3008b3a5 | ||
|
|
54b3e4cd24 | ||
|
|
bc55a1c85a | ||
|
|
6f9c1362a1 | ||
|
|
46d210bf6e |
+1
-1
@@ -37,7 +37,7 @@ Documenting changes which affect configuration usage patterns (added/moved/remov
|
||||
- **`orchestrator.env.log`**: Removed. Use `orchestrator.log` for env worker logging instead (2026-01-15)
|
||||
- **`orchestrator.eval.retry.reraise`**: Changed default from `True` to `False`. When `False`, raises `tenacity.RetryError` after retries are exhausted instead of the original exception, allowing failed eval environments to be skipped with a warning (#1586, 2026-01-14)
|
||||
- **`model.ep`**: Expert parallelism now supported (with auto/custom impl only), changed from the old behaviour when `ep>1` was a no-op to a proper parallelization of the MoE layers. (#1595, 2026-01-15)
|
||||
- **`orchestrator.reload_weights_on_start`**: Added flag to control resetting inference weights to the base model when starting from scratch (default: True) (2026-01-21)
|
||||
- **`orchestrator.reload_weights_on_start`**: Removed. The reload was a no-op in practice since vLLM servers already start with base weights, and LoRA runs skipped it. (#1829, 2026-02-19)
|
||||
- **`orchestrator.client.elastic`**: Added elastic inference pool with DNS-based service discovery. Supports dynamic server scaling via any DNS hostname with multiple A records (Kubernetes headless services, Consul, Route53, etc.). Automatically syncs LoRA adapters on new servers and only exposes ready servers to workers (#1617, 2026-01-19)
|
||||
- **`model.fused_lm_head_chunk_size`**: Replaced chunk size `int | None` setting with `int | Literal["auto", "disabled"]` setting. `auto` auto-sets to 2048 if possible. `disabled` explicitly disables chunked loss (use vanilla LM head). Default behaviour is to use `auto` for RL training and `disabled` for SFT training. (not changed from previous version) (#1649, 2026-01-23)
|
||||
- **`client.skip_model_check`**: Added configuration to skip checking if the model is available in the inference pool. Useful for external APIs or API keys that don't support the /models endpoint (default: False) (#1543, 2026-01-06)
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# Based on configs/multimodal/rl_color_codeword.toml but tuned for CI
|
||||
inference_gpu_ids = [0,1,2,3]
|
||||
trainer_gpu_ids = [4,5,6,7]
|
||||
|
||||
max_steps = 25
|
||||
seq_len = 4096
|
||||
|
||||
[model]
|
||||
name = "Qwen/Qwen3-VL-4B-Instruct"
|
||||
|
||||
[orchestrator]
|
||||
batch_size = 256
|
||||
rollouts_per_example = 16
|
||||
|
||||
[orchestrator.sampling]
|
||||
max_tokens = 64
|
||||
|
||||
[[orchestrator.env]]
|
||||
id = "primeintellect/color-codeword"
|
||||
args = { images_per_turn = 1, max_turns = 3, num_examples = 1000, seed = 42 }
|
||||
|
||||
[orchestrator.val]
|
||||
interval = 5
|
||||
num_examples = 100
|
||||
|
||||
[trainer]
|
||||
|
||||
[trainer.model]
|
||||
optimization_dtype = "bfloat16"
|
||||
reduce_dtype = "bfloat16"
|
||||
|
||||
[trainer.optim]
|
||||
lr = 3e-6
|
||||
|
||||
[inference]
|
||||
+1
-1
@@ -16,7 +16,7 @@ The trainer is responsible for producing an updated policy model given rollouts
|
||||
|
||||
### Inference
|
||||
|
||||
The inference service in its simplest form is a standard OpenAI-compatible server with a vLLM backend. The API specification is extended with two custom endpoints to enable updating the server with the latest policy: `update_weights` is used to reload model weights from a HF-compatible checkpoint on disk, and `reload_weights` is used to reset the weights to the base model in between experiments. Otherwise, we rely on vLLM's optimized kernels, parallelism strategies, and scheduling for fast rollout generation. Given the disaggregated nature of the service architecture, it can be directly extended to include multiple engines with a shared request pool, allowing operation across multiple clusters and straightforward integration of alternative inference engines (e.g. SGLang, Tokasaurus). We also heavily rely on native data parallelism in vLLM (also available in SGLang) for orchestrating the fleet of nodes dedicated to inference.
|
||||
The inference service in its simplest form is a standard OpenAI-compatible server with a vLLM backend. The API specification is extended with a custom `update_weights` endpoint to reload model weights from a HF-compatible checkpoint on disk. Otherwise, we rely on vLLM's optimized kernels, parallelism strategies, and scheduling for fast rollout generation. Given the disaggregated nature of the service architecture, it can be directly extended to include multiple engines with a shared request pool, allowing operation across multiple clusters and straightforward integration of alternative inference engines (e.g. SGLang, Tokasaurus). We also heavily rely on native data parallelism in vLLM (also available in SGLang) for orchestrating the fleet of nodes dedicated to inference.
|
||||
|
||||
### RL
|
||||
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ override-dependencies = [
|
||||
[tool.uv.sources]
|
||||
torch = { index = "pytorch-cu128" }
|
||||
math-env = { index = "primeintellect" }
|
||||
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "ad77074" }
|
||||
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "013d4da" }
|
||||
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" }
|
||||
|
||||
@@ -203,3 +203,78 @@ def monkey_patch_tokenize_params_validation():
|
||||
|
||||
TokenizeParams._token_len_check = _patched_token_len_check
|
||||
TokenizeParams._text_len_check = _patched_text_len_check
|
||||
|
||||
|
||||
def monkey_patch_minimax_m2_for_lora():
|
||||
"""Patch vLLM's MiniMaxM2 model for LoRA compatibility.
|
||||
|
||||
These patches are only needed when using LoRA with MiniMax M2 but are safe
|
||||
to apply unconditionally (verified with non-LoRA runs). We apply them at
|
||||
import time because the worker __init__ runs before the vLLM config is
|
||||
available, so we can't check if LoRA is enabled.
|
||||
|
||||
Problem 1 — Gate dtype mismatch:
|
||||
vLLM's MiniMaxM2MoE creates the gate (router) with params_dtype=float32
|
||||
and casts inputs to float32. When LoRA is enabled, vLLM wraps ALL
|
||||
ReplicatedLinear layers (including the gate) with LoRA support. Even
|
||||
though our adapter has no gate LoRA weights, the LoRA Triton kernel
|
||||
still runs for all wrapped layers when any adapter is active — and it
|
||||
asserts inputs are float16/bfloat16. Qwen3 MoE doesn't have this
|
||||
problem because its gate uses the model dtype.
|
||||
Fix: recreate the gate in model dtype and remove the float32 cast.
|
||||
FusedMoE already has router_logits_dtype=float32, so routing precision
|
||||
is preserved inside the expert dispatch.
|
||||
|
||||
Problem 2 — Adapter key naming mismatch:
|
||||
PrimeRL saves adapter keys using its internal naming convention
|
||||
(mlp.experts.{j}.gate_proj/down_proj/up_proj), which matches Qwen3 MoE
|
||||
but not MiniMax M2. vLLM's MiniMax M2 model expects HF-style keys
|
||||
(block_sparse_moe.experts.{j}.w1/w2/w3). For full model weights this
|
||||
is handled by vLLM's load_weights(), but LoRA adapters are loaded
|
||||
through a separate path (LoRAModel.from_local_checkpoint) that doesn't
|
||||
have model-specific key translation.
|
||||
Fix: set hf_to_vllm_mapper on the model class so vLLM remaps adapter
|
||||
keys during LoRA loading. This attribute is only read by _load_adapter
|
||||
in the LoRA worker manager — it has no effect without LoRA.
|
||||
"""
|
||||
from vllm.model_executor.models.minimax_m2 import MiniMaxM2ForCausalLM, MiniMaxM2MoE
|
||||
from vllm.model_executor.models.utils import WeightsMapper
|
||||
|
||||
# --- Gate dtype fix (only matters with LoRA, safe without) ---
|
||||
_original_init = MiniMaxM2MoE.__init__
|
||||
|
||||
def _patched_init(self, config, quant_config=None, prefix=""):
|
||||
_original_init(self, config, quant_config, prefix)
|
||||
from vllm.model_executor.layers.linear import ReplicatedLinear
|
||||
|
||||
self.gate = ReplicatedLinear(
|
||||
config.hidden_size,
|
||||
config.num_local_experts,
|
||||
bias=False,
|
||||
quant_config=None,
|
||||
prefix=f"{prefix}.gate",
|
||||
)
|
||||
|
||||
def _patched_forward(self, hidden_states):
|
||||
from vllm.distributed import tensor_model_parallel_all_reduce
|
||||
|
||||
num_tokens, hidden_dim = hidden_states.shape
|
||||
hidden_states = hidden_states.view(-1, hidden_dim)
|
||||
router_logits, _ = self.gate(hidden_states)
|
||||
final_hidden_states = self.experts(hidden_states=hidden_states, router_logits=router_logits)
|
||||
if self.tp_size > 1:
|
||||
final_hidden_states = tensor_model_parallel_all_reduce(final_hidden_states)
|
||||
return final_hidden_states.view(num_tokens, hidden_dim)
|
||||
|
||||
MiniMaxM2MoE.__init__ = _patched_init
|
||||
MiniMaxM2MoE.forward = _patched_forward
|
||||
|
||||
# --- Adapter key remapping (only read by vLLM's LoRA adapter loader) ---
|
||||
MiniMaxM2ForCausalLM.hf_to_vllm_mapper = WeightsMapper(
|
||||
orig_to_new_substr={
|
||||
".mlp.experts.": ".block_sparse_moe.experts.",
|
||||
".gate_proj.": ".w1.",
|
||||
".down_proj.": ".w2.",
|
||||
".up_proj.": ".w3.",
|
||||
},
|
||||
)
|
||||
|
||||
@@ -76,14 +76,6 @@ async def update_weights(request: Request):
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
@router.post("/reload_weights")
|
||||
async def reload_weights(request: Request):
|
||||
await engine_client(request).collective_rpc("reload_weights")
|
||||
# Reset prefix cache to invalidate KV states computed with old weights
|
||||
await engine_client(request).reset_prefix_cache()
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
@router.post("/load_lora_adapter")
|
||||
async def load_lora_adapter(lora_request: LoadLoRAAdapterRequest, raw_request: Request):
|
||||
"""Load a LoRA adapter and reset the prefix cache.
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
from prime_rl.inference.patches import monkey_patch_LRUCacheWorkerLoRAManager
|
||||
from prime_rl.inference.patches import monkey_patch_LRUCacheWorkerLoRAManager, monkey_patch_minimax_m2_for_lora
|
||||
|
||||
# Monkeypatch LRUCacheWorkerLoRAManager to allow loading adapter inplace without doing it every request
|
||||
monkey_patch_LRUCacheWorkerLoRAManager()
|
||||
# Monkeypatch MiniMaxM2 MoE gate dtype and adapter key mapping for LoRA compatibility
|
||||
monkey_patch_minimax_m2_for_lora()
|
||||
|
||||
@@ -29,7 +29,7 @@ class CheckpointManager:
|
||||
def get_ckpt_path(self, step: int) -> Path:
|
||||
return get_step_path(self.ckpt_dir, step) / "orchestrator"
|
||||
|
||||
def _save_to_path(
|
||||
def save_to_path(
|
||||
self,
|
||||
ckpt_path: Path,
|
||||
progress: Progress,
|
||||
@@ -47,7 +47,7 @@ class CheckpointManager:
|
||||
|
||||
self.logger.debug(f"Orchestrator checkpoint saved in {time.perf_counter() - start_time:.2f} seconds")
|
||||
|
||||
def _load_from_path(self, ckpt_path: Path, progress: Progress, buffer: Buffer) -> None:
|
||||
def load_from_path(self, ckpt_path: Path, progress: Progress, buffer: Buffer) -> None:
|
||||
"""Loads a checkpoint from a given path in-place."""
|
||||
self.logger.debug(f"Loading checkpoint from {ckpt_path}")
|
||||
start_time = time.perf_counter()
|
||||
@@ -76,7 +76,7 @@ class CheckpointManager:
|
||||
ckpt_path = self.get_ckpt_path(step)
|
||||
if not ckpt_path.exists():
|
||||
raise FileNotFoundError(f"Checkpoint not found at {ckpt_path}")
|
||||
self._load_from_path(ckpt_path, progress, buffer)
|
||||
self.load_from_path(ckpt_path, progress, buffer)
|
||||
|
||||
def save(
|
||||
self,
|
||||
@@ -87,7 +87,7 @@ class CheckpointManager:
|
||||
"""Saves the full checkpoint state for a specified step."""
|
||||
ckpt_path = self.get_ckpt_path(step)
|
||||
ckpt_path.mkdir(parents=True, exist_ok=True)
|
||||
self._save_to_path(ckpt_path, progress, buffer)
|
||||
self.save_to_path(ckpt_path, progress, buffer)
|
||||
|
||||
|
||||
def setup_ckpt_manager(output_dir: Path, config: CheckpointConfig | None) -> CheckpointManager | None:
|
||||
|
||||
@@ -720,12 +720,6 @@ class OrchestratorConfig(BaseSettings):
|
||||
# The checkpoint configuration
|
||||
ckpt: CheckpointConfig | None = None
|
||||
|
||||
# Whether to reset inference weights to base model when starting from scratch
|
||||
reload_weights_on_start: Annotated[
|
||||
bool,
|
||||
Field(description="Whether to reset inference weights to the base model when starting from scratch."),
|
||||
] = True
|
||||
|
||||
# The validation configuration
|
||||
val: ValConfig | None = None
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import asyncio
|
||||
|
||||
from verifiers.workers import ZMQEnvServer
|
||||
|
||||
from prime_rl.orchestrator.env_server.config import EnvServerConfig
|
||||
@@ -19,15 +21,18 @@ def run_server(config: EnvServerConfig):
|
||||
|
||||
env_name = config.env.name or config.env.id
|
||||
log_file = (get_log_dir(config.output_dir) / "train" / f"{env_name}.log").as_posix()
|
||||
ZMQEnvServer.run_server(
|
||||
|
||||
server = ZMQEnvServer(
|
||||
env_id=strip_env_version(config.env.id),
|
||||
env_args=config.env.args,
|
||||
extra_env_kwargs=config.env.extra_env_kwargs,
|
||||
log_level=config.log.level,
|
||||
log_file_level=config.log.vf_level,
|
||||
log_file=log_file,
|
||||
json_logging=config.log.json_logging,
|
||||
**{"address": config.env.address} if config.env.address is not None else {},
|
||||
)
|
||||
asyncio.run(server.run())
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
@@ -45,22 +45,21 @@ def get_eval_sampling_args(sampling_config: EvalSamplingConfig) -> dict[str, Any
|
||||
return sampling_args
|
||||
|
||||
|
||||
def compute_pass_at_k(rewards: list[int]) -> dict[str, float]:
|
||||
total_attempts = len(rewards)
|
||||
k = total_attempts // 2
|
||||
def _pass_at_k(n: int, c: int, k: int) -> float:
|
||||
"""Unbiased estimator of pass@k (Chen et al., 2021).
|
||||
|
||||
if k == 0:
|
||||
return {"pass@1": float(any(reward == 1.0 for reward in rewards))}
|
||||
Computes 1 - C(n-c, k) / C(n, k) in a numerically stable way.
|
||||
"""
|
||||
if n - c < k:
|
||||
return 1.0
|
||||
return 1.0 - np.prod(1.0 - k / np.arange(n - c + 1, n + 1))
|
||||
|
||||
num_trials = 100
|
||||
pass_rates = []
|
||||
|
||||
for _ in range(num_trials):
|
||||
sampled_rewards = np.random.choice(rewards, size=k, replace=False)
|
||||
pass_rate = float(any(reward == 1.0 for reward in sampled_rewards))
|
||||
pass_rates.append(pass_rate)
|
||||
|
||||
return {f"pass@{k}": float(np.mean(pass_rates))}
|
||||
def compute_pass_at_k(rewards: list[float]) -> dict[str, float]:
|
||||
n = len(rewards)
|
||||
c = sum(r == 1.0 for r in rewards)
|
||||
ks = [2**i for i in range(n.bit_length())]
|
||||
return {f"pass@{k}": _pass_at_k(n, c, k) for k in ks}
|
||||
|
||||
|
||||
async def evaluate_env(
|
||||
|
||||
@@ -43,13 +43,13 @@ from prime_rl.orchestrator.vf_utils import (
|
||||
generate,
|
||||
get_completion_len,
|
||||
get_seq_len,
|
||||
intercept_vf_logging,
|
||||
setup_env_client,
|
||||
spawn_env_server,
|
||||
wait_for_env_servers,
|
||||
)
|
||||
from prime_rl.utils.client import (
|
||||
init_nccl_broadcast,
|
||||
reload_weights,
|
||||
setup_inference_pool,
|
||||
)
|
||||
from prime_rl.utils.heartbeat import Heartbeat
|
||||
@@ -76,7 +76,7 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
log_file=config.output_dir / "logs" / "orchestrator.log" if config.log.file else None,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
vf.setup_logging(level="CRITICAL")
|
||||
intercept_vf_logging(logger="verifiers.workers", level=config.log.vf_level) # show logs from env clients
|
||||
logger.info("Starting orchestrator")
|
||||
|
||||
event_loop_lag_monitor = EventLoopLagMonitor()
|
||||
@@ -156,14 +156,15 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
f"Loading {len(config.env)} training environment(s) ({', '.join(env.name or env.id for env in config.env)})"
|
||||
)
|
||||
env_ids = [strip_env_version(env.id) for env in config.env]
|
||||
train_env_names = [env.name or env_id for env_id, env in zip(env_ids, config.env)]
|
||||
train_env_group = vf.EnvGroup(
|
||||
envs=[vf.load_environment(env_id, **env.args) for env_id, env in zip(env_ids, config.env)],
|
||||
env_names=[env.name or env_id for env_id, env in zip(env_ids, config.env)],
|
||||
env_names=train_env_names,
|
||||
map_kwargs=dict(writer_batch_size=1), # set defensively to not error on map operations on large datasets
|
||||
)
|
||||
|
||||
train_env_addresses = []
|
||||
for env_id, env, env_name in zip(env_ids, config.env, train_env_group.env_names):
|
||||
for env_id, env, env_name in zip(env_ids, config.env, train_env_names):
|
||||
if env.address is None:
|
||||
address = spawn_env_server(
|
||||
env_id=env_id,
|
||||
@@ -172,12 +173,15 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
log_level="CRITICAL",
|
||||
log_file=(get_log_dir(config.output_dir) / "train" / f"{env_name}.log").as_posix(),
|
||||
log_file_level=config.log.vf_level,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
else:
|
||||
address = env.address
|
||||
logger.info(f"Connecting train environment {env_name} to server at {address}")
|
||||
train_env_addresses.append(address)
|
||||
train_env_clients = [setup_env_client(address) for address in train_env_addresses]
|
||||
train_env_clients = [
|
||||
setup_env_client(address=address, name=name) for name, address in zip(train_env_names, train_env_addresses)
|
||||
]
|
||||
|
||||
logger.info("Waiting for train environment servers to be ready")
|
||||
await wait_for_env_servers(train_env_clients)
|
||||
@@ -204,13 +208,16 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
log_level="CRITICAL",
|
||||
log_file=(get_log_dir(config.output_dir) / "eval" / f"{eval_env_name}.log").as_posix(),
|
||||
log_file_level=config.log.vf_level,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
else:
|
||||
address = env.address
|
||||
logger.info(f"Connecting eval environment {eval_env_name} to server at {address}")
|
||||
eval_env_addresses.append(address)
|
||||
|
||||
eval_env_clients = [setup_env_client(address) for address in eval_env_addresses]
|
||||
eval_env_clients = [
|
||||
setup_env_client(address=address, name=name) for name, address in zip(eval_env_names, eval_env_addresses)
|
||||
]
|
||||
|
||||
logger.info("Waiting for eval environment servers to be ready")
|
||||
await wait_for_env_servers(eval_env_clients)
|
||||
@@ -313,14 +320,7 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
lora_name = config.model.lora.name if config.model.lora else None
|
||||
await inference_pool.update_weights(weights_path, lora_name=lora_name, step=scheduler.ckpt_step)
|
||||
else:
|
||||
if config.reload_weights_on_start:
|
||||
if config.model.lora is None:
|
||||
logger.info("Training from scratch. Resetting weights to base model")
|
||||
await reload_weights(inference_pool.admin_clients)
|
||||
else:
|
||||
logger.info("Training from scratch. Skipping base weight reload because LoRA is enabled")
|
||||
else:
|
||||
logger.info("Training from scratch. Skipping base weight reload")
|
||||
logger.info("Training from scratch")
|
||||
|
||||
# Iterate over dataset in batches
|
||||
max_steps = config.max_steps or int(1e9)
|
||||
|
||||
@@ -7,10 +7,10 @@ from typing import Any
|
||||
|
||||
import verifiers as vf
|
||||
from verifiers.envs.environment import EnvClient
|
||||
from verifiers.utils.worker_utils import get_free_port
|
||||
from verifiers.utils.worker_utils import get_free_port_pair
|
||||
from verifiers.workers import ZMQEnvClient, ZMQEnvServer
|
||||
|
||||
from prime_rl.utils.logger import InterceptHandler, ProgressTracker, get_logger
|
||||
from prime_rl.utils.logger import InterceptHandler, ProgressTracker
|
||||
|
||||
DEFAULT_RETRIES = 0
|
||||
REQUIRED_STATE_COLUMNS = ["trajectory", "sampling_args"]
|
||||
@@ -22,9 +22,11 @@ def spawn_env_server(
|
||||
env_args: dict[str, Any],
|
||||
extra_env_kwargs: dict[str, Any],
|
||||
address: str | None = None,
|
||||
# logging configs
|
||||
log_level: str | None = None,
|
||||
log_file: str | None = None,
|
||||
log_file_level: str | None = None,
|
||||
json_logging: bool = False,
|
||||
daemon: bool = True,
|
||||
) -> str:
|
||||
"""
|
||||
@@ -32,7 +34,7 @@ def spawn_env_server(
|
||||
|
||||
Mirrors vf.Environment.start_server().
|
||||
"""
|
||||
address = address or f"tcp://127.0.0.1:{get_free_port()}"
|
||||
address = address or f"tcp://127.0.0.1:{get_free_port_pair()}"
|
||||
# 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.
|
||||
@@ -46,43 +48,33 @@ def spawn_env_server(
|
||||
log_file,
|
||||
log_file_level,
|
||||
),
|
||||
kwargs=dict(address=address),
|
||||
kwargs=dict(address=address, json_logging=json_logging),
|
||||
daemon=daemon,
|
||||
).start()
|
||||
|
||||
return address
|
||||
|
||||
|
||||
def setup_env_client(address: str) -> EnvClient:
|
||||
def setup_env_client(
|
||||
address: str,
|
||||
name: str | None = None,
|
||||
# health check configs
|
||||
health_check_interval: float = 5.0, # 5s (we detect an env server as unhealth after 3 * 5s = 15s of unsuccessful health checks)
|
||||
startup_timeout: float = 600.0, # 10m
|
||||
recovery_timeout: float = 600.0, # 10m
|
||||
) -> EnvClient:
|
||||
"""Sets up a ZMQEnvClient for a given address."""
|
||||
return ZMQEnvClient(address=address)
|
||||
return ZMQEnvClient(
|
||||
address=address,
|
||||
name=name,
|
||||
health_check_interval=health_check_interval,
|
||||
startup_timeout=startup_timeout,
|
||||
recovery_timeout=recovery_timeout,
|
||||
)
|
||||
|
||||
|
||||
async def wait_for_env_servers(
|
||||
env_clients: list[EnvClient], interval: int = 1, log_interval: int = 10, timeout: int = 1800
|
||||
) -> None:
|
||||
logger = get_logger()
|
||||
|
||||
async def wait_for_env_server(env_client: EnvClient) -> None:
|
||||
wait_time = 0
|
||||
logger.debug(f"Starting pinging environment server at {env_client.address}")
|
||||
while wait_time < timeout:
|
||||
try:
|
||||
await env_client.health(timeout=1) # quick timeout
|
||||
logger.debug(f"Environment server at {env_client.address} is ready after {wait_time} seconds")
|
||||
return
|
||||
except Exception as e:
|
||||
if wait_time % log_interval == 0 and wait_time > 0:
|
||||
logger.warning(
|
||||
f"Environment server at {env_client.address} was not reached after {wait_time} seconds (Error: {e})"
|
||||
)
|
||||
await asyncio.sleep(interval)
|
||||
wait_time += interval
|
||||
msg = f"Environment server at {env_client.address} is not ready after {wait_time} (>{timeout}) seconds. Aborting..."
|
||||
logger.error(msg)
|
||||
raise TimeoutError(msg)
|
||||
|
||||
await asyncio.gather(*[wait_for_env_server(env_client) for env_client in env_clients])
|
||||
async def wait_for_env_servers(env_clients: list[EnvClient]) -> None:
|
||||
await asyncio.gather(*[env_client.wait_for_server_startup() for env_client in env_clients])
|
||||
|
||||
|
||||
async def run_group(
|
||||
@@ -249,9 +241,9 @@ def get_completion_len(output: vf.RolloutOutput) -> int:
|
||||
return get_seq_len(output) - get_prompt_len(output)
|
||||
|
||||
|
||||
def intercept_vf_logging(level: str = "DEBUG", prefix: str = "verifiers"):
|
||||
"""Intercepts verifiers logging and routes through prime-rl logger with [verifiers] prefix."""
|
||||
vf_logger = logging.getLogger("verifiers")
|
||||
def intercept_vf_logging(logger: str = "verifiers", level: str = "DEBUG", prefix: str | None = None):
|
||||
"""Intercepts verifiers logging and routes through prime-rl logger with optional prefix."""
|
||||
vf_logger = logging.getLogger(logger)
|
||||
vf_logger.handlers.clear()
|
||||
vf_logger.addHandler(InterceptHandler(prefix=prefix))
|
||||
vf_logger.setLevel(level.upper())
|
||||
|
||||
@@ -30,7 +30,6 @@ from prime_rl.trainer.weights import (
|
||||
)
|
||||
from prime_rl.trainer.world import get_world
|
||||
from prime_rl.utils.logger import get_logger
|
||||
from prime_rl.utils.tensor_hashing import get_module_signature, get_optimizer_signature
|
||||
from prime_rl.utils.utils import get_all_ckpt_steps, get_ckpt_dir, get_step_path, get_weights_dir
|
||||
|
||||
|
||||
@@ -214,9 +213,6 @@ class CheckpointManager:
|
||||
if not ckpt_path.exists():
|
||||
raise FileNotFoundError(f"Checkpoint not found at {ckpt_path}")
|
||||
self.load_from_path(ckpt_path, model, optimizers, scheduler, progress, dataloader)
|
||||
self.logger.debug(
|
||||
f"Signatures after loading training checkpoint: model={get_module_signature(model, compress=True)}, optimizers={', '.join(get_optimizer_signature(optimizer, compress=True) for optimizer in optimizers)}"
|
||||
)
|
||||
|
||||
def save(
|
||||
self,
|
||||
@@ -230,9 +226,6 @@ class CheckpointManager:
|
||||
"""Save the full checkpoint state for a specified step."""
|
||||
ckpt_path = self.get_ckpt_path(step)
|
||||
ckpt_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
self.logger.debug(
|
||||
f"Signatures before saving training checkpoint: model={get_module_signature(model, compress=True)}, optimizers={', '.join(get_optimizer_signature(optimizer, compress=True) for optimizer in optimizers)}"
|
||||
)
|
||||
|
||||
self.save_to_path(ckpt_path, model, optimizers, scheduler, progress, dataloader)
|
||||
bisect.insort(self.ckpt_steps, step)
|
||||
@@ -305,6 +298,12 @@ class WeightCheckpointManager:
|
||||
"""Get the path to write the weight checkpoint for a given step."""
|
||||
return get_step_path(self.weights_dir, step)
|
||||
|
||||
def mark_stable(self, step: int) -> None:
|
||||
"""Write STABLE file to indicate weight checkpoint is complete."""
|
||||
if self.world.is_master:
|
||||
step_path = self.get_step_path(step)
|
||||
(step_path / "STABLE").touch()
|
||||
|
||||
def save_to_path(
|
||||
self,
|
||||
path: Path,
|
||||
@@ -314,44 +313,45 @@ class WeightCheckpointManager:
|
||||
tokenizer: PreTrainedTokenizer,
|
||||
):
|
||||
"""Save HF-compatible weight checkpoint to a given path."""
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
start_time = time.perf_counter()
|
||||
if self.world.is_master:
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
start_time = time.perf_counter()
|
||||
|
||||
self.logger.debug(f"Saving weight checkpoint to {path}")
|
||||
# Suppress torch.distributed warnings during checkpoint saving
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore", category=FutureWarning, module="torch.distributed")
|
||||
warnings.filterwarnings("ignore", category=UserWarning, module="torch.distributed.*")
|
||||
self.logger.debug(f"Saving weight checkpoint to {path}")
|
||||
# Suppress torch.distributed warnings during checkpoint saving
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore", category=FutureWarning, module="torch.distributed")
|
||||
warnings.filterwarnings("ignore", category=UserWarning, module="torch.distributed.*")
|
||||
|
||||
# Save weights
|
||||
save_state_dict(state_dict, path, self.config.save_format, self.config.save_sharded)
|
||||
# Save weights
|
||||
save_state_dict(state_dict, path, self.config.save_format, self.config.save_sharded)
|
||||
|
||||
# Save model config, generation arguments and tokenizer
|
||||
model.config.save_pretrained(path)
|
||||
if model.generation_config:
|
||||
# training sets use_cache=False which can conflict with
|
||||
# cache_implementation — save with use_cache=True without
|
||||
# mutating the model's config
|
||||
from copy import deepcopy
|
||||
# Save model config, generation arguments and tokenizer
|
||||
model.config.save_pretrained(path)
|
||||
if model.generation_config:
|
||||
# training sets use_cache=False which can conflict with
|
||||
# cache_implementation — save with use_cache=True without
|
||||
# mutating the model's config
|
||||
from copy import deepcopy
|
||||
|
||||
gen_config = deepcopy(model.generation_config)
|
||||
gen_config.use_cache = True
|
||||
gen_config.save_pretrained(path)
|
||||
tokenizer.save_pretrained(path)
|
||||
gen_config = deepcopy(model.generation_config)
|
||||
gen_config.use_cache = True
|
||||
gen_config.save_pretrained(path)
|
||||
tokenizer.save_pretrained(path)
|
||||
|
||||
if self.config.save_adapter_separately and lora_state_dict is not None:
|
||||
adapter_path = path / "lora_adapters"
|
||||
adapter_path.mkdir(parents=True, exist_ok=True)
|
||||
torch.save(lora_state_dict, adapter_path / "adapter_model.bin")
|
||||
if self.lora_config:
|
||||
save_lora_config(
|
||||
model,
|
||||
adapter_path,
|
||||
rank=self.lora_config.rank,
|
||||
alpha=self.lora_config.alpha,
|
||||
dropout=self.lora_config.dropout,
|
||||
)
|
||||
self.logger.debug(f"Saved weight checkpoint to {path} in {time.perf_counter() - start_time:.2f} seconds")
|
||||
if self.config.save_adapter_separately and lora_state_dict is not None:
|
||||
adapter_path = path / "lora_adapters"
|
||||
adapter_path.mkdir(parents=True, exist_ok=True)
|
||||
torch.save(lora_state_dict, adapter_path / "adapter_model.bin")
|
||||
if self.lora_config:
|
||||
save_lora_config(
|
||||
model,
|
||||
adapter_path,
|
||||
rank=self.lora_config.rank,
|
||||
alpha=self.lora_config.alpha,
|
||||
dropout=self.lora_config.dropout,
|
||||
)
|
||||
self.logger.debug(f"Saved weight checkpoint to {path} in {time.perf_counter() - start_time:.2f} seconds")
|
||||
|
||||
def save(
|
||||
self,
|
||||
@@ -400,10 +400,8 @@ class WeightCheckpointManager:
|
||||
self.logger.debug(f"Reverted to HF hub format in {time.perf_counter() - start_time:.2f} seconds")
|
||||
|
||||
# Save weight checkpoint on master rank
|
||||
if self.world.is_master:
|
||||
self.save_to_path(step_path, state_dict, lora_state_dict, model, tokenizer)
|
||||
# Write STABLE file to indicate checkpoint is complete (for eval to safely read)
|
||||
(step_path / "STABLE").touch()
|
||||
self.save_to_path(step_path, state_dict, lora_state_dict, model, tokenizer)
|
||||
self.mark_stable(step)
|
||||
bisect.insort(self.ckpt_steps, step)
|
||||
|
||||
def maybe_clean(self) -> None:
|
||||
|
||||
@@ -40,7 +40,6 @@ from prime_rl.trainer.weights import (
|
||||
)
|
||||
from prime_rl.trainer.world import get_world
|
||||
from prime_rl.utils.logger import get_logger
|
||||
from prime_rl.utils.tensor_hashing import get_module_signature
|
||||
from prime_rl.utils.vlm import is_vlm_model
|
||||
|
||||
# Add filter to the standard logging module for transformers.modeling_utils to supress the
|
||||
@@ -679,7 +678,6 @@ def setup_model(
|
||||
else:
|
||||
load_dcp_from_hf(model, config, parallel_dims)
|
||||
|
||||
logger.debug(f"Model signature: {get_module_signature(model, compress=True)}")
|
||||
return model
|
||||
|
||||
|
||||
|
||||
@@ -505,6 +505,12 @@ def train(config: RLTrainerConfig):
|
||||
}
|
||||
monitor.log(optim_metrics, step=progress.step)
|
||||
|
||||
# Compute derived metrics
|
||||
entropy_mean = tensor_stats.get("entropy/mean", 0.0)
|
||||
mismatch_kl_mean = tensor_stats.get("mismatch_kl/mean")
|
||||
if mismatch_kl_mean is not None and entropy_mean > 0:
|
||||
tensor_stats["kl_ent_ratio/mean"] = mismatch_kl_mean / entropy_mean
|
||||
|
||||
# Log tensor stats
|
||||
tensor_stats["step"] = progress.step
|
||||
monitor.log(tensor_stats, step=progress.step)
|
||||
|
||||
@@ -11,7 +11,7 @@ import torch.distributed.distributed_c10d as c10d
|
||||
from prime_rl.trainer.config import LoRAConfig
|
||||
from prime_rl.trainer.world import get_world
|
||||
from prime_rl.utils.logger import get_logger
|
||||
from prime_rl.utils.pathing import get_stable_ckpt_steps
|
||||
from prime_rl.utils.pathing import get_all_ckpt_steps, get_stable_ckpt_steps
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from prime_rl.orchestrator.config import OrchestratorConfig
|
||||
@@ -264,8 +264,11 @@ class MultiRunManager:
|
||||
if config.ckpt is None or config.ckpt.resume_step is None:
|
||||
self.progress[new_id].step = 0
|
||||
elif config.ckpt.resume_step == -1:
|
||||
stable_steps = get_stable_ckpt_steps(self.get_run_dir(new_id) / "checkpoints")
|
||||
self.progress[new_id].step = max(stable_steps) if stable_steps else 0
|
||||
ckpt_dir = self.get_run_dir(new_id) / "checkpoints"
|
||||
# In multi-run, the trainer writes STABLE after saving LoRA weights to the run's checkpoint dir.
|
||||
# In single-run, only the orchestrator writes checkpoints here (trainer has its own dir), so no STABLE exists.
|
||||
steps = get_stable_ckpt_steps(ckpt_dir) if self.max_runs > 1 else get_all_ckpt_steps(ckpt_dir)
|
||||
self.progress[new_id].step = max(steps) if steps else 0
|
||||
else:
|
||||
self.progress[new_id].step = config.ckpt.resume_step
|
||||
|
||||
|
||||
@@ -249,24 +249,6 @@ async def update_weights(
|
||||
await asyncio.gather(*[_update_weights(admin_client, weight_dir_posix) for admin_client in admin_clients])
|
||||
|
||||
|
||||
async def reload_weights(admin_clients: list[AsyncClient]) -> None:
|
||||
"""Make a HTTP post request to the vLLM server to reload weights (reset to base model)."""
|
||||
logger = get_logger()
|
||||
|
||||
async def _reload_weights(admin_client: AsyncClient) -> None:
|
||||
logger.debug("Sending request to reload weights (reset to base model)")
|
||||
try:
|
||||
response = await admin_client.post("/reload_weights", json={})
|
||||
response.raise_for_status()
|
||||
except httpx.HTTPStatusError as e:
|
||||
if e.response.status_code == 404:
|
||||
logger.warning("The route /reload_weights does not exist. Skipping weight reload.")
|
||||
return
|
||||
raise
|
||||
|
||||
await asyncio.gather(*[_reload_weights(admin_client) for admin_client in admin_clients])
|
||||
|
||||
|
||||
def _is_retryable_lora_error(exception: BaseException) -> bool:
|
||||
"""Check if an exception should trigger a retry for LoRA loading."""
|
||||
if isinstance(exception, httpx.HTTPStatusError):
|
||||
|
||||
@@ -118,7 +118,7 @@ class LogConfig(BaseConfig):
|
||||
vf_level: Annotated[
|
||||
str,
|
||||
Field(description="Logging level for the verifiers package. Will determine the logging verbosity and format."),
|
||||
] = "warn"
|
||||
] = "info"
|
||||
|
||||
file: Annotated[
|
||||
bool,
|
||||
|
||||
@@ -82,7 +82,7 @@ class JsonFileSink:
|
||||
class InterceptHandler(logging.Handler):
|
||||
"""Intercept standard logging library and routes to our prime-rl logger with specified prefix."""
|
||||
|
||||
def __init__(self, prefix: str):
|
||||
def __init__(self, prefix: str | None):
|
||||
super().__init__()
|
||||
self.prefix = prefix
|
||||
|
||||
@@ -98,7 +98,10 @@ class InterceptHandler(logging.Handler):
|
||||
frame = frame.f_back
|
||||
depth += 1
|
||||
|
||||
logger.opt(depth=depth, exception=record.exc_info).log(level, f"[{self.prefix}] {record.getMessage()}")
|
||||
message = record.getMessage()
|
||||
if self.prefix is not None:
|
||||
message = f"[{self.prefix}] {message}"
|
||||
logger.opt(depth=depth, exception=record.exc_info).log(level, message)
|
||||
|
||||
|
||||
def setup_logger(
|
||||
|
||||
@@ -114,6 +114,7 @@ class MetricsServer(HealthServer):
|
||||
self._mismatch_kl = Gauge(
|
||||
"trainer_mismatch_kl", "KL divergence between trainer and inference model", registry=self._registry
|
||||
)
|
||||
self._kl_ent_ratio = Gauge("trainer_kl_ent_ratio", "Ratio of mismatch KL to entropy", registry=self._registry)
|
||||
# Aggregate run metrics
|
||||
self._runs_discovered = Gauge(
|
||||
"trainer_runs_discovered", "Number of run folders discovered", registry=self._registry
|
||||
@@ -206,6 +207,8 @@ class MetricsServer(HealthServer):
|
||||
self._mfu.set(mfu)
|
||||
self._entropy.set(entropy)
|
||||
self._mismatch_kl.set(mismatch_kl)
|
||||
if entropy > 0:
|
||||
self._kl_ent_ratio.set(mismatch_kl / entropy)
|
||||
self._last_step_ts.set(time.time())
|
||||
|
||||
def update_runs(
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
from typing import Callable
|
||||
|
||||
import pytest
|
||||
|
||||
from tests.conftest import ProcessResult
|
||||
from tests.utils import check_avg_reward_in_range, check_no_error, check_number_goes_up_or_down, strip_escape_codes
|
||||
|
||||
pytestmark = [pytest.mark.gpu, pytest.mark.slow]
|
||||
|
||||
REWARD_MIN_THRESHOLD = 0.85
|
||||
REWARD_AVG_LAST_N_STEPS = 7
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def wandb_name(branch_name: str) -> str:
|
||||
"""Fixture for W&B name for RL CI integration tests."""
|
||||
return f"multimodal-color-codeword-{branch_name}"
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def rl_process(
|
||||
run_process: Callable[..., ProcessResult],
|
||||
output_dir: Path,
|
||||
wandb_project: str,
|
||||
wandb_name: str,
|
||||
) -> ProcessResult:
|
||||
cmd = [
|
||||
"uv",
|
||||
"run",
|
||||
"rl",
|
||||
"@",
|
||||
"configs/ci/nightly/multimodal_color_codeword.toml",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
wandb_name,
|
||||
"--output-dir",
|
||||
output_dir.as_posix(),
|
||||
]
|
||||
return run_process(cmd)
|
||||
|
||||
|
||||
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, output_dir: Path):
|
||||
"""Tests that the RL process does not fail."""
|
||||
check_no_error(rl_process, output_dir)
|
||||
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(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_reaches_threshold(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the average reward over the last steps exceeds the threshold"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_avg_reward_in_range(
|
||||
orchestrator_stdout, last_n_steps=REWARD_AVG_LAST_N_STEPS, min_threshold=REWARD_MIN_THRESHOLD
|
||||
)
|
||||
@@ -92,6 +92,7 @@ def test_server_update_metrics():
|
||||
assert "trainer_loss" in content
|
||||
assert "trainer_last_step_timestamp_seconds" in content
|
||||
assert "trainer_mismatch_kl" in content
|
||||
assert "trainer_kl_ent_ratio" in content
|
||||
|
||||
server.stop()
|
||||
|
||||
@@ -102,6 +103,8 @@ def test_server_metrics_values_are_correct():
|
||||
server.start()
|
||||
time.sleep(0.1)
|
||||
|
||||
entropy = 1.5
|
||||
mismatch_kl = 0.045
|
||||
server.update(
|
||||
step=100,
|
||||
loss=0.123,
|
||||
@@ -109,7 +112,8 @@ def test_server_metrics_values_are_correct():
|
||||
grad_norm=2.5,
|
||||
peak_memory_gib=16.0,
|
||||
learning_rate=3e-5,
|
||||
mismatch_kl=0.045,
|
||||
entropy=entropy,
|
||||
mismatch_kl=mismatch_kl,
|
||||
)
|
||||
|
||||
response = urllib.request.urlopen(f"http://localhost:{port}/metrics", timeout=2)
|
||||
@@ -118,6 +122,7 @@ def test_server_metrics_values_are_correct():
|
||||
assert "trainer_step 100.0" in content
|
||||
assert "trainer_loss 0.123" in content
|
||||
assert "trainer_mismatch_kl 0.045" in content
|
||||
assert f"trainer_kl_ent_ratio {mismatch_kl / entropy}" in content
|
||||
|
||||
server.stop()
|
||||
|
||||
|
||||
@@ -116,6 +116,39 @@ def check_reward_in_range(
|
||||
)
|
||||
|
||||
|
||||
def check_avg_reward_in_range(
|
||||
lines: list[str],
|
||||
last_n_steps: int,
|
||||
min_threshold: float | None = None,
|
||||
max_threshold: float | None = None,
|
||||
):
|
||||
"""Helper to assert that the average reward over the last N steps is within a threshold"""
|
||||
pattern = r"Reward:\s*(\d+\.\d{4})"
|
||||
step_lines = [line for line in lines if "SUCCESS" in line and "Step" in line and re.search(pattern, line)]
|
||||
assert len(step_lines) >= last_n_steps, (
|
||||
f"Not enough step lines found. Expected at least {last_n_steps}, got {len(step_lines)}"
|
||||
)
|
||||
|
||||
recent_lines = step_lines[-last_n_steps:]
|
||||
rewards = []
|
||||
for line in recent_lines:
|
||||
match = re.search(pattern, line)
|
||||
assert match is not None, f"Could not find Reward in line: {line}"
|
||||
rewards.append(float(match.group(1)))
|
||||
|
||||
avg_reward = sum(rewards) / len(rewards)
|
||||
if min_threshold is not None:
|
||||
assert avg_reward >= min_threshold, (
|
||||
f"Average reward over last {last_n_steps} steps did not reach minimum threshold. "
|
||||
f"Found avg_reward={avg_reward:.4f} < {min_threshold} (rewards={rewards})"
|
||||
)
|
||||
if max_threshold is not None:
|
||||
assert avg_reward <= max_threshold, (
|
||||
f"Average reward over last {last_n_steps} steps exceeded maximum threshold. "
|
||||
f"Found avg_reward={avg_reward:.4f} > {max_threshold} (rewards={rewards})"
|
||||
)
|
||||
|
||||
|
||||
def check_mismatch_kl_in_range(
|
||||
lines: list[str],
|
||||
step: int = -1,
|
||||
|
||||
@@ -2373,7 +2373,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=ad77074" },
|
||||
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=013d4da" },
|
||||
{ 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" },
|
||||
]
|
||||
@@ -3702,7 +3702,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "verifiers"
|
||||
version = "0.1.11.dev0"
|
||||
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=ad77074#ad77074e6e8585242425aabd598fc102584a0777" }
|
||||
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=013d4da#013d4da8a906bef2e1cbb6b4bc4347214c1fd534" }
|
||||
dependencies = [
|
||||
{ name = "anthropic" },
|
||||
{ name = "datasets" },
|
||||
|
||||
Reference in New Issue
Block a user