Compare commits

...
Author SHA1 Message Date
c3c6b70f11 [codex] chore: bump vllm to 0.21.0 (#2519)
Release / Push CUDA image to Docker (push) Canceled after 0s
* chore: bump vllm

* fix: adapt dp pause patch for vllm 0.21

* Drop deep_gemm ep_scatter and silu_mul_quant int64 monkey patches

Both int64-addressing carries are fixed upstream in vLLM 0.21.0.

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

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 13:55:08 -07:00
f18297fd7d chore(verifiers): bump submodule to main (dd89b5e9) (#2534)
Release / Push CUDA image to Docker (push) Canceled after 0s
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 20:18:58 -07:00
HubertandGitHub 6d80c412b6 Allow capped inflight rollout capacity (#2533)
Release / Push CUDA image to Docker (push) Canceled after 0s
2026-05-17 20:08:31 -07:00
a166a8b8df fix(orchestrator): trim glibc heap after each step to prevent RSS growth (#2527)
Release / Push CUDA image to Docker (push) Canceled after 0s
numpy/pandas allocate array data via malloc() (outside Python's allocator),
so gc.collect() alone doesn't reclaim RSS after per-step DataFrames are freed.
glibc retains freed pages in its internal pool, causing ~+6 MB/step monotonic
RssAnon growth on the orchestrator process.

malloc_trim(0) forces glibc to return freed heap pages to the OS, producing
a stable sawtooth pattern (peak during rollout generation, drops after trim)
with no upward trend.

Verified on alphabet-sort (512 rollouts/step, 20 steps, no wandb):
- Without fix: 941 MB → 973 MB by step 3 (+6 MB/step, unbounded)
- With fix:    941 MB → 942 MB by step 5 (flat, sawtooth only)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 15:57:34 -07:00
samsjaandGitHub 66ff00d117 make renderers default for rollouts (#2521)
Release / Push CUDA image to Docker (push) Canceled after 0s
2026-05-17 12:58:38 +02:00
ae610d9dd8 feat(renderer): expose preserve_*_thinking flags in RendererConfig (#2436)
Release / Push CUDA image to Docker (push) Canceled after 0s
* feat(renderer): expose preserve_*_thinking flags in RendererConfig

Adds two new fields to RendererConfig:
  - preserve_all_thinking
  - preserve_thinking_between_tool_calls

The orchestrator forwards them in two places so train and infer stay
consistent:

  1. create_renderer() — bound at construction on the training-side
     renderer used by build_trajectory_step / render_ids.
  2. setup_inference_pool() → setup_clients() → vf.ClientConfig — the
     verifiers RendererClient picks them up and forwards to its
     create_renderer_pool, so every inference render carries the same
     thinking-preservation behaviour.

Both flags are off by default → zero behaviour change for existing
configs. Setting either without orchestrator.use_renderer=True is
rejected by validate_renderer_args, matching the existing renderer
knobs.

Bumps source pins:
  - verifiers 3b77145 → a7516a1 (PR #1298: ClientConfig propagation)
  - renderers (now a separate repo): pinned to fe67f9f (PR #4:
    construction-time preserve flags)

Re-applies #2433, which was merged into feat/unify-inference-generate
by mistake.

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

* fix(sft): forward preserve_*_thinking flags through SFT renderer path

The flags were added to the shared RendererConfig but only wired up
in the orchestrator. SFT also constructs a renderer via create_renderer
for training-side tokenization, so it must forward both flags or
silently ignore them.

Also tighten validate_renderer_args to reject either flag when
use_renderer=False, matching the orchestrator validator.

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

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 17:38:53 -07:00
20 changed files with 243 additions and 349 deletions
@@ -16,6 +16,8 @@ language_model_attr = "model.language_model"
[orchestrator]
batch_size = 256
rollouts_per_example = 16
use_token_client = false
use_renderer = false
[orchestrator.train.sampling]
max_completion_tokens = 64
@@ -11,6 +11,8 @@ language_model_attr = "model.language_model"
[orchestrator]
batch_size = 256
rollouts_per_example = 16
use_token_client = false
use_renderer = false
[orchestrator.train.sampling]
@@ -12,6 +12,8 @@ language_model_attr = "model.language_model"
[orchestrator]
batch_size = 16
rollouts_per_example = 2
use_token_client = false
use_renderer = false
[orchestrator.train.sampling]
max_completion_tokens = 32
+1 -1
+2
View File
@@ -72,6 +72,8 @@ type = "sft"
[orchestrator]
use_token_client = false
use_renderer = false
use_sft_loss = true
[orchestrator.teacher_rollout_model.client]
base_url = ["https://your-openai-compatible-endpoint/v1"]
@@ -30,6 +30,7 @@ save_adapter_separately = true
batch_size = 256
rollouts_per_example = 4
use_token_client = false
use_renderer = false
use_sft_loss = true
[orchestrator.train.sampling]
@@ -1026,10 +1026,11 @@ class OrchestratorConfig(BaseConfig):
oversampling_factor: Annotated[
float | None,
Field(
ge=1,
gt=0,
description=(
"Rollout-mode batching only. Multiplier used to derive max_inflight_rollouts from batch_size "
"when max_inflight_rollouts is unset."
"when max_inflight_rollouts is unset. Values below 1.0 intentionally cap in-flight rollout "
"capacity below batch_size."
),
),
] = None
@@ -1121,23 +1122,23 @@ class OrchestratorConfig(BaseConfig):
use_token_client: Annotated[
bool,
Field(
description="Whether to use the token-in-token-out (TITO) client for training across all environments. "
description="Whether to use the server-tokenized token-in-token-out (TITO) client for training across all environments. "
"WARNING: Only use this if your environment has a linear history and the chat template has the extension "
"property (i.e. no tokens are ever removed or inserted by the chat template). Mutually exclusive with "
"``use_renderer``."
),
] = True
] = False
use_renderer: Annotated[
bool,
Field(
description="Whether to use the renderer client (client-side tokenization via the ``renderers`` package, "
description="Whether to use the renderer-backed TITO client (client-side tokenization via the ``renderers`` package, "
"served by ``/v1/generate``). Mutually exclusive with ``use_token_client``. When True, the "
"``[orchestrator.renderer]`` block (name / tool_parser / reasoning_parser / pool_size) "
"applies; when False those fields must be left at their defaults. Not supported for VLMs — "
"VLMs must use the token client (TITO) so image preprocessing and chat templating stay server-side."
"``[orchestrator.renderer]`` block (name / tool_parser / reasoning_parser / pool_size) applies. "
"This is the default for text-only rollouts. Not supported for VLMs — VLMs must use MITO so "
"image preprocessing and chat templating stay server-side."
),
] = False
] = True
env_install_prerelease: Annotated[
bool,
@@ -1223,18 +1224,18 @@ class OrchestratorConfig(BaseConfig):
def validate_client_mode(self):
"""The two client toggles select among three exclusive modes:
- ``use_token_client=True`` + ``use_renderer=False`` → TITO (default)
- ``use_token_client=False`` + ``use_renderer=True`` → renderer
- ``use_token_client=False`` + ``use_renderer=True`` → renderer-backed TITO (default)
- ``use_token_client=True`` + ``use_renderer=False`` → server-tokenized TITO
- ``use_token_client=False`` + ``use_renderer=False`` → MITO
Both True is invalid: TITO and renderer are different wire protocols
(server-side templating vs client-side tokenization).
Both True is invalid: renderer-backed TITO and server-tokenized TITO are
different wire protocols (client-side vs server-side tokenization).
"""
if self.use_token_client and self.use_renderer:
raise ValueError(
"orchestrator.use_token_client and orchestrator.use_renderer are mutually exclusive. "
"Pick one: token client (TITO, server-side templating) or renderer client (client-side "
"tokenization)."
"Pick one TITO path: renderer client (client-side tokenization) or token client "
"(server-side tokenization)."
)
return self
@@ -1242,12 +1243,12 @@ class OrchestratorConfig(BaseConfig):
def validate_renderer_vs_vlm(self):
"""The renderer client takes plain message dicts and tokenizes
them client-side. VLMs need server-side image preprocessing and
chat templating, so they must use the token client (TITO) — fail
chat templating, so they must use MITO — fail
loudly when both are set."""
if self.use_renderer and self.model.vlm is not None:
raise ValueError(
"orchestrator.use_renderer is not supported for VLMs. Use the token client "
"(``use_token_client=true``, the default) so image preprocessing and chat "
"orchestrator.use_renderer is not supported for VLMs. Use MITO "
"(``use_token_client=false`` and ``use_renderer=false``) so image preprocessing and chat "
"templating stay on the inference server."
)
return self
@@ -1269,6 +1270,12 @@ class OrchestratorConfig(BaseConfig):
renderer_args_set.append(f"renderer.reasoning_parser={self.renderer.reasoning_parser!r}")
if self.renderer.pool_size is not None:
renderer_args_set.append(f"renderer.pool_size={self.renderer.pool_size!r}")
if self.renderer.preserve_all_thinking:
renderer_args_set.append(f"renderer.preserve_all_thinking={self.renderer.preserve_all_thinking!r}")
if self.renderer.preserve_thinking_between_tool_calls:
renderer_args_set.append(
f"renderer.preserve_thinking_between_tool_calls={self.renderer.preserve_thinking_between_tool_calls!r}"
)
if renderer_args_set:
raise ValueError(
@@ -1304,13 +1311,17 @@ class OrchestratorConfig(BaseConfig):
assert self.batch_size is not None
if self.batch_size % self.rollouts_per_example != 0:
raise ValueError("Batch size must be divisible by the number of samples per problem")
oversampling_factor = self.oversampling_factor if self.oversampling_factor is not None else 1.0
resolved_max_inflight_rollouts = max(
self.rollouts_per_example,
int(self.batch_size * oversampling_factor),
)
if self.max_inflight_rollouts is not None and self.oversampling_factor is not None:
expected_max_inflight_rollouts = int(self.batch_size * self.oversampling_factor)
expected_max_inflight_rollouts = resolved_max_inflight_rollouts
if self.max_inflight_rollouts != expected_max_inflight_rollouts:
raise ValueError("max_inflight_rollouts conflicts with oversampling_factor * batch_size")
if self.max_inflight_rollouts is None:
oversampling_factor = self.oversampling_factor if self.oversampling_factor is not None else 1.0
self.max_inflight_rollouts = int(self.batch_size * oversampling_factor)
self.max_inflight_rollouts = resolved_max_inflight_rollouts
if self.max_inflight_rollouts is not None and self.max_inflight_rollouts < self.rollouts_per_example:
raise ValueError("max_inflight_rollouts must be at least the number of rollouts per example")
@@ -414,6 +414,12 @@ class SFTConfig(BaseConfig):
renderer_args_set.append(f"renderer.tool_parser={self.renderer.tool_parser!r}")
if self.renderer.reasoning_parser is not None:
renderer_args_set.append(f"renderer.reasoning_parser={self.renderer.reasoning_parser!r}")
if self.renderer.preserve_all_thinking:
renderer_args_set.append(f"renderer.preserve_all_thinking={self.renderer.preserve_all_thinking!r}")
if self.renderer.preserve_thinking_between_tool_calls:
renderer_args_set.append(
f"renderer.preserve_thinking_between_tool_calls={self.renderer.preserve_thinking_between_tool_calls!r}"
)
if renderer_args_set:
raise ValueError(
@@ -135,7 +135,7 @@ class BaseModelConfig(BaseConfig):
class RendererConfig(BaseConfig):
"""Configures the client-side renderer (chat-template + response parsing).
Only consumed when ``orchestrator.use_renderer = true``. The renderer
Consumed when ``use_renderer = true``. The renderer
owns both directions: render messages → token ids on the client, and
parse model output tokens → structured ``content`` / ``reasoning_content``
/ ``tool_calls``.
@@ -186,6 +186,37 @@ class RendererConfig(BaseConfig):
),
] = None
preserve_all_thinking: Annotated[
bool,
Field(
description=(
"Override flag forwarded to the renderer at construction. When "
"True, every past-assistant turn's ``reasoning_content`` is "
"re-emitted between ``<think>``/``</think>`` (or the model's "
"equivalent), even if the underlying chat template would drop "
"it. Off by default — preserves byte-identical output to the "
"stock template. Strict superset of "
"``preserve_thinking_between_tool_calls``."
),
),
] = False
preserve_thinking_between_tool_calls: Annotated[
bool,
Field(
description=(
"Override flag forwarded to the renderer at construction. When "
"True, preserves past-assistant ``reasoning_content`` only "
"inside the *current* tool cycle — the contiguous "
"assistant→tool→…→assistant block after the most recent user "
"message, when that block contains at least one tool response. "
"A new user turn closes the block; older blocks fall back to "
"the template default (typically dropped). Use "
"``preserve_all_thinking`` to keep older blocks too."
),
),
] = False
class ElasticConfig(BaseConfig):
"""Configures elastic inference pool with DNS-based service discovery.
+4 -3
View File
@@ -18,7 +18,7 @@ dependencies = [
"torchaudio",
"torchdata>=0.11.0",
"transformers",
"vllm>=0.20.2",
"vllm>=0.21.0",
"wandb>=0.26.1",
"ring-flash-attn>=0.1.8",
"prime>=0.6.4",
@@ -176,6 +176,7 @@ override-dependencies = [
[tool.uv.exclude-newer-package]
# we want latest vllm, remove next patch
vllm = false
tokenspeed-mla = false
flash_attn_3 = false
# PrimeIntellect-published on PyPI (trusted publisher)
prime = false
@@ -231,8 +232,8 @@ flash-attn-4 = { git = "https://github.com/Dao-AILab/flash-attention.git", subdi
pydantic-config = { git = "https://github.com/samsja/pydantic_config.git", branch = "main" }
vllm-router = { url = "https://github.com/PrimeIntellect-ai/router/releases/download/v0.1.22/vllm_router-0.1.22-cp38-abi3-manylinux_2_28_x86_64.whl" }
vllm = [
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl", marker = "platform_machine == 'x86_64'" },
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl", marker = "platform_machine == 'aarch64'" },
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl", marker = "platform_machine == 'x86_64'" },
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl", marker = "platform_machine == 'aarch64'" },
]
deep-ep = { url = "https://github.com/PrimeIntellect-ai/prime-rl/releases/download/v0.5.0/deep_ep-1.2.1+29d31c0-cp312-cp312-linux_x86_64.whl" }
deep-gemm = { url = "https://github.com/PrimeIntellect-ai/prime-rl/releases/download/v0.5.0/deep_gemm-2.5.0+891d57b-cp312-cp312-linux_x86_64.whl" }
+4
View File
@@ -157,6 +157,10 @@ If you wish to configure values of the default variant, you don't need to set th
For hosted multi-tenant runs where the trainer image's `trainer.loss.type` is fixed, the orchestrator exposes a per-run override that forces SFT loss on every micro-batch without rebuilding the trainer. Set `orchestrator.use_sft_loss = true` alongside `orchestrator.teacher_rollout_model`; both must be configured together (the orchestrator validator enforces this). The orchestrator stamps each `TrainingSample.sft_loss = True`, which the trainer's `compute_loss` honors by dispatching to `sft_loss_fn` per batch — independent of the trainer's configured default loss.
### RL rollout client defaults
For text-only RL rollouts, the orchestrator defaults to renderer-backed TITO (`use_renderer = true`, `use_token_client = false`). VLM configs must explicitly use MITO (`use_token_client = false`, `use_renderer = false`) so image preprocessing and chat templating stay server-side. External teacher rollouts must also set `use_renderer = false`.
### Model fields
For `BaseModel | None` fields (like `[ckpt]`, `[wandb]`, `[compile]`), a bare flag enables them with defaults:
+2
View File
@@ -36,6 +36,8 @@ uv sync --all-extras # recommended: includes envs, flash-attn, flash-attn-cute,
The `envs` extra installs the env packages listed in `pyproject.toml > [tool.uv.workspace] members`. Adding a new env means adding it there, in the `envs` extra, and in `[tool.uv.sources]`.
When intentionally bumping a package to a release newer than the workspace-wide `exclude-newer = "7 days"` window, add that package and any newly required transitive packages to `[tool.uv.exclude-newer-package]` before refreshing `uv.lock`.
## Advanced
### Mamba-SSM (NemotronH models)
+13 -295
View File
@@ -1,5 +1,4 @@
import torch
from vllm.triton_utils import tl, triton
def transformers_v5_compat():
@@ -15,8 +14,6 @@ def transformers_v5_compat():
_patch_qwen35_lora()
_patch_lora_key_prefix()
monkey_patch_deep_gemm_ep_scatter()
monkey_patch_deep_gemm_silu_mul_quant_int64()
monkey_patch_dp_engine_core_pause_resume_deadlock()
monkey_patch_vllm_layerwise_reload_alias_buffers()
@@ -51,294 +48,6 @@ def monkey_patch_vllm_layerwise_reload_alias_buffers():
logger.warning("Enabled vLLM layerwise reload alias-buffer patch.")
@triton.jit
def _apply_expert_map_triton(expert_id, expert_map):
if expert_id != -1:
expert_id = tl.load(expert_map + expert_id).to(expert_id.dtype)
return expert_id
@triton.jit
def _fwd_kernel_ep_scatter_2_int64(
total_token_num,
expert_start_loc,
recv_x,
recv_x_stride0,
recv_x_stride1,
recv_x_scale,
recv_x_scale_stride0,
recv_x_scale_stride1,
recv_topk,
recv_topk_stride0,
recv_topk_stride1,
output_tensor,
output_tensor_stride0,
output_tensor_stride1,
output_tensor_scale,
output_tensor_scale_stride0,
output_tensor_scale_stride1,
output_index,
output_index_stride0,
output_index_stride1,
topk_num: tl.constexpr,
expert_map,
HAS_EXPERT_MAP: tl.constexpr,
HIDDEN_SIZE: tl.constexpr,
HIDDEN_SIZE_PAD: tl.constexpr,
SCALE_HIDDEN_SIZE: tl.constexpr,
SCALE_HIDDEN_SIZE_PAD: tl.constexpr,
):
start_token_id = tl.program_id(0)
grid_num = tl.num_programs(0)
offset_in = tl.arange(0, HIDDEN_SIZE_PAD)
mask = offset_in < HIDDEN_SIZE
offset_in_s = tl.arange(0, SCALE_HIDDEN_SIZE_PAD)
mask_s = offset_in_s < SCALE_HIDDEN_SIZE
output_tensor_stride0 = output_tensor_stride0.to(tl.int64)
for token_id in range(start_token_id, total_token_num, grid_num):
to_copy = tl.load(recv_x + token_id * recv_x_stride0 + offset_in, mask=mask)
to_copy_s = tl.load(
recv_x_scale + token_id * recv_x_scale_stride0 + offset_in_s,
mask=mask_s,
)
for topk_index in tl.range(0, topk_num, 1, num_stages=4):
expert_id = tl.load(recv_topk + token_id * recv_topk_stride0 + topk_index)
if HAS_EXPERT_MAP:
expert_id = _apply_expert_map_triton(expert_id, expert_map)
if expert_id >= 0:
dest_token_index = tl.atomic_add(expert_start_loc + expert_id, 1)
dest_token_index_i64 = dest_token_index.to(tl.int64)
tl.store(
output_index + token_id * output_index_stride0 + topk_index,
dest_token_index,
)
output_tensor_ptr = output_tensor + dest_token_index_i64 * output_tensor_stride0
output_tensor_scale_ptr = output_tensor_scale + dest_token_index * output_tensor_scale_stride0
tl.store(output_tensor_ptr + offset_in, to_copy, mask=mask)
tl.store(output_tensor_scale_ptr + offset_in_s, to_copy_s, mask=mask_s)
def _triton_ep_scatter_int64(
recv_x: torch.Tensor,
recv_x_scale: torch.Tensor,
recv_topk: torch.Tensor,
num_recv_tokens_per_expert: torch.Tensor,
expert_map: torch.Tensor | None,
expert_start_loc: torch.Tensor,
output_tensor: torch.Tensor,
output_tensor_scale: torch.Tensor,
m_indices: torch.Tensor,
output_index: torch.Tensor,
) -> None:
from vllm.model_executor.layers.fused_moe import deep_gemm_utils
block_e = 128
num_warps = 8
num_experts = num_recv_tokens_per_expert.shape[0]
hidden_size = recv_x.shape[1]
assert m_indices.shape[0] % block_e == 0
assert expert_start_loc.shape[0] == num_experts
deep_gemm_utils._fwd_kernel_ep_scatter_1[(num_experts,)](
num_recv_tokens_per_expert,
expert_start_loc,
m_indices,
num_experts=num_experts,
num_warps=num_warps,
BLOCK_E=block_e,
BLOCK_EXPERT_NUM=triton.next_power_of_2(num_experts),
)
grid = min(recv_topk.shape[0], 1024 * 8)
_fwd_kernel_ep_scatter_2_int64[(grid,)](
recv_topk.shape[0],
expert_start_loc,
recv_x,
recv_x.stride(0),
recv_x.stride(1),
recv_x_scale,
recv_x_scale.stride(0),
recv_x_scale.stride(1),
recv_topk,
recv_topk.stride(0),
recv_topk.stride(1),
output_tensor,
output_tensor.stride(0),
output_tensor.stride(1),
output_tensor_scale,
output_tensor_scale.stride(0),
output_tensor_scale.stride(1),
output_index,
output_index.stride(0),
output_index.stride(1),
topk_num=recv_topk.shape[1],
expert_map=expert_map,
HAS_EXPERT_MAP=expert_map is not None,
num_warps=num_warps,
HIDDEN_SIZE=hidden_size,
HIDDEN_SIZE_PAD=triton.next_power_of_2(hidden_size),
SCALE_HIDDEN_SIZE=recv_x_scale.shape[1],
SCALE_HIDDEN_SIZE_PAD=triton.next_power_of_2(recv_x_scale.shape[1]),
)
def monkey_patch_deep_gemm_ep_scatter():
# Temporary local carry of the upstream fix while it is under review:
# issue: https://github.com/vllm-project/vllm/issues/39211
# PR: https://github.com/vllm-project/vllm/pull/39213
from vllm.logger import init_logger
from vllm.model_executor.layers.fused_moe import deep_gemm_utils
logger = init_logger(__name__)
deep_gemm_utils.ep_scatter = torch.no_grad()(_triton_ep_scatter_int64)
logger.warning("Enabled int64-addressing Triton patch for vLLM DeepGEMM ep_scatter.")
@triton.jit
def _silu_mul_per_token_group_quant_fp8_colmajor_int64_kernel(
y_ptr,
y_q_ptr,
y_s_ptr,
M: tl.int64,
N: tl.int64,
y_s_col_stride: tl.int64,
eps,
fp8_min: tl.constexpr,
fp8_max: tl.constexpr,
use_ue8m0: tl.constexpr,
GROUP_SIZE: tl.constexpr,
BLOCK_M: tl.constexpr,
BLOCK_N: tl.constexpr,
):
pid_m = tl.program_id(0)
pid_n = tl.program_id(1)
N_2 = N // 2
m_offset = (pid_m * BLOCK_M).to(tl.int64)
n_offset = (pid_n * BLOCK_N).to(tl.int64)
if m_offset >= M:
return
offs_n = tl.arange(0, BLOCK_N).to(tl.int64)
offs_m = tl.arange(0, BLOCK_M).to(tl.int64)
base_y_ptr = y_ptr + m_offset * N + n_offset
act_in_ptrs = base_y_ptr + offs_m[:, None] * N + offs_n[None, :]
act_in = tl.load(act_in_ptrs)
mul_in = tl.load(act_in_ptrs + N_2)
act_in = act_in.to(tl.float32)
one_f32 = tl.cast(1, tl.float32)
silu_out = (act_in / (one_f32 + tl.exp(-act_in))).to(y_ptr.dtype.element_ty)
y = (silu_out * mul_in).to(tl.float32)
absmax = tl.maximum(tl.max(tl.abs(y), axis=1), eps)
scale_raw = absmax * (1.0 / fp8_max)
y_s = tl.math.exp2(tl.ceil(tl.log2(scale_raw))) if use_ue8m0 else scale_raw
y_s = tl.reshape(y_s, (BLOCK_M, 1))
y_q = tl.clamp(y / y_s, fp8_min, fp8_max).to(y_q_ptr.dtype.element_ty)
base_y_q_ptr = y_q_ptr + m_offset * N_2 + n_offset
y_q_ptrs = base_y_q_ptr + offs_m[:, None] * N_2 + offs_n[None, :]
tl.store(y_q_ptrs, y_q)
group_id = n_offset // GROUP_SIZE
base_y_s_ptr = y_s_ptr + group_id * y_s_col_stride + m_offset
y_s_ptrs = base_y_s_ptr + offs_m
y_s = tl.reshape(y_s, (BLOCK_M,))
tl.store(y_s_ptrs, y_s)
def _silu_mul_per_token_group_quant_fp8_colmajor_int64(
input: torch.Tensor,
output: torch.Tensor | None = None,
use_ue8m0: bool | None = None,
eps: float = 1e-10,
):
from vllm.platforms import current_platform
from vllm.utils.deep_gemm import is_deep_gemm_e8m0_used
group_size = 128
assert input.ndim == 2
if output is not None:
assert output.ndim == 2
assert input.size(0) % group_size == 0
assert input.size(1) % (group_size * 2) == 0
if use_ue8m0 is None:
use_ue8m0 = is_deep_gemm_e8m0_used()
M, N = input.size()
N_2 = N // 2
fp8_dtype = current_platform.fp8_dtype()
if output is None:
output = torch.empty((M, N_2), dtype=fp8_dtype, device=input.device)
output_scales = torch.empty(((N_2 // group_size), M), dtype=torch.float32, device=input.device).transpose(0, 1)
block_m = 8
block_n = group_size
assert M % block_m == 0
assert N_2 % block_n == 0
finfo = torch.finfo(fp8_dtype)
fp8_min = -224.0 if current_platform.is_fp8_fnuz() else finfo.min
fp8_max = 224.0 if current_platform.is_fp8_fnuz() else finfo.max
grid = (M // block_m, N_2 // block_n)
_silu_mul_per_token_group_quant_fp8_colmajor_int64_kernel[grid](
input,
output,
output_scales,
M,
N,
output_scales.stride(-1),
eps,
fp8_min,
fp8_max,
use_ue8m0,
group_size,
block_m,
block_n,
)
return output, output_scales
def monkey_patch_deep_gemm_silu_mul_quant_int64():
# Temporary local carry for large DeepGEMM profile shapes whose row offsets
# exceed signed int32 address arithmetic in vLLM's Triton kernel.
import sys
from vllm.logger import init_logger
from vllm.model_executor.layers.quantization.utils import fp8_utils
logger = init_logger(__name__)
fp8_utils.silu_mul_per_token_group_quant_fp8_colmajor = _silu_mul_per_token_group_quant_fp8_colmajor_int64
deep_gemm_moe_module = sys.modules.get("vllm.model_executor.layers.fused_moe.experts.deep_gemm_moe")
if deep_gemm_moe_module is not None:
deep_gemm_moe_module.silu_mul_per_token_group_quant_fp8_colmajor = (
_silu_mul_per_token_group_quant_fp8_colmajor_int64
)
logger.warning("Enabled int64-addressing Triton patch for vLLM DeepGEMM SiLU/mul FP8 quant.")
def _patch_qwen35_lora():
"""Fix Qwen3.5 LoRA: align packed_modules_mapping with output_sizes.
@@ -897,9 +606,9 @@ def monkey_patch_dp_engine_core_pause_resume_deadlock():
- on resume, wake every DP rank and force an immediate global unfinished
sync instead of waiting for the normal 32-step cadence
This keeps the upstream pause-side fix from
https://github.com/vllm-project/vllm/pull/37024 and extends it with the
resume-side wave-state fix.
This also bypasses vLLM's two-phase DP pause implementation
(https://github.com/vllm-project/vllm/pull/39366), which makes resume
reject states that our weight-update flow can validly hit.
"""
from vllm.config import ParallelConfig
from vllm.v1.core.sched.interface import PauseState
@@ -909,7 +618,8 @@ def monkey_patch_dp_engine_core_pause_resume_deadlock():
_base_add_request = EngineCore.add_request
_base_handle_client_request = EngineCoreProc._handle_client_request
_base_resume_scheduler = DPEngineCoreProc.resume_scheduler
_base_pause_complete = EngineCoreProc._pause_complete
_base_resume_scheduler = EngineCoreProc.resume_scheduler
def _patched_add_request(self, request: Request, request_wave: int = 0):
_base_add_request(self, request, request_wave)
@@ -930,8 +640,15 @@ def monkey_patch_dp_engine_core_pause_resume_deadlock():
else:
_base_handle_client_request(self, request_type, request)
def _patched_pause_complete(self) -> bool:
self.pending_pause = False
self.ignore_start_dp_wave = False
return _base_pause_complete(self)
def _patched_resume_scheduler(self):
was_paused = self.scheduler.pause_state != PauseState.UNPAUSED
self.pending_pause = False
self.ignore_start_dp_wave = False
_base_resume_scheduler(self)
if was_paused:
self.engines_running = True
@@ -948,6 +665,7 @@ def monkey_patch_dp_engine_core_pause_resume_deadlock():
DPEngineCoreProc.add_request = _patched_add_request
DPEngineCoreProc._handle_client_request = _patched_handle_client_request
DPEngineCoreProc._pause_complete = _patched_pause_complete
DPEngineCoreProc.resume_scheduler = _patched_resume_scheduler
DPEngineCoreProc._has_global_unfinished_reqs = _patched_has_global_unfinished_reqs
+17 -4
View File
@@ -1,4 +1,5 @@
import asyncio
import ctypes
import gc
import os
import time
@@ -797,6 +798,13 @@ async def orchestrate(config: OrchestratorConfig):
del train_rollouts, train_examples, training_batch, vlm_cache
del results_df, metrics_df
gc.collect()
# Return free glibc heap pages to the OS. numpy/pandas allocate array data
# via malloc (outside Python's allocator), so gc.collect() alone doesn't
# reclaim the RSS. malloc_trim(0) forces glibc to return freed pages.
try:
ctypes.CDLL("libc.so.6").malloc_trim(0)
except Exception as e:
logger.warning(f"malloc_trim(0) failed - RSS may grow unboundedly: {e}")
event_loop_lag_monitor.reset()
@@ -903,12 +911,13 @@ async def setup_rollout_inference_pool(
- external teacher rollout → MITO (``openai_chat_completions``),
forced regardless of the toggles (config-level validator
rejects ``use_token_client`` / ``use_renderer`` in that case)
- ``use_renderer=True`` → renderer client (``/v1/generate``).
- ``use_renderer=True`` → renderer-backed TITO client (``/v1/generate``).
Default for text-only rollouts.
Not allowed for VLMs (validated at config time).
- ``use_token_client=True`` → TITO
- ``use_token_client=True`` → server-tokenized TITO
(``openai_chat_completions_token``, ``/v1/chat/completions/tokens``).
Default. VLMs land here too.
- both False → MITO (``openai_chat_completions``).
VLMs land here too.
"""
if config.teacher_rollout_model is not None:
logger.info("Using external rollout model (MITO) without renderer client")
@@ -926,6 +935,8 @@ async def setup_rollout_inference_pool(
renderer=config.renderer.name,
tool_parser=config.renderer.tool_parser,
reasoning_parser=config.renderer.reasoning_parser,
preserve_all_thinking=config.renderer.preserve_all_thinking,
preserve_thinking_between_tool_calls=config.renderer.preserve_thinking_between_tool_calls,
)
logger.info(f"Initialized {type(renderer).__name__} for {config.model.name}")
inference_pool = await setup_inference_pool(
@@ -937,13 +948,15 @@ async def setup_rollout_inference_pool(
tool_parser=config.renderer.tool_parser,
reasoning_parser=config.renderer.reasoning_parser,
renderer_pool_size=config.renderer.pool_size,
preserve_all_thinking=config.renderer.preserve_all_thinking,
preserve_thinking_between_tool_calls=config.renderer.preserve_thinking_between_tool_calls,
)
logger.info("Using direct renderer rollout client")
return renderer, inference_pool
train_client_type = "openai_chat_completions_token" if config.use_token_client else "openai_chat_completions"
if config.use_token_client:
logger.info("Using token client (TITO) for rollouts — server-side templating, /v1/chat/completions/tokens")
logger.info("Using server-tokenized TITO for rollouts — /v1/chat/completions/tokens")
else:
logger.info("Using MITO (openai_chat_completions) for rollouts")
inference_pool = await setup_inference_pool(
+2
View File
@@ -166,6 +166,8 @@ def train(config: SFTConfig):
renderer=config.renderer.name,
tool_parser=config.renderer.tool_parser,
reasoning_parser=config.renderer.reasoning_parser,
preserve_all_thinking=config.renderer.preserve_all_thinking,
preserve_thinking_between_tool_calls=config.renderer.preserve_thinking_between_tool_calls,
)
if isinstance(renderer, DefaultRenderer):
raise ValueError(
+22
View File
@@ -68,6 +68,8 @@ class StaticInferencePool:
tool_parser: str | None = None,
reasoning_parser: str | None = None,
renderer_pool_size: int | None = None,
preserve_all_thinking: bool = False,
preserve_thinking_between_tool_calls: bool = False,
):
renderer_model_name = model_name if train_client_type == "renderer" else None
self._train_clients = setup_clients(
@@ -78,6 +80,8 @@ class StaticInferencePool:
tool_parser=tool_parser,
reasoning_parser=reasoning_parser,
renderer_pool_size=renderer_pool_size,
preserve_all_thinking=preserve_all_thinking,
preserve_thinking_between_tool_calls=preserve_thinking_between_tool_calls,
)
self._eval_clients = setup_clients(client_config, client_type=eval_client_type)
self._admin_clients = setup_admin_clients(client_config)
@@ -129,6 +133,8 @@ async def setup_inference_pool(
tool_parser: str | None = None,
reasoning_parser: str | None = None,
renderer_pool_size: int | None = None,
preserve_all_thinking: bool = False,
preserve_thinking_between_tool_calls: bool = False,
) -> InferencePool:
"""Create an inference pool from config (static or elastic)."""
logger = get_logger()
@@ -152,6 +158,8 @@ async def setup_inference_pool(
tool_parser=tool_parser,
reasoning_parser=reasoning_parser,
renderer_pool_size=renderer_pool_size,
preserve_all_thinking=preserve_all_thinking,
preserve_thinking_between_tool_calls=preserve_thinking_between_tool_calls,
)
logger.info(
@@ -168,6 +176,8 @@ async def setup_inference_pool(
tool_parser=tool_parser,
reasoning_parser=reasoning_parser,
renderer_pool_size=renderer_pool_size,
preserve_all_thinking=preserve_all_thinking,
preserve_thinking_between_tool_calls=preserve_thinking_between_tool_calls,
)
@@ -179,9 +189,20 @@ def setup_clients(
tool_parser: str | None = None,
reasoning_parser: str | None = None,
renderer_pool_size: int | None = None,
preserve_all_thinking: bool = False,
preserve_thinking_between_tool_calls: bool = False,
) -> list[vf.ClientConfig]:
clients = []
client_idx = 0
# Only forward preserve flags when the client actually uses a renderer —
# MITO/TITO clients ignore them and the verifiers ClientConfig may reject
# unknown extras on older versions.
renderer_extra: dict = {}
if client_type == "renderer":
renderer_extra = {
"preserve_all_thinking": preserve_all_thinking,
"preserve_thinking_between_tool_calls": preserve_thinking_between_tool_calls,
}
for base_url in client_config.base_url:
for dp_rank in range(client_config.dp_rank_count):
headers = client_config.headers.copy()
@@ -205,6 +226,7 @@ def setup_clients(
max_retries=10,
extra_headers=headers,
extra_headers_from_state=client_config.extra_headers_from_state,
**renderer_extra,
)
)
client_idx += 1
+10
View File
@@ -110,6 +110,8 @@ class ElasticInferencePool:
tool_parser: str | None = None,
reasoning_parser: str | None = None,
renderer_pool_size: int | None = None,
preserve_all_thinking: bool = False,
preserve_thinking_between_tool_calls: bool = False,
):
self.logger = get_logger()
self.client_config = client_config
@@ -125,6 +127,8 @@ class ElasticInferencePool:
self.tool_parser = tool_parser
self.reasoning_parser = reasoning_parser
self.renderer_pool_size = renderer_pool_size
self.preserve_all_thinking = preserve_all_thinking
self.preserve_thinking_between_tool_calls = preserve_thinking_between_tool_calls
self.router_url = client_config.router_url
self._servers: dict[str, ServerState] = {}
@@ -152,6 +156,8 @@ class ElasticInferencePool:
tool_parser: str | None = None,
reasoning_parser: str | None = None,
renderer_pool_size: int | None = None,
preserve_all_thinking: bool = False,
preserve_thinking_between_tool_calls: bool = False,
) -> ElasticInferencePool:
if client_config.elastic is None:
raise ValueError("Elastic inference pool requires elastic config")
@@ -164,6 +170,8 @@ class ElasticInferencePool:
tool_parser=tool_parser,
reasoning_parser=reasoning_parser,
renderer_pool_size=renderer_pool_size,
preserve_all_thinking=preserve_all_thinking,
preserve_thinking_between_tool_calls=preserve_thinking_between_tool_calls,
)
await pool.start()
return pool
@@ -214,6 +222,8 @@ class ElasticInferencePool:
tool_parser=self.tool_parser,
reasoning_parser=self.reasoning_parser,
renderer_pool_size=self.renderer_pool_size,
preserve_all_thinking=self.preserve_all_thinking,
preserve_thinking_between_tool_calls=self.preserve_thinking_between_tool_calls,
)
if urls
else []
@@ -50,6 +50,8 @@ def test_setup_rollout_inference_pool_uses_direct_renderer_client_for_local_vllm
tool_parser=None,
reasoning_parser=None,
pool_size=None,
preserve_all_thinking=False,
preserve_thinking_between_tool_calls=False,
),
)
rollout_client_config = SimpleNamespace(base_url=["http://localhost:8000/v1"])
@@ -79,6 +81,8 @@ def test_setup_rollout_inference_pool_uses_direct_renderer_client_for_local_vllm
renderer="qwen3_vl",
tool_parser=None,
reasoning_parser=None,
preserve_all_thinking=False,
preserve_thinking_between_tool_calls=False,
)
setup_pool_mock.assert_awaited_once_with(
rollout_client_config,
@@ -89,6 +93,8 @@ def test_setup_rollout_inference_pool_uses_direct_renderer_client_for_local_vllm
tool_parser=None,
reasoning_parser=None,
renderer_pool_size=None,
preserve_all_thinking=False,
preserve_thinking_between_tool_calls=False,
)
asyncio.run(run())
+30
View File
@@ -157,6 +157,36 @@ def test_removed_fused_lm_head_chunk_size_field_is_rejected():
TrainerModelConfig.model_validate({"fused_lm_head_chunk_size": "auto"})
def test_orchestrator_vlm_configs_must_disable_renderer():
with pytest.raises(ValidationError, match="orchestrator.use_renderer is not supported for VLMs"):
OrchestratorConfig.model_validate(
{
"model": {
"vlm": {
"vision_encoder_attr": "model.visual",
"language_model_attr": "model.language_model",
}
}
}
)
config = OrchestratorConfig.model_validate(
{
"model": {
"vlm": {
"vision_encoder_attr": "model.visual",
"language_model_attr": "model.language_model",
}
},
"use_token_client": False,
"use_renderer": False,
}
)
assert config.use_token_client is False
assert config.use_renderer is False
def test_selective_activation_checkpointing_requires_custom_impl():
with pytest.raises(ValidationError, match="Selective activation checkpointing requires model.impl='custom'"):
TrainerModelConfig.model_validate({"impl": "hf", "ac": {"mode": "selective"}})
Generated
+53 -24
View File
@@ -15,13 +15,14 @@ conflicts = [[
]]
[options]
exclude-newer = "2026-05-08T23:46:46.215125045Z"
exclude-newer = "2026-05-09T17:45:36.931378082Z"
exclude-newer-span = "P7D"
[options.exclude-newer-package]
vllm = false
vllm-router = false
dion = false
tokenspeed-mla = false
nixl-cu12 = false
deep-ep = false
flash-attn-3 = false
@@ -3871,8 +3872,8 @@ dependencies = [
{ name = "transformers", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "uvloop", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "verifiers", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.20.2+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl" }, marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.20.2+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl" }, marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.21.0+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl" }, marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.21.0+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl" }, marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "wandb", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
]
@@ -4023,9 +4024,9 @@ requires-dist = [
{ name = "transformers", git = "https://github.com/huggingface/transformers.git?rev=c1c3424" },
{ name = "uvloop", specifier = ">=0.21.0" },
{ name = "verifiers", editable = "deps/verifiers" },
{ name = "vllm", marker = "platform_machine != 'aarch64' and platform_machine != 'x86_64'", specifier = ">=0.20.2" },
{ name = "vllm", marker = "platform_machine == 'aarch64'", url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl" },
{ name = "vllm", marker = "platform_machine == 'x86_64'", url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl" },
{ name = "vllm", marker = "platform_machine != 'aarch64' and platform_machine != 'x86_64'", specifier = ">=0.21.0" },
{ name = "vllm", marker = "platform_machine == 'aarch64'", url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl" },
{ name = "vllm", marker = "platform_machine == 'x86_64'", url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl" },
{ name = "vllm-router", marker = "platform_machine == 'x86_64' and extra == 'disagg'", url = "https://github.com/PrimeIntellect-ai/router/releases/download/v0.1.22/vllm_router-0.1.22-cp38-abi3-manylinux_2_28_x86_64.whl" },
{ name = "wandb", specifier = ">=0.26.1" },
{ name = "wiki-search", marker = "extra == 'envs'", editable = "deps/verifiers/environments/wiki_search" },
@@ -5454,6 +5455,30 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/05/a1/d62dfe7376beaaf1394917e0f8e93ee5f67fea8fcf4107501db35996586b/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38337540fbbddff8e999d59970f3c6f35a82de10053206a7562f1ea02d046fa5", size = 10033429, upload-time = "2026-01-05T10:45:14.333Z" },
]
[[package]]
name = "tokenspeed-mla"
version = "0.1.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "apache-tvm-ffi", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "nvidia-cutlass-dsl", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tokenspeed-triton", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torch", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
]
wheels = [
{ url = "https://files.pythonhosted.org/packages/42/20/4110d624d81d63f0bee2f19dba7ea0e1d8a31ea50147e6c1db82223c88a4/tokenspeed_mla-0.1.2-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:592590f36d85e624ecdc5e357ff35e29e761e6d879900dce8b67a6785c8ce75c", size = 743769, upload-time = "2026-05-13T03:30:54.486Z" },
{ url = "https://files.pythonhosted.org/packages/84/01/4bf8b74ead3e8e7c1c809435396254c067a33fde48acc20f602aae622d97/tokenspeed_mla-0.1.2-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:c9466a351fe039792e56cf49f3e79744c1dc28c7af10306a02e62b8e92fa5985", size = 748681, upload-time = "2026-05-13T03:30:56.718Z" },
]
[[package]]
name = "tokenspeed-triton"
version = "3.7.10.post20260505"
source = { registry = "https://pypi.org/simple" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/71/22/5d882546d461728d2dff369af5185ff1ded7f15c83e013fa6b2a56a86058/tokenspeed_triton-3.7.10.post20260505-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:06bad3e25ccaba22bb43eb8499f01008f9aaa0bfb3fbfb0cef1b37d2c006c6f0", size = 82059541, upload-time = "2026-05-05T07:48:59.923Z" },
{ url = "https://files.pythonhosted.org/packages/af/c3/4808d86016368fed9495c3a3408cc7f912e7863ff3432937404bd0a551a6/tokenspeed_triton-3.7.10.post20260505-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:19618c7db01a9bd33885f7acbf8945adb2f5534668aa97629b56d481753cbcad", size = 89127692, upload-time = "2026-05-05T07:49:04.22Z" },
]
[[package]]
name = "toml"
version = "0.10.2"
@@ -5866,8 +5891,8 @@ rl = [
{ name = "requests", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torch", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "transformers", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.20.2+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl" }, marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.20.2+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl" }, marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.21.0+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl" }, marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "vllm", version = "0.21.0+cu129", source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl" }, marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "wandb", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
]
ta = [
@@ -5941,9 +5966,9 @@ requires-dist = [
{ name = "torch", marker = "extra == 'rl'", specifier = ">=2.8.0,<2.9.0", index = "https://download.pytorch.org/whl/cu128" },
{ name = "transformers", marker = "extra == 'rl'", git = "https://github.com/huggingface/transformers.git?rev=c1c3424" },
{ name = "typing-extensions", marker = "python_full_version < '3.12'" },
{ name = "vllm", marker = "platform_machine == 'aarch64' and extra == 'rl'", url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl" },
{ name = "vllm", marker = "platform_machine == 'aarch64' and extra == 'rl'", url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl" },
{ name = "vllm", marker = "platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'rl'", specifier = ">=0.10.0,<0.11.0" },
{ name = "vllm", marker = "platform_machine == 'x86_64' and extra == 'rl'", url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl" },
{ name = "vllm", marker = "platform_machine == 'x86_64' and extra == 'rl'", url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl" },
{ name = "wandb", marker = "extra == 'rl'" },
]
provides-extras = ["browser", "openenv", "renderers", "rg", "rl", "ta"]
@@ -5986,8 +6011,8 @@ wheels = [
[[package]]
name = "vllm"
version = "0.20.2+cu129"
source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl" }
version = "0.21.0+cu129"
source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl" }
resolution-markers = [
"platform_machine == 'aarch64' and sys_platform == 'linux'",
]
@@ -6052,6 +6077,7 @@ dependencies = [
{ name = "tiktoken", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tilelang", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tokenizers", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tokenspeed-mla", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torch", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torchaudio", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torchvision", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
@@ -6062,7 +6088,7 @@ dependencies = [
{ name = "xgrammar", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine != 'aarch64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
]
wheels = [
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:8a58a086c5c4ed2883eee36aaaf6b79c83463d02da3015454acf92afcc8e150e" },
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:de0af3ab4c0cc86e98712bbe89bb30eae967b5bf87873920b7cf13bbfd096aaa" },
]
[package.metadata]
@@ -6096,14 +6122,14 @@ requires-dist = [
{ name = "matplotlib", marker = "extra == 'bench'" },
{ name = "mcp" },
{ name = "mistral-common", extras = ["audio"], marker = "extra == 'audio'" },
{ name = "mistral-common", extras = ["image"], specifier = ">=1.11.0" },
{ name = "model-hosting-container-standards", specifier = ">=0.1.13,<1.0.0" },
{ name = "mistral-common", extras = ["image"], specifier = ">=1.11.2" },
{ name = "model-hosting-container-standards", specifier = ">=0.1.14,<1.0.0" },
{ name = "msgspec" },
{ name = "ninja" },
{ name = "numba", specifier = "==0.65.0" },
{ name = "numpy" },
{ name = "nvidia-cudnn-frontend", specifier = ">=1.13.0,<1.19.0" },
{ name = "nvidia-cutlass-dsl", specifier = ">=4.4.2" },
{ name = "nvidia-cutlass-dsl", specifier = "==4.4.2" },
{ name = "openai", specifier = ">=2.0.0" },
{ name = "openai-harmony", specifier = ">=0.0.3" },
{ name = "opencv-python-headless", specifier = ">=4.13.0" },
@@ -6147,6 +6173,7 @@ requires-dist = [
{ name = "tiktoken", specifier = ">=0.6.0" },
{ name = "tilelang", specifier = "==0.1.9" },
{ name = "tokenizers", specifier = ">=0.21.1" },
{ name = "tokenspeed-mla", specifier = "==0.1.2" },
{ name = "torch", specifier = "==2.11.0" },
{ name = "torchaudio", specifier = "==2.11.0" },
{ name = "torchvision", specifier = "==0.26.0" },
@@ -6154,15 +6181,15 @@ requires-dist = [
{ name = "transformers", specifier = ">=4.56.0,!=5.0.*,!=5.1.*,!=5.2.*,!=5.3.*,!=5.4.*,!=5.5.0" },
{ name = "typing-extensions", specifier = ">=4.10" },
{ name = "watchfiles" },
{ name = "xgrammar", marker = "platform_machine == 'aarch64' or platform_machine == 'arm64' or platform_machine == 'ppc64le' or platform_machine == 's390x' or platform_machine == 'x86_64'", specifier = ">=0.1.32,<1.0.0" },
{ name = "xgrammar", marker = "platform_machine == 'aarch64' or platform_machine == 'arm64' or platform_machine == 'ppc64le' or platform_machine == 's390x' or platform_machine == 'x86_64'", specifier = ">=0.2.0,<1.0.0" },
{ name = "zentorch-weekly", marker = "extra == 'zen'", specifier = "==5.2.1.dev20260408" },
]
provides-extras = ["zen", "bench", "tensorizer", "fastsafetensors", "instanttensor", "runai", "audio", "video", "flashinfer", "helion", "grpc", "otel"]
[[package]]
name = "vllm"
version = "0.20.2+cu129"
source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl" }
version = "0.21.0+cu129"
source = { url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl" }
resolution-markers = [
"platform_machine == 'x86_64' and sys_platform == 'linux'",
]
@@ -6227,6 +6254,7 @@ dependencies = [
{ name = "tiktoken", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tilelang", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tokenizers", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "tokenspeed-mla", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torch", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torchaudio", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
{ name = "torchvision", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
@@ -6237,7 +6265,7 @@ dependencies = [
{ name = "xgrammar", marker = "(platform_machine == 'x86_64' and sys_platform == 'linux') or (platform_machine != 'x86_64' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy') or (sys_platform != 'linux' and extra == 'extra-9-verifiers-openenv' and extra == 'group-9-verifiers-policy')" },
]
wheels = [
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.20.2/vllm-0.20.2+cu129-cp38-abi3-manylinux_2_31_x86_64.whl", hash = "sha256:2f8c2bf2ac6d3d16f930535e66822abd71065468521884eb5b910225b2abef4b" },
{ url = "https://github.com/vllm-project/vllm/releases/download/v0.21.0/vllm-0.21.0+cu129-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:920777691e340df7a8328adfb1e57b9996dbb537edfb654dd32f70844f5f423d" },
]
[package.metadata]
@@ -6271,14 +6299,14 @@ requires-dist = [
{ name = "matplotlib", marker = "extra == 'bench'" },
{ name = "mcp" },
{ name = "mistral-common", extras = ["audio"], marker = "extra == 'audio'" },
{ name = "mistral-common", extras = ["image"], specifier = ">=1.11.0" },
{ name = "model-hosting-container-standards", specifier = ">=0.1.13,<1.0.0" },
{ name = "mistral-common", extras = ["image"], specifier = ">=1.11.2" },
{ name = "model-hosting-container-standards", specifier = ">=0.1.14,<1.0.0" },
{ name = "msgspec" },
{ name = "ninja" },
{ name = "numba", specifier = "==0.65.0" },
{ name = "numpy" },
{ name = "nvidia-cudnn-frontend", specifier = ">=1.13.0,<1.19.0" },
{ name = "nvidia-cutlass-dsl", specifier = ">=4.4.2" },
{ name = "nvidia-cutlass-dsl", specifier = "==4.4.2" },
{ name = "openai", specifier = ">=2.0.0" },
{ name = "openai-harmony", specifier = ">=0.0.3" },
{ name = "opencv-python-headless", specifier = ">=4.13.0" },
@@ -6322,6 +6350,7 @@ requires-dist = [
{ name = "tiktoken", specifier = ">=0.6.0" },
{ name = "tilelang", specifier = "==0.1.9" },
{ name = "tokenizers", specifier = ">=0.21.1" },
{ name = "tokenspeed-mla", specifier = "==0.1.2" },
{ name = "torch", specifier = "==2.11.0" },
{ name = "torchaudio", specifier = "==2.11.0" },
{ name = "torchvision", specifier = "==0.26.0" },
@@ -6329,7 +6358,7 @@ requires-dist = [
{ name = "transformers", specifier = ">=4.56.0,!=5.0.*,!=5.1.*,!=5.2.*,!=5.3.*,!=5.4.*,!=5.5.0" },
{ name = "typing-extensions", specifier = ">=4.10" },
{ name = "watchfiles" },
{ name = "xgrammar", marker = "platform_machine == 'aarch64' or platform_machine == 'arm64' or platform_machine == 'ppc64le' or platform_machine == 's390x' or platform_machine == 'x86_64'", specifier = ">=0.1.32,<1.0.0" },
{ name = "xgrammar", marker = "platform_machine == 'aarch64' or platform_machine == 'arm64' or platform_machine == 'ppc64le' or platform_machine == 's390x' or platform_machine == 'x86_64'", specifier = ">=0.2.0,<1.0.0" },
{ name = "zentorch-weekly", marker = "extra == 'zen'", specifier = "==5.2.1.dev20260408" },
]
provides-extras = ["zen", "bench", "tensorizer", "fastsafetensors", "instanttensor", "runai", "audio", "video", "flashinfer", "helion", "grpc", "otel"]