trinity
119
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c505e07a1a |
feat(weight-transfer): add NIXL + ModelExpress synchronization (#3060)
* feat(weight-transfer): add NIXL ModelExpress synchronization * refactor(weight-transfer): simplify NIXL integration * refactor(weight-transfer): simplify NIXL worker planning * refactor(weight-transfer): align MX update lifecycle * feat(inference): pass through online quantization methods * feat(weight-transfer): add GLM trainer conversion graph * feat(weight-transfer): stream NIXL updates by layer * feat(weight-transfer): pipeline NIXL layer reloads * fix(weight-transfer): preserve single-buffer NIXL behavior * fix(weight-transfer): reserve observed inference peak * feat(weight-transfer): preserve model-declared FP32 tensors * cleanup(weight-transfer): simplify trainer wire schema * cleanup(weight-transfer): make trainer shard ranges explicit * cleanup(weight-transfer): resolve model conversions through registry * cleanup(weight-transfer): clarify lazy copy destinations * cleanup(weight-transfer): derive lazy metadata from source * cleanup(weight-transfer): rename weight load tracing * cleanup(weight-transfer): name recorded tensor operations * cleanup(weight-transfer): simplify transfer planning * cleanup(weight-transfer): consolidate load graph * cleanup(weight-transfer): name trainer tensor table * cleanup(weight-transfer): clarify tensor routing * cleanup(weight-transfer): simplify NIXL adapter * cleanup(weight-transfer): clarify ModelExpress sessions * cleanup(weight-transfer): clarify CUDA memory sizing * cleanup(weight-transfer): clarify staged trainer shards * cleanup(weight-transfer): simplify trainer broadcast guards * cleanup(weight-transfer): clarify trainer staging state * cleanup(weight-transfer): simplify trainer constants * cleanup(weight-transfer): use ModelExpress client name * cleanup(weight-transfer): clarify trainer shard discovery * cleanup(weight-transfer): structure trainer initialization * cleanup(weight-transfer): reuse trainer agent metadata * cleanup(weight-transfer): reuse trainer table fragments * cleanup(weight-transfer): simplify trainer staging setup * cleanup(weight-transfer): simplify inference transfer planning * cleanup(weight-transfer): split inference plan construction * cleanup(weight-transfer): clarify inference replay methods * cleanup(weight-transfer): localize receive arena sizing * cleanup(weight-transfer): clarify loader recording wrapper * cleanup(weight-transfer): clarify watcher synchronization * cleanup(weight-transfer): unify checkpoint wait timing * cleanup(weight-transfer): align in-memory broadcast lifecycle * fix(weight-transfer): skip NIXL startup filesystem wait * cleanup(weight-transfer): use declarative model conversions * style(weight-transfer): format NIXL implementation * fix(weight-transfer): stabilize ranks and final watcher step * fix(tests): use instance conversion API * cleanup(weight-transfer): scope package to NIXL * cleanup(weight-transfer): align names and package layout |
||
|
|
825e6ce98f |
feat: add SUCCESS window to tmux helper with grep on orch and trainer logs (#3039)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
Add a new tmux window with two stacked panes that tail and grep SUCCESS from orchestrator.log and trainer.log respectively, making it easy to monitor key training milestones at a glance. |
||
|
|
d05744678e |
feat: allow choosing between claude code and codex in tmux agent window (#3040)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* feat: allow choosing between claude code and codex in tmux agent window Add --agent flag (claude|codex, default claude) to scripts/tmux.sh. The agent window now launches the chosen coding agent with the same monitoring context (log paths, tmux session info). * fix: use codex --yolo instead of --dangerously-bypass-approvals-and-sandbox |
||
|
|
cb43db2ad1 |
feat: make all envs uv workspace members, drop the envs extra (#3019)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* feat: make research-environment envs uv workspace members Research envs under deps/research-environments/environments/*/* are now auto-discovered uv workspace members instead of being hand-registered in the `envs` extra + [tool.uv.sources]. Adding a new research env needs no pyproject.toml change - the glob picks it up and it's locked automatically. They are opt-in: `uv sync` / `--all-extras` no longer install them; use `uv sync --all-packages`. Env-running sites (sbatch training templates, gpu/nightly CI, Docker image + entrypoint, nemotron config, example READMEs) gain --all-packages; dev quickstart and cpu unit tests stay lean. tau2-synth-v1 and tau3-bench-v1 are excluded - they pin `tau2` forks/revs that conflict with the canonical tau2-bench-v1 in the workspace's shared lock. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * feat: make verifiers envs workspace members, drop the envs extra Extends the workspace glob to deps/verifiers/environments/*, so verifiers-repo envs are auto-discovered members alongside the research envs. Removes the now-empty `envs` optional-dependency and all its [tool.uv.sources] entries, and drops the defunct `--extra envs` from cpu_tests, Dockerfile.cuda, and docker-entrypoint.sh (env members install via --all-packages instead). All 94 env members (66 research + 28 verifiers) lock, install, and import. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(ci): install all env packages in cpu_tests test_load_configs parses every config, and parsing a v1-taskset config makes verifiers import the env package to derive its taskset config type. With envs now workspace members, the lean `uv sync --extra flash-attn` left them uninstalled, so 28 config tests failed with ModuleNotFoundError. Add --all-packages so the referenced env packages are importable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> |
||
|
|
84b413fd73 |
feat(scripts): export verifiers v1 traces.jsonl as an SFT dataset (#2989)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
Bridge a finished verifiers eval run to 'uv run sft': one row per branch with a messages column (OpenAI chat wire shape) and a tools column (Trace.tools, JSON-encoded) — the shape trainer/sft/data.py consumes. Generation-errored traces always drop (scoring-only errors keep their finished transcript); --min-reward / --drop-truncated select further. Writes <run>/sft/train.parquet (data.name-ready) or pushes with --push. Moved here from PrimeIntellect-ai/verifiers#1964 per review; requires the verifiers release carrying Trace.tools (verifiers#1963). |
||
|
|
9bf203c678 |
Fix Docker editable package version resolution (#2866)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
|
||
|
|
7089ba1e4d |
feat: vf v1 <> nano bridge (#2742)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* feat: add vf-nano as submodule
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/vf-nano to feat/env-server (EnvServer)
Points the submodule at the vf-nano EnvServer branch so the orchestrator can
build on the env-server abstraction.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: run orchestrator on a vf-nano env server (reverse-text)
Switch prime-rl's env path to vf-nano: the orchestrator spawns a vf-nano
EnvServer per env (it never loads an environment), dispatches rollouts by task
index, and trains on the returned Trace dicts (branches + renderer tokens).
- pyproject: dep verifiers -> vf-nano; drop v1/research env packages; only the
vf-nano reverse-text example; override out the transitive v1 verifiers (pulled
by the prime CLI) so it can't shadow vf-nano's `verifiers` package; add orjson
/pandas/msgspec (were transitive via verifiers).
- EnvConfig inherits vf-nano's swappable agent/runtime (+ max_turns).
- envs.py: spawn EnvServer child + EnvClient, info() for num_tasks/group-scoring,
dispatch by task_idx, adapt Trace -> RolloutOutput-shaped dict.
- trajectories.py: trace_to_samples (one sample per Trace branch) + trace_to_output.
- train_source: index sampling; client pool builds vf-nano ClientConfig; lag
monitor vendored; env-server entrypoint repointed; ~14 files retyped off
vf.RolloutOutput / vf.ClientConfig.
- configs/debug/vf_nano_reverse_text.toml.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: consume vf-nano Trace natively (branches→samples, shared renderer config)
- trace_to_samples stitches each Trace branch's tokens into one TrainingSample
(prompt = branch start, then each turn's new context [masked] + generated
tokens [trained]); drop the RolloutOutput adapter — read the Trace's native
fields directly (reward, error{type,message}, timing generation/scoring,
num_turns, branches).
- envs returns the raw Trace; eval_sink / train_sink / dispatcher / metrics /
orchestrator read native Trace fields (no token_usage/completion/timing.total).
- client pool forwards the shared renderers.RendererConfig to the env server's
renderer client (so it uses qwen3, not the tool-less default fallback).
- debug config: tool_call_parser=hermes (vLLM accepts the agent's tools),
max_steps=20.
- bump deps/vf-nano.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: pass typed ClientConfig/SamplingConfig to the env client (no timeout)
- Env.run_rollout/run_group pass the vf-nano ClientConfig object and a
SamplingConfig (built from the env's sampling args) directly — no model_dump,
no per-rollout timeout forwarded to the server.
- debug config: max_steps=20.
- bump deps/vf-nano (typed env-server RPC).
* refactor: orchestrator holds a typed vf.Trace[EnvTask] (no dicts)
The env server returns a Trace minus its derived fields; the orchestrator resolves
the env's Task subclass (from config.id) and validates the wire dict into a strict
Trace[EnvTask], so the whole orchestrator works with a real, typed vf.Trace —
typed task fields included (e.g. task.answer), nothing subscriptable.
- envs.py: resolve_task_type(env_id); run_rollout/run_group validate -> Trace[EnvTask].
- trajectories/types/dispatcher/train_sink/eval_sink/metrics/filters/advantage/utils
/orchestrator: attribute access on the typed Trace (reward, error{type,message},
branches, timing.<span>.duration, num_turns, ...); derived fields recompute on the
consumer.
- Task/Trace/TimeSpan stay strict (StrictBaseModel) — no extra=ignore anywhere.
- bump deps/vf-nano.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: depend on vf-nano[serve]; bump submodule
The orchestrator spawns the env server, so request the serve extra
(zmq/msgpack) explicitly now that vf-nano keeps them out of core.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump vf-nano (client docstring cleanup)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: drop redundant forward-ref quotes in advantage.py
`from __future__ import annotations` already defers all annotations to strings,
so the quotes + `# noqa: F821` on the TYPE_CHECKING-only `vf.Trace` / `TrainRollout`
annotations are unnecessary (no import cycle — verifiers.nano never imports prime_rl).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: rename FinishedRollout.raw -> trace
The field holds a typed vf.Trace, so `trace` reads truer than `raw` (which
suggested an unparsed dict). Renames the field + every `.raw` access, the
`emit_rollout(trace=...)` param/kwarg, the to_dict field filter, and the
dispatcher cancel-path locals.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: simplify FinishedRollout, read straight off the typed Trace
- Drop the FinishedRollout proxy properties (error/reward/is_truncated and the
example_id field); consumers now read r.trace.{reward,is_truncated,task.idx,...}
directly. The trace is the single source of truth.
- Use vf.Trace.has_error for existence checks instead of `.error is not None`.
- Replace the prime-rl trace_* token-length utils with vf.Trace.{completion_len,
total_tokens,has_response} (now on the trace); keep trace_to_samples.
- Carry task_idx end-to-end (GroupState.task_idx, env.run_rollout/run_group(task_idx),
source dict key) instead of the example/example_id dict carrier; identity comes
off trace.task.idx.
- Mark the local-package env arrangement as a temporary/experimental TODO.
- Move the debug config to configs/debug/nano/reverse_text.toml.
- Bump deps/vf-nano (Trace/Turn accessors).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: spawn env server on an OS-assigned port, drop the startup poll
- The env server binds tcp://127.0.0.1:0 and reports its concrete address back
over a queue; the orchestrator connects to that. Removes _get_free_port and its
TOCTOU race (the OS assigns the port atomically).
- A spawned server has already bound + loaded by the time it reports its address,
so the untimed info() is enough — only poll wait_for_server_startup for an
external (config.address) server, which has no spawn handshake.
- Bump deps/vf-nano (port report + Trace/Branch token-length accessors).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: use vf.task_type instead of a local resolve_task_type
The Task-subclass introspection now lives in vf-nano (vf.task_type); drop the
prime-rl copy and build the typed Trace via vf.Trace[vf.task_type(env_id)]. Bump
deps/vf-nano.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: restore backfill_rollout_tokens for SFT (typed Trace)
SFT trains on a teacher served over the chat client, which returns no token ids,
so the trace's turns have tokens=None and trace_to_samples yields nothing. Restore
backfill: for each tokenless turn, render its prompt + assistant response with the
student chat template and split on the longest common prefix to fill TurnTokens
(masks/logprobs come from trace_to_samples). train_sink.process_rollout backfills
when any turn lacks tokens, before building samples.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: pass task_idx when building Cancelled traces on off-policy drop
drop_group's error_rollout_output calls omitted the required task_idx, so an
off-policy cancel (on_new_version) raised TypeError. Use the group's task_idx
(or -1 when the group is already gone), mirroring handle_completed_rollout.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: consume typed Trace[WireTask]; inline synthetic error traces
- envs.py: EnvClient now returns Trace[WireTask]; upgrade to this env's real Task
subclass via self.trace_type.model_validate(wire.to_wire()).
- dispatcher.py: drop the error_rollout_output helper — inline the synthetic error
Trace at each call site using vf.Error's field names (type/message/traceback); the
task-exception path carries a real traceback, cancels/empty-trajectory carry none.
- Bump deps/vf-nano.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: env-server file logging; align debug config batch/group to canonical
- Spawned env servers now route their output (logging + subprocess-runtime output)
to <output_dir>/logs/envs/<name>.log via a _run_env_server wrapper that redirects
stdout/stderr and sets up logging in the child. Previously the orchestrator-spawned
server logged nowhere.
- Debug config: batch_size 16->128, group_size 8->16, eval num_examples 8->128
(interval=1), matching configs/debug/training_modes/rl.toml.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: don't double the envs/ segment in the env-server log path
The orchestrator already passes a train/eval-split log_dir (.../logs/envs/train,
.../logs/envs/eval), so _spawn must drop the file directly under it
(<log_dir>/<name>.log) rather than re-adding an envs/ subdir — which had buried the
train/eval split under logs/envs/<kind>/envs/<name>.log.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump vf-nano (Error.traceback str | None)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump vf-nano (to_wire ordering)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: launch env servers as separate processes from the rl entrypoint
Instead of the orchestrator sidecar-spawning each env server as an mp child, the
rl launcher now spawns one `env-server` process per env (train + eval), each on a
free port, with output to logs/envs/{kind}/{name}.log and a crash monitor — same
model as inference/trainer. It sets env.address in the orchestrator config so the
orchestrator attaches (its existing external path) instead of spawning. Envs that
already set address (user-managed external server) are left alone; the orchestrator's
mp sidecar stays as the fallback for running `orchestrator` directly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: env servers use fixed configurable ports, not get_free_port
Add RLConfig.env_server_base_port (default 5000); the i-th launcher-managed env binds
base_port + i. Drops the get_free_port dependency in the launcher.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: separate train/eval env-server port blocks
Train envs bind base_port + i; eval envs bind base_port + ENV_SERVER_KIND_STRIDE + i
(stride 1000), so each kind has headroom for many envs without the blocks colliding
(was a single running index — train and eval sat adjacent).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: env-server logs + sidecar queue cleanup; train-only debug config
- env_server entrypoint: intercept vf-nano stdlib logging so the server's own logs
(EnvServer up, request failures) land in logs/envs/<kind>/<name>.log — previously
only loguru output was captured, swallowing them.
- envs.py: close the address-handoff mp.Queue after use (no resource_tracker
leaked-semaphore warning on the sidecar path).
- configs/debug/nano/reverse_text.toml: drop the eval block, mirroring
examples/reverse_text/rl.toml (train-only smoke; eval path validated separately).
- bump deps/vf-nano (serve/types docstring trim).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump vf-nano (BaseRequest marker, no request_type field)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: env client uses client= (was client_config=); bump vf-nano
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump vf-nano (drop renderers dep comment)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump vf-nano (configs/ + cli/ split, serve/ runtime-only)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: drop FinishedRollout.to_dict; serialize the Trace to disk directly
The I/O boundary (save_rollouts + monitor sample tables) now dumps the typed
vf.Trace itself (r.trace.model_dump(mode="json")) instead of a Trace+metadata
merge — the on-disk rollout is just the trace.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: track vf-nano agent->harness rename
vf-nano renamed its rollout-driver abstraction Agent -> Harness. Update the
integration: EnvConfig.agent -> harness (HarnessConfig/DefaultHarnessConfig);
env.run_rollout/run_group spawn forwards harness_config; the env-server entrypoint
passes harness_config/harness_timeout; debug config uses `harness = {...}`. Bump
deps/vf-nano to the renamed branch.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: track vf-nano plugin reorg (reverse-text path + bump)
vf-nano reorganized examples into examples/{tasksets,harnesses}/; point the
reverse-text editable source at examples/tasksets/reverse_text and bump deps/vf-nano.
No prime-rl code change — EnvConfig.harness (default) resolves via vf-nano's built-in
harness registry. Verified: 3-step reverse-text smoke trains (0.26 -> 0.42, 0% error).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: reuse vf.EnvConfig in the orchestrator (typed taskset/harness, drop args)
prime-rl's EnvConfig now subclasses vf.EnvConfig and resolves taskset + harness to their
specific config types by id (taskset_config_type / harness_config_type), so env-specific
fields are validated against the real config — the untyped `args` dict and the top-level
`id` are gone (id/stripped_id/resolved_name are now properties off taskset.id). Timeouts
come from vf.TimeoutConfig (timeout.rollout / timeout.scoring), superseding prime-rl's flat
timeout. The env server is spawned with the typed taskset_config (no env_id/args).
- pyproject: install the vf-nano plugin packages (default/rlm harnesses, gsm8k taskset)
as path sources; bump deps/vf-nano to the plugin-packages branch.
- configs/debug/nano/reverse_text.toml: taskset = { id = ... }, harness.id (was harness.type).
Verified: custom taskset (gsm8k.split) + harness (rlm.ref) resolve to typed configs; bad
fields are rejected; the migrated TOML loads through RLConfig.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: inherit vf's shared plugin resolution; trim dead EnvConfig fields
EnvConfig drops its own _resolve_plugins (now inherited from vf.EnvConfig's shared
validator) and the dead v1-forwarding fields: extra_env_kwargs, max_total_completion_tokens,
state_columns (no readers on the vf-nano branch). Also drop stripped_id (no hub installs ->
no @version, so id == it) — callers use .id. Bump deps/vf-nano.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: require a configured taskset per env (no reverse-text default)
EnvConfig no longer auto-defaults its taskset to reverse-text; an env with no taskset id
errors at validation. Env-list defaults are empty (eval's non-empty check still fires only
when an eval block is configured). Bump deps/vf-nano.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/vf-nano (dashboard taskset.id/harness.id fix)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/vf-nano (sampling max_tokens fix)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(env-server): require a configured env; build EnvServer from the EnvConfig
EnvServerConfig.env was a bare EnvConfig() default, which now raises (no taskset) and
crashed the env-server at import. Make env required — the orchestrator always passes a
real env config. Build the server straight from config.env (vf-nano EnvServer takes the
EnvConfig). Bump deps/vf-nano (is_truncated computed field).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(nano): reverse-text uses default harness with enable_bash=false
The model answers directly (no bash tool), so the tool_call_parser is no longer needed.
Bump deps/vf-nano (enable_bash flag).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(nano): hendrycks-sanity config on the math-env taskset
Add configs/debug/nano/hendrycks_sanity.toml (vf-nano analog of configs/debug/hendrycks_sanity):
math-env train env on the sanity dataset (R1-distill, default renderer with think parser,
single-turn no-bash), aime24 eval env. Register math-env + aime24 in the envs group + sources.
Bump deps/vf-nano (math/aime tasksets, enable_bash, SerializeAsAny + is_truncated fixes).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/vf-nano to merged main (math/aime tasksets, fixes)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: drop deps/verifiers, bump deps/vf-nano to merged main
vf-nano main (#8) adds the subprocess-runtime env passthrough (inherit host env
minus API_KEY, so UV_CACHE_DIR reaches rollout workers and lands the uv cache on
local disk) and the math-verify scoring fix (wrap gold + prediction in \boxed,
matching v1 math-env — fixes matrix/vector answers scoring 0).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(nano): hendrycks-sanity mirrors examples/hendrycks_sanity + slurm overlay
nano config is now a verbatim copy of examples/hendrycks_sanity/rl.toml with only
the env sections swapped to vf-nano taskset/harness syntax (math-env taskset,
default harness, subprocess runtime; aime24 eval). Adds a slurm overlay setting
the output dir, wandb run name, and partition.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(nano): fold wandb + slurm into hendrycks_sanity config
Move the [wandb] and [slurm] sections from the slurm overlay into the base config, so it
submits to slurm by default (run locally with --no-slurm). The overlay now only redirects
output_dir. wandb run name is vf-nano-subprocess.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(nano): fold output_dir into hendrycks_sanity config, drop slurm overlay
Everything (output_dir, wandb, slurm) now lives in the one config; remove the now-empty
slurm overlay. Run locally with --no-slurm.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(vf-v1): run on the unified verifiers package (v0 envs + v1=nano + legacy bridge)
Depend on the single verifiers package (deps/verifiers, nesting vf-nano) instead of standalone
vf-nano. EnvConfig is dual-mode: v0 envs via id+args (legacy bridge), v1 envs via taskset/harness
(native nano). The env-server spawn (standalone + mp) picks LegacyEnvServer for v0 and EnvServer
for v1; both return vf.Trace so the orchestrator is unchanged. Plugin sources repointed under
deps/verifiers; reverse-text is the v0 env, reverse-text-v1 the nano taskset.
Verified: uv run rl @ examples/reverse_text/rl.toml (v0, unchanged) trains via the bridge
(reward 0.14->0.79); vf-eval + vf-eval-v1 reverse-text both reward 1.0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* test(v0): wire alphabet-sort (multi-turn) + bump verifiers (State scrub)
Add the v0 alphabet-sort env as an installable source; bump deps/verifiers to the State-scrub
commit. Verified the bridge on a multi-turn v0 env: alphabet-sort runs (Turns 2.0, 128/128
trainable, 0% error) alongside single-turn reverse-text.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* test(v0): wire wordle + add configs/wordle/rl.toml (2-GPU)
Wire the v0 wordle TextArena env (multi-turn game) as an installable source; add a 2-GPU
(1 trainer + 1 inference) wordle config. Verified through the legacy bridge: wordle trains
(Turns ~5.3, reward ~0.81, 128/128 trainable, 0% error).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/verifiers (v1 hygiene: init.py/tests/docs)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor(v1): track de-vendored verifiers, rename nano -> v1
- Bump deps/verifiers to the de-vendored commit: vf-nano is now vendored as the
verifiers.v1 subpackage (no nested deps/vf-nano submodule).
- Repoint env-plugin sources from deps/verifiers/deps/vf-nano/... to
deps/verifiers/{examples,packages}/...
- Rename verifiers.nano -> verifiers.v1 across the orchestrator/utils/configs;
rename configs/debug/nano -> configs/debug/v1. "v1" is the name now (no "nano").
Verification: v0 reverse-text (legacy bridge) and v1 reverse-text-v1 (native)
both train over a 3-step smoke (reward present, 0% error).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers (eval/serve, v1 deps in base, bundled plugins)
- Bump deps/verifiers: v1 runtime deps moved to base (no `v1` extra), v1 CLIs
renamed eval/serve, shipped plugins bundled in the tasksets/harnesses umbrella
packages, verifiers/v1/harness.py (flattened harnesses subpackage).
- Depend on `verifiers` (was verifiers[v1]) and the `harnesses` umbrella package
(was standalone default/rlm).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers (Task.system_prompt); write full rollout jsonl
- Bump deps/verifiers to the system_prompt commit: Task.system_prompt + harness
APPENDS_SYSTEM_PROMPT support, reverse_text_v1 byte-identical to the v0 env (separate
system message), plus this branch's eval/serve, v1-deps-in-base, CI fixes, and the
retired semgrep policy.
- save_rollouts: drop exclude_keys={"trajectory"} for both train and eval rollouts so the
jsonl carries the full trajectory.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: drop semgrep from uv.lock (verifiers retired the policy group)
Follow-up to the deps/verifiers bump (00c7b77a removed the `policy` dependency
group); regenerates the lock to match.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: pin the env-server renderer tokenizer to the base model for LoRA runs
Wire `renderer_model_name` (the base model) into the renderer client config so
the env-server renderer builds its tokenizer from the base model instead of the
per-request LoRA adapter name, which has no published HF tokenizer and 404'd
once LoRA training set the served model name to the adapter. Mirrors the
`renderer_model_name` wiring already in `setup_clients` on main. Bumps
deps/verifiers to the matching fix.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(orchestrator): request vLLM token ids for MITO training (#2745)
On the MITO path (no renderer), set return_token_ids in the train env
sampling args so the openai_chat_completions client gets the prompt and
completion token ids back from vLLM and can carry them for training
instead of re-tokenizing the messages downstream. Scoped to
renderer is None so it never reaches the renderer /inference/v1/generate
endpoint (which forwards sampling params to vLLM verbatim).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers submodule; restore v0 env catalog + v1 -v1 imports
- bump deps/verifiers to the feat/nano-as-v1 tip (token-parse #1585, bridge meta #1586,
taskset -v1 rename #1587, native retries #1588, runtime resource cleanup #1590)
- restore the full v0 env catalog in optional-dependencies.envs + [tool.uv.sources]
(init the research-environments submodule); the taskset -v1 rename freed the v0 names,
so v0 envs (legacy bridge) and v1 tasksets coexist
- point the v1 taskset sources at their -v1 names / _v1 paths (gsm8k-v1, math-env-v1,
aime24-v1; reverse-text-v1 already correct)
- update v1 configs to the -v1 taskset ids (hendrycks_sanity) and drop the superseded
standalone configs/debug/reverse_text_v1.toml
- relock
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers submodule to feat/nano-as-v1 tip (textarena #1592)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers submodule to feat/nano-as-v1 tip
Pulls in runtime resources named after the rollout id (#1596) and the
alphabet-sort-v1 taskset (#1595).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers submodule to feat/nano-as-v1 tip
Brings in env-hub ids (#1597), v0 envs on the eval CLI (#1598), modal runtime (#1594).
* chore(v1): add v1 alphabet-sort debug config (port of examples/alphabet_sort)
* fix: forward extra_env_kwargs to v0 legacy envs; drop dead trajectory tests (#2749)
Restores main's escape hatch for v0 (legacy-bridge) envs: a legacy env's extra_env_kwargs
is auto-populated (timeout_seconds <- timeout.rollout, max_total_completion_tokens <-
max_output_tokens, max_seq_len <- seq_len) and forwarded to LegacyEnvServer at spawn, so v0
rollouts again honor the wall-clock timeout, multi-turn completion budget, and seq-len
truncation (all were silently dropped on this branch).
Also removes tests/unit/orchestrator/test_{trajectories,sft_trajectories}.py, which imported
the deleted interleave_rollout and broke test collection.
* fix: install the bundled `tasksets` package (harbor-v1, textarena-v1)
The `envs` extra wired `harnesses` and the individual `*-v1` example tasksets but
never the bundled `tasksets` package, so the integration tasksets it ships
(`harbor-v1`, `textarena-v1`) couldn't be resolved — `import_taskset("harbor-v1")`
raised ModuleNotFoundError ("tried to import 'harbor_v1'").
Add `tasksets` to the `envs` extra + a path source, and bump the verifiers
submodule to the feat/nano-as-v1 tip (#1600), where the bundled tasksets live
under the `tasksets` namespace package (`tasksets.harbor_v1`) and the loader
resolves the namespaced module.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: consume the v1 message-graph trace (#2763)
* feat: consume the v1 message-graph trace (graph-walk trace_to_samples)
Walk the new message graph (verifiers feat/trace-message-graph, PR #1606): trace_to_samples
builds one TrainingSample per branch by concatenating each branch path's node token_ids /
sampled_mask / logprobs (graph.branch_token_sequences), splitting prompt|completion at the
first sampled token — identical training tensors to the old per-turn stitching, off a trace
that is now linear (not quadratic) in turns. backfill_rollout_tokens is a no-op (training is
renderer-only; `trajectory` is now a read-only view over the graph). Bumps the verifiers
submodule to the graph-trace branch.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump verifiers submodule (MessageNode.mask rename)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: wire alphabet-sort-v1 taskset
Add alphabet-sort-v1 to the `envs` extra + `[tool.uv.sources]` so
configs/debug/v1/alphabet_sort.toml resolves (it referenced an example taskset that was
never wired into prime-rl). Used to verify graph-based training-sample construction on real
RL runs — v0 (legacy bridge) and v1 (native renderer path) both train cleanly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: consume nodes/branches directly (drop Turn/trajectory readers)
`trace_to_samples` already walks the graph; the remaining readers move off the removed
Turn/trajectory API: the gibberish/repetition filters iterate per-node completions,
advantage/dispatcher use `trace.num_turns`/`trace.completion_len`, `get_model_completion_len`
is dropped (use `trace.completion_len`), and the renderer-only train_sink drops the backfill
path (also removing `backfill_rollout_tokens`). Bumps the verifiers submodule.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump verifiers submodule (merge #1605 multiplex interception)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump verifiers submodule (dead-code cleanup)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers (readme highlight + ruff format)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: enforce renderer, SFT backfill, branch-first-class logging
Training is renderer-only now. RL/OPD roll out through the renderer client
(exact sampled token ids + logprobs); SFT rolls out against a chat-completions
teacher that returns no tokens and re-renders the conversation to backfill them
(`backfill_trace`). A renderer is required for every mode (`renderer=None`
rejected) — the oai client never produces correct training tokens for the
message graph. Drops the MITO no-renderer training path.
Logging consumes `trace.branches` as the first-class unit (`branch.token_ids` /
`branch.messages`) instead of the removed `trajectory` field; `trace_to_samples`
builds one sample per branch from the same accessors. Sample loggers take the
rollout objects so env_name/advantage are available.
Add configs/v1/training_mode (rl/opd/sft + lora/external) mirroring the v0
debug configs. Fix the v0 SFT debug configs + rlm_swe to validate under the
renderer requirement.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: flat TrainingSample (token_ids + mask), required renderer
Drop the prompt/completion split from TrainingSample — it doesn't fit a
multi-turn/agentic branch, where context and model-sampled spans interleave. A
sample now carries the branch's flat `token_ids` plus per-token `mask` (True =
trainable), `logprobs`, and `temperatures` (all aligned). `prepare_sample`
passes them straight into the MicroBatch (already flat), and the packer
validates against `token_ids` length.
Make `orchestrator.renderer` a non-optional type (drop the `enforce_renderer`
validator) — training is renderer-only, so the type carries the requirement.
Bump the verifiers submodule to feat/nano-as-v1 (merged #1606 + Branch.branches
inlined).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: SFT teacher rolls out through the renderer client (drop backfill)
Training is renderer-only across every mode, so the SFT teacher now rolls out
through the renderer client too — its rollouts carry tokens directly, the same
as RL/OPD. Drops the chat-completions backfill (`backfill_trace` + the SFT path
in TrainSink) and the now-unused TrainSink renderer.
This requires a self-hosted teacher that shares the student's tokenizer (the
student trains on exactly the ids the renderer feeds the teacher); distilling
from an external chat API is no longer supported. Remove the `sft_external`
debug configs.
Validated: SFT on reverse-text-v1 trains cleanly (Trainable 128/128, eval reward
~0.1 -> ~0.82 over 20 steps) with the teacher on the renderer client, no backfill.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: drop configs/v1/training_mode README
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor: consolidate rollout types into Rollout(vf.Trace)
The trace *is* the rollout: replace the FinishedRollout/TrainRollout/EvalRollout
wrappers with a prime-rl Rollout(vf.Trace[TaskT]) subclass that carries the
orchestration metadata (kind, env_name, group_id, policy_version,
off_policy_steps, samples, advantage, is_filtered, filter_results, eval_step) as
exclude=True fields — so dumping a Rollout still yields a plain trace (on-disk
results.jsonl unchanged). envs.py validates the wire trace into Rollout; the
dispatcher stamps the metadata; train vs eval is the `kind` discriminator
(replacing the isinstance check). All consumers read rollout.X directly instead
of rollout.trace.X.
Drop the monitor's SampleRollout duck-type Protocol — the loggers take the real
Rollout (TYPE_CHECKING import) and read branch.token_ids / branch.messages. Also
drop the prime monitor's _split_branch_messages and _json helpers: the
conversation is the unit (no prompt/completion split — meaningless multi-turn).
Fix a latent dispatcher bug surfaced along the way: synthetic error traces used
`error=` / `r.error = ` (a read-only computed field) — now `errors=[...]` /
`r.errors.append(...)`.
Rewrite the (long-stale, dict/`raw`-based) advantage + filters unit tests to
build real Rollouts — they now exercise the current trace-based code (previously
all failing on import/construction).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: allow verifiers + datasets in the slim-config dep check
The v1 config types (EnvConfig, Task, ...) extend `verifiers.v1`, which is a
declared, pure-pydantic dependency of prime-rl-configs (it pulls `datasets` for
the taskset/Task types but no GPU/ML deps). Drop `verifiers` and `datasets` from
the slim-install forbidden list — keep the real heavy training deps (torch,
vllm, transformers, ...).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers submodule to feat/nano-as-v1 tip
Picks up the v1 end-to-end eval test suite (#1609) and the v0 legacy
env-server group-scoring fix (#1612).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers submodule to feat/nano-as-v1 tip
Picks up the v0 legacy-bridge fixes: guard against non-renderer training
clients (#1613) and serve the eval split for eval-only v0 envs (#1614).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): fix stale sft.toml teacher comments
The SFT teacher rolls out through the renderer client (token-in/out) and
must share the student's tokenizer; drop the leftover oai-client / token
backfill description removed in the renderer-only refactor.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers (v0 eval chat-completions client)
Picks up verifiers#1615: the legacy bridge builds a chat-completions client
for v0 eval rollouts (renderer for training), instead of raising on the
non-renderer eval client.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): scaleswe configs + taskset registration (#2765)
- register the scaleswe-v1 taskset (pyproject envs list + uv source)
- point the existing rlm-swe config (configs/rlm_swe/qwen35_4b.toml) at the
scaleswe taskset (task_type="scaleswe", train + eval)
- add configs/debug/v1/scaleswe.toml — a per-env v1 port of that config using
the scaleswe-v1 taskset via the rlm harness on the prime runtime
Companion to verifiers feat/scaleswe-v1 (scaleswe-v1 taskset + setup/workdir hooks).
Needs the deps/verifiers submodule bumped to that branch once it lands.
* feat(v1): multimodal training through the message graph + color-codeword-v1
Consume the v1 trace's multimodal sidecar. `trace_to_samples` builds, per branch,
`mm_kwargs` (the branch's per-image renderer items concatenated on dim 0 and
EncodedTensor-encoded) and `mm_token_type_ids` (the renderer's
`mm_token_type_id_map` applied to the branch tokens); `TrainSink` threads the
mapping through. The wandb sample logger now renders the task as a Table-safe JSON
string with image data elided — an image-bearing instruction crashed wandb's
Table type inference on the nested content list.
Adds `configs/v1/multimodal_color_codeword.toml` (Qwen3-VL-4B on color-codeword-v1,
2-GPU) and registers the `color-codeword-v1` taskset; bumps the verifiers submodule
for the multimodal message-graph support.
Verified end-to-end: the VLM trains through the mm path (eval 0.69 -> 0.78,
Trainable 256/256 — mm_kwargs reach the Qwen3-VL forward); v0 `color-codeword`
eval 0.625 ~= v1 `color-codeword-v1` eval 0.69 (faithful port).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Revert "feat(v1): multimodal training through the message graph + color-codeword-v1"
This reverts commit 85b27cfc0be12b84f9b36456675b10387d01dc8a.
* feat: multimodal training through the v1 message graph + color-codeword-v1 (#2766)
* feat(v1): multimodal training through the message graph + color-codeword-v1
Consume the v1 trace's multimodal sidecar. `trace_to_samples` builds, per branch,
`mm_kwargs` (the branch's per-image renderer items concatenated on dim 0 and
EncodedTensor-encoded) and `mm_token_type_ids` (the renderer's
`mm_token_type_id_map` applied to the branch tokens); `TrainSink` threads the
mapping through. The wandb sample logger now renders the task as a Table-safe JSON
string with image data elided — an image-bearing instruction crashed wandb's
Table type inference on the nested content list.
Adds `configs/v1/multimodal_color_codeword.toml` (Qwen3-VL-4B on color-codeword-v1,
2-GPU) and registers the `color-codeword-v1` taskset; bumps the verifiers submodule
for the multimodal message-graph support.
Verified end-to-end: the VLM trains through the mm path (eval 0.69 -> 0.78,
Trainable 256/256 — mm_kwargs reach the Qwen3-VL forward); v0 `color-codeword`
eval 0.625 ~= v1 `color-codeword-v1` eval 0.69 (faithful port).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin — multimodal review-pass cleanups
Picks up the verifiers feat/v1-multimodal head: the multimodal review-pass
(capability-flag docstrings, trimmed mm comments, color-codeword-v1 config
validator + module constants) and the merged malloc_trim worker-RSS fix (#1621).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (content-part mm attribution) + config/test sync
- Bump deps/verifiers to the content-part multimodal attribution (drops the unused
placeholder offset machinery).
- Drop max_turns/seed from the color-codeword-v1 taskset args in the config — the
taskset hard-codes them as module constants now, and passing them is rejected.
- Update the mm egress unit test to assert mm_items order (the new attribution),
not placeholder offsets.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(trainer): slice mm_kwargs on truncation so tokens match embeddings
When a sample exceeds seq_len, prepare_sample truncated input_ids and
mm_token_type_ids but passed mm_kwargs through whole — leaving more image
embeddings than surviving image placeholders. Now truncation cuts to a
whole-image boundary (never splitting an image's placeholder block) and slices
mm_kwargs (pixel_values + image_grid_thw) to the images that fully survive, so
image-placeholder count == image-embedding count.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to ruff-formatted graph.py
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): remove test_trajectories_mm.py
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: thread num_workers to the env-server worker pool (#2768)
* feat(v1): thread num_workers to the env-server worker pool
Wire the verifiers env-server worker pool into prime-rl: the orchestrator's
spawned env server (envs.py) and the `env-server` CLI now serve via
verifiers' serve_env with num_workers, so requests fan out across N worker
processes instead of one event loop. num_workers was already a config field but
dropped on the floor; it's now passed through and defaults to 4.
Companion to verifiers feat/v1-env-workers; needs deps/verifiers bumped to it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): default num_workers to 4
Make the worker pool the default: num_workers defaults to 4 (was "auto"->1)
across the per-env, train, and eval configs, so training/eval env servers fan
rollouts across 4 worker processes out of the box. "auto" stays a valid value
(scales per concurrency); set num_workers=1 for the old single-process server.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): keep num_workers="auto" default on the orchestrator
Revert the orchestrator's per-env / train / eval num_workers defaults back to
"auto" (was 4) so they keep scaling 1 worker per 256 concurrent rollouts out of
the box. The standalone env server can't scale (no concurrency context — it's
driven by external clients), so its resolver collapses "auto" to a fixed 4.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to be76cbc3 (env-server worker pool)
Align the pin with #1623 (env-server worker pool: router + N workers),
which the just-merged #2768 (thread num_workers to the pool) requires;
the pin had lagged at the pre-#1623 multimodal tip.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): register r2e-gym-v1 taskset
Add r2e-gym-v1 to the base v1 taskset deps + uv sources (editable from
deps/verifiers/examples/tasksets/r2e_gym_v1) so the id resolves through
the v1 loader, matching the other -v1 tasksets.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(swe): use r2e-gym for rlm_swe configs (v0 + v1)
- v0 configs/rlm_swe/qwen35_4b.toml: restore the train env to r2e and the
eval env to swebench-verified-quick (as on main), reverting the scaleswe switch
- v1: rename configs/debug/v1/scaleswe.toml -> r2e_gym.toml, point the train env
at the r2e-gym-v1 taskset, and drop the eval block
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(swe): point rlm_swe configs at r2e-gym (content)
Apply the edits the prior rename commit missed:
- v0 rlm_swe/qwen35_4b.toml: train -> r2e, eval -> swebench-verified-quick (as on main)
- v1 debug/v1/r2e_gym.toml: taskset -> r2e-gym-v1, eval block removed
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): restore env-server worker logs to the env log file (#2770)
Env servers spawn their worker pool as fresh `spawn` processes with no logging
handlers (verifiers#1626), so per-rollout logs (rollout start/done, context-exceed
warnings) were silently dropped. Pass `setup_env_server_logging` to verifiers'
`serve_env` as `log_setup`; it runs in the broker and in every worker. A worker
inherits the broker's redirected stdout/stderr, so its logs land in the same
`envs/{train,eval}/<name>.log` as before — no new files or paths.
Bumps deps/verifiers to the worker-logging fix.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 955b6cdf (dashboard token usage fallback)
Realign the pin onto origin/feat/nano-as-v1 and pick up #1627: the --rich
dashboard's token counts fall back to provider usage when the endpoint returns
no token ids (no more 0/0). The prior pin 3df34ba5 was a pre-rebase #1626
variant; 955b6cdf already contains the equivalent #1626 (env-server worker
logging) plus #1627.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 8e4ad735 (clean env-server teardown)
Picks up the serve_env SIGTERM-teardown fix: pool/in-process env servers no
longer print a spurious KeyboardInterrupt traceback into the env logs on
shutdown.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(deps): bump verifiers (renderers floor 0.1.8.dev40)
Picks up the verifiers floor bump so the renderers offset-tokenizer fix (dev40,
PRs #72/#75) can't be undercut by a pre-fix PyPI resolution. Re-locks uv.lock to
the dev40 specifier.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to db82b38a (reap subprocess tree on cancel)
Picks up #1628 (reap the whole subprocess tree when a runtime run is cancelled).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: elastic env-server pool (inherit static/elastic pool config) (#2774)
* feat(v1): elastic env-server pool (inherit pool config from verifiers)
Companion to verifiers#1629. prime-rl's EnvConfig now extends vf.EnvServerConfig, so
each env inherits the `pool` discriminated union (static{num_workers=4} |
elastic{max_workers=None, multiplex=128}, default elastic) and the orchestrator's env
servers scale workers on demand instead of pre-spawning a fixed `auto` count.
- Drop the per-env / train-group / eval-group `num_workers` fields + the auto-resolution
(ceil(max_inflight/256)); the elastic pool self-sizes from load.
- envs.py / env_server.py pass `vf.pool_serve_kwargs(env.pool)` to serve_env.
- Bump deps/verifiers to the elastic-pool branch.
Breaking: `num_workers` is replaced by `pool`. Configs set `pool = { type = "elastic",
multiplex = N }` or `{ type = "static", num_workers = N }`; the rlm_swe + r2e debug
configs are migrated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): back-compat shim mapping legacy num_workers -> pool
EnvConfig forbids extra fields, so configs still setting the removed `num_workers`
would hard-fail. Add a `model_validator(mode="before")` that maps it onto `pool`:
an int -> a fixed `static` pool, `"auto"` -> the default `elastic` pool; an explicit
`pool` always wins. Keeps existing (incl. out-of-tree) configs parsing without edits.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): drop num_workers from rlm_swe + r2e configs (use default elastic pool)
The default `pool` is already elastic (multiplex 128), so an explicit `pool` here was
redundant — just remove the legacy `num_workers` and inherit the default.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to f404e97f (elastic env-server pool)
Realign the pin onto origin/feat/nano-as-v1: the prior pin d0c5bc98 was the
unsquashed #1629 feature branch, now squash-merged as f404e97f
(content-identical). Picks up #1629 (static/elastic env-server pool config).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 88e9bedd
Picks up #1631 (per-rollout setup timing as a distinct phase) and #1632
(per-call model + runtime retries).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 40a2e89f (fix trace.timing.*.duration to_wire validation)
Fixes RunRolloutResponse ValidationError 'trace.timing.setup.duration: Extra
inputs are not permitted' that crashed every rollout (#1636 drops computed
durations from to_wire).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 5dc084f5
Picks up #1638 (add --resume for evals: re-run a previous run's
missing/errored rollouts).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 472622ba
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: stop importing env modules in the orchestrator (always Rollout[WireTask]) (#2781)
* chore(v1): stop importing env modules in the orchestrator
The orchestrator built its per-env trace_type as Rollout[vf.task_type(env_id)] for v1 envs, and
vf.task_type imports the env package just to read its Task subclass for typing the wire trace.
Nothing reads typed env task fields - only task.idx and a full task.model_dump - and WireTask
(extra="allow") preserves those fields (incl. on disk). Always use Rollout[vf.WireTask], so the
orchestrator never imports an env package: the env's type and runtime both live only in the
server process.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): hoist the constant Rollout[WireTask] to a module-level ROLLOUT_TYPE
It no longer varies per env, so it doesn't belong as a per-instance attribute set in
Env.__init__ - lift it to a module constant used directly in run_rollout/run_group.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 7270e69b
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to 66c87d5b
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers to ef45f720
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (alphabet-sort host user sim, #1645)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (modal creates_per_sec 5 -> 40, #1646)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: cap v1 hendrycks-sanity scoring at 10s (#2790)
* fix(v1): cap hendrycks-sanity scoring at 10s
Without a scoring timeout (the default is no limit), a wedged math verify holds its
rollout's permit forever — sympy can spin past the in-script alarm — and at 512
concurrency that starves the pool and stalls long runs. Set timeout.scoring = 10 on the
train and eval envs so the framework cancels and the subprocess runtime kills a runaway
verify, freeing the permit.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: drop inline comment on the scoring timeout
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers (eval/train client rename) + adopt config imports (#2792)
Bump deps/verifiers to feat/nano-as-v1 HEAD (8873a740), which includes verifiers#1654 — the v1
interception rework: role-named clients (EvalClient/TrainClient), route-detected wire dialects
(chat/responses/anthropic), 1:1 relay + streaming, reasoning preserved.
Adopt the renamed client config classes in prime_rl/utils/client.py:
OpenAIClientConfig -> EvalClientConfig, RendererClientConfig -> TrainClientConfig.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (subprocess cached-interpreter uv-scripts, #1660)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (codex built-in harness, #1661)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: track terminal-bench-2-v1 as a taskset dependency
It was only a manual editable install, so `uv sync` pruned it. Add it to the env dependency
group + [tool.uv.sources] (mirroring r2e-gym-v1) so it persists across syncs and is available
out of the box.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): keep multimodal tensors out of rollout dumps (#2794)
verifiers#1653 (carry mm tensors across the env-server wire) is merged and pinned, so
`MessageNode.multi_modal_data` is no longer `exclude=True` — `model_dump(mode="json")` now
serializes the base64 pixel tensors into `train_rollouts.jsonl` and the wandb sample tables,
bloating every line. They're the training `mm_kwargs` carrier, not part of the rollout
record, so exclude them at the dump boundary (train + eval paths).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): install all v1 example tasksets in prime-rl
Declare the remaining 7 verifiers v1 example tasksets (code-golf, deepwiki,
glossary, swelego, wiki-search, wikispeedia, wordle) as editable deps so uv sync
installs every example, matching the verifiers examples set. chromadb/textarena
were already present via the v0 wiki-search/wordle envs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): install the compact example harness in prime-rl
The example harness (examples/harnesses/compact) was missing from prime-rl deps,
so the documented --harness.id compact branching example failed to resolve
(ModuleNotFoundError: harness compact not found). Declare it like the example
tasksets so uv sync installs it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (v1 docs #1662 + Trace.info #1664)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): encode router-replay routed_experts into transport (#2808)
* feat(v1): encode router-replay routed_experts into transport
Pack Branch.routed_experts ([tokens, layers, top_k]) into the transport
RoutedExperts the trainer replays, realigning the token axis to len(token_ids)
as a backstop. Bumps the verifiers pin to the companion router-replay commit.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (raw-bytes wire) + exclude routed_experts from disk dumps
Bumps deps/verifiers to the raw-bytes router-replay codec (RoutedExperts rename +
msgpack bin wire). routed_experts now rides the env-server wire as raw bytes, so it
can't round-trip the json disk dump — add it to ROLLOUT_DUMP_EXCLUDE alongside
multi_modal_data (both are training inputs, not part of the rollout record).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): guard router-replay vs prefix caching + bump verifiers/renderers pins
- Add disable_prefix_caching_for_router_replay validator: prefix-cache hits skip
recomputing the cached prefix, so the engine returns no routed-expert decisions for
those tokens. Router replay needs routing for every token, so force
enable_prefix_caching=False (mirrors the existing kv_cache_offload guard).
- Bump deps/verifiers: tail-pad routed_experts so the final node aligns (the engine
omits the last position's routing).
- Bump deps/renderers: _get_offset_tokenizer immune to the global fastokens patch race.
Together these make v1 MoE router replay work end-to-end (Qwen3-30B-A3B): verified
mismatch_kl drops vs no-replay (0.0005/0.0002/0.0002 vs 0.0015/0.0015/0.0005 @ steps 0/1/2).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/renderers pin (ruff format fix)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/verifiers pin (ruff format)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump deps/verifiers pin to merged feat/nano-as-v1 (router-replay #1672)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Remove disable_prefix_caching_for_router_replay validator
Drops the guard that force-disabled inference.enable_prefix_caching under router replay.
Validating whether prefix caching is actually compatible with router replay (cache hits
may carry no routed-expert decisions); re-add if the A/B shows it drops routing.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(orchestrator): keep top-level advantage wiring after merge
The merge auto-resolved train_sink.py and the orchestrator's TrainSink
construction to main's per-env advantage design (#2721), but envs.py and the
configs were kept on the branch's top-level design — so TrainSink read
`train_envs.get(env_name).advantage_fn`, which TrainEnv no longer defines
(AttributeError at rollout time).
Restore the branch's top-level advantage: TrainSink takes `advantage_config`
and builds its own `self.advantage_fn` once. Verified end-to-end with a
reverse-text-v1 RL smoke (reward climbs 0.16 -> 0.40 over 6 steps).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to merged main (1b7736a8)
deps/verifiers feat/nano-as-v1 now includes origin/main merged in
(composable tasksets + sandbox/save utils). Pin moves 7a98b566 -> 1b7736a8.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump pydantic-config submodule to main (single-dash short flags)
deps/pydantic-config 896ade4 -> 99f47c6 (origin/main). Picks up #16
(single-dash short flags for single-character aliases, e.g. `eval -n -m`)
and upstreams the dict[str,str] preservation fix (#14). No uv.lock change
(editable path source).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to feat/nano-as-v1 tip (5fc0b295)
Picks up the py3.11 TypedDict CI fix and #1676 (prime-sandbox programs run for
the sandbox lifetime instead of the 15-min background-job default, + retry-log
wording). Pin moves 1b7736a8 -> 5fc0b295.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to 3af08c9b
Includes verifiers#1677 - scaleswe-v1 resolves task images via Prime's
Artifact Registry instead of the incomplete public Docker Hub mirror.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(orchestrator): trim glibc heap back to the OS each step (#2821)
Factor the existing end-of-run malloc_trim into a `trim_process_memory()`
helper and also call it at the end of `finalize_train_batch`. Each step frees a
step's worth of rollouts / traces / transport buffers, but glibc keeps those
pages in per-arena free lists, so orchestrator RSS climbs over a long run
without ever shrinking. Trimming per step returns them to the OS.
Mirrors the per-step trim in prime-rl #2807 — the trim only; that PR's
`.raw`-based retention helpers don't apply to this branch's typed Rollout/Trace.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to 7862985b
Includes verifiers#1678 - scaleswe-v1 Prime Artifact Registry is now opt-in
(`use_prime_registry`, default off), so the default Docker Hub image path works
on local docker runtimes again.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: route consistent_hash on X-Session-ID for cross-turn prefix reuse (#2822)
The vllm-router `consistent_hash` policy keys on request-id headers (default
x-request-id / x-correlation-id / x-trace-id / request-id). The v1 inference
clients send none of those per rollout, so a multi-turn rollout's turns hashed
to random DP shards and re-prefilled the growing prompt cold each turn (~40%
prefix cache hit rate on an agentic SWE run, where it should approach the
eviction-limited ceiling).
Launch the router with `--request-id-headers x-session-id` so it keys on the
per-rollout `X-Session-ID` header the v1 clients now emit (companion verifiers
change). Every turn of a rollout pins to one engine, keeping its cross-turn
prefix warm. Harmless for the random / round_robin policies, which ignore
request-id headers.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to 211faecb (session-affinity routing)
Picks up verifiers #1680 (session-affinity routing header for cross-turn
prefix reuse) — the counterpart to prime-rl #2822. Pin 7862985b -> 211faecb.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to 3f45f73b (scaleswe-v1 image filter)
Picks up verifiers #1679 (filter unavailable scaleswe-v1 images at load).
Pin 211faecb -> 3f45f73b.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to 44da378c (r2e-gym-v1 registry opt-in)
Picks up verifiers #1681 (r2e-gym-v1 Prime Artifact Registry opt-in, default
off). Pin 3f45f73b -> 44da378c.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to a723977c (scaleswe-v1 image_url filter)
Picks up verifiers #1683 (filter on Docker Hub image_url, not the resolved
image). Pin 44da378c -> a723977c.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to 0c8d0aa1 (rootless harness install)
Picks up verifiers #1685 (harnesses install/run without root, pinned
/tmp/vf-{harness}) and #1684 (remove Claude Code harness). Pin a723977c -> 0c8d0aa1.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to d4b054e3 (skip region-limited e2e test)
Picks up verifiers #1686 (skip test_multi_turn on prime — colocated user-sim
port exposure is region-limited). Pin 0c8d0aa1 -> d4b054e3.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: point verifiers env paths at the flattened environments/ dir (#2824)
* chore: point verifiers env paths at the flattened environments/ dir
Companion to verifiers #1695 (flatten examples/ into a single environments/).
Update the deps/verifiers editable source paths in pyproject.toml + uv.lock:
examples/tasksets/<x> -> environments/<x> and
examples/harnesses/compact -> environments/compact. Bump the verifiers pin to
the flatten branch (7ddc78b2) so the relocated paths resolve.
Re-pin to the merged commit once verifiers #1695 lands.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(deps): bump verifiers to 22b02e4b (flatten examples/ into environments/, #1695 merged)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): advance verifiers pin to feat/nano-as-v1 tip (Trace.state + DNS fix)
#2824 retargeted the env paths but pinned deps/verifiers at 22b02e4b (#1695,
just after the examples/->environments/ flatten), which predates the later
merges. Advance the submodule to the actual feat/nano-as-v1 tip bf30ae5f
(verifiers 0.1.15.dev298): adds Trace.state (#1711), the unconditional MCP
DNS-rebinding relax (#1715, fixes the in-prime tool 421 CI failures), and the
init scaffold (#1713).
bf30ae5f also dropped verifiers' self-referential `packages` extra, so drop
`[packages]` from the verifiers override-dependency (and refresh the stale
sources comment).
Smoke: `eval reverse-text-v1 -n 1` (subprocess, temp=0) runs clean — no errors,
not truncated, reward ~1.0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to feat/nano-as-v1 tip (#1717 + #1719)
Advance deps/verifiers bf30ae5f -> f7fa7482:
- #1717 train-client prefix bridging + token-based message-graph branching
- #1719 default the harness runtime to subprocess
No prime-rl-side changes needed: every prime-rl v1 config already sets
harness.runtime.type explicitly (#1719's default flip is a no-op here), and the
consumed verifiers surface (serve EnvClient/serve_env/pool_serve_kwargs,
clients.config Eval/TrainClientConfig, task.TaskT, the Trace branch/token API) is
untouched by #1717. Imports resolve; reverse-text-v1 eval smoke clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to feat/nano-as-v1 tip (f7fa7482 -> bbfd5646)
New since the last pin: #1718/#1721 (CI + tests), #1723 (per-harness tool
disabling), #1666 (client consolidation + chat-completion header forwarding),
#1722 (warn on non-default subprocess harnesses). No prime-rl-side changes
needed: clients.config (the consumed surface) is untouched by #1666's client
refactor, #1722 only warns and exempts the default harness (what prime-rl's
subprocess configs use), and the rest is additive/CI-only. Imports resolve;
reverse-text-v1 eval smoke clean (reward 1.0).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: verifiers #1732 companion (model_dump traces, Task.prompt rename) (#2831)
* chore(v1): add prime CLI as deps/prime submodule (feat/nano-as-v1)
Tracks the companion PrimeIntellect-ai/prime#751 branch that adds verifiers v1
eval support to the prime CLI (run/view consume the v1 entrypoint + Trace format).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to feat/nano-as-v1 tip (bbfd5646 -> 220f21d4)
New: #1727 (per-rollout isolation for shared writable tool servers) and #1702
(trim verifiers runtime deps — modal/notebook/quest/pdf moved to extras). No
prime-rl-side changes needed: the only dropped transitive dep is pymupdf, used
solely by verifiers' experimental quest PDF tool via a lazy import behind the
quest extra (prime-rl never touches it). Imports resolve on dev307;
reverse-text-v1 eval smoke clean (reward 1.0).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: validate env-server traces via model_dump (companion to verifiers to_wire removal)
verifiers drops Trace.to_wire/from_wire and the derived computed fields (reward,
is_truncated, error, duration are plain properties now). Swap wire.to_wire() ->
wire.model_dump() when re-typing a returned Trace into ROLLOUT_TYPE; the .reward /
.is_truncated the metrics/eval code reads are the Trace properties, so they still work.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: rename vf.Task(instruction=) -> prompt= (verifiers #1732 companion)
verifiers #1732 renames Task.instruction -> Task.prompt; update the dispatcher's
error-rollout Task construction to match. Pin bump to the merged commit comes when #1732
lands.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to chore/v1-general-cleanup tip (220f21d4 -> d78d7474)
Pin #1732 (general v1 cleanup) so this companion's model_dump trace handling and the
Task.prompt rename round-trip against a verifiers that actually has them. Re-pin to the
feat/nano-as-v1 tip once #1732 merges.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to feat/nano-as-v1 tip (d78d7474 -> caaf0ff3)
#1732 (general v1 cleanup) merged into feat/nano-as-v1; re-pin off the chore branch onto the
integration tip. This companion's model_dump trace handling + Task.prompt rename now run
against merged verifiers.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: error-rollout placeholder task uses prompt=None
An error rollout has no prompt; None is the honest value (Task.prompt is str | Messages |
None) rather than an empty string.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): drop removed enable_bash from harness configs (verifiers #1723) (#2833)
verifiers #1723 (in the current pin) removed the default harness's enable_bash
field — the default harness now exposes only the taskset's MCP tools (use an
agentic harness like mini-swe-agent for a shell). All v1 configs still set
`enable_bash = false`, which now fails config validation (Extra inputs are not
permitted). Drop it (no-bash is the default, so behavior is unchanged); no src/
code referenced it.
Verified: `uv run rl @ configs/debug/v1/reverse_text.toml` (Qwen3-0.6B, 2 steps)
runs end-to-end — orchestrator rollouts Error 0.0% (reward 0.117 -> 0.177),
trainer steps + checkpoint, 'Training finished!'.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin to feat/nano-as-v1 tip (caaf0ff3 -> cc4afd52)
New: #1733 (robust env-server teardown, no leaked tunnels/sandboxes), #1734
(general-agent solver v1 taskset, additive/opt-in), #1735 (reject unsupported
task system_prompt). No prime-rl-side changes needed: consumed serve/clients
surface unchanged, default harness supports system_prompt, new taskset not
registered. Imports resolve; reverse-text-v1 eval clean (reward ~1.0, no errors).
Note: #1733's worker teardown throws KeyboardInterrupt on SIGTERM but run_server
doesn't swallow it, so a benign KeyboardInterrupt traceback prints at env-server
shutdown (cosmetic; verifiers follow-up).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): add debug general-agent-v1 RL config + register the taskset
Add configs/debug/v1/general_agent.toml — the v1 general-agent-v1 taskset
(GeneralAgentSolverTaskset) on the default harness, with the agent and its tool
server colocated in a modal sandbox. Adapted from configs/general_agent/
rl_qwen3_4b.toml (Qwen3-4B, batch 256). Register general-agent-v1 in
[tool.uv.sources] + the envs extra so the id resolves.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): add scaleswe-v1 RL config (Qwen3.6-35B-A3B, 65k ctx)
configs/debug/v1/scaleswe.toml — the v1 scaleswe-v1 SWE taskset on the rlm
harness + modal runtime (each row injects its own Docker image into the sandbox;
no MCP toolset). Qwen3.6-35B-A3B, batch 256, 65k context, qwen3.6 renderer with
thinking. Deployment/parallelism (cp=2, infer dp=2 tp=4, 1 train + 1 infer node)
seeded from the 30B-A3B reference — tune on the cluster for the 35B / 65k
footprint. Multi-node slurm; scaleswe-v1 was already registered.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (cc4afd52 -> 3c5f6586) + register swebench-verified-v1
New: #1738 (swebench-verified harbor taskset, prime prebuilt images), #1739
(don't retry program exec - fixes forked duplicate trace branches), #1736/#1737
(quest pdf sanitization, dashboard rotation). Register the new swebench-verified-v1
env (source + envs extra); no other prime-rl changes needed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(v1): add SWE-Bench-Verified online eval to the scaleswe run (prime runtime)
Mirror the v0 rlm_swe SWE-bench eval on the v1 scaleswe config: [orchestrator.eval]
interval=20, an eval env on the swebench-verified-v1 taskset via the rlm harness on
the prime runtime (use_prime_registry=true -> prime's prebuilt instance images),
rollout timeout 3600s. Train stays on modal; eval runs on prime.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(v1): use public images for the scaleswe SWE-Bench-Verified eval
A debug eval showed use_prime_registry=true fails with IMAGE_PULL_FAILED on the prime
runtime: the SWE-bench Verified sweb.eval.* instance images aren't mirrored into prime's
prod-sandbox Artifact Registry. The same prime sandbox pulls r2e-gym-v1's prime-registry
image and the public swebench/sweb.eval.* image fine, so it's a missing-mirror issue, not
credentials. Drop use_prime_registry (default false -> public Docker Hub images) so the
online eval works on the prime runtime now; flip it back on once the images are mirrored.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin + re-enable use_prime_registry for the scaleswe SWE eval
Bump deps/verifiers 3c5f6586 -> 952b2a7d, which lands the swebench-verified-v1 prime-image
path fix (PrimeIntellect-ai/verifiers#1740): the mirror keeps the swebench/ org, so
use_prime_registry=true now resolves to prod-sandbox/swebench/sweb.eval.* and pulls. Flip the
scaleswe SWE-Bench-Verified eval back to use_prime_registry=true (verified to pull on a prime
sandbox), for the fast cached mirror instead of public Docker Hub.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): cap hendrycks-sanity at 256 in-flight rollouts + 30s scoring timeout
Set orchestrator max_inflight_rollouts=256 (below the 512 batch) and bump the per-env
scoring timeout 10s -> 30s on both the train and eval envs. Guards against the subprocess
env-server stall where unbounded concurrency + a hanging math-verify hold permits until the
run wedges.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (general-agent-v1 colocated toolset fix)
Bump deps/verifiers 952b2a7d -> 56a720ca: PrimeIntellect-ai/verifiers#1741 makes the
general-agent-v1 toolset work when colocated in a sandbox (ships the task's tools.py + db.json
over /task). Env-package only - no framework/config surface, no prime-rl changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump hendrycks-sanity scoring timeout to 5min
Raise the per-env scoring timeout 30s -> 300s on both the train and eval envs - 30s was too
tight for the math-verify scoring under load.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(orch): show avg branches next to turns in step + eval log lines
Add 'Branches {mean:.1f}' alongside 'Turns' in the per-step train head, the per-env
breakdown, and the eval line - the average trace branch count per rollout (1 = linear, >1 =
compaction/subagents).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): update tmux + monitor-run skill for flattened env log paths
Env logs are now one file per env (envs/{train,eval}/{env_name}.log)
instead of nested env_server/env_worker_* files.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(v1): bump verifiers pin (retry backoff + relay retries)
Bump deps/verifiers 56a720ca -> 6647fe0a: PrimeIntellect-ai/verifiers#1744 adds exponential
backoff + jitter to the per-call client/runtime retries (so concurrent rollouts don't
re-thunder a shared endpoint) and lets harness clients retry the relay. Internal/additive -
no config schema or API change, no prime-rl edits.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix routed SLURM inference DP rank client config (#2830)
Co-authored-by: Codex <codex@primeintellect.ai>
(cherry picked from commit
|
||
|
|
e035135126 |
feat: llm-d (EPP+Envoy) router backend (#2697)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* refactor: drop client-side DP-rank pinning for external-LB
With external-LB data parallelism each DP rank is its own API server on its
own port (the URL is the rank selector), so the client no longer needs the
hybrid-LB `X-data-parallel-rank` header to pin a rollout to an internal DP
shard. Remove the `dp_rank_count` client field + its auto-setup and the
per-rank client expansion: one client per base URL, no rank header. The
router (vllm-router or llm-d EPP) balances across the per-rank endpoints.
This also fixes llm-d routing: the EPP forwards the header to the dp=1
backend, which rejected it ("data_parallel_rank N is out of range").
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat: llm-d (EPP+Envoy) router backend
Add llm-d as a second router backend alongside vllm-router, selected via
`[inference.deployment.router] type = "llm-d"`. Built on the external-LB
launch substrate — the per-rank vLLM engines launch identically; only the
router control plane differs.
- `LlmdRouterConfig`: discriminated-union member with `scorers` (base) +
per-profile `prefill_scorer_overrides`/`decode_scorer_overrides`,
`non_cached_tokens`, `decode_sidecar_port`, and a known-scorer validator.
- `launch_router` helper gains an llm-d branch: renders per-replica EPP +
Envoy + file-discovery endpoints and launches `epp` + `envoy` instead of
vllm-router. Call sites stay router-agnostic.
- pd-sidecar on each decode node (P/D) for remote-prefill orchestration + NIXL.
- Entrypoints pass the `router` config object to the templates.
- Reject `enable_return_routed_experts` with llm-d (breaks P/D, unverified
for multi-node).
- SLURM cleanup also clears stale `epp`/`envoy`/`pd-sidecar` processes.
- Presets under `templates/llmd/` + `scripts/install_llmd.sh`; docs + install skill.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(inference): mooncake-store + llm-d EPP coexistence on SLURM P/D
- per-rank VLLM_RPC_BASE_PATH: external-LB runs one engine per process (all
data_parallel_rank_local 0), so the mooncake-store lookup ipc socket collided
on a node-shared dir; key it by $port. Also avoids an absent submit-node TMPDIR.
- EPP --grpc-health-port 9003 -> 9013: 9003 collided with mooncake_master's
metrics server on the shared replica-head node, which killed the EPP.
- mooncake_master -default_kv_lease_ttl=3600000: KV blocks were expiring (5s
default) before the decode side reused them.
- envoy circuit_breakers raised to 100000 on backend + epp clusters: the default
(~1024) overflowed at high inflight concurrency -> "reset reason: overflow" 500s.
- pd-sidecar launches on every decode node (not just the replica head), else
decode nodes past the head advertise endpoints nothing serves.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Feat: dockerless llmd install
* chore(configs): add GLM-5.1 llm-d disaggregated RL config
End-to-end RL config used for the GLM-5.1-FP8 llm-d (EPP+Envoy) P/D run:
12 train nodes + 16 inference nodes (8 prefill x2 / 8 decode x2), mooncake KV
store, r2e env. Lives alongside the existing glm5 disaggregated inference preset.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(configs): move GLM-5.1 llm-d RL config to dedicated configs/glm5_llmd/
Relocate the end-to-end GLM-5.1-FP8 llm-d (EPP+Envoy) P/D RL config into its own
configs/glm5_llmd/rl.toml (out of glm5_disagg_inference) and refresh it to the
latest tuned version.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(inference): per-role prefill/decode vLLM overrides for disaggregated P/D
Add `prefill_vllm_overrides` / `decode_vllm_overrides` to the disaggregated
inference deployment config (mirrors the existing `*_env_overrides`): extra
vLLM config options merged into the per-role `--vllm-extra` JSON for prefill
vs decode ranks on SLURM. Rendered via a small `vllm_overrides_fragment` helper
into the `ROLE_EXTRA` string in the inference / multi-node-RL sbatch templates.
Needed by configs/glm5_llmd/rl.toml (sets `decode_vllm_overrides`), which
otherwise fails `extra="forbid"` validation in test_load_configs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(configs): enable prefill dual-batch-overlap in glm5_llmd config
Set prefill_vllm_overrides = {enable_dbo = true} (the inference-side perf knob
tuned during the GLM-5.1 run). Batch size / num-concurrent / node-scale knobs
left as-is — those are run-specific, not portable config.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(configs): tune glm5_llmd prefill/decode replicas (4 prefill / 1 decode)
num_prefill_replicas 2->4, num_decode_replicas 2->1 — the disaggregation split
found to perform best for GLM-5.1 (prefill is the bottleneck; one wide decode
replica maximizes decode KV/batching).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: add GLM-5 llm-d example (16-node / 131K trainer) (#2854)
* docs: add GLM-5 llm-d example (16-node / 131K trainer)
Move the glm5_llmd config from configs/ into examples/glm5_llmd/ with a
README, mirroring the other GLM-5 example. Frame llm-d as the faster
router for GLM-5 and document the placeholders users must tweak
(output_dir, slurm partition, mooncake device_name).
Tune the example for a 16-node trainer: seq_len=131072, num_train_nodes=16,
cp=4, and adamw optimizer.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: reword GLM-5 llm-d example entry as one-line SLURM deploy
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: highlight GLM-5 llm-d one-line SLURM deploy in Overview
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: faresobeid <fares@primeintellect.ai>
Co-authored-by: samsja <55492238+samsja@users.noreply.github.com>
|
||
|
|
31e81e5b18 |
feat: support PRIME_RL_REF for runtime source override (#2850)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* feat: support PRIME_RL_REF for runtime source override Mirrors the existing VERIFIERS_VERSION hook so researchers can dispatch a run against an arbitrary prime-rl commit/branch/tag without rebuilding the image. Clones into a per-ref dir under /tmp, seeds the venv from /app/.venv so heavy wheels (flash-attn, mamba-ssm) survive, then uv sync --inexact re-installs prime_rl from the override source. * fix: address bugbot findings on PRIME_RL_REF entrypoint - Slugify ref for cache dir name so branch names with slashes work. - Always fetch + checkout on cache hit so mutable refs (branches/tags) pick up new commits between pod restarts. - Move VERIFIERS_VERSION install after the PRIME_RL_REF swap so when both are set the install lands in the override venv. * fix: init submodules and hash-key the override cache dir - git clone --recurse-submodules so deps/* (verifiers, renderers, research-environments, pydantic-config) are populated on cold checkout, and refresh on every entrypoint via 'git submodule update --init --recursive'. - Rewrite git@github.com SSH URLs to https at runtime so the SSH submodule URLs work from pods that have no ssh keys. - Append md5 hash of the ref to the cache dir name so distinct refs that slugify the same way ('feat/foo' vs 'feat-foo') get distinct cache dirs. * fix: drop hardlink seed and key cache on repo+ref - cp -al hardlinked /app/.venv into the override tree, so the subsequent uv sync wrote through to the baked venv on filesystems shared with /tmp. Plain cp -a always copies. - Include PRIME_RL_REPO in the cache-dir hash so the same ref on different forks gets distinct cache dirs. * fix: --all-extras on override sync uv sync --inexact --no-dev only installed base deps, so env / gpt-oss / modelexpress changes in the override branch were silently missed. With --all-extras the override picks them up, and --inexact still keeps flash-attn-3 / mamba-ssm from the seeded venv. * fix: mirror image extras explicitly instead of --all-extras --all-extras pulled in disagg/quack which the baked image does not ship; their deps (deep-ep, deep-gemm, quack-kernels) would trigger heavy source builds at pod startup. Mirror Dockerfile.cuda:82's set exactly so the override venv lines up with the image. * fix: submodule sync before update to pick up .gitmodules URL changes |
||
|
|
9e1f0521e3 |
fix(scripts): verify IB support in UCX build for NIXL (#2761)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
UCX's --with-verbs silently disables IB when the rdma-core dev headers are missing, producing a TCP-only build that only fails much later at runtime with NIXL_ERR_BACKEND. On hosts with RDMA devices, require the headers before building and verify the rc_verbs transport made it into the built UCX. Also pass --with-rdmacm so the rdmacm connection manager is built when available. Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
632ef2b318 |
chore: remove private configs submodule (#2741)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
Remove the configs/private submodule (research-configs) and all references to it throughout the codebase: - Remove submodule from .gitmodules and git tracking - Simplify install.sh: use plain git submodule update --init --recursive now that no private submodule can fail for users without access - Update skills/install/SKILL.md to reflect simplified submodule init - Remove configs/private/ entry from skills/configs/SKILL.md key files - Simplify test_configs.py: no longer need to filter out private/ path |
||
|
|
209f76eb52 |
fix(install): support aarch64 hosts with any compute capability (#2587)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
The aarch64 host install path was broken: `uv sync` installs flash-attn from PyPI source but pyproject sets FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE, so the compiled extension never builds. `scripts/docker-arm64-post-install.sh` fixed it for Docker GB200 builds but hardcoded sm_100 and /app/.venv, leaving Hopper hosts (H100/H200/GH200) without a recipe. Changes: - `scripts/docker-arm64-post-install.sh`: auto-detect compute capability via nvidia-smi when available; parameterize venv path. Preserves the sm_100 default when no GPU is visible (Docker buildx). - `scripts/install.sh`: call the post-install for aarch64 hosts after `uv sync --all-extras`. Previously the script ran uv sync and exited, leaving aarch64 users with a broken venv. - `README.md`: document the aarch64 post-install step (mirrors the existing 3.1 Flash Attention 3 pattern). Validated on GH200 (sm_90, aarch64): - forward + backward parity vs torch SDPA (max diff < 0.05 / 0.25) - 383/384 unit tests pass (the 1 failure is unrelated TileLang/MoE) - SFT trainer smoke test (5 steps, Qwen3-0.6B) runs with flash_attention_2 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|
|
4df5b6229f |
fix: probe github ssh auth directly in install.sh (#2613)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* fix: probe github ssh auth directly in install.sh The previous `has_ssh_access` probe ran `git ls-remote` against the public prime-rl repo, which can return success under SSH connection multiplexing, cached creds, or other states without the local key actually being registered with a GitHub user. When that happens, the HTTPS `insteadOf` rewrite is never applied and private-submodule clones fail with "Permission denied (publickey)". Use `ssh -T git@github.com` and grep for the canonical "successfully authenticated" string instead. This is a direct check of the precondition (your key is registered with a GitHub user) and matches the pattern git itself recommends. * fix: capture ssh output to var so pipefail doesn't mask success `ssh -T git@github.com` always exits 1 (GitHub denies shell access after authenticating), and install.sh has `set -o pipefail` at the top, so the previous pipeline made has_ssh_access return failure even for developers with valid keys. Capture stdout/stderr into a variable first, then grep — keeps pipefail intact for the rest of the script. * fix: use universal ssh options in github auth probe `StrictHostKeyChecking=accept-new` requires OpenSSH 7.6+ (Sep 2017). On older systems ssh errors with 'Bad configuration option' and the probe wrongly reports no SSH auth, forcing HTTPS even when SSH would have worked. Use `StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null` instead, which works on all OpenSSH versions. Safe for a probe-only flow: no key material is exchanged, and a hostile MITM at worst makes the probe wrongly report 'no SSH', causing HTTPS fallback for public repos. * fix: rely on ensure_known_hosts and default ssh host key checking Previous commit disabled `StrictHostKeyChecking` and `UserKnownHostsFile` to side-step OpenSSH version requirements, but that made the auth probe trust any host that returns the "successfully authenticated" string — a MITM could steer the script into using their SSH for submodule clones. `ensure_known_hosts` already runs (line 116) before any `has_ssh_access` call and populates github.com via ssh-keyscan, so default host key checking is both safe and sufficient. Drop the options entirely; keep `BatchMode=yes` to suppress prompts. * fix: propagate insteadOf to submodule clones via GIT_CONFIG_* env `git submodule--helper clone` spawns fresh `git clone` processes that read only ~/.gitconfig and env vars — not the parent repo's local .git/config. So setting `url..insteadOf` locally never reached the submodule clones, and they kept attempting SSH despite the probe correctly reporting no auth. Use `GIT_CONFIG_COUNT`/`GIT_CONFIG_KEY_0`/`GIT_CONFIG_VALUE_0` which propagate the rewrite to every child git process for the duration of this script, with no persistent state in ~/.gitconfig. |
||
|
|
897b935cae |
feat: turn prime-rl into a monorepo (#2507)
Release / Push CUDA image to Docker (push) Canceled after 0s
* feat: turn prime-rl into a monorepo with submodules Add verifiers, renderers, and research-environments as git submodules and uv workspace members. Source edits in any of them now apply to prime-rl's venv without a re-sync. Drops the PrimeIntellect PyPI index in favor of installing env packages editable from the submodule trees. - envs extra expanded from ~14 curated packages to ~98 env packages across verifiers/environments and research-environments/environments - 11 envs excluded from the workspace due to upstream dependency conflicts (tau2 fork divergence, openenv-core unreleased, scicode protobuf clash, gem-wordle nltk pin, two envs with hardcoded verifiers git URLs) - override-dependencies adds torch>=2.9.0 (to override verifiers[rl]'s torch<2.9 pin) and openenv-core (to avoid an unreleased version pin) - scripts/install.sh now initializes submodules per-path so a missing private repo (e.g. configs/private) does not abort the install - installation/config/entrypoints skills updated to mention submodules and the configs/private path Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: scope ruff to prime-rl source only Submodules (verifiers, renderers, research-environments) have their own ruff configuration and style. Excluding them from prime-rl's checks avoids spurious CI failures on third-party code that we don't own. - pyproject.toml: extend-exclude the three submodule paths - style.yaml: don't fetch submodules in the ruff job (nothing to lint there) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat: add configs/private submodule pointing to research-configs The private repo holds training/eval configs not meant for the public prime-rl tree. People without access skip the submodule init via the install script. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: bump configs/private + lock CI to public submodules only - configs/private: pulls in all 88 TOML configs from research-prod - CI workflows: replace 'submodules: true' with explicit init of just verifiers/renderers/research-environments, so no CI run ever attempts to fetch the private configs/private submodule Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * refactor: move submodules under packages/ + scope config tests - packages/{verifiers,renderers,research-environments}: submodules now live alongside packages/prime-rl-configs as workspace members - pyproject.toml: workspace members/exclude and ruff extend-exclude updated to the new paths - CI workflows: revert to submodules: true (the GITHUB_TOKEN doesn't give access to configs/private, so it can't leak); the test fix below handles the in-tree case - tests/unit/test_configs.py: skip configs/private/ when collecting TOMLs so private configs aren't loaded through public schemas - scripts/install.sh: drop redundant -c url.insteadOf on clone; the later persistent git config line is what actually rewrites URLs for the submodule init step - skills/installation/SKILL.md: point to packages/<submodule>/ paths Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * refactor: scope envs extra to union of main + research-prod Drop the "install everything" approach. The envs extra now installs only the union of (1) envs prime-rl main shipped before this PR and (2) envs referenced in research-prod TOMLs. The rest of the env packages remain workspace members (installable via `uv add <name>`), but aren't pulled in by `--extra envs`. This trims the install set from ~95 to 27 packages — fewer transitive dep conflicts to keep alive, and the install set actually matches what our active configs use. tau2-bench is un-excluded from the workspace and added as a source so research-prod's tau2-bench configs install cleanly. The other tau2 forks (tau2-bench-v1, tau2-synth, tau3-bench, tau3-bench-rlm) stay excluded — they pull tau2 from divergent forks/commits that can't coexist in a single venv. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * refactor: scope workspace members to installed envs only The previous setup pulled every env subdir under packages/verifiers and packages/research-environments into the workspace via globs, then maintained an exclude list for envs that couldn't co-resolve. With the envs extra now narrowed to the union of (prime-rl main + research-prod), the workspace can list exactly those env packages and skip the rest — no exclude list needed. Also: extend-exclude in ruff config simplified to ["packages"] so prime-rl's checks ignore anything under packages/. The submodules have their own ruff configs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(ci): don't try to fetch the private configs/private submodule The default GITHUB_TOKEN that actions/checkout uses is scoped to the current repo only, so 'submodules: true' aborts with 404 when it hits configs/private (the research-configs repo). Skip the checkout action's submodule init and explicitly update just the three public submodules. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: strip noisy comments Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * refactor: prune [tool.uv.sources] to installed env packages only Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(ci): rewrite SSH to HTTPS for submodule init Runners have no SSH key, so cloning git@github.com:... fails. The actions/checkout step handles this automatically when submodules: true is set, but the explicit submodule update we run after submodules: false doesn't. Set the insteadOf rewrite before the update. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * refactor: move third-party submodules from packages/ to deps/ packages/ is reserved for first-party prime-rl subpackages (packages/prime-rl-configs). Vendored submodules live under deps/. Ruff extend-exclude switches to deps/ so prime-rl-configs gets linted again. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(install): apply SSH->HTTPS rewrite in SKIP_CLONE path too The rewrite was inside the else branch of the clone check, so users running with SKIP_CLONE=1 without SSH access would hit the same submodule init failures the rewrite was meant to prevent. Move it after the clone/skip block so it runs in either path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(docker): copy deps/ and init submodules in release workflow The submodule move from packages/ to deps/ left the Dockerfile and the release workflow inconsistent: Dockerfile.cuda only COPYs packages/, and release.yaml never initialized submodules. Add the deps/ COPY and the explicit submodule init (matching the test workflows). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: warn against --recursive submodule init, use explicit paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs: remove note from submodule init step in README Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: pin renderers to v0.1.6 and verifiers to aa428f3 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(verifiers): patch out renderers git source for workspace compat uv requires workspace members to reference each other as workspace sources. verifiers@aa428f3 still has renderers as a git source; this local patch removes it so the workspace resolves. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(verifiers): advance to latest main Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(renderers): advance to latest main (v0.1.8.dev2) Required by verifiers main which now pins renderers>=0.1.8.dev0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: revert ruff pre-commit hook to v0.13.0 to match CI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|
|
e4330c2d2c |
add poolside laguna custom model (#2479)
Release / Push CUDA image to Docker (push) Canceled after 0s
|
||
|
|
7b7bde1fa0 | drop ampere in fa4 (#2452) | ||
|
|
229391fa27 |
Feat: deep-gemm-fp8 (#2166)
Release / Push CUDA image to Docker (push) Canceled after 0s
* Feat: deep-gemm-fp8 * Feat: cleanup * nit * Style * Feat: works now * Feat: fp8 grouped gemm works * Fix: skip unaligned + qwen3.5 * chore(deep_gemm): rebuild d30fc36 wheel against torch 2.11 / cu128 The wheel was built against torch 2.10 + cu128; the merge from main bumped torch to 2.11.0+cu128 / vllm to 0.20.1, breaking ABI compat with the old build. Rebuilt via scripts/install_deep_gemm.sh --wheel-dir tools/wheels. Also updates install_deep_gemm.sh: - default ref pinned to d30fc36 (was 477618c) - script header documents the wheel-dir flow used to refresh tools/wheels/ Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(deep_gemm): pin to v0.5.0 release URL (uploaded d30fc36 wheel) The d30fc36 wheel is now hosted on the v0.5.0 GitHub release alongside the existing 477618c build, so we can drop the local path-based pin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(fp8): make deep_gemm import optional for CPU-only envs deep_gemm only ships CUDA wheels; importing prime_rl on a CPU box currently fails with ImportError before any FP8 path is even touched. Wrap both call sites in try/except so the import is graceful — actual deep_gemm calls live inside autograd Function bodies that only run on GPU anyway. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat(fp8): wire FP8 grouped GEMM into NemotronH; assert disabled for GPT-OSS Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|
|
1e9a3e9196 |
fix: exit early for unsupported platforms on install.sh (#2431)
Release / Push CUDA image to Docker (push) Canceled after 0s
* install: check platform and exit early on unsupported platforms * handle stripped ansi escape prefix for color output * Revert "handle stripped ansi escape prefix for color output" This reverts commit b8850f73893c3189d86848fb3849986275a12963. |
||
|
|
edf41113fe |
Revert "chore: bump vllm 0.20.1 + migrate cu128 → cu130 (#2403)" (#2426)
Release / Push CUDA image to Docker (push) Canceled after 0s
This reverts commit
|
||
|
|
bcac552c3f |
chore: bump vllm 0.20.1 + migrate cu128 → cu130 (#2403)
Release / Push CUDA image to Docker (push) Canceled after 0s
* chore: bump vllm 0.19 → 0.20 vLLM 0.20.0 lands MoE LoRA refactor (#40338) and CPU offloading fix (#39617) upstream — drop now-redundant prime-rl monkey patches: monkey_patch_fused_moe_lora_dp and monkey_patch_offloading_connector_ cpu_block_count. PyPI vllm-0.20.0 is built against CUDA 13 and links libcudart.so.13; our env is pytorch-cu128 (CUDA 12). Pin vllm to the cu129 wheel from wheels.vllm.ai (libcudart.so.12) for binary compat. Promote torchvision/torchaudio to direct deps so [tool.uv.sources] pins them to pytorch-cu128 (cu13 transitive resolution would break torch ops). Add vllm = false exemption to the 7-day exclude-newer cooldown since 0.20.0 was published 2026-04-27, inside the window. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat: migrate cu128 → cu130 Now that vllm 0.20.0 is the floor and PyPI ships it for CUDA 13 natively, drop our cu129-wheel detour and move the rest of the GPU stack to cu130: - pytorch-cu128{,-test} indices → pytorch-cu130{,-test} torch/torchvision/torchaudio/flash_attn_3 follow. - flash-attn extra: bump to v0.9.4 cu130torch2.11 prebuilt wheel. - Drop the wheels.vllm.ai cu129 URL pin — PyPI vllm 0.20.0 (cu13) is now the default. - override-dependencies: nvidia-cudnn-cu12 → nvidia-cudnn-cu13. Lockfile pulls torch 2.11.0+cu130, torchvision/torchaudio 0.26.0/2.11.0 +cu130, flash-attn 2.8.3+cu130torch2.11, vllm 0.20.0, and swaps every nvidia-*-cu12 transitive for its cu13 counterpart. Not addressed in this change (draft until ready): - Host driver upgrade: 575.64.03 → ≥580.65.06 required for CUDA 13. - samsja prebuilt wheels (deep-ep, deep-gemm, nixl-cu12) still point at cu12 builds — runtime-incompatible with cu13. Need rebuilds before merging. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(deps): bump vllm 0.20.0 → 0.20.1 Picks up the DeepSeek V4 patch release and a handful of bug fixes (CUDA-graph max_num_batched_token, num_gpu_blocks_override, cumem expandable_segments, structured-output kwargs). Strict patch — none of the kept/dropped monkey-patches are touched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(deps): ship cu13 disagg wheels, switch nixl to PyPI deep-ep / deep-gemm: rebuilt against CUDA 13.1, stamped with `.cu13` local version, uploaded alongside the existing cu12 wheels at v0.5.0. nixl: dropped the URL pin entirely. PyPI `nixl-cu13` 1.0.1 ships UCX auditwheel'd with mlx5_ib / rdmacm / cuda transports — verified end-to-end with a 2-node basic_two_peers.py run that picked rc_mlx5 for inter-node RMA. The custom install_nixl_from_source.sh path is kept (now generates `nixl-cuMAJOR` per torch's CUDA major) for clusters that need a vendored UCX, but it's no longer the default. install_ep_kernels.sh: - Falls back to /usr/local/cuda-${MAJOR} when torch reports 13.0 but only cuda-13 (-> 13.1) is installed; rejects toolkit/torch major mismatches. - Exports CPATH=$CUDA_HOME/include/cccl for CUDA 13, where CCCL headers (e.g. <cuda/std/tuple>) moved into the cccl/ subdir and torch's CUDAExtension doesn't add it on its own. - Post-build --set-runpath /tmp/deepep_build/nvshmem/lib rewrites the DT_RUNPATH on deep_ep_cpp.so to match the cu12 convention the existing inference/RL templates already hook (they symlink the user's NVSHMEM at that path on each compute node). install_deep_gemm.sh: post-build cu-suffix stamp. scripts/wheel_add_cu_suffix.py (new): repacks a wheel with +...cuXX appended to its local version, optionally stripping or rewriting DT_RUNPATH on every .so. Keeps METADATA / dist-info / RECORD / filename consistent. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(templates): fall back to ep_kernels_workspace nvshmem in disagg launchers inference.sbatch.j2 and multi_node_rl.sbatch.j2 still set up the /tmp/deepep_build/nvshmem/lib symlink the deep_ep wheel needs at runtime, but now also try $PROJECT_DIR/ep_kernels_workspace/nvshmem/lib (where install_ep_kernels.sh actually places NVSHMEM) if $OUTPUT_DIR/nvshmem isn't staged. Also adds the same hook to multi_node_rl.sbatch.j2's disagg block (was previously only in inference.sbatch.j2, despite multi_node_rl running deep_ep in-process when disagg is enabled). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * style: drop unused shutil import, apply ruff format Caught by the Style workflow — `shutil` was speculatively imported when wheel_add_cu_suffix.py was first sketched but never used, and ruff's formatter wanted a couple of cosmetic tweaks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(deps): exempt torchvision/torchaudio from exclude-newer cooldown Both are sourced from the `pytorch-cu130` index alongside `torch` and `flash_attn_3`. That index doesn't publish upload dates, so any package pulled from it must be exempt from the 7-day `exclude-newer` cooldown or `uv lock` may fail to resolve when a new release lands inside the window. Caught by bugbot. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(deps): refresh uv.lock metadata under uv 0.11.9 Previous lockfile was generated with uv 0.11.7. After the bugbot fix added `torchvision`/`torchaudio` to `exclude-newer-package`, CI (which runs uv 0.11.9) detected a metadata drift and failed `uv sync --locked`, even though the resolved packages were identical. Re-locking with uv 0.11.9 reorders the `exclude-newer-package` section and normalizes the `exclude-newer` value; no resolution changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * add cu12 cudart to venv dep --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Jackmin801 <ongjackm@gmail.com> |
||
|
|
0403c097a2 |
flash-attn-cute -> flash-attn-4 (#2381)
Release / Push CUDA image to Docker (push) Canceled after 0s
|
||
|
|
5061b8d88e |
up fa4 version (#2369)
Release / Push CUDA image to Docker (push) Canceled after 0s
* up fa4 version * update in the arm build script * uv lock * update in fix-flash-attn-cute |
||
|
|
ba86b9ba88 |
Support runtime verifiers version override (#2274)
Release / Push CUDA image to Docker (push) Canceled after 0s
* Support runtime verifiers version override via VERIFIERS_VERSION env var When set, the entrypoint reinstalls verifiers from the specified git ref (tag, branch, or commit) before starting the main process. * Drop --no-deps so transitive deps are updated with verifiers override * Use --reinstall-package to only reinstall verifiers, not the entire dep tree |
||
|
|
b1d37e9dd6 |
Point vllm-router at PrimeIntellect-ai/router v0.1.13 (#2167)
Release / Push CUDA image to Docker (push) Canceled after 0s
* improvement: point vllm-router at PrimeIntellect-ai/router v0.1.13 - Update pre-built wheel URL from samsja/flash-attn-builds (v0.1.11) to PrimeIntellect-ai/router releases (v0.1.13) - Update install script from S1ro1 fork to PrimeIntellect-ai/router main * fix: update router wheel URL to v0.1.14 with correct naming * ci: retry after release assets available * chore: update uv.lock for router v0.1.14 * chore: remove install_vllm_router.sh, wheels are now pre-built in CI |
||
|
|
a0b6a9169e |
chore: simplify tmux script windows (#2170)
Release / Push CUDA image to Docker (push) Canceled after 0s
* chore: simplify tmux script — add Command window, remove Monitor Replace the Monitor window (nvtop/htop) with a Command window for running commands. Logs window stays the same. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: rename Command window to Launcher Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add Claude Code window with log context to tmux script Starts an interactive Claude Code session with an appended system prompt containing all log paths for the training run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: use auto permission mode for Claude Code window Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: give Claude Code awareness of tmux session and Launcher pane Adds the tmux session name and a capture-pane command to the system prompt so Claude can read what was run in the Launcher window. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|
|
1692a67d90 |
chore: unify log directories (#2150)
Release / Push CUDA image to Docker (push) Canceled after 0s
* chore: unify log directories across local and SLURM deployments
Remove Python file logging (log.file config) — deployment-level capture
(stdout redirect for local, tee for SLURM) is sufficient. This eliminates
duplicate log files and simplifies the logging architecture.
Key changes:
- Remove log.file config option and JsonFileSink from logger
- Rename .stdout -> .log for deployment-captured logs
- Unify SLURM logs from slurm/ into logs/ (same as local)
- Trainer shows rank 0 only, all rank logs in logs/trainer/torchrun/
- Multi-node SLURM: logs/trainer/node_N.log, logs/inference/node_N.log
- Symlink logs/trainer.log -> trainer/node_0.log (multi-node)
- Historical per-job logs under logs/slurm/job_{id}/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update env log paths in docs to match actual structure
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: simplify env and torchrun logging sections
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: include per-node and per-rank log paths in log messages
Show where to find node-level logs (for multi-node) and per-rank
torchrun logs in the startup log messages for RL, SFT, and inference.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: extract format_log_message to shared utility
Move format_log_message from rl.py to utils/pathing.py and reuse it
in SFT and inference entrypoints, eliminating duplicated formatting logic.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: remove historical per-job SLURM log copies
The job_* log copies in logs/slurm/ added complexity without much value.
SLURM's own job output log (job_%j.log) already serves as the historical
record.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: move tmux helper section to bottom of logging.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: consolidate tmux.sh and slurm_tmux.sh into one script
Log paths are now unified across local and SLURM, so both scripts
were tailing the same files. Merge into a single tmux.sh with a Logs
window (4 panes tailing trainer/orchestrator/envs/inference) and a
Monitor window (nvtop + htop).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: fix logger docs to match actual behavior
setup_logger doesn't raise when called twice (it reconfigures).
get_logger always works (auto-initializes a default if needed).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: remove incorrect env_worker_logs reference
The env_worker_logs config field is defined but never read — env worker
logs are written unconditionally.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: remove dead env_worker_logs config field
Defined but never read anywhere in the codebase.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add router logs to slurm monitoring section
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: mention per-node and per-rank trainer logs in performance section
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: generalize config path references to {output_dir}/configs/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: template rendering bugs and improve log message labels
- Fix Jinja2 tags on same line as tee commands (broken bash output)
- Rename "Trainer:" to "Trainer (rank 0):" in log messages
- Rename "Nodes:" to "All nodes:" and "Per-rank:" to "All ranks:"
- Make per-rank log line a tail -F command following torchrun structure
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: include stderr in all-ranks log tail command
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update stale log paths in examples, SFT tests, and pathing test
- Fix torchrun glob: **/*.log → */*/*/*.log (tail -F doesn't support **)
- Update 5 example READMEs from slurm/latest_* to logs/ paths
- Update SFT tests from logs/trainer/rank_0.log to logs/trainer.log
- Update pathing test fixture to match new log structure
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: clean up log message code and fix test bug
- Remove hardcoded "Showing rank 0 logs only" message from trainers
(already communicated via format_log_message)
- Derive env_log_dir inside format_log_message instead of requiring
callers to pass it
- Fix test_pathing double mkdir crash (FileExistsError)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: split LogConfig into TrainerLogConfig and OrchestratorLogConfig
- TrainerLogConfig adds ranks_filter (configures torchrun
--local-ranks-filter, defaults to [0]) and log_data
- OrchestratorLogConfig adds vf_level
- Base LogConfig retains level and json_logging
- ranks_filter is passed through to SLURM templates
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: keep LogConfig as-is, only extend with TrainerLogConfig
Revert OrchestratorLogConfig — keep vf_level and log_data on the base
LogConfig for safety. Only TrainerLogConfig extends with ranks_filter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: remove "(rank 0)" from trainer log message
ranks_filter is now configurable so it may show more than rank 0.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use total_infer_nodes for log hint and add CHANGELOG entries
- Fix num_infer_nodes using per-replica count instead of total, which
suppressed "All nodes" hint for multi-replica inference
- Add CHANGELOG entries for removed config fields and new ranks_filter
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use `uv run sft` entrypoint in SFT integration tests
The SFT tests were calling torchrun directly, bypassing the SFT
entrypoint which handles stdout redirection to trainer.log. This caused
tests to read stale/wrong log files from the shared output directory.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add --clean-output-dir to initial SFT integration tests
The SFT entrypoint validates that output_dir doesn't contain stale
checkpoints. Since output_dir is session-scoped and shared across test
modules, the SFT tests need --clean-output-dir on the initial run.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add --clean-output-dir to RL integration tests too
All integration tests sharing the session-scoped output_dir should
clean on initial run to avoid stale checkpoint validation errors.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|
|
14c0a02653 |
feat: multi env worker (#2083)
Release / Push CUDA image to Docker (push) Canceled after 0s
* feat: integrate verifiers multi-env-worker support Pin verifiers to 8dffd10 (multi-env-worker branch) which introduces env worker processes for parallel environment execution. Add per-env `num_workers` config field (default "auto", scales as 1 worker per 256 concurrent rollouts). Update imports and API calls to match the new verifiers serve module (workers → serve, log_file → log_dir). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * bump * chore: unify env log dir and add env log tail commands Move env server logs to output_dir/logs/envs/{env_name}/ for both train and eval envs. Use resolved_name consistently instead of env.name or env.id. Add env log tail commands to RL startup messages (single_node and slurm) and add an Envs pane to the tmux script. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * bump vf * docs: add changelog entry for orchestrator.env[].num_workers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * formatting * refactor: move env logs to main logs dir and improve log formatting Move env logs from outputs/run_default/logs/envs/ to outputs/logs/envs/ so they live alongside trainer/orchestrator/inference logs. Also clean up the log path display: truncate long env names, align columns, and reorder tmux panes to put envs between orchestrator and inference. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: resolve eval env workers based on num_examples * rollouts_per_example When num_examples=-1 (all samples), defaults max_concurrent to 1024 (4 workers) with a warning log explaining the fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: separate train/eval env logs and nested log display Move env logs into envs/train/ and envs/eval/ subdirs to avoid name clashes when the same env is used for both. Display logs in a nested hierarchy: Envs > Train/Eval > individual envs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix standalone env server logdir * bump vf * remove env server config * address comments --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|
|
ecd0809280 |
feat: disaggregated prefill-decode inference with multi-replica support (#2030)
Release / Push CUDA image to Docker (push) Canceled after 0s
* feat: disaggregated prefill-decode inference with multi-replica support Extracted PD disaggregation changes from PR #2010. Adds: - Disaggregated deployment type with separate prefill/decode nodes - vLLM kernel format weight transfer (avoids HF checkpoint round-trip) - Pause/resume lifecycle for draining in-flight requests during weight updates - Admin URL separation (bypass router for direct server access) - Multi-replica inference support - NIXL/UCX, DeepEP, and vllm-router install scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: remove vLLM kernel format weight transfer This PR should focus on PD disaggregation only. The kernel format transfer path (fused projections, stacked experts, FP8 quantization) is a separate optimization that can be added back in a dedicated PR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * style: fix ruff formatting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: address PR review comments - Raise error if tp != 1 in disaggregated mode instead of silently overriding - Revert auto_setup_model to main's version (FP8 model name logic not needed for PD) - Revert nccl.py broadcast to main's inline style (method extraction was for kernel format) - Add try/finally around weight update to ensure engines are always resumed - Fix sample config: num_infer_nodes=3 + num_infer_replicas=2 to pass validation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add disaggregated P/D support to inference SLURM template Extends the existing inference.sbatch.j2 template with conditional disaggregated mode support. When deployment type is "disaggregated", the template splits nodes into prefill/decode groups with per-replica vllm-router, NIXL KV transfer, and DeepEP expert parallelism. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * add inference disag slurm * add extra deps * add extra deps * fix eps * fadd stuff * fadd stuff * fadd stuff * fix smth * move deep-gemm from dep group to disagg extra for --all-extras Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: configurable deep-gemm via use_deep_gemm config field Rebuild deep-gemm from vLLM 0.17 recommended commit (477618c). Add use_deep_gemm bool to InferenceConfig that sets VLLM_USE_DEEP_GEMM=1 in the sbatch template. Only works with per-tensor FP8 models (e.g. GLM-5-FP8). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * wip * add config * add deps * fix studfs * fix studfs * use vllm router from matej * feat: add X-Session-ID header for prefix cache affinity in PD inference Monkey-patch verifiers' OpenAI clients to inject X-Session-ID (derived from example_id) on every inference request. The vllm-router uses this header for sticky routing so that all requests for the same example hit the same decode node, enabling prefix cache reuse. Also updates hendrycks_math config for disaggregated PD with EP. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Revert "feat: add X-Session-ID header for prefix cache affinity in PD inference" This reverts commit 12deff893d0c5053273c25a537b6979be601eb6a. * delete slurm * feat: sticky routing, deep-gemm support, and P/D cleanup - Add extra_headers_from_state to ClientConfig for per-request dynamic headers (X-Session-ID from example_id for sticky routing) - Auto-configure session headers in RL runs - Pass use_deep_gemm to disagg RL template (VLLM_USE_DEEP_GEMM=1) - Add --intra-node-data-parallel-size 1 to P/D router args - Fix uv sync: remove stale --group fp8-inference (deep-gemm now in disagg extra) - Update verifiers to f6ff5274 (extra_headers_from_state support) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update verifiers to main (f5580acd) Points to merged extra_headers_from_state support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update disagg rl config for Qwen3-30B-A3B (1P+1D) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add disaggregated inference guide and GLM-5 config (#2077) * chore: add reasoning_parser to GLM-5 inference config (#2081) Enables vLLM to split reasoning_content from content natively, so verifiers saves it as a separate field in trajectories. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Enable none * Feat: skip master weights gather * updates deps * remove configs --------- Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: hallerite <git@hallerite.com> Co-authored-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> Co-authored-by: S1ro1 <matej.sirovatka@gmail.com> Co-authored-by: Mika Senghaas <mail@mikasenghaas.de> |
||
|
|
76946689cf |
add Qwen 3.5 MoE model support with EP and VLM weight broadcast (#2026)
Release / Push CUDA image to Docker (push) Canceled after 0s
* feat: add Qwen 3.5 MoE model support with EP and CP integration Adds a custom Qwen 3.5 MoE (GatedDeltaNet + MoE) implementation with: - HF <-> PrimeRL weight conversion (fused/unfused expert formats) - Expert Parallelism support (MoE layers auto-detected by apply_ep) - Context Parallelism support (ring attention patching for flash attention layers) - Router replay via routed_experts argument - Unit tests for forward pass, weight roundtrip, router replay, and CP patching Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * remove vflm warning * feat: add custom VLM support for Qwen 3.5 MoE Extend Qwen3_5MoeForCausalLM to handle both text-only and VLM configs. When the config has a vision_config, the model creates a composite body (HF frozen vision encoder + custom PrimeRL text model). Weight conversion auto-detects VLM keys and remaps accordingly. - Unified model class (no separate VLM file) driven by config - Config-based VLM detection fallback for local model paths - VLM dispatch in get_model() via _CUSTOM_VLM_MAPPING - mini_moe.py preset for qwen3_5_moe_vlm testing - 6 new GPU tests covering forward/backward/weights/roundtrip/router/meta Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: add debug SFT config for real Qwen3.5-35B-A3B VLM Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: support VLM layer key format in weight broadcast VLM models use `model.language_model.layers.*` instead of `model.layers.*`, which crashed get_max_layer_num and caused filter_state_dict_by_layers to silently drop layer weights. Also fixes off-by-one in filter_state_dict_by_layers that skipped layer 0. * use registry-based approach * run ruff * chore: remove debug SFT configs for Qwen3.5 MoE Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: sami jaghouar <sami@primeintellect.ai> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: sami jaghouar <sami.jaghouar@gmail.com> |
||
|
|
89a5343780 |
fix arm64 flash-attn-cute: revert to 2b5db43 for sm100 pipeline fix (#1982)
Release / Push CUDA image to Docker (push) Canceled after 0s
* fix arm64 flash-attn-cute: use 2b5db43 rev with sm100 pipeline fix * also update fix-flash-attn-cute.sh to 2b5db43 |
||
|
|
f0746566e9 |
fix arm64 flash-attn: run uv pip from /tmp to avoid pyproject.toml build vars (#1975)
Release / Push CUDA image to Docker (push) Canceled after 0s
|
||
|
|
99c02bba6c |
fix arm64 flash-attn build: override FLASH_ATTENTION_SKIP_CUDA_BUILD (#1974)
Release / Push CUDA image to Docker (push) Canceled after 0s
* fix arm64 flash-attn build: override FLASH_ATTENTION_SKIP_CUDA_BUILD * also set FLASH_ATTENTION_FORCE_BUILD to bypass cached wheel download |
||
|
|
ebb5a1cac2 |
add --no-cache to force flash-attn source build on arm64 (#1973)
Release / Push CUDA image to Docker (push) Canceled after 0s
|
||
|
|
d19ce7919f |
force flash-attn source build on arm64 with --no-binary (#1972)
Release / Push CUDA image to Docker (push) Canceled after 0s
|
||
|
|
d4bfa08977 |
Add arm64 support to Dockerfile and deps (#1933)
Release / Push CUDA image to Docker (push) Canceled after 0s
* Add arm64 support to Dockerfile and deps - Swap builder base to multi-arch nvidia/cuda:12.8.1 image - Add platform_machine markers to x86_64-only wheel deps * Fix tzdata interactive prompt in arm64 build * Fix tzdata interactive prompt in Docker build * add arm64 flash-attn source build and expose max_num_seqs on inference CLI * only target sm_100 for arm64 flash-attn build * remove max_num_seqs, belongs in a separate PR * also build flash-attn-3 from source for arm64, supports sm_100 * use pip for flash-attn-3, uv cant resolve torch match-runtime from git * use pip for flash-attn-3: uv rejects match-runtime without static metadata * link uv issue in dockerfile comment * use venv pip for flash-attn-3, pip not on PATH in builder * use uv run pip for flash-attn-3 * install pip into venv before using it for flash-attn-3 * fix arm64 flash-attn build: export env vars, add ninja * fix: install python ninja package, export all env vars properly * remove flash-attn-3 from arm64 build, fa4 (flash-attn-cute) is used instead * Fix missing cutlass.utils.ampere_helpers on arm64 (#1948) * Fix missing cutlass.utils.ampere_helpers on arm64 flash-attn.cute imports cutlass.utils.ampere_helpers but nvidia-cutlass-dsl 4.4.1 doesn't ship that module. Copy it from flashinfer's vendored cutlass which has the file. * Expand Dockerfile comment explaining cutlass ampere_helpers workaround * Reinstall flash-attn-cute after flash-attn on arm64 to fix namespace conflict (#1949) * Pin flash-attn-cute to locked commit, upstream renamed package to flash-attn-4 (#1950) * Upgrade flash-attn-cute for cutlass-dsl 4.4.1 backward pass fix (#1952) * Upgrade flash-attn-cute to 7ed0898 for cutlass-dsl 4.4.1 compatibility * Pin fix-flash-attn-cute.sh to same commit as pyproject.toml * Pin flash-attn-cute to 2b5db43 for cutlass-dsl 4.4.1 compat and sm100 backward fix * refactor: extract arm64 post-install logic into script * skip arm64 script entirely on x86, trim comments * update uv.lock * revert pydantic-config to branch=main * pin flash-attn==2.8.3 in arm64 post-install * pin flash-attn-cute to e2743ab5, regenerate uv.lock * align flash-attn-cute rev in scripts with pyproject.toml (e2743ab5) |
||
|
|
c2027a79d0 |
Feat: GLM5 (#1827)
Release / Push CUDA image to Docker (push) Canceled after 0s
* feat: add GLM-5 (glm_moe_dsa) custom model with MLA attention Implement GLM-5 as a custom model following the 4-file convention: - configuration, modeling, converting, and __init__ - MLA (Multi-head Latent Attention) with LoRA-compressed Q/KV - Interleaved RoPE support via apply_rotary_pos_emb_interleave() - Dense attention only (sparse Lightning Indexer is future work) - Reuses existing MoE, MLP, RMSNorm, and RotaryEmbedding layers - Weight conversion roundtrip (HF <-> PrimeRL) for MoE experts - Indexer weights declared but unused for state dict compatibility - mini_moe.py preset for test model creation - Unit tests (attn-only, mlp-only, full model + roundtrip) * feat: add sparse MLA attention with tilelang kernels for GLM-5 Add Dynamic Sparse Attention (DSA) to the glm_moe_dsa model using vendored tilelang kernels for training fwd+bwd. Includes a bf16 PyTorch indexer (varlen-aware via cu_seqlens) and the absorption trick to operate in compressed KV latent space (d_qk=576, d_v=512). * Progress we run against vllm * Feat: works but slow * works now i think * Cleanup * deps * Minor changes * fix minimoe * To be verified * Feat: glm5 * Fix: scaling * Fix more scaling * FP8 quant * Scale * Cleanup: remove banner comments, verbose docstrings, dead code, and broken tests - Remove license banner, section separators, and shape annotation comments - Remove unused _weight_scale variable and commented-out code in fp8_indexer - Trim verbose vendor attribution comments - Consolidate duplicate warnings in GlmMoeDsaForCausalLM - Remove broken test file (tests passed wrong kwargs to attention forward) - Remove sloppy init comment in models/__init__.py Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * final * nit * Fix GlmMoeDsaConfig pad_token_id forwarding Co-authored-by: Matej Sirovatka <S1ro1@users.noreply.github.com> --------- Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Matej Sirovatka <S1ro1@users.noreply.github.com> |
||
|
|
3102ca47cb |
Add SLURM entrypoint with Jinja2 template (#1774)
Release / Push CUDA image to Docker (push) Canceled after 0s
* refactor config * Add SLURM entrypoint with Jinja2 template and tmux launcher Adds a new `rl_slurm` entrypoint that resolves the full RL config, dumps sub-configs as TOML, renders a SLURM batch script from a Jinja2 template, and submits it via sbatch (with --dry-run option). Includes a tmux launcher for monitoring trainer/orchestrator/inference logs and documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix ruff formatting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(slurm): sync orchestrator output dir with cleanup Co-authored-by: samsja <samsja@users.noreply.github.com> * test(configs): include slurm config parser in config loading test Co-authored-by: samsja <samsja@users.noreply.github.com> * add auto dir * fix(slurm): move auto_setup_output_dir to BaseRLConfig so SLURM entrypoint propagates output_dir RLSLURMConfig extends BaseRLConfig, not RLConfig, so the validator that propagates output_dir to trainer and orchestrator was never running. This caused the Jinja template cleanup to target wrong paths and the trainer to pick up stale rollouts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * add args * feat(slurm): make config more flexible and self-contained - Replace base_dir/env_file/venv with single project_dir - Add gpus_per_node (default 8) to remove hardcoded GPU counts - Add nodes_per_fsdp_group to auto-compute dp_replicate - Use -m module syntax for torchrun instead of file path - Derive .env and .venv paths from project_dir Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix many stuff * add math * addexamples * add moe example * docs(slurm): update to Hendrycks Math examples with MoE config Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: add required output_dir to slurm example configs --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: samsja <samsja@users.noreply.github.com> Co-authored-by: sami jaghouar <sami@primeintellect.ai> |
||
|
|
aaeb711501 |
Add MiniMax M2.1 MoE model support (#1773)
Release / Push CUDA image to Docker (push) Canceled after 0s
Implement full pipeline for MiniMax M2.1 (230B MoE, 10B activated/token): modeling code, HF<->PrimeRL weight conversion, registration, and mini-model verification. Key additions: - Per-layer QK norm support in shared attention (qk_norm_type="per_layer") - MiniMax M2.1 model module with config, conversion, and modeling - Mini model preset for testing at small scale - Refactored mini_moe.py to support remote-code HF models Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|
|
67ab5d1da6 | add mini moe (#1759) | ||
|
|
bd087277d5 |
Flash-attention-4 (#1726)
* Feat: initial * Feat: fa4 cleanup * Changelog * Im done * Fix * Fix * changelog * Cleanup --------- Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> |
||
|
|
369fb5718d |
Refactor tmux script to improve log following logic (#1483)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: sami <sami@primeintellect.ai> |
||
|
|
72c5f5f656 |
Upgrade vllm (#1427)
* dont use enum setter for logprobs mode * fix: stale imports * update to torch 2.9 * init_app_state doesnt take vllm config anymore somehow * use runnable because of CUDAGraphWrapper * vllm now uses default seed 0 * fix import * moe venv * use mjun flash attn for torch 2.9 and up vllm version * Revert "moe venv" This reverts commit 8934ceb3f92e3d38d8423f4f5418b8766d315548. * remove some todos * remove unused import * Apply suggestions from code review Signed-off-by: Jackmin801 <56836461+Jackmin801@users.noreply.github.com> * set very high max cpu loras to patch around areal lora hack * make flash attn optional and put uv sync extras everywhere * Integrate token-in route with vLLM v0.12.0 (#1444) * Move LoRA out of experimental section (#1440) * Add Bug Bot instructions for changelog enforcement (#1441) Co-authored-by: Cursor Agent <cursoragent@cursor.com> * duplicate chat completinos endpoint into /generate * serve chat with token in functionality * use field to avoid misleading warning * nicer error msg * lock feature branch * make use tokens prompt configurable * use setter and print info * bump * include inference * do not print warning log (logs all the time) * bump * bump + bring back warning log * bump vf * bump vf * use dp=6 in wordle example * no deepcopy and no warning * do not tokenize on the server * add field names so that tokens is cached and no warning of unrecognized field is shown * bump vf * auto install * bump vf * bump vf + set vllm tokenize method * skip applying chat template * Revert "skip applying chat template" This reverts commit 43c6a2b2a835fbf2def3ed93571ec3c3a2aa945c. * Revert "do not tokenize on the server" This reverts commit 918219176773ad45bd45e749e0e596d6d1a7e423. * bring back log * use route /v1/chat/completions/tokens * fix log * bump vf and make everything configurable * bump and more informative log * bump and make non-exact tokenization default * use token prompts by default * remove retokenization issue from docs * rename class * bump vf * fix auto asc setup for lora * bump vf * bump vf * bump vf * bring back setter * bump vf * bump vf to latest prime-rl * make custom routes v0.12.0 compatible * monkey patch api server worker proc again to enable multi api server mode --------- Co-authored-by: will brown <williambrown97@gmail.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> --------- Signed-off-by: Jackmin801 <56836461+Jackmin801@users.noreply.github.com> Co-authored-by: Mika Senghaas <mail@mikasenghaas.de> Co-authored-by: will brown <williambrown97@gmail.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> |
||
|
|
a5fd637104 |
refactor models to dir and add model specific conversion function (#1356)
* refactor models to dir and add conversion function * move llama too * fix qwen3 moe conversion tt -> hf * use index 0 in the conversion * add tests for qwen3 moe * add tests for conversion * fix position ids for HF * fallback to for loop for non hopper * fix: imports need cuda * remove unused scripts * fix default device and dtype at module level bad * take out moe specific language * fix tests * fix missing cls * use custom init buffers * add back conversion test * make max layer counting and looping simpler * cover qwen with mlp case * add tests for llama --------- Signed-off-by: Jackmin801 <56836461+Jackmin801@users.noreply.github.com> |
||
|
|
b8c36a4ebb | fix gradio (#1313) | ||
|
|
99f94497a3 |
feat fa3 - v2 (#1309)
* Feat: initial fa3 integration * Feat: correct flash-attn-3 * Fix: remove unused validators * Feat: add readme * remove hellooooooooooooo * establishment wants me to use ruff * I hate ruff * AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA * add llama/qwen * fix uv sync ci * move validation from config to setup modeli * fix docker * Feat: add fa3 as really optional * Fix err * Update README with uv run command clarification Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> --------- Signed-off-by: Matej Sirovatka <54212263+S1ro1@users.noreply.github.com> Co-authored-by: Sami Jaghouar <sami.jaghouar@hotmail.fr> |
||
|
|
eccf2c308b |
Revert "Feat: fa3 (#1302)" (#1308)
This reverts commit
|
||
|
|
a847081b84 |
Feat: fa3 (#1302)
* Feat: initial fa3 integration * Feat: correct flash-attn-3 * Fix: remove unused validators * Feat: add readme * remove hellooooooooooooo * establishment wants me to use ruff * I hate ruff * AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA * add llama/qwen * fix uv sync ci * move validation from config to setup modeli * fix docker --------- Co-authored-by: Sami Jaghouar <sami.jaghouar@hotmail.fr> |
||
|
|
2e5cf1d82f |
fix dockerfile uv not working, fix missing entrypoint, add ulimit (#1297)
* fix dockerfile uv not working, fix missing entrypoint, add ulimit * adjust / cleanup dockerfile * improve Dockerfile, move entrypoint script |
||
|
|
bbbd9a347e |
add skip clone in install.sh (#1112)
* add skip clone in install.sh * add skip clone in install.sh * add skip clone in install.sh * add skip clone in install.sh |
||
|
|
4620e257f6 |
Save sharded weight checkpoints and enable safetensors format (#1058)
* Remove redundant log * First working version * Use constants from transformers and adjust debug logs * Minor * Fix update weights call on resume * Make it non breaking * Rename symbols |