The environment hosting entrypoint launches a broker and a pool of episode workers. Calling that unit an "env server" obscures the source → pool replica → broker/workers hierarchy. This follow-up to #4375 names those roles consistently. - Rename the command to `uv run env-worker-pool`, its schema to `EnvWorkerPoolConfig` in `prime_rl.configs.env_worker_pool`, and the orchestrator field to `env_worker_pool_replicas`. - Rename `EnvServerPool` to `EnvWorkerPool`, `EnvServer` to `EnvWorker` in `prime_rl.env.worker`, and `serve_env` to `run_env_worker_pool`. Process titles distinguish `PRL::EnvBroker` and `PRL::EnvWorker`. - Update the RL/eval launchers, the shared SFT/pretrain launcher, SLURM templates, config helpers, CI paths, dashboard text, docs, and the affected skills. Document per-source configuration, pool replicas, and worker concurrency. - Anchor the root virtualenv ignore rule so it does not hide `src/prime_rl/env/` on case-insensitive filesystems. `[serve]`, the wire protocol, pool sizing/dispatch behavior, and run artifact paths are unchanged. This is a naming change; direct worker-to-sink data delivery remains separate work. ## Breaking names | Before | After | | --- | --- | | `env-server` | `env-worker-pool` | | `prime_rl.configs.env_server.EnvServerConfig` | `prime_rl.configs.env_worker_pool.EnvWorkerPoolConfig` | | `OrchestratorConfig.env_server_replicas` | `OrchestratorConfig.env_worker_pool_replicas` | | `prime_rl.env.pool.EnvServerPool` | `prime_rl.env.pool.EnvWorkerPool` | | `prime_rl.env.server.EnvServer` | `prime_rl.env.worker.EnvWorker` | | `prime_rl.env.serve_env` | `prime_rl.env.run_env_worker_pool` | | `EnvClient.wait_for_server_startup` | `EnvClient.wait_for_pool_startup` | ## Validation - 447 focused CPU tests passed (env, configs, supported orchestrator/eval/transport tests, dashboard artifacts and pathing); four cases deselected. Tests requiring unavailable `torch`, `vllm`, and TextArena dependencies were excluded. - Temporary smoke script exercised static pools with 1/2 workers and elastic pools capped at 1/unbounded: address discovery, task/error round-trip through the broker and worker, process titles, graceful shutdown, and IPC cleanup all passed. The smoke env deliberately raises an episode error; it does not call inference. - Both wheels build; wheel contents and the renamed console entrypoint verified. Entrypoint help, touched TOML parsing, Ruff, and `pre-commit run --all-files` pass. - The deep-backlog ZMQ test timed out after 18 seconds on both unchanged base `c0ad9e9f4` and this branch, so it was deselected. No GPU training run. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Breaking renames span the CLI, Python imports, and orchestrator config fields; behavior is unchanged but existing scripts and TOML must be updated. > > **Overview** > Renames the environment-hosting stack so **source → broker → workers** is explicit: the CLI becomes **`uv run env-worker-pool`**, config schema **`EnvWorkerPoolConfig`** (`prime_rl.configs.env_worker_pool`), and orchestrator **`env_worker_pool_replicas`** replace the old `env-server` / `EnvServerConfig` / `env_server_replicas` names. > > Runtime symbols align with that model—**`EnvWorkerPool`**, **`EnvWorker`**, **`run_env_worker_pool`**, broker/worker process titles (**`PRL::EnvBroker`** / **`PRL::EnvWorker`**), and **`EnvClient.wait_for_pool_startup`**. RL/SFT/eval launchers, SLURM templates, pathing helpers, CI filters, dashboard copy, docs, and skills are updated to match; **`[serve]`**, the ZMQ wire protocol, and artifact paths stay the same. > > **.gitignore** anchors **`/ENV/`** so a root `ENV` venv directory is not confused with **`src/prime_rl/env/`** on case-insensitive filesystems. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 47c74d92f30d54524ad2e0c79ae1dae0e42def31. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
392 lines
17 KiB
TOML
392 lines
17 KiB
TOML
[project]
|
|
name = "prime-rl"
|
|
version = "0.10.0"
|
|
description = "Async RL Training at Scale"
|
|
readme = "README.md"
|
|
requires-python = "~=3.12.0"
|
|
dependencies = [
|
|
"prime-rl-configs",
|
|
"prime-pydantic-config>=0.4.3",
|
|
"beartype>=0.21.0",
|
|
"datasets>=4.0.0",
|
|
"jaxtyping>=0.3.2",
|
|
"loguru>=0.7.3",
|
|
"numpy>=2.2.6",
|
|
"sympy>=1.13.3",
|
|
"transformers==5.19.0",
|
|
"wandb>=0.26.1",
|
|
"wandb-workspaces>=0.4.3",
|
|
"prime-runs[train]>=0.1.6",
|
|
"pyzmq>=27.1.0",
|
|
"msgpack>=1.1.2",
|
|
"aiolimiter>=1.2.1",
|
|
"tenacity>=8.2.0",
|
|
"openai>=1.106.1",
|
|
"orjson>=3.11.0",
|
|
"psutil>=7.0.0",
|
|
"prometheus-client>=0.20.0",
|
|
"pyzstd>=0.16.2",
|
|
"rich>=14.0.0",
|
|
"setproctitle>=1.3.0",
|
|
"uvloop>=0.21.0",
|
|
"verifiers[harbor]>=0.4.1",
|
|
"renderers[multimodal]>=0.2.0",
|
|
"pybase64>=1.4.2",
|
|
"msgspec>=0.18",
|
|
"fastapi>=0.115",
|
|
"uvicorn>=0.30",
|
|
]
|
|
|
|
[project.scripts]
|
|
rl = "prime_rl.entrypoints.rl:main"
|
|
sft = "prime_rl.entrypoints.sft:main"
|
|
pretrain = "prime_rl.entrypoints.pretrain:main"
|
|
inference = "prime_rl.entrypoints.inference:main"
|
|
trainer = "prime_rl.entrypoints.trainer:main"
|
|
orchestrator = "prime_rl.entrypoints.orchestrator:main"
|
|
eval = "prime_rl.entrypoints.eval:main"
|
|
env-worker-pool = "prime_rl.entrypoints.env_worker_pool:main"
|
|
dashboard = "prime_rl.entrypoints.dashboard:main"
|
|
|
|
[project.entry-points."vllm.general_plugins"]
|
|
prime_rl = "prime_rl.inference.patches:apply_shared_vllm_patches"
|
|
|
|
[project.optional-dependencies]
|
|
gpu = [
|
|
"torch>=2.13.0 ; sys_platform == 'linux'",
|
|
"torchvision ; sys_platform == 'linux'",
|
|
"torchaudio ; sys_platform == 'linux'",
|
|
"torchdata>=0.11.0 ; sys_platform == 'linux'",
|
|
"vllm>=0.32.0 ; sys_platform == 'linux'",
|
|
"mooncake-transfer-engine>=0.3.10.post2 ; sys_platform == 'linux'",
|
|
"torchtitan ; sys_platform == 'linux'",
|
|
"dion ; sys_platform == 'linux'",
|
|
"tilelang>=0.1.8 ; sys_platform == 'linux'",
|
|
# DSA sparse MLA backward kernel (CuTe DSL); >=1.29 matches the pinned CUTLASS DSL 4.7.
|
|
"nvidia-cudnn-frontend>=1.30.0 ; sys_platform == 'linux'",
|
|
# DSA sparse MLA forward for the default `model.dsa_backend = "cudnn_flashmla"` (sm_90a + sm_100f).
|
|
# FlashMLA is not on PyPI and only an x86_64 wheel is published.
|
|
"flash-mla ; sys_platform == 'linux' and platform_machine == 'x86_64'",
|
|
"deep-select ; sys_platform == 'linux'",
|
|
"flash-linear-attention>=0.6.0 ; sys_platform == 'linux'",
|
|
"mamba-ssm>=2.3.0 ; sys_platform == 'linux'",
|
|
"nvidia-ml-py>=12.575.51 ; sys_platform == 'linux'",
|
|
"torchao>=0.18.0 ; sys_platform == 'linux'",
|
|
"nixl-cu13==0.10.1 ; sys_platform == 'linux'",
|
|
# Precompiled FlashInfer kernels for vLLM's flashinfer-python pin. Without them every fresh node
|
|
# downloads the trtllm-gen cubins and JIT-builds its modules into its node-local cache at startup.
|
|
"flashinfer-cubin==0.7.0.post1 ; sys_platform == 'linux'",
|
|
"flashinfer-jit-cache==0.7.0.post1+cu130 ; sys_platform == 'linux'",
|
|
"modelexpress==0.8.0.dev20261022 ; sys_platform == 'linux'",
|
|
]
|
|
dashboard = [
|
|
"fastapi>=0.115",
|
|
"uvicorn>=0.30",
|
|
]
|
|
dynamo = ["ai-dynamo==1.4.2 ; sys_platform == 'linux'"]
|
|
# Both wheels are the same flash-attn 2.8.3 / cu130 / torch 2.13 / cp312 build and carry
|
|
# sm_80 / sm_90 / sm_100 / sm_120 cubins. `attn="auto"` picks FA4 on sm_100 and FA3 on
|
|
# sm_90, so FA2 is the resolved backend on sm_120 (see `_resolve_attn_impl` in
|
|
# trainer/model.py).
|
|
flash-attn = [
|
|
"flash-attn @ https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.9.47/flash_attn-2.8.3+cu130torch2.13-cp312-cp312-linux_x86_64.whl ; platform_machine == 'x86_64'",
|
|
"flash-attn @ https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.9.48/flash_attn-2.8.3+cu130torch2.13-cp312-cp312-linux_aarch64.whl ; platform_machine == 'aarch64'",
|
|
]
|
|
flash-attn-3 = ["flash_attn_3 ; sys_platform == 'linux'"]
|
|
|
|
flash-attn-cute = [
|
|
"flash-attn-4 ; sys_platform == 'linux'",
|
|
]
|
|
disagg = [
|
|
"deep-ep ; sys_platform == 'linux'",
|
|
"deep-gemm ; sys_platform == 'linux'",
|
|
"nixl ; sys_platform == 'linux'",
|
|
"vllm-router ; sys_platform == 'linux'",
|
|
]
|
|
quack = [
|
|
"quack-kernels>=0.4.1 ; sys_platform == 'linux'",
|
|
]
|
|
sonic-moe = ["sonic-moe ; sys_platform == 'linux'"]
|
|
# Prebuilt `prime-kernels` wheels from a release (see the `kernels` skill). Compiled for
|
|
# sm_100a; on other GPUs the package installs fine and reports its kernels unavailable.
|
|
kernels = [
|
|
"prime-kernels ; sys_platform == 'linux'",
|
|
]
|
|
all = [
|
|
"prime-rl[gpu]",
|
|
"prime-rl[flash-attn]",
|
|
"prime-rl[disagg]",
|
|
"prime-rl[quack]",
|
|
"prime-rl[sonic-moe]",
|
|
"prime-rl[flash-attn-3]",
|
|
"prime-rl[flash-attn-cute]",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"ipykernel>=6.29.5",
|
|
"ipywidgets>=8.1.7",
|
|
"pre-commit>=4.2.0",
|
|
"playwright>=1.49",
|
|
"pytest>=8.4.1",
|
|
"pytest-asyncio>=0.23",
|
|
"ruff>=0.12.1",
|
|
]
|
|
|
|
[tool.uv]
|
|
# Enforce a uv version that supports the friendly-duration form
|
|
# (`"7 days"`) in the static pyproject parser. Older uvs silently parse
|
|
# the value as an RFC 3339 date, emit a TOML parse warning, and proceed
|
|
# *without* the cooldown — bypassing this security policy.
|
|
required-version = ">=0.11.1"
|
|
exclude-newer = "7 days"
|
|
no-build-isolation-package = ["flash-attn"]
|
|
environments = [
|
|
"sys_platform == 'linux' and platform_machine == 'x86_64'",
|
|
"sys_platform == 'linux' and platform_machine == 'aarch64'",
|
|
"sys_platform == 'darwin' and platform_machine == 'arm64'",
|
|
]
|
|
# Override torch's pinned cuDNN to fix the Conv3d performance regression.
|
|
# See: https://github.com/pytorch/pytorch/issues/166122
|
|
override-dependencies = [
|
|
# Keep vLLM's TileLang version; Nemotron uses Mamba-2's Triton kernels.
|
|
"tilelang==0.1.12",
|
|
# Shared by vLLM, TileLang, and the pinned FlashAttention 4 runtime.
|
|
"apache-tvm-ffi==0.1.11",
|
|
"nvidia-cudnn-cu13>=9.15 ; sys_platform == 'linux'",
|
|
# vLLM 0.32.0 requires this exact CUTLASS DSL version and quack-kernels 0.6.5.
|
|
# Keep this pin aligned with quack-kernels and the flash-attn-4 revision below.
|
|
"nvidia-cutlass-dsl==4.8.0",
|
|
"torch>=2.13.0",
|
|
"openenv-core",
|
|
]
|
|
|
|
# prime-envs packages are auto-discovered as workspace members, so new
|
|
# envs there need no per-package registration. verifiers' example envs are opt-in:
|
|
# only the ones prime-rl trains or tests on are listed, so an upstream example with
|
|
# conflicting pins can't break the shared lock. Install them with
|
|
# `uv sync --all-packages`.
|
|
[tool.uv.workspace]
|
|
members = [
|
|
"deps/prime-envs/environments/*/*",
|
|
"deps/verifiers/environments/alphabet_sort",
|
|
"deps/verifiers/environments/color_codeword",
|
|
"deps/verifiers/environments/gsm8k",
|
|
"deps/verifiers/environments/kuhn_poker",
|
|
"deps/verifiers/environments/proposer_solver",
|
|
"deps/verifiers/environments/reverse_text",
|
|
"deps/verifiers/environments/wiki_search",
|
|
"deps/verifiers/environments/wordle",
|
|
]
|
|
# Tau tasksets require litellm<1.82.7, while Harbor requires litellm>=1.92.0.
|
|
# Apex pins a verifiers git revision instead of the editable workspace member.
|
|
# ALE CLI requires numpy>=2.4.4, while vLLM 0.32.0 (via mistral-common) requires numpy<2.4.
|
|
# IFBench requires setuptools<78, while vLLM 0.32.0 requires setuptools>=78.1.1.
|
|
# A workspace shares one lock, so these packages need separate environments.
|
|
exclude = [
|
|
"deps/prime-envs/environments/if/ifbench",
|
|
"deps/prime-envs/environments/office/ale_cli",
|
|
"deps/prime-envs/environments/tool_use/tau2_bench",
|
|
"deps/prime-envs/environments/tool_use/tau2_synth",
|
|
"deps/prime-envs/environments/tool_use/tau3_bench",
|
|
"deps/prime-envs/environments/tool_use/apex_agents",
|
|
]
|
|
|
|
# Mirror the upstream Pydantic compatibility correction until the next release.
|
|
[[tool.uv.dependency-metadata]]
|
|
name = "ai-dynamo-runtime"
|
|
version = "1.4.2"
|
|
requires-dist = [
|
|
"pydantic>=2.10.6,<=2.13.5",
|
|
"uvloop>=0.21.0",
|
|
]
|
|
|
|
# NIXL publishes its CUDA 12 package as a base dependency even when the
|
|
# caller requests its CUDA 13 extra. Use the requested CUDA 13 package only.
|
|
[[tool.uv.dependency-metadata]]
|
|
name = "nixl"
|
|
version = "0.10.1"
|
|
requires-dist = ["nixl-cu13==0.10.1"]
|
|
|
|
# CUTLASS DSL has the same CUDA 12 default. vLLM requests its CUDA 13 extra,
|
|
# so resolve that variant without installing both runtime packages.
|
|
[[tool.uv.dependency-metadata]]
|
|
name = "nvidia-cutlass-dsl"
|
|
version = "4.8.0"
|
|
requires-dist = [
|
|
"nvidia-cutlass-dsl-libs-base==4.8.0",
|
|
"nvidia-cutlass-dsl-libs-cu13==4.8.0",
|
|
]
|
|
|
|
[tool.uv.exclude-newer-package]
|
|
# The pinned MX nightly must be available without the rolling release cooldown.
|
|
modelexpress = false
|
|
# verifiers pins harbor==0.24.0, published inside the rolling window;
|
|
# bounded cutoff mirroring the one in deps/verifiers/pyproject.toml
|
|
harbor = "2026-10-08T00:00:00Z"
|
|
# CA bundle: security fixes (e.g. 2026.10.19 for the eMudhra compromise) must not wait out the cooldown
|
|
certifi = false
|
|
tokenspeed-mla = false
|
|
# vLLM 0.32.0 pins flashinfer-python 0.7.0.post1, published inside the rolling window
|
|
flashinfer-python = false
|
|
# vLLM 0.32.0 pins these, published inside the rolling window
|
|
instanttensor = false
|
|
humming-kernels = false
|
|
fastokens = false
|
|
flash_attn_3 = false
|
|
# PrimeIntellect-published packages in this project's dependency closure —
|
|
# fast-track so first-party releases can land same-day. Only packages that
|
|
# appear in `uv tree` need to be listed; the resolver ignores entries for
|
|
# packages it never sees.
|
|
prime-runs = false
|
|
prime-traces = false
|
|
prime-sandboxes = false
|
|
prime-tunnel = false
|
|
verifiers = false
|
|
renderers = false
|
|
prime-pydantic-config = false
|
|
# Trusted git/URL sources pinned by rev or wheel URL (defensive: belt-and-suspenders)
|
|
vllm-router = false
|
|
dion = false
|
|
deep-ep = false
|
|
deep-gemm = false
|
|
nixl-cu13 = false
|
|
torchao = false
|
|
prime-kernels = false
|
|
flash-mla = false
|
|
deep-select = false
|
|
|
|
[tool.uv.sources]
|
|
prime-rl-configs = { path = "packages/prime-rl-configs", editable = true }
|
|
# prime-rl consumes `verifiers.v1` (incl. the built-in harnesses/tasksets); env tasksets
|
|
# live under deps/{verifiers,prime-envs}/environments.
|
|
verifiers = { path = "deps/verifiers", editable = true }
|
|
renderers = { path = "deps/renderers", editable = true }
|
|
prime-pydantic-config = { path = "deps/pydantic-config", editable = true }
|
|
torch = [{ index = "pytorch-cu130", marker = "sys_platform == 'linux'" }]
|
|
torchvision = [{ index = "pytorch-cu130", marker = "sys_platform == 'linux'" }]
|
|
torchaudio = [{ index = "pytorch-cu130", marker = "sys_platform == 'linux'" }]
|
|
torchtitan = { git = "https://github.com/pytorch/torchtitan", rev = "23e4dfc" }
|
|
torchao = [
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.1/torchao-0.18.0+git5f2baf9d5-cp310-abi3-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.1/torchao-0.18.0+git5f2baf9d5-cp310-abi3-linux_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
dion = { git = "https://github.com/samsja/dion.git", rev = "0c801b0" }
|
|
sonic-moe = { git = "https://github.com/S1ro1/sonic-moe", rev = "0bf06ac" }
|
|
quack-kernels = { git = "https://github.com/S1ro1/quack", rev = "f62009f" }
|
|
flash-attn-4 = { git = "https://github.com/Dao-AILab/flash-attention.git", subdirectory = "flash_attn/cute", rev = "0251105" }
|
|
vllm-router = [
|
|
{ url = "https://github.com/PrimeIntellect-ai/router/releases/download/v0.2.4/vllm_router-0.2.4-cp38-abi3-manylinux_2_28_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/PrimeIntellect-ai/router/releases/download/v0.2.4/vllm_router-0.2.4-cp38-abi3-manylinux_2_28_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
vllm = [
|
|
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.32.0/vllm-0.32.0-cp38-abi3-manylinux_2_28_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.32.0/vllm-0.32.0-cp38-abi3-manylinux_2_28_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
deep-ep = [
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.1/deep_ep-1.2.1+29d31c0-cp312-cp312-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.1/deep_ep-1.2.1+29d31c0-cp312-cp312-linux_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
deep-gemm = [
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.1/deep_gemm-2.5.0+891d57b-cp312-cp312-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.1/deep_gemm-2.5.0+891d57b-cp312-cp312-linux_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
prime-kernels = [
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.0-b52bd9d/prime_kernels-0.1.0+cu130torch2.13.0-cp312-cp312-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.0-b52bd9d/prime_kernels-0.1.0+cu130torch2.13.0-cp312-cp312-linux_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
deep-select = [
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.0-b52bd9d/deep_select-1.0.0+bfa4507.20261026.121630-cp312-cp312-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/PrimeIntellect-ai/prime-kernels/releases/download/v0.1.0-b52bd9d/deep_select-1.0.0+bfa4507.20261026.121543-cp312-cp312-linux_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
# FlashMLA nv_dev @ b7643bd built against torch 2.13.0+cu130 (see the release notes for the recipe).
|
|
flash-mla = { url = "https://github.com/NovaSky-AI/skyrl-wheels/releases/download/cu13torch2.13-flashmla-b7643bd/flash_mla-1.0.0%2Bcu.13.0.torch.2.13.b7643bd-cp312-cp312-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" }
|
|
flash-linear-attention = { git = "https://github.com/fla-org/flash-linear-attention" }
|
|
mamba-ssm = { git = "https://github.com/state-spaces/mamba", rev = "f577286" }
|
|
flash_attn_3 = { index = "pytorch-cu130-test" }
|
|
flashinfer-cubin = { index = "flashinfer" }
|
|
# Per-platform wheels: the aarch64 build also requires sm110a/sm121a wheels that x86_64 lacks.
|
|
flashinfer-jit-cache = [
|
|
{ url = "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.7.0.post1/flashinfer_jit_cache-0.7.0.post1%2Bcu130-cp39-abi3-manylinux_2_28_x86_64.whl", marker = "platform_machine == 'x86_64'" },
|
|
{ url = "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.7.0.post1/flashinfer_jit_cache-0.7.0.post1%2Bcu130-cp39-abi3-manylinux_2_28_aarch64.whl", marker = "platform_machine == 'aarch64'" },
|
|
]
|
|
|
|
[tool.uv.extra-build-dependencies]
|
|
flash-attn = [{ requirement = "torch", match-runtime = true }]
|
|
flash-attn-3 = [{ requirement = "torch", match-runtime = true }]
|
|
mamba-ssm = ["torch>=2.13.0"]
|
|
|
|
[tool.uv.extra-build-variables]
|
|
flash-attn = { FLASH_ATTENTION_SKIP_CUDA_BUILD = "TRUE" }
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch-cu130"
|
|
url = "https://download.pytorch.org/whl/cu130"
|
|
explicit = true
|
|
|
|
[[tool.uv.index]]
|
|
name = "pytorch-cu130-test"
|
|
url = "https://download.pytorch.org/whl/test/cu130"
|
|
explicit = true
|
|
|
|
# Environments Hub wheels carry no upload time, so the exclude-newer cooldown
|
|
# would reject every one of them. The Hub is first-party: skip the cutoff there.
|
|
[[tool.uv.index]]
|
|
name = "prime-hub"
|
|
url = "https://hub.primeintellect.ai/primeintellect/simple/"
|
|
explicit = true
|
|
exclude-newer = false
|
|
|
|
# FlashInfer publishes its cubin and jit-cache wheels only on its own indexes, without upload
|
|
# times, so the exclude-newer cooldown would reject them.
|
|
[[tool.uv.index]]
|
|
name = "flashinfer"
|
|
url = "https://flashinfer.ai/whl"
|
|
explicit = true
|
|
exclude-newer = false
|
|
|
|
# Not explicit: flashinfer-jit-cache pulls its per-architecture wheels (sm80, sm90a, sm100a, ...)
|
|
# from here, and this index only serves those packages.
|
|
[[tool.uv.index]]
|
|
name = "flashinfer-cu130"
|
|
url = "https://flashinfer.ai/whl/cu130"
|
|
exclude-newer = false
|
|
|
|
[tool.ruff.lint]
|
|
select = ["F", "I"]
|
|
|
|
# jaxtyping writes shapes as string annotations (`Int[Tensor, "batch seq"]`), which ruff reads as
|
|
# forward references and reports as syntax errors / undefined names.
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"src/prime_rl/trainer/data.py" = ["F722", "F821"]
|
|
"src/prime_rl/trainer/distributed/ngram_lookup.py" = ["F722", "F821"]
|
|
"src/prime_rl/trainer/models/layers/ngram.py" = ["F722", "F821"]
|
|
"src/prime_rl/trainer/model.py" = ["F722", "F821"]
|
|
"src/prime_rl/trainer/rl/data.py" = ["F722", "F821"]
|
|
"src/prime_rl/trainer/rl/loss.py" = ["F722", "F821"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["prime_rl"]
|
|
known-third-party = ["verifiers", "renderers", "pydantic_config"]
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
extend-exclude = ["deps"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--strict-markers"
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"gpu: marks tests as gpu (deselect with '-m \"not gpu\"')",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/prime_rl"]
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true
|