23 Commits
Author SHA1 Message Date
minh hoangandGitHub 54307fc301 fix(ci): build ghcr image on release via explicit dispatch (#3125)
Releases are published with GITHUB_TOKEN, whose events do not retrigger
workflows, so build_image.yaml's `on: release` trigger never fired and
release commits never received a GHCR image. Dispatch build_image.yaml
explicitly from tag-and-release.yaml after publishing (workflow_dispatch
is exempt from the no-retrigger rule), and drop the now-dead `on: release`
trigger plus its unreachable github.event.release.* references.
2026-07-23 14:27:49 -07:00
56a6c5fea6 fix(trainer): don't resolve Hub envs when parsing orchestrator configs (#3096)
* fix(trainer): don't resolve Hub envs when parsing orchestrator configs

discover_runs() builds OrchestratorConfig to read training-relevant fields, but
constructing a v1 env config eagerly resolves (imports/installs) its taskset/
harness plugins from the Environments Hub. On the trainer that 404s for private
hub envs (taskset.id = owner/name@version) — the trainer has no Hub credentials —
so get_orchestrator_config() returns None and the run is silently skipped.

Parse under verifiers' skip_plugin_install contextvar so the trainer never
touches the Hub; the env server still installs the plugin at runtime.

Depends on verifiers exposing `skip_plugin_install` — bump deps/verifiers to a
commit that includes it before this lands.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore(trainer): sort imports to satisfy ruff isort (I001)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 12:51:32 -07:00
minh hoangandGitHub 4d8df5120e chore(ci): remove ghcr-publish environment approval gate (#3059)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
The build job in build_image.yaml opted into the ghcr-publish
environment solely for its required-reviewers protection rule, which
paused every ghcr build (release + .dev-tag dispatch on merge to main)
pending manual approval. The environment held no scoped secrets or
variables, so it provided nothing functional. The job already has
packages: write and authenticates via GITHUB_TOKEN, and ref
restrictions are enforced in the prepare job, so ghcr builds now
publish automatically.
2026-07-16 15:55:06 -07:00
minh hoangandGitHub 8a977ecc9c chore: bump renderers for Laguna-XS-2.1 support (#2950)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
Pulls in renderers#97 (laguna-xs-2.1 renderer variant: XS-2.1's template
drops the baked-in default system message) and renderers#94 (multimodal
payload through build_training_sample). No renderers dependency changes,
so uv.lock is untouched.
2026-07-03 12:48:17 -07:00
5c0a6dbdba chore(ci): drop uv extras that aren't required from CPU unit tests to fix disk exhaustion (#2940)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* chore(ci): drop --all-extras from CPU unit tests to fix disk exhaustion

The CPU unit-test job ran `uv sync --all-extras --locked`, pulling the
entire dependency universe (envs, flash-attn-3, disagg, quack, gpt-oss,
modelexpress) just to run `pytest tests/unit -m "not gpu"`. That ~2-3GB
of GPU kernels and env deps (spacy, rdkit, chromadb, opencv, onnxruntime,
...) overflows the runner's root disk — the last run died extracting
triton with "No space left on device (os error 28)".

No `tests/unit` test imports any of those extras: they only use base deps
(torch, transformers, vllm, verifiers.v1) plus dev (pytest). The one test
touching flash_attn skips gracefully when it's absent. Install base + dev
only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* clean up comment

* fix(ci): install flash-attn extra for CPU unit tests

Dropping --all-extras entirely broke test collection: `ring_flash_attn`
(a base dep) hard-imports `flash_attn` at module load, and `flash_attn`
is provided only by the flash-attn extra. 12 model/train tests failed to
collect with `ModuleNotFoundError: No module named 'flash_attn'`.

Add back just the flash-attn extra (a prebuilt wheel on x86_64, no build).
The disk fix holds — we still skip envs/flash-attn-3/disagg/quack/etc.,
the ~2-3GB no unit test imports.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(ci): add envs extra for CPU unit tests config loading

test_load_configs loads every config TOML; configs referencing a v1
taskset make verifiers.v1.loaders import the taskset package by name at
runtime (scaleswe_v1, math500_v1, aime24_v1, ...), which ships via the
envs extra. Static import analysis missed this, so the prior commit's
base+flash-attn install failed 15 config-loading tests.

The run proved the disk fix and the extras audit: 454 tests passed with
only flash-attn installed, and the sole failures were envs tasksets. So
install flash-attn + envs and skip the GPU-only extras (flash-attn-3,
disagg, quack, gpt-oss, modelexpress, flash-attn-cute) no unit test uses.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* clean up comment

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 23:25:39 -07:00
f0c339a234 [ENG-4306] fix(docker): repair CUDA image build broken by uv 0.11.25 centralized project envs (#2906)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* fix(docker): pin uv project env to /app/.venv

uv's centralized/cached project environments (a preview feature as of uv
0.11.25, and a likely future default) make `uv sync` build the env in the
uv cache and leave `.venv` as a symlink into it. The runtime stage ships the
env via `COPY --from=builder /app /app`, which can't follow that symlink (the
cache store lives outside /app), so the venv goes missing and the build fails
at the `bin/python` relink.

Setting UV_PROJECT_ENVIRONMENT=/app/.venv forces uv to materialize a real
in-project venv directory regardless of that behavior, so the cross-stage copy
keeps working even if/when the feature graduates from preview to the default.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(uv): drop vestigial `preview = true`

This flag was added in #1772 solely to silence a `uv run` warning on an
older uv (~Feb 2026). That warning no longer fires on uv >= 0.11.9 (verified
with and without preview on `uv run` and `uv lock`), so the opt-in is dead
weight.

It is not harmless dead weight: `preview = true` enables uv's *entire*
experimental feature surface, including features added in future releases.
uv 0.11.25 shipped the `centralized-project-envs` preview feature, which the
global opt-in silently activated — relocating the project env into the uv
cache and leaving `.venv` as a symlink into it. The Docker image build COPYs
only `/app`, so that symlink dangled in the runtime stage and the venv went
missing (`rm /app/.venv/bin/python` failed). Dropping the flag removes the
root enabler of that class of breakage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* use system python intepreter and remove the re-linking steps

* clean up comments

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 10:32:15 -07:00
minh hoangandGitHub a66f8bed1b [ENG-4094] docker: include cuda toolkit with runtime image (#2826)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
* docker: copy cuda toolkit from builder into runtime image

* use slim bookworm for glibc 2.36

* use nvidia cuda base image at runtime to avoid glibc mismatches; include cuda 13 runtime

* bug bot fixes

* fix groupadd collision

* include python3.12-dev in runtime image

* use cuda 13 runtime libs source

* trim cuda12 toolkit to just the nvcc JIT essentials
2026-06-26 14:09:55 -07:00
minh hoangandGitHub 9bf203c678 Fix Docker editable package version resolution (#2866)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
2026-06-24 11:52:10 -07:00
minh hoangandGitHub 570463cca2 chore(renderers): bump to submodule to renderers-v0.1.8.dev49 (#2852)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
2026-06-22 12:28:27 -07:00
minh hoangandGitHub c2a5fa466c chore(renderers): bump to submodule to renderers-v0.1.8.dev41 (#2732)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
2026-06-08 15:16:58 -07:00
minh hoangandGitHub e5c9169566 chore: add tasksets/harnesses to exclude-newer ignore list (#2716)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
2026-06-04 21:48:04 -07:00
minh hoangandGitHub 434c9c0a42 docker: bump to ubuntu24.04 (#2717)
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
mooncake-transfer-engine 0.3.11.post1 only publishes a
manylinux_2_39_aarch64 wheel for ARM (needs glibc ≥ 2.39) and 22.04
ships with glibc 2.35
2026-06-04 12:44:09 -07:00
minh hoangandGitHub 024abb2043 bump prime cli to 0.6.4 (#2480)
Release / Push CUDA image to Docker (push) Canceled after 0s
2026-05-12 16:09:18 -07:00
minh hoangandGitHub 84ccb9507d fix(inference): make liveness timeout configurable with a 30s default (#2449)
Release / Push CUDA image to Docker (push) Canceled after 0s
* make liveness timeout configurable; set default to 30s

* server config already sets up the default 30s value
2026-05-08 14:27:23 -07:00
minh hoangandGitHub 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.
2026-05-06 11:51:24 -07:00
minh hoangandGitHub 31591b7fe8 docker: drop deadsnakes in build stage (#2421)
Release / Push CUDA image to Docker (push) Canceled after 0s
deadsnakes has been pretty flakey during image builds on CI, and afaict
i think uv already installs python so don't think it's actually required
2026-05-05 09:24:40 -07:00
minh hoangandGitHub 0403c097a2 flash-attn-cute -> flash-attn-4 (#2381)
Release / Push CUDA image to Docker (push) Canceled after 0s
2026-04-30 12:26:45 -07:00
minh hoangandGitHub a87badd65f feat(inference): vllm engine liveness probe (#2375)
Release / Push CUDA image to Docker (push) Canceled after 0s
* vllm engine liveness probe

* codex yapping tests

* update liveness probe on helm template
2026-04-29 14:05:52 -07:00
minh hoangandGitHub 6c8faec459 helm:specify deployment component in container name (#1793)
Release / Push CUDA image to Docker (push) Canceled after 0s
2026-02-17 16:24:02 +01:00
minh hoangandGitHub 2b3cc8574a tidy: prometheus_client dependency is always available via vLLM (#1656)
* remove metrics optional dep group

* uv sync

* update metrics server and tests to remove usage of PROMETHEUS_AVAILABLE
2026-01-25 13:58:07 -08:00
Minh HoangandGitHub 658e5708ef helm: specify run_* in orchestrator output dir (#1453)
trainer expects batches in run_* directories
see: https://github.com/PrimeIntellect-ai/prime-rl/pull/1419
2025-12-18 17:38:10 -08:00
Minh HoangandGitHub 2b9e0dc073 fix: getting the dockerfile to work (#847)
* fix entrypoint in dockerfile

* set uv install to dir that is accessible to non-root users in builder stage

in the final stage of the dockerfile, the user is switched to "appuser",
which won't have access to the root dir. So if we want to use a non root
user at runtime, uv should be installed in a nonroot accessible
location.

* removing duplicate header in README
2025-08-26 22:55:03 -07:00
Minh HoangandGitHub 52a4899307 supress flash attention dtype warnings from transformers.modeling_utils module (#806)
can't catch this using the warnings module since hf implements this
warning using the standard logging module, so we have to add a filter
explicitly.

source:
https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py#L2587
2025-08-22 14:53:09 -07:00