Compare commits
16
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8304f1e2ac | ||
|
|
660633077c | ||
|
|
e10b4de335 | ||
|
|
58fc060d31 | ||
|
|
798fb82798 | ||
|
|
a2ea0914b9 | ||
|
|
2a7bf998fa | ||
|
|
1692a67d90 | ||
|
|
fd0f4fd381 | ||
|
|
1f3e539b57 | ||
|
|
377b15a931 | ||
|
|
21e6b54128 | ||
|
|
846f18afcb | ||
|
|
5a68accde7 | ||
|
|
a30d417f25 | ||
|
|
07411f392f |
@@ -7,7 +7,6 @@ configs/endpoints.py
|
||||
**/slurm
|
||||
!src/prime_rl/slurm
|
||||
!examples/slurm
|
||||
!scripts/slurm_tmux.sh
|
||||
!docs/slurm.md
|
||||
**/torchrun
|
||||
**/weights
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
# AGENTS.md
|
||||
|
||||
## Code Guidelines
|
||||
|
||||
- Avoid try/except blocks unless it's really necessary. It's fine that a program fails if something goes wrong as this helps us to catch non-obvious bugs and unforeseen side-effects earlier. You can add try catch on code that explicitly aims to be fault tolerant like adding retry mechanisms or explicit and intentional robustness.
|
||||
|
||||
- Do not add unnecessary comments. Especially do not try to explain code change that reflect your work process, do not refer to old code. "The code used to do that but now we are doing this" is not a pattern we want. Instead prefer to use targeted comments sparingly to explain ambiguous code.
|
||||
|
||||
|
||||
## Zen of Python
|
||||
remember the zen of python when writing code.
|
||||
## Writing code
|
||||
|
||||
- **Minimal try/except**: let errors propagate — silent failures hide bugs. Only catch exceptions for intentional fault tolerance (retries, robustness).
|
||||
- **Targeted comments**: don't explain your work process or reference old code. Use targeted comments sparingly to clarify ambiguous logic.
|
||||
- **Zen of Python**: remember the Zen of Python when writing code.
|
||||
```
|
||||
Beautiful is better than ugly.
|
||||
Explicit is better than implicit.
|
||||
@@ -34,14 +29,9 @@ Namespaces are one honking great idea -- let's do more of those!
|
||||
|
||||
## Running code
|
||||
|
||||
- All code should be runnable with `uv run` or `uv run <command>`.
|
||||
- All dependencies should already be installed and pin in the lock file. If not, add it to pyproject.toml and run `uv sync --all-extras` to install it.
|
||||
|
||||
## CLI Usage
|
||||
|
||||
- Config files use `@` syntax: `uv run sft @ path/to/config.toml`
|
||||
- For multi-GPU with torchrun: `uv run torchrun --nproc-per-node 2 src/prime_rl/trainer/sft/train.py @ path/to/config.toml`
|
||||
- See the `toml-config` skill in `skills/` for full details on TOML structure, CLI overrides, and available commands.
|
||||
- **Always use uv**: run code with `uv run` or `uv run <command>`, never raw `python`.
|
||||
- **Adding dependencies**: add to `pyproject.toml` and run `uv sync --all-extras` to install and lock them.
|
||||
- **Git dependency pins**: when pinning git dependencies in `pyproject.toml`, always use a small (7-char) commit hash for the `rev` field.
|
||||
|
||||
## Skills
|
||||
|
||||
@@ -55,18 +45,10 @@ Write tests as plain functions with pytest fixtures. Don't use class-based tests
|
||||
|
||||
## Git
|
||||
|
||||
Branch prefixes: `feature/`, `fix/`, `chore/`
|
||||
- **Branch prefixes**: use the following prefixes for branches: `feat/`, `fix/`, `chore/`
|
||||
|
||||
## Releases
|
||||
## GitHub
|
||||
|
||||
When preparing release notes:
|
||||
- **Draft PRs**: always create PRs as drafts (`gh pr create --draft`) to avoid triggering CI unnecessarily.
|
||||
- **Pull requests**: do not include a "test plan" section in PR descriptions unless you actually ran tests to verify the changes or the user explicitly asked for one.
|
||||
|
||||
1. **Style reference**: check the previous release (`gh release list --limit 1` then `gh release view <tag>`) to match the tone and formatting.
|
||||
2. **Gather changes**: use `git log <last-tag>..origin/main --oneline --no-merges` to list all commits since the last release.
|
||||
2. **Check for new commits**: always `git fetch origin main` and re-check right before publishing, since PRs may have been merged while drafting.
|
||||
3. **Structure**: organize notes into numbered highlight sections (`# 1.`, `# 2.`, ...), then `# Breaking Changes`, `# Bug Fixes`, and `# Misc`.
|
||||
4. **Highlights**: group related PRs under a single highlight. Use `##` subsections when a highlight contains multiple items (e.g. Performance & Parallelism). Keep the top highlights for the most impactful user-facing features.
|
||||
5. **Config examples**: when referencing TOML config, verify the exact field names against the actual code or docs — don't guess.
|
||||
6. **Links**: use clickable links for docs (`[docs/foo.md](https://github.com/PrimeIntellect-ai/prime-rl/blob/main/docs/foo.md)`) and PR references (`[#1234](https://github.com/PrimeIntellect-ai/prime-rl/pull/1234)`).
|
||||
7. **Contributors**: list all contributors ranked by number of commits, using their GitHub `@username`. Get usernames via the GitHub API, not git author names (which can be inconsistent).
|
||||
8. **Draft first**: always create releases as `--draft` first, iterate on content, then publish.
|
||||
|
||||
@@ -2,11 +2,19 @@
|
||||
|
||||
Documenting changes which affect configuration usage patterns (added/moved/removed/renamed fields, notable logic changes).
|
||||
|
||||
- **`log.file` and `log.env_worker_logs` removed**: Removed `log.file` (from `LogConfig` and `SharedLogConfig`) and `log.env_worker_logs` (from `LogConfig`). Python file logging is replaced by deployment-level capture. Existing configs using these fields must delete them. Log paths unified: `.stdout` files renamed to `.log`, SLURM logs moved from `slurm/` to `logs/`. (2026-03-31)
|
||||
- **`trainer.log.ranks_filter` (NEW)**: Added `ranks_filter: list[int]` to `TrainerLogConfig` (default: `[0]`). Controls which ranks appear in trainer console output via torchrun's `--local-ranks-filter`. (2026-03-31)
|
||||
- **`wandb.log_extras.sample_ratio` / monitor sample logging defaults**: `wandb.log_extras.sample_ratio` is now actually applied to W&B sample-table logging via the shared monitor sampler (it was previously a no-op for WandB). Separately, the orchestrator no longer hard-caps sample logging to 8 rollouts before monitor-level sampling runs, so when monitor `sample_ratio` is `None`, monitors now receive and may log the full rollout batch for a step instead of at most 8 rollouts. This affects both W&B and Prime monitor sample logging behavior. (2026-03-27)
|
||||
- **`[model.vlm].freeze_vision_encoder`**: Added to `VLMConfig`. Controls whether the vision encoder is frozen (default: `true`). When `false`, the vision encoder is trainable and FSDP-sharded per-block. Has no effect with LoRA. Moved from `[trainer.model].freeze_vision_encoder` into the VLM sub-config. (2026-03-25)
|
||||
- **`loss_impl = "quack_fused"` (SFT)**: Added `quack_fused` option for the SFT `loss_impl` field. Uses quack-kernels for chunked linear + cross-entropy with CuTe DSL CUDA kernels, avoiding full logits materialization. Requires `quack-kernels` package. Does not support Gemma logit softcapping. Custom model impl (`model.impl = "custom"`) also gains quack RMSNorm acceleration on CUDA automatically. (2026-03-26)
|
||||
- **`model.ac.targets`**: Removed the `mamba` selective activation checkpoint target and folded that behavior into the broader `linear_attn` target. Existing configs using `targets = ["mamba"]` will now fail validation at runtime with `ValueError`; switch them to `targets = ["linear_attn"]`. The `linear_attn` target description now covers supported token mixers outside the standard softmax-attention path, including NemotronH Mamba layers, Qwen3.5-MoE GatedDeltaNet layers, and AFMoE sliding-window attention layers. (2026-03-28)
|
||||
- **`model.tp` (trainer `ModelConfig`)**: Removed from the trainer model config. Existing trainer configs must delete this field; it is no longer accepted. (2026-03-26)
|
||||
- **`orchestrator.env[].num_workers`**: Added configurable env server worker count (`int | "auto"`, default: `"auto"`). When `"auto"`, scales based on concurrency (1 worker per 256 concurrent rollouts). Only used when the orchestrator spawns the env server (i.e. `address` is not set). (2026-03-25)
|
||||
- **`[model.vlm]` (NEW — replaces auto-detection)**: VLM mode is now opt-in via a `[model.vlm]` sub-config with required `vision_encoder_attr` and `language_model_attr` fields. There is no auto-detection — if you train a VLM, you must add `[model.vlm]`. Existing multimodal configs need the new section. See `docs/multimodal.md` for the table of known model attrs. (2026-03-24)
|
||||
- **`model.optimization_dtype` / `model.reduce_dtype` (VLM models, RL only)**: VLM dtype validation now only applies to RL training (`TrainerConfig`), not SFT. VLM models used with `sft` no longer require `optimization_dtype='bfloat16'` / `reduce_dtype='bfloat16'`. RL training still enforces both to match vLLM inference. (2026-03-24)
|
||||
- **`model.ep_comm_backend`**: Added expert-parallel communication backend selection. Accepted values are `torch` (default, uses TorchTitan all-to-all collectives) and `deepep` (uses DeepEP custom kernels). This field only affects configurations with expert parallelism enabled via `model.ep > 1`. (2026-03-22)
|
||||
- **`model.deepep_num_sms`**: Added DeepEP SM allocation control for intranode dispatch/combine kernels (default: `20`, minimum: `1`). This field is only used when `model.ep_comm_backend='deepep'`; it also determines the internode RDMA channel count (`num_channels = num_sms / 2`). (2026-03-22)
|
||||
- **`model.deepep_token_chunk_size`**: Added optional token chunk size for DeepEP MoE pipelining (default: `None`, minimum: `1`). When set, DeepEP dispatch for chunk `i+1` overlaps expert compute for chunk `i`. This field is only used when `model.ep_comm_backend='deepep'`. (2026-03-22)
|
||||
- **`model.optimization_dtype` / `model.reduce_dtype` (VLM models)**: Added validation that VLM models must use `optimization_dtype='bfloat16'` and `reduce_dtype='bfloat16'` to match vLLM inference. Previously valid configs with `float32` (the default) are now rejected for VLM model names. Set both fields to `"bfloat16"` when training VLMs. (2026-03-21)
|
||||
- **`model.ac.mode`** and **`model.ac.targets`**: Added selective activation checkpointing configuration. `model.ac.mode` accepts `full` (default) or `selective`. When `selective`, `model.ac.targets` selects subcomponents to checkpoint. Supported public targets are currently `norm`, `attention_sdpa`, `mla_up_proj`, and `routed_experts`; runtime validation remains the source of truth. `model.ac.targets` defaults to `["norm"]`, and selective mode requires at least one target. (2026-03-20)
|
||||
- **`orchestrator.advantage.length_weighted_mean`**: Removed. The default advantage now always uses the plain per-problem mean baseline unless `orchestrator.advantage.length_shaping_alpha` is set. Existing configs must delete this field. (2026-03-19)
|
||||
|
||||
+46
-65
@@ -1,14 +1,6 @@
|
||||
# Logging
|
||||
|
||||
prime-rl uses [loguru](https://loguru.readthedocs.io/en/stable/) for logging with a global logger pattern. Logs are written to both console and files under `{output_dir}/logs/`. For RL training, we recommend streaming file logs into tmux panes (as set up by `tmux.sh`).
|
||||
|
||||
## tmux helper (`scripts/tmux.sh`)
|
||||
|
||||
`scripts/tmux.sh` sets up a tmux session for RL runs with **three panes (one per subprocess)**:
|
||||
|
||||
- **Trainer**: run `uv run rl ...` here
|
||||
- **Orchestrator**: follows `{output_dir}/logs/orchestrator.stdout`
|
||||
- **Inference**: follows `{output_dir}/logs/inference.stdout`
|
||||
prime-rl uses [loguru](https://loguru.readthedocs.io/en/stable/) for logging with a global logger pattern. All logs are captured at the deployment level (stdout/stderr redirection for local, `tee` for SLURM) under `{output_dir}/logs/`. For RL training, we recommend streaming logs into tmux panes (as set up by `tmux.sh`).
|
||||
|
||||
## Logger Architecture
|
||||
|
||||
@@ -20,7 +12,7 @@ We use a **singleton pattern** with a module-level global logger instance (`_LOG
|
||||
from prime_rl.utils.logger import setup_logger, get_logger
|
||||
|
||||
# At entrypoint - call ONCE
|
||||
logger = setup_logger("info", log_file=Path("output/logs/my.log"))
|
||||
logger = setup_logger("info")
|
||||
|
||||
# Anywhere else in codebase
|
||||
logger = get_logger()
|
||||
@@ -29,77 +21,66 @@ logger.info("Hello world")
|
||||
|
||||
**How it works:**
|
||||
|
||||
1. **`setup_logger(log_level, log_file)`** - Initializes the global logger exactly once:
|
||||
- Creates an isolated loguru `Logger` instance (not the default `loguru.logger`) to prevent third-party code from hijacking our logs
|
||||
- Adds a stdout handler with colorized output
|
||||
- Optionally adds a file handler (deletes existing file first)
|
||||
- Raises `RuntimeError` if called twice
|
||||
1. **`get_logger()`** - Returns the global logger instance. Always works — if `setup_logger` hasn't been called yet, it initializes a default logger automatically. Safe to call from any module at any time.
|
||||
|
||||
2. **`get_logger()`** - Returns the global logger instance:
|
||||
- Raises `RuntimeError` if `setup_logger` hasn't been called yet
|
||||
- Safe to call from any module after initialization
|
||||
2. **`setup_logger(log_level)`** - Configures (or reconfigures) the global logger:
|
||||
- Creates an isolated loguru `Logger` instance (not the default `loguru.logger`) to prevent third-party code from hijacking our logs
|
||||
- Adds a stdout handler with colorized output (or JSON output if `json_logging=True`)
|
||||
- Can be called multiple times — cleans up the previous logger before creating a new one
|
||||
|
||||
3. **`reset_logger()`** - Resets the global logger to `None`:
|
||||
- Used in subprocesses that inherit parent state (e.g., env workers)
|
||||
- Used in tests between test cases
|
||||
|
||||
## RL Log File Structure
|
||||
## Log File Structure
|
||||
|
||||
For RL training, logs are organized by component:
|
||||
Logs are captured at the deployment level — the entrypoint redirects subprocess stdout/stderr to files (local) or `tee` captures them (SLURM). The structure is consistent across deployment types: `logs/trainer.log` and `logs/inference.log` always exist, regardless of whether the run is local or multi-node SLURM.
|
||||
|
||||
| Component | Log Path | Description |
|
||||
|-----------|----------|-------------|
|
||||
| **RL (parent)** | `logs/rl.log` | Main process that spawns subprocesses |
|
||||
| **Inference** | `logs/inference.stdout` | vLLM inference server stdout/stderr |
|
||||
| **Orchestrator** | `logs/orchestrator.log` | Rollout generation, buffer, scheduling |
|
||||
| **Trainer** | `logs/trainer/rank_{N}.log` | Training process (one file per GPU rank) |
|
||||
| **Env Workers** | `logs/env_workers/{env_name}/worker_{N}.log` | Per-environment worker logs (optional) |
|
||||
|
||||
## Per-Environment Logging
|
||||
|
||||
Environment are run via `vf.EnvServer` in separate processes. By default, each environment logs to a file in its run directory under `{output_dir}/run_default/train/{env_name}.log` and `{output_dir}/run_default/eval/{env_name}.log`. The log verbosity can be controlled with `orchestrator.log.vf_level`.
|
||||
|
||||
```toml
|
||||
[orchestrator.log]
|
||||
level = "debug" # Log level for prime-rl logger
|
||||
vf_level = "info" # Log level for verifiers library
|
||||
```
|
||||
### Local (single node)
|
||||
|
||||
```
|
||||
output_dir/
|
||||
└── run_default/
|
||||
└── train/
|
||||
├── {env_name_1}.log
|
||||
├── {env_name_2}.log
|
||||
└── ...
|
||||
└── eval/
|
||||
├── {env_name_1}.log
|
||||
├── {env_name_2}.log
|
||||
{output_dir}/logs/
|
||||
├── trainer.log # trainer stdout (rank 0 only)
|
||||
├── orchestrator.log # orchestrator stdout
|
||||
├── inference.log # vLLM inference server stdout
|
||||
├── trainer/
|
||||
│ └── torchrun/ # per-rank stdout/stderr (all ranks)
|
||||
└── envs/
|
||||
├── train/{env_name}/
|
||||
│ ├── env_server.log
|
||||
│ └── env_worker_{id}.log
|
||||
└── eval/{env_name}/
|
||||
└── ...
|
||||
```
|
||||
|
||||
## Torchrun
|
||||
### SLURM multi-node
|
||||
|
||||
For multi-node training with `torchrun`, all ranks log simultaneously. To filter to master rank only:
|
||||
|
||||
```bash
|
||||
uv run torchrun \
|
||||
--local-ranks-filter 0 \
|
||||
--nproc-per-node 8 \
|
||||
...
|
||||
```
|
||||
{output_dir}/logs/
|
||||
├── trainer.log -> trainer/node_0.log (symlink)
|
||||
├── inference.log -> inference/node_0.log (symlink)
|
||||
├── orchestrator.log # orchestrator stdout
|
||||
├── trainer/
|
||||
│ ├── node_0.log # per-node trainer output (rank 0 only)
|
||||
│ ├── node_1.log
|
||||
│ └── torchrun/ # per-rank stdout/stderr (all ranks)
|
||||
├── inference/
|
||||
│ ├── node_0.log # per-node inference output
|
||||
│ ├── node_1.log
|
||||
│ └── router_0.log # vllm-router per replica
|
||||
└── envs/
|
||||
└── ...
|
||||
```
|
||||
|
||||
You can also use torchrun's native log redirection:
|
||||
Environment logs live under `logs/envs/train/{env_name}/` and `logs/envs/eval/{env_name}/`. Env log verbosity is controlled by `orchestrator.log.vf_level`.
|
||||
|
||||
```bash
|
||||
uv run torchrun \
|
||||
--local-ranks-filter 0 \
|
||||
--nproc-per-node 8 \
|
||||
--log-dir outputs/torchrun \
|
||||
--redirects 3 \
|
||||
--tee 3 \
|
||||
...
|
||||
```
|
||||
Only rank 0 output is shown in `trainer.log`. Per-rank logs from all ranks are available under `logs/trainer/torchrun/{rdzv_id}/attempt_0/{rank}/{stdout,stderr}.log`, written by torchrun's `--log-dir`.
|
||||
|
||||
This writes to `outputs/torchrun/{rdzv_id}/attempt_0/{rank}/{stdout,stderr}.log`.
|
||||
## tmux helper (`scripts/tmux.sh`)
|
||||
|
||||
`scripts/tmux.sh` sets up a tmux session for RL runs with **four panes**:
|
||||
|
||||
- **Trainer**: follows `{output_dir}/logs/trainer.log`
|
||||
- **Orchestrator**: follows `{output_dir}/logs/orchestrator.log`
|
||||
- **Envs**: follows `{output_dir}/logs/envs/*/*/*.log`
|
||||
- **Inference**: follows `{output_dir}/logs/inference.log`
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ To add permanent support for a new model family, add an entry to `VLM_REGISTRY`
|
||||
|
||||
## Current Limitations
|
||||
|
||||
- **Vision encoder is frozen**: The vision encoder is automatically frozen during training. Only the language model is trained.
|
||||
- **Vision encoder is frozen by default**: The vision encoder is frozen during training by default. Set `freeze_vision_encoder = false` in `[model.vlm]` to make it trainable. When unfrozen, the vision encoder is FSDP-sharded per-block for proper gradient flow. Note: this has no effect when using LoRA.
|
||||
|
||||
- **No multimodal-safe truncation**: Token sequences are truncated to `seq_len`, but `pixel_values` and `image_grid_thw` are passed through unchanged. If a multimodal sample exceeds `seq_len`, image tokens can be dropped while image tensors still describe the full set of images. Ensure `seq_len` covers your longest VLM samples.
|
||||
|
||||
|
||||
+10
-9
@@ -278,20 +278,21 @@ See [`src/prime_rl/templates/`](../src/prime_rl/templates/) for the default temp
|
||||
After submission, logs are available at:
|
||||
|
||||
```bash
|
||||
# Single-node
|
||||
tail -F {output_dir}/logs/trainer/rank_0.log
|
||||
# All deployment types (trainer.log and inference.log are symlinks for multi-node)
|
||||
tail -F {output_dir}/logs/trainer.log
|
||||
tail -F {output_dir}/logs/orchestrator.log
|
||||
tail -F {output_dir}/logs/inference.log
|
||||
|
||||
# Multi-node RL
|
||||
tail -F {output_dir}/slurm/latest_train_node_rank_0.log
|
||||
tail -F {output_dir}/slurm/latest_infer_node_rank_0.log
|
||||
tail -F {output_dir}/slurm/latest_orchestrator.log
|
||||
# Multi-node: per-node logs
|
||||
tail -F {output_dir}/logs/trainer/node_*.log
|
||||
tail -F {output_dir}/logs/inference/node_*.log
|
||||
|
||||
# Inference (single or multi-node)
|
||||
tail -F {output_dir}/slurm/latest_infer_node_rank_0.log
|
||||
# Multi-node inference: per-replica router logs
|
||||
tail -F {output_dir}/logs/inference/router_*.log
|
||||
```
|
||||
|
||||
For convenience, a tmux launcher sets up a session with all log streams:
|
||||
|
||||
```bash
|
||||
bash scripts/slurm_tmux.sh my-rl-job /shared/outputs/my-rl-job
|
||||
bash scripts/tmux.sh my-rl-job /shared/outputs/my-rl-job
|
||||
```
|
||||
|
||||
@@ -44,7 +44,7 @@ We recommend using the tmux helper to start the run and look at the logs.
|
||||
From your Slurm head node:
|
||||
|
||||
```bash
|
||||
bash scripts/slurm_tmux.sh intellect-3.1 /shared/outputs/intellect-3.1
|
||||
bash scripts/tmux.sh intellect-3.1 /shared/outputs/intellect-3.1
|
||||
```
|
||||
|
||||
You can then attach to it by doing `tmux attach -t intellect-3.1`.
|
||||
@@ -67,9 +67,9 @@ XXX:XX:XX INFO Submitting: sbatch /shared/outputs/intellect-3.1/rl.sbatch [rl
|
||||
XXX:XX:XX SUCCESS Submitted batch job YYYY
|
||||
|
||||
Logs:
|
||||
Trainer: tail -F /shared/outputs/intellect-3.1/slurm/latest_train_node_rank_0.log
|
||||
Orchestrator: tail -F /shared/outputs/intellect-3.1/slurm/latest_orchestrator.log
|
||||
Inference: tail -F /shared/outputs/intellect-3.1/slurm/latest_infer_node_rank_0.log
|
||||
Trainer: tail -F /shared/outputs/intellect-3.1/logs/trainer.log
|
||||
Orchestrator: tail -F /shared/outputs/intellect-3.1/logs/orchestrator.log
|
||||
Inference: tail -F /shared/outputs/intellect-3.1/logs/inference.log
|
||||
Envs: tail -F /shared/outputs/intellect-3.1/logs/envs/*/*/*.log
|
||||
Train: tail -F /shared/outputs/intellect-3.1/logs/envs/train/*/*.log
|
||||
swe: tail -F /shared/outputs/intellect-3.1/logs/envs/train/swe/*.log
|
||||
|
||||
@@ -40,7 +40,7 @@ We recommend using the tmux helper to start the run and look at the logs.
|
||||
From your Slurm head node:
|
||||
|
||||
```bash
|
||||
bash scripts/slurm_tmux.sh glm5-pd-disag /shared/outputs/glm5-pd-disag
|
||||
bash scripts/tmux.sh glm5-pd-disag /shared/outputs/glm5-pd-disag
|
||||
```
|
||||
|
||||
You can then attach to it by doing `tmux attach -t glm5-pd-disag`.
|
||||
@@ -63,9 +63,9 @@ XXX:XX:XX INFO Submitting: sbatch /shared/outputs/glm5-pd-disag/rl.sbatch [rl
|
||||
XXX:XX:XX SUCCESS Submitted batch job YYYY
|
||||
|
||||
Logs:
|
||||
Trainer: tail -F /shared/outputs/glm5-pd-disag/slurm/latest_train_node_rank_0.log
|
||||
Orchestrator: tail -F /shared/outputs/glm5-pd-disag/slurm/latest_orchestrator.log
|
||||
Inference: tail -F /shared/outputs/glm5-pd-disag/slurm/latest_infer_node_rank_0.log
|
||||
Trainer: tail -F /shared/outputs/glm5-pd-disag/logs/trainer.log
|
||||
Orchestrator: tail -F /shared/outputs/glm5-pd-disag/logs/orchestrator.log
|
||||
Inference: tail -F /shared/outputs/glm5-pd-disag/logs/inference.log
|
||||
Envs: tail -F /shared/outputs/glm5-pd-disag/logs/envs/*/*/*.log
|
||||
Train: tail -F /shared/outputs/glm5-pd-disag/logs/envs/train/*/*.log
|
||||
swe: tail -F /shared/outputs/glm5-pd-disag/logs/envs/train/swe/*.log
|
||||
|
||||
@@ -40,7 +40,7 @@ We recommend using the tmux helper to start the run and look at the logs.
|
||||
From your Slurm head node:
|
||||
|
||||
```bash
|
||||
bash scripts/slurm_tmux.sh minimax-swe /shared/outputs/minimax-swe
|
||||
bash scripts/tmux.sh minimax-swe /shared/outputs/minimax-swe
|
||||
```
|
||||
|
||||
You can then attach to it by doing `tmux attach -t minimax-swe`.
|
||||
@@ -63,9 +63,9 @@ XXX:XX:XX INFO Submitting: sbatch /shared/outputs/minimax-swe/rl.sbatch [rl.p
|
||||
XXX:XX:XX SUCCESS Submitted batch job YYYY
|
||||
|
||||
Logs:
|
||||
Trainer: tail -F /shared/outputs/minimax-swe/slurm/latest_train_node_rank_0.log
|
||||
Orchestrator: tail -F /shared/outputs/minimax-swe/slurm/latest_orchestrator.log
|
||||
Inference: tail -F /shared/outputs/minimax-swe/slurm/latest_infer_node_rank_0.log
|
||||
Trainer: tail -F /shared/outputs/minimax-swe/logs/trainer.log
|
||||
Orchestrator: tail -F /shared/outputs/minimax-swe/logs/orchestrator.log
|
||||
Inference: tail -F /shared/outputs/minimax-swe/logs/inference.log
|
||||
Envs: tail -F /shared/outputs/minimax-swe/logs/envs/*/*/*.log
|
||||
Train: tail -F /shared/outputs/minimax-swe/logs/envs/train/*/*.log
|
||||
swe: tail -F /shared/outputs/minimax-swe/logs/envs/train/swe/*.log
|
||||
|
||||
@@ -32,7 +32,7 @@ We recommend using the tmux helper to start the run and look at the logs.
|
||||
From your Slurm head node:
|
||||
|
||||
```bash
|
||||
bash scripts/slurm_tmux.sh qwen30b-math /shared/outputs/qwen30b-math
|
||||
bash scripts/tmux.sh qwen30b-math /shared/outputs/qwen30b-math
|
||||
```
|
||||
|
||||
You can then attach to it by doing `tmux attach -t qwen30b-math`.
|
||||
@@ -55,9 +55,9 @@ XXX:XX:XX INFO Submitting: sbatch /shared/outputs/qwen30b-math/rl.sbatch [rl.
|
||||
XXX:XX:XX SUCCESS Submitted batch job YYYY
|
||||
|
||||
Logs:
|
||||
Trainer: tail -F /shared/outputs/qwen30b-math/slurm/latest_train_node_rank_0.log
|
||||
Orchestrator: tail -F /shared/outputs/qwen30b-math/slurm/latest_orchestrator.log
|
||||
Inference: tail -F /shared/outputs/qwen30b-math/slurm/latest_infer_node_rank_0.log
|
||||
Trainer: tail -F /shared/outputs/qwen30b-math/logs/trainer.log
|
||||
Orchestrator: tail -F /shared/outputs/qwen30b-math/logs/orchestrator.log
|
||||
Inference: tail -F /shared/outputs/qwen30b-math/logs/inference.log
|
||||
Envs: tail -F /shared/outputs/qwen30b-math/logs/envs/*/*/*.log
|
||||
Train: tail -F /shared/outputs/qwen30b-math/logs/envs/train/*/*.log
|
||||
math: tail -F /shared/outputs/qwen30b-math/logs/envs/train/math/*.log
|
||||
|
||||
@@ -40,7 +40,7 @@ We recommend using the tmux helper to start the run and look at the logs.
|
||||
From your Slurm head node:
|
||||
|
||||
```bash
|
||||
bash scripts/slurm_tmux.sh qwen30b-swe /shared/outputs/qwen30b-swe
|
||||
bash scripts/tmux.sh qwen30b-swe /shared/outputs/qwen30b-swe
|
||||
```
|
||||
|
||||
You can then attach to it by doing `tmux attach -t qwen30b-swe`.
|
||||
@@ -63,9 +63,9 @@ XXX:XX:XX INFO Submitting: sbatch /shared/outputs/qwen30b-swe/rl.sbatch [rl.p
|
||||
XXX:XX:XX SUCCESS Submitted batch job YYYY
|
||||
|
||||
Logs:
|
||||
Trainer: tail -F /shared/outputs/qwen30b-swe/slurm/latest_train_node_rank_0.log
|
||||
Orchestrator: tail -F /shared/outputs/qwen30b-swe/slurm/latest_orchestrator.log
|
||||
Inference: tail -F /shared/outputs/qwen30b-swe/slurm/latest_infer_node_rank_0.log
|
||||
Trainer: tail -F /shared/outputs/qwen30b-swe/logs/trainer.log
|
||||
Orchestrator: tail -F /shared/outputs/qwen30b-swe/logs/orchestrator.log
|
||||
Inference: tail -F /shared/outputs/qwen30b-swe/logs/inference.log
|
||||
Envs: tail -F /shared/outputs/qwen30b-swe/logs/envs/*/*/*.log
|
||||
Train: tail -F /shared/outputs/qwen30b-swe/logs/envs/train/*/*.log
|
||||
swe: tail -F /shared/outputs/qwen30b-swe/logs/envs/train/swe/*.log
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ dependencies = [
|
||||
"torch>=2.9.0",
|
||||
"torchdata>=0.11.0",
|
||||
"transformers",
|
||||
"vllm>=0.17.0",
|
||||
"vllm>=0.18.0",
|
||||
"wandb>=0.24.2",
|
||||
"ring-flash-attn>=0.1.8",
|
||||
"prime>=0.5.37",
|
||||
@@ -114,7 +114,7 @@ override-dependencies = [
|
||||
|
||||
[tool.uv.sources]
|
||||
torch = { index = "pytorch-cu128" }
|
||||
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "0db45e6" }
|
||||
verifiers = { git = "https://github.com/PrimeIntellect-ai/verifiers.git", rev = "5d75d97" }
|
||||
torchtitan = { git = "https://github.com/pytorch/torchtitan", rev = "a1fdd7e" }
|
||||
dion = { git = "https://github.com/samsja/dion.git", rev = "d891eeb" }
|
||||
transformers = { git = "https://github.com/huggingface/transformers.git", rev = "5c1c72b" }
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
JOB_NAME="$1"
|
||||
OUTPUT_DIR="$2"
|
||||
|
||||
if [[ -z "$JOB_NAME" || -z "$OUTPUT_DIR" ]]; then
|
||||
echo "Usage: $0 JOB_NAME OUTPUT_DIR" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SLURM_LOG_DIR="${OUTPUT_DIR}/slurm"
|
||||
SESSION_NAME="slurm-${JOB_NAME}"
|
||||
|
||||
if tmux has-session -t "$SESSION_NAME" 2>/dev/null; then
|
||||
echo "Attaching to existing tmux session: $SESSION_NAME"
|
||||
exec tmux attach-session -t "$SESSION_NAME"
|
||||
fi
|
||||
|
||||
echo "Creating tmux session: $SESSION_NAME"
|
||||
|
||||
# Window 0: Terminal
|
||||
tmux new-session -d -s "$SESSION_NAME" -n "Terminal"
|
||||
|
||||
# Window 1: Logs - 4 vertical panes
|
||||
tmux new-window -t "$SESSION_NAME" -n "Logs"
|
||||
|
||||
tmux split-window -v -t "$SESSION_NAME:Logs.0"
|
||||
tmux split-window -v -t "$SESSION_NAME:Logs.1"
|
||||
tmux split-window -v -t "$SESSION_NAME:Logs.2"
|
||||
tmux select-layout -t "$SESSION_NAME:Logs" even-vertical
|
||||
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.0" -T "Trainer"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.1" -T "Orchestrator"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.2" -T "Envs"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.3" -T "Inference"
|
||||
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.0" \
|
||||
"tail -F ${SLURM_LOG_DIR}/latest_train_node_rank_*.log 2>/dev/null" C-m
|
||||
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.1" \
|
||||
"tail -F ${SLURM_LOG_DIR}/latest_orchestrator.log 2>/dev/null" C-m
|
||||
|
||||
ENV_LOG_DIR="${OUTPUT_DIR}/logs/envs"
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.2" \
|
||||
"tail -F ${ENV_LOG_DIR}/*/*/*.log 2>/dev/null" C-m
|
||||
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.3" \
|
||||
"tail -F ${SLURM_LOG_DIR}/latest_infer_node_rank_*.log 2>/dev/null" C-m
|
||||
|
||||
# Pane title styling
|
||||
tmux set-option -t "$SESSION_NAME" -g pane-border-status top
|
||||
tmux set-option -t "$SESSION_NAME" -g pane-border-format " #{pane_title} "
|
||||
|
||||
# Focus Terminal window and attach
|
||||
tmux select-window -t "$SESSION_NAME:Terminal"
|
||||
exec tmux attach-session -t "$SESSION_NAME"
|
||||
+39
-44
@@ -49,61 +49,56 @@ if [[ ${#POSITIONAL[@]} -ge 2 ]]; then
|
||||
OUTPUT_DIR="${POSITIONAL[1]}"
|
||||
fi
|
||||
|
||||
LOG_DIR="${OUTPUT_DIR}/logs"
|
||||
|
||||
if tmux has-session -t "$SESSION_NAME" 2>/dev/null; then
|
||||
echo "Attaching to tmux session: $SESSION_NAME"
|
||||
exec tmux attach-session -t "$SESSION_NAME"
|
||||
else
|
||||
echo "Creating new tmux session: $SESSION_NAME"
|
||||
fi
|
||||
|
||||
# Start new tmux session with first window
|
||||
tmux new-session -d -s "$SESSION_NAME" -n "RL"
|
||||
echo "Creating new tmux session: $SESSION_NAME"
|
||||
|
||||
# Window 1: RL - 4 vertical panes
|
||||
tmux split-window -v -t "$SESSION_NAME:RL.0"
|
||||
tmux split-window -v -t "$SESSION_NAME:RL.1"
|
||||
tmux split-window -v -t "$SESSION_NAME:RL.2"
|
||||
tmux select-layout -t "$SESSION_NAME:RL" even-vertical
|
||||
# Window 1: Logs - 4 vertical panes
|
||||
tmux new-session -d -s "$SESSION_NAME" -n "Logs"
|
||||
|
||||
# Pane titles
|
||||
tmux select-pane -t "$SESSION_NAME:RL.0" -T "Trainer"
|
||||
tmux select-pane -t "$SESSION_NAME:RL.1" -T "Orchestrator"
|
||||
tmux select-pane -t "$SESSION_NAME:RL.2" -T "Envs"
|
||||
tmux select-pane -t "$SESSION_NAME:RL.3" -T "Inference"
|
||||
tmux split-window -v -t "$SESSION_NAME:Logs.0"
|
||||
tmux split-window -v -t "$SESSION_NAME:Logs.1"
|
||||
tmux split-window -v -t "$SESSION_NAME:Logs.2"
|
||||
tmux select-layout -t "$SESSION_NAME:Logs" even-vertical
|
||||
|
||||
# Logs: Orchestrator
|
||||
tmux send-keys -t "$SESSION_NAME:RL.1" \
|
||||
"echo \"Following orchestrator.stdout (tail -F; waits for rotate/create)...\"; tail -F \"${OUTPUT_DIR}/logs/orchestrator.stdout\" 2>/dev/null" \
|
||||
C-m
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.0" -T "Trainer"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.1" -T "Orchestrator"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.2" -T "Envs"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.3" -T "Inference"
|
||||
|
||||
# Logs: Envs (all env server and worker logs)
|
||||
tmux send-keys -t "$SESSION_NAME:RL.2" \
|
||||
"echo \"Following env logs (tail -F; waits for rotate/create)...\"; tail -F \"${OUTPUT_DIR}/logs/envs\"/*/*/*.log 2>/dev/null" \
|
||||
C-m
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.0" \
|
||||
"tail -F ${LOG_DIR}/trainer.log 2>/dev/null" C-m
|
||||
|
||||
# Logs: Inference
|
||||
tmux send-keys -t "$SESSION_NAME:RL.3" \
|
||||
"echo \"Following inference.stdout (tail -F; waits for rotate/create)...\"; tail -F \"${OUTPUT_DIR}/logs/inference.stdout\" 2>/dev/null" \
|
||||
C-m
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.1" \
|
||||
"tail -F ${LOG_DIR}/orchestrator.log 2>/dev/null" C-m
|
||||
|
||||
# Window 2: Monitor
|
||||
tmux new-window -t "$SESSION_NAME" -n "Monitor"
|
||||
tmux split-window -h -t "$SESSION_NAME:Monitor"
|
||||
tmux select-layout -t "$SESSION_NAME:Monitor" even-horizontal
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.2" \
|
||||
"tail -F ${LOG_DIR}/envs/*/*/*.log 2>/dev/null" C-m
|
||||
|
||||
tmux select-pane -t "$SESSION_NAME:Monitor.0" -T "GPU"
|
||||
tmux send-keys -t "$SESSION_NAME:Monitor.0" "nvtop" C-m
|
||||
tmux send-keys -t "$SESSION_NAME:Logs.3" \
|
||||
"tail -F ${LOG_DIR}/inference.log 2>/dev/null" C-m
|
||||
|
||||
tmux select-pane -t "$SESSION_NAME:Monitor.1" -T "CPU"
|
||||
tmux send-keys -t "$SESSION_NAME:Monitor.1" "htop" C-m
|
||||
# Window 2: Monitor
|
||||
tmux new-window -t "$SESSION_NAME" -n "Monitor"
|
||||
tmux split-window -h -t "$SESSION_NAME:Monitor"
|
||||
tmux select-layout -t "$SESSION_NAME:Monitor" even-horizontal
|
||||
|
||||
# Pane title styling
|
||||
tmux set-option -t "$SESSION_NAME" -g pane-border-status top
|
||||
tmux set-option -t "$SESSION_NAME" -g pane-border-format " #{pane_title} "
|
||||
tmux set-window-option -t "$SESSION_NAME:RL" pane-border-status top
|
||||
tmux set-window-option -t "$SESSION_NAME:Monitor" pane-border-status top
|
||||
tmux select-pane -t "$SESSION_NAME:Monitor.0" -T "GPU"
|
||||
tmux send-keys -t "$SESSION_NAME:Monitor.0" "nvtop" C-m
|
||||
|
||||
# Focus trainer pane and attach
|
||||
tmux select-window -t "$SESSION_NAME:RL"
|
||||
tmux select-pane -t "$SESSION_NAME:RL.0"
|
||||
exec tmux attach-session -t "$SESSION_NAME"
|
||||
fi
|
||||
tmux select-pane -t "$SESSION_NAME:Monitor.1" -T "CPU"
|
||||
tmux send-keys -t "$SESSION_NAME:Monitor.1" "htop" C-m
|
||||
|
||||
# Pane title styling
|
||||
tmux set-option -t "$SESSION_NAME" -g pane-border-status top
|
||||
tmux set-option -t "$SESSION_NAME" -g pane-border-format " #{pane_title} "
|
||||
|
||||
# Focus logs window and attach
|
||||
tmux select-window -t "$SESSION_NAME:Logs"
|
||||
tmux select-pane -t "$SESSION_NAME:Logs.0"
|
||||
exec tmux attach-session -t "$SESSION_NAME"
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
---
|
||||
name: config
|
||||
description: How the prime-rl config system works — TOML files, CLI, config composition, and special patterns. Use when creating configs, debugging config errors, or overriding values via CLI.
|
||||
---
|
||||
|
||||
# Config
|
||||
|
||||
prime-rl uses `pydantic_config` (combines `tyro` and `pydantic`) for configuration.
|
||||
|
||||
## Use configs
|
||||
|
||||
Every entrypoint accepts TOML files via `@` syntax and CLI overrides to configure it.
|
||||
|
||||
```bash
|
||||
# Configure RL training with a TOML file
|
||||
uv run rl @ examples/reverse_text/rl.toml
|
||||
|
||||
# Override specific fields via CLI
|
||||
uv run rl @ examples/reverse_text/rl.toml --max-steps 50
|
||||
```
|
||||
|
||||
Config resolve in the following order:
|
||||
|
||||
1. CLI arguments
|
||||
2. Config files (merged left-to-right)
|
||||
3. Class defaults (lowest)
|
||||
|
||||
## Compose configs
|
||||
|
||||
Multiple config files are merged left-to-right (later files override earlier ones):
|
||||
|
||||
```bash
|
||||
uv run rl @ examples/reverse_text/rl.toml @ examples/reverse_text/slurm_rl.toml
|
||||
```
|
||||
|
||||
Nested configs can be loaded for specific sections:
|
||||
|
||||
```bash
|
||||
uv run rl --model @ model.toml --data @ data.toml
|
||||
```
|
||||
|
||||
Mixed composition works too:
|
||||
|
||||
```bash
|
||||
uv run rl @ base.toml --trainer @ trainer_override.toml --trainer.lr 1e-3
|
||||
```
|
||||
|
||||
Merging is deep — unset fields in the override are preserved from the base config.
|
||||
|
||||
## Inspect & validate configs
|
||||
|
||||
Use `--help` to see all available fields and their defaults. When combined with a config file, defaults reflect the TOML values:
|
||||
|
||||
```bash
|
||||
uv run rl --help # shows class defaults
|
||||
uv run rl @ examples/reverse_text/rl.toml --help # shows defaults from TOML
|
||||
```
|
||||
|
||||
Use `--dry-run` to validate and dump the fully resolved config:
|
||||
|
||||
```bash
|
||||
uv run rl @ examples/reverse_text/rl.toml --dry-run --output-dir /tmp/test
|
||||
# Writes resolved TOML to /tmp/test/configs
|
||||
```
|
||||
|
||||
## Naming
|
||||
|
||||
CLI uses kebab-case (`--model.max-model-len`), TOML uses snake_case (`max_model_len`). Both refer to the same field.
|
||||
|
||||
## General rules
|
||||
|
||||
- **Fail early**: incompatible option combinations (e.g. CP requires flash attention, NCCL broadcast requires async level 1) should raise in `model_validator` at config resolution time, not at runtime. When adding new constraints, add a validator to the config class.
|
||||
- **Deprecation**: when renaming or removing config fields, emit a deprecation warning with a clear migration path (e.g. "field X is deprecated, use Y instead"). Do not silently drop fields — help users update their configs.
|
||||
|
||||
## Important patterns
|
||||
|
||||
### Boolean fields
|
||||
|
||||
```bash
|
||||
uv run inference --model.enforce-eager # sets to true
|
||||
uv run inference --model.no-enforce-eager # sets to false
|
||||
```
|
||||
|
||||
In TOML, booleans must be explicit:
|
||||
|
||||
```toml
|
||||
[model]
|
||||
enforce_eager = true
|
||||
```
|
||||
|
||||
### None fields
|
||||
|
||||
TOML has no null type. Use the string `"None"`:
|
||||
|
||||
```toml
|
||||
max_model_len = "None"
|
||||
```
|
||||
|
||||
On the CLI, pass `None` as a plain string:
|
||||
|
||||
```bash
|
||||
uv run inference --model.max-model-len None
|
||||
```
|
||||
|
||||
### List fields
|
||||
|
||||
In TOML, use `[[double brackets]]` (array of tables) for lists of objects:
|
||||
|
||||
```toml
|
||||
[[orchestrator.env]]
|
||||
id = "reverse-text"
|
||||
|
||||
[[orchestrator.env]]
|
||||
id = "math-env"
|
||||
```
|
||||
|
||||
On the CLI, list items are indexed: `--env.0.id reverse-text --env.1.id math-env`.
|
||||
|
||||
### Dict fields
|
||||
|
||||
In TOML, use a section:
|
||||
|
||||
```toml
|
||||
[vllm_extra]
|
||||
key1 = "value1"
|
||||
key2 = 123
|
||||
```
|
||||
|
||||
On the CLI, pass as a JSON string:
|
||||
|
||||
```bash
|
||||
uv run inference --vllm-extra '{"key1": "value1", "key2": 123}'
|
||||
```
|
||||
|
||||
### Discriminated unions
|
||||
|
||||
Some config fields use discriminated unions (e.g. loss type, data type). Set the `type` field to select the variant:
|
||||
|
||||
```toml
|
||||
[trainer.loss]
|
||||
type = "sft"
|
||||
|
||||
[data]
|
||||
type = "fake"
|
||||
batch_size = 2
|
||||
```
|
||||
|
||||
On the CLI:
|
||||
|
||||
```bash
|
||||
uv run sft --data.type fake --data.batch-size 4
|
||||
```
|
||||
|
||||
If you wish to configure values of the default variant, you don't need to set the `type` field.
|
||||
|
||||
### Model fields
|
||||
|
||||
For `BaseModel | None` fields (like `[ckpt]`, `[wandb]`, `[compile]`), a bare flag enables them with defaults:
|
||||
|
||||
```bash
|
||||
uv run rl @ config.toml --model.compile # enables compilation with defaults (fullgraph = false)
|
||||
uv run rl @ config.toml --model.compile.fullgraph # enables compilation and sets nested field (fullgraph = true)
|
||||
```
|
||||
|
||||
In TOML, an empty section header does the same:
|
||||
|
||||
```toml
|
||||
[ckpt] # enables checkpointing with defaults
|
||||
```
|
||||
|
||||
## Key files
|
||||
|
||||
- `src/prime_rl/utils/config.py` — re-exports `BaseConfig` and `cli` from pydantic_config
|
||||
- `src/prime_rl/configs/` — all domain-specific config classes
|
||||
- `configs/debug/` — minimal debug configs for testing
|
||||
- `examples/` — full example configs for various tasks
|
||||
@@ -0,0 +1,91 @@
|
||||
---
|
||||
name: entrypoints
|
||||
description: All available prime-rl entrypoints — what they do, how to launch them, and which config class they use. Use when running commands, launching training, or starting servers.
|
||||
---
|
||||
|
||||
# Entrypoints
|
||||
|
||||
All entrypoints are run via `uv run <command>` and accept TOML configs via `@ path/to/config.toml` with CLI overrides. See the `config` skill for config system details.
|
||||
|
||||
## `rl` — RL training
|
||||
|
||||
Orchestrates the complete RL loop: launches inference server, orchestrator, and trainer as subprocesses.
|
||||
|
||||
```bash
|
||||
uv run rl @ examples/reverse_text/rl.toml
|
||||
uv run rl @ examples/reverse_text/rl.toml @ examples/reverse_text/slurm_rl.toml # with SLURM
|
||||
uv run rl @ examples/reverse_text/rl.toml --dry-run # generate scripts without running
|
||||
```
|
||||
|
||||
- **Config:** `RLConfig` (`src/prime_rl/configs/rl.py`)
|
||||
- **Entrypoint:** `src/prime_rl/entrypoints/rl.py`
|
||||
- **SLURM:** yes — single-node and multi-node
|
||||
|
||||
## `sft` — SFT training
|
||||
|
||||
Trains a model on labeled data. Uses torchrun for distributed training.
|
||||
|
||||
```bash
|
||||
uv run sft @ examples/reverse_text/sft.toml
|
||||
uv run sft @ examples/reverse_text/sft.toml --slurm # with SLURM
|
||||
uv run sft @ examples/reverse_text/sft.toml --dry-run # generate scripts without running
|
||||
```
|
||||
|
||||
The entrypoint launches torchrun internally — no need to call torchrun directly.
|
||||
|
||||
- **Config:** `SFTConfig` (`src/prime_rl/configs/sft.py`)
|
||||
- **Entrypoint:** `src/prime_rl/entrypoints/sft.py`
|
||||
- **SLURM:** yes — single-node and multi-node
|
||||
|
||||
## `inference` — Standalone inference server
|
||||
|
||||
Launches a vLLM-based inference server with OpenAI-compatible API.
|
||||
|
||||
```bash
|
||||
uv run inference @ configs/debug/infer.toml
|
||||
uv run inference --model.name Qwen/Qwen3-0.6B --model.enforce-eager
|
||||
```
|
||||
|
||||
Always use the `inference` entrypoint — never `vllm serve` directly.
|
||||
|
||||
Custom endpoints beyond standard OpenAI API:
|
||||
- `/v1/chat/completions/tokens` — accepts token IDs as prompt input
|
||||
- `/update_weights` — hot-reload model weights from the trainer
|
||||
- `/load_lora_adapter` — load LoRA adapters at runtime
|
||||
- `/init_broadcaster` — initialize weight broadcast for distributed training
|
||||
|
||||
Check health with:
|
||||
```bash
|
||||
curl http://<ip>:<port>/health
|
||||
```
|
||||
|
||||
Check served models with:
|
||||
```bash
|
||||
curl http://<ip>:<port>/v1/models
|
||||
```
|
||||
|
||||
Test chat completions with:
|
||||
```bash
|
||||
curl http://localhost:8000/v1/chat/completions \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"model": "Qwen/Qwen3-0.6B", "messages": [{"role": "user", "content": "Hi"}], "max_tokens": 50}'
|
||||
```
|
||||
|
||||
- **Config:** `InferenceConfig` (`src/prime_rl/configs/inference.py`)
|
||||
- **Entrypoint:** `src/prime_rl/entrypoints/inference.py`
|
||||
- **SLURM:** yes — single-node, multi-node, and disaggregated deployments
|
||||
|
||||
## Summary
|
||||
|
||||
| Command | Purpose | SLURM | Typical use |
|
||||
|---------|---------|-------|-------------|
|
||||
| `rl` | Full RL pipeline | yes | Production RL training |
|
||||
| `sft` | Supervised fine-tuning | yes | SFT training |
|
||||
| `inference` | vLLM server | yes | Standalone inference or debugging |
|
||||
|
||||
## Key directories
|
||||
|
||||
- `src/prime_rl/entrypoints/` — top-level entrypoints (`rl`, `sft`, `inference`)
|
||||
- `src/prime_rl/configs/` — all config classes
|
||||
- `configs/debug/` — minimal configs for quick testing
|
||||
- `examples/` — full example configs for various tasks
|
||||
@@ -1,109 +0,0 @@
|
||||
---
|
||||
name: inference-server
|
||||
description: Start and test the prime-rl inference server. Use when asked to run inference, start vLLM, test a model, or launch the inference server.
|
||||
---
|
||||
|
||||
# Inference Server
|
||||
|
||||
## Starting the server
|
||||
|
||||
Always use the `inference` entry point — never `vllm serve` or `python -m vllm.entrypoints.openai.api_server` directly. The entry point runs `setup_vllm_env()` which configures environment variables (LoRA, multiprocessing) before vLLM is imported.
|
||||
|
||||
```bash
|
||||
# With a TOML config
|
||||
uv run inference @ path/to/config.toml
|
||||
|
||||
# With CLI overrides
|
||||
uv run inference --model.name Qwen/Qwen3-0.6B --model.max_model_len 2048 --model.enforce_eager
|
||||
|
||||
# Combined
|
||||
uv run inference @ path/to/config.toml --server.port 8001 --gpu-memory-utilization 0.5
|
||||
```
|
||||
|
||||
## SLURM scheduling
|
||||
|
||||
The inference entrypoint supports optional SLURM scheduling, following the same patterns as SFT and RL.
|
||||
|
||||
### Single-node SLURM
|
||||
|
||||
```toml
|
||||
# inference_slurm.toml
|
||||
output_dir = "/shared/outputs/my-inference"
|
||||
|
||||
[model]
|
||||
name = "Qwen/Qwen3-8B"
|
||||
|
||||
[parallel]
|
||||
tp = 8
|
||||
|
||||
[slurm]
|
||||
job_name = "my-inference"
|
||||
partition = "cluster"
|
||||
```
|
||||
|
||||
```bash
|
||||
uv run inference @ inference_slurm.toml
|
||||
```
|
||||
|
||||
### Multi-node SLURM (independent vLLM replicas)
|
||||
|
||||
Each node runs an independent vLLM instance. No cross-node parallelism — TP and DP must fit within a single node's GPUs.
|
||||
|
||||
```toml
|
||||
# inference_multinode.toml
|
||||
output_dir = "/shared/outputs/my-inference"
|
||||
|
||||
[model]
|
||||
name = "PrimeIntellect/INTELLECT-3-RL-600"
|
||||
|
||||
[parallel]
|
||||
tp = 8
|
||||
dp = 1
|
||||
|
||||
[deployment]
|
||||
type = "multi_node"
|
||||
num_nodes = 4
|
||||
gpus_per_node = 8
|
||||
|
||||
[slurm]
|
||||
job_name = "my-inference"
|
||||
partition = "cluster"
|
||||
```
|
||||
|
||||
### Dry run
|
||||
|
||||
Add `dry_run = true` to generate the sbatch script without submitting:
|
||||
|
||||
```bash
|
||||
uv run inference @ config.toml --dry-run true
|
||||
```
|
||||
|
||||
## Custom endpoints
|
||||
|
||||
The server extends vLLM with:
|
||||
|
||||
- `/v1/chat/completions/tokens` — accepts token IDs as prompt input (used by multi-turn RL rollouts)
|
||||
- `/update_weights` — hot-reload model weights from the trainer
|
||||
- `/load_lora_adapter` — load LoRA adapters at runtime
|
||||
- `/init_broadcaster` — initialize weight broadcast for distributed training
|
||||
|
||||
## Testing the server
|
||||
|
||||
```bash
|
||||
curl http://localhost:8000/v1/chat/completions \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "Qwen/Qwen3-0.6B",
|
||||
"messages": [{"role": "user", "content": "Hi"}],
|
||||
"max_tokens": 50
|
||||
}'
|
||||
```
|
||||
|
||||
## Key files
|
||||
|
||||
- `src/prime_rl/entrypoints/inference.py` — entrypoint with local/SLURM routing
|
||||
- `src/prime_rl/inference/server.py` — vLLM env setup
|
||||
- `src/prime_rl/configs/inference.py` — `InferenceConfig` and all sub-configs
|
||||
- `src/prime_rl/inference/vllm/server.py` — FastAPI routes and vLLM monkey-patches
|
||||
- `src/prime_rl/templates/inference.sbatch.j2` — SLURM template (handles both single and multi-node)
|
||||
- `configs/debug/infer.toml` — minimal debug config
|
||||
@@ -5,25 +5,16 @@ description: How to install prime-rl and its optional dependencies. Use when set
|
||||
|
||||
# Installation
|
||||
|
||||
## Basic install
|
||||
|
||||
## Basic
|
||||
```bash
|
||||
uv sync
|
||||
uv sync # core dependencies only
|
||||
uv sync --group dev # dev tools: pytest, ruff, pre-commit
|
||||
uv sync --all-extras # recommended: includes flash-attn, flash-attn-cute, etc.
|
||||
```
|
||||
|
||||
This installs all core dependencies defined in `pyproject.toml`.
|
||||
## Advanced
|
||||
|
||||
## All extras at once
|
||||
|
||||
The recommended way to install for most users:
|
||||
|
||||
```bash
|
||||
uv sync --all-extras
|
||||
```
|
||||
|
||||
This installs all optional extras (flash-attn, flash-attn-cute, etc.) in one go.
|
||||
|
||||
## Mamba-SSM (NemotronH models)
|
||||
### Mamba-SSM (NemotronH models)
|
||||
|
||||
For NemotronH (hybrid Mamba-Transformer-MoE) models, install `mamba-ssm` for Triton-based SSD kernels that match vLLM's precision:
|
||||
|
||||
@@ -35,7 +26,7 @@ Requires `nvcc` (CUDA toolkit). Without `mamba-ssm`, NemotronH falls back to HF'
|
||||
|
||||
Note: do NOT install `causal-conv1d` unless your GPU architecture matches the compiled CUDA kernels. The code automatically falls back to PyTorch nn.Conv1d when it's absent.
|
||||
|
||||
## FP8 inference with deep-gemm
|
||||
### FP8 inference with deep-gemm
|
||||
|
||||
For certain models like GLM-5-FP8, you need `deep-gemm`. Install it via the `fp8-inference` dependency group:
|
||||
|
||||
@@ -45,6 +36,29 @@ uv sync --group fp8-inference
|
||||
|
||||
This installs the pre-built `deep-gemm` wheel. No CUDA build step is needed.
|
||||
|
||||
## Trainer DeepEP backend
|
||||
|
||||
The trainer-side MoE `deepep` backend is optional and requires a local DeepEP build.
|
||||
|
||||
Install using the provided script, which auto-detects CUDA toolkit and GPU architecture:
|
||||
|
||||
```bash
|
||||
bash scripts/install_ep_kernels.sh
|
||||
```
|
||||
|
||||
The script downloads NVSHMEM, builds DeepEP from source, and places the wheel in `deps/`. It skips if DeepEP is already installed. Options:
|
||||
|
||||
- `--workspace DIR` — build directory (default: `./ep_kernels_workspace`)
|
||||
- `--deepep-ref REF` — DeepEP commit hash (default: `73b6ea4`)
|
||||
- `--nvshmem-ver VER` — NVSHMEM version (default: `3.3.24`)
|
||||
- `--configure-drivers` — configure IBGDA drivers for multi-node (requires sudo + reboot)
|
||||
|
||||
Verify the install:
|
||||
|
||||
```bash
|
||||
uv run python -c 'import deep_ep; print(deep_ep.__file__)'
|
||||
```
|
||||
|
||||
## Dev dependencies
|
||||
|
||||
```bash
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
---
|
||||
name: monitor-run
|
||||
description: How to monitor ongoing training runs — find output directories, check logs, diagnose performance, and inspect SLURM jobs. Use when asked to check on a run, debug training issues, or investigate performance.
|
||||
---
|
||||
|
||||
# Monitor a Run
|
||||
|
||||
## Find the output directory
|
||||
|
||||
The output directory is set in the config (`output_dir`). To find it:
|
||||
|
||||
- **Local run**: check the resolved configs at `{output_dir}/configs/`
|
||||
- **SLURM run**: check `squeue -u $USER` to find the job, then look at `{output_dir}/configs/`
|
||||
|
||||
## RL
|
||||
|
||||
### Check GPU allocation
|
||||
|
||||
#### Single-node
|
||||
|
||||
GPUs are assigned in order: inference first, then trainer, then teacher (if any).
|
||||
|
||||
```
|
||||
GPU 0..N-1 → inference (vLLM)
|
||||
GPU N..M-1 → trainer (torchrun)
|
||||
GPU M..K-1 → teacher inference (optional)
|
||||
```
|
||||
|
||||
The exact split is controlled by `deployment.num_infer_gpus`, `deployment.num_train_gpus`, and `deployment.num_teacher_gpus`. The orchestrator runs as a separate process (no GPU). Check the resolved configs at `{output_dir}/configs/` for the actual values.
|
||||
|
||||
#### Multi-node (SLURM)
|
||||
|
||||
```bash
|
||||
squeue -u $USER -o "%.18i %.9P %.30j %.8T %.10M %.6D %R"
|
||||
```
|
||||
|
||||
Nodes from the SLURM allocation are split in order: inference nodes first, then trainer nodes.
|
||||
|
||||
```
|
||||
Nodes 0..I-1 → inference (vLLM, first node of each replica also runs vllm-router)
|
||||
Nodes I..I+T-1 → trainer (torchrun, rank 0 node also runs the orchestrator)
|
||||
```
|
||||
|
||||
The node assignment is visible in the generated sbatch script at `{output_dir}/rl.sbatch`.
|
||||
|
||||
### Check logs
|
||||
|
||||
Log paths are consistent across deployment types — `logs/trainer.log` and `logs/inference.log` always exist (real files for local, symlinks for multi-node SLURM).
|
||||
|
||||
#### Local runs
|
||||
|
||||
```
|
||||
{output_dir}/logs/
|
||||
├── trainer.log # trainer stdout (rank 0 only)
|
||||
├── orchestrator.log # orchestrator stdout
|
||||
├── inference.log # vLLM inference server stdout
|
||||
├── trainer/
|
||||
│ └── torchrun/ # per-rank stdout/stderr (all ranks)
|
||||
└── envs/
|
||||
├── train/{env_name}/
|
||||
│ ├── env_server.log
|
||||
│ └── env_worker_{id}.log
|
||||
└── eval/{env_name}/
|
||||
└── ...
|
||||
```
|
||||
|
||||
#### SLURM runs
|
||||
|
||||
```
|
||||
{output_dir}/logs/
|
||||
├── trainer.log -> trainer/node_0.log (symlink)
|
||||
├── inference.log -> inference/node_0.log (symlink)
|
||||
├── orchestrator.log
|
||||
├── trainer/
|
||||
│ ├── node_0.log
|
||||
│ ├── node_1.log
|
||||
│ └── torchrun/ # per-rank stdout/stderr (all ranks)
|
||||
├── inference/
|
||||
│ ├── node_0.log
|
||||
│ ├── node_1.log
|
||||
│ └── router_0.log # vllm-router per replica
|
||||
└── envs/
|
||||
└── ...
|
||||
```
|
||||
|
||||
### Check performance
|
||||
|
||||
#### Trainer
|
||||
|
||||
Check `{output_dir}/logs/trainer.log` (rank 0, node 0). For multi-node, per-node logs are at `logs/trainer/node_*.log`. Per-rank logs from all ranks are under `logs/trainer/torchrun/`.
|
||||
|
||||
Key metrics per step:
|
||||
- `time/step` — total step time
|
||||
- `time/wait_for_batch` — time waiting for the orchestrator to deliver a batch
|
||||
- `time/forward_backward` — forward/backward pass time
|
||||
- `time/broadcast_weights` — time broadcasting weights to inference servers
|
||||
- `time/save_ckpt` — checkpoint save time
|
||||
|
||||
High `wait_for_batch` means the orchestrator is the bottleneck (slow rollouts, slow envs, or too few inference replicas).
|
||||
|
||||
#### Orchestrator
|
||||
|
||||
Check `{output_dir}/logs/orchestrator.log`.
|
||||
|
||||
Key metrics per step:
|
||||
- `time/step` — total orchestrator step time
|
||||
- `time/generate_completions` — rollout generation time
|
||||
- `time/wait_for_ckpt` — time waiting for trainer checkpoint
|
||||
- `time/update_weights` — weight update time
|
||||
- `scheduler/async_level` — current async level
|
||||
- `empty_rollouts/all` — fraction of empty rollouts
|
||||
- `errored_rollouts/all` — fraction of errored rollouts
|
||||
|
||||
High `wait_for_ckpt` means the trainer is the bottleneck. The orchestrator logs when it pauses/resumes:
|
||||
```
|
||||
"Orchestrator paused: waiting for trainer process to complete checkpoint ..."
|
||||
"Orchestrator resumed: checkpoint ... ready (after ...s)"
|
||||
```
|
||||
|
||||
#### Env servers
|
||||
|
||||
Check `{output_dir}/logs/envs/train/{env_name}/env_server.log` and `{output_dir}/logs/envs/train/{env_name}/env_worker_{id}.log`.
|
||||
|
||||
Key things to look for:
|
||||
- **Event loop lag**: server logs aggregate lag stats (min/mean/median/p90/p99/max) of itself and all workers periodically. check that neither is overloaded
|
||||
- **Active task distribution**: check if tasks are distributed as expected across workers per-env and across envs. uneven distribution suggests some workers/envs are slower. heavily skewed distribution can indicate that a env is bottlenecking the trainer or has stopped being responsive.
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
name: release
|
||||
description: How to prepare and publish GitHub releases for prime-rl. Use when drafting release notes, tagging versions, or publishing releases.
|
||||
---
|
||||
|
||||
# Releases
|
||||
|
||||
## Preparing release notes
|
||||
|
||||
1. **Style reference**: check the previous release (`gh release list --limit 1` then `gh release view <tag>`) to match the tone and formatting.
|
||||
2. **Gather changes**: use `git log <last-tag>..origin/main --oneline --no-merges` to list all commits since the last release.
|
||||
3. **Check for new commits**: always `git fetch origin main` and re-check right before publishing, since PRs may have been merged while drafting.
|
||||
4. **Structure**: organize notes into numbered highlight sections (`# 1.`, `# 2.`, ...), then `# Breaking Changes`, `# Bug Fixes`, and `# Misc`.
|
||||
5. **Highlights**: group related PRs under a single highlight. Use `##` subsections when a highlight contains multiple items (e.g. Performance & Parallelism). Keep the top highlights for the most impactful user-facing features.
|
||||
6. **Config examples**: when referencing TOML config, verify the exact field names against the actual code or docs — don't guess.
|
||||
7. **Links**: use clickable links for docs (`[docs/foo.md](https://github.com/PrimeIntellect-ai/prime-rl/blob/main/docs/foo.md)`) and PR references (`[#1234](https://github.com/PrimeIntellect-ai/prime-rl/pull/1234)`).
|
||||
8. **Contributors**: list all contributors ranked by number of commits, using their GitHub `@username`. Get usernames via the GitHub API, not git author names (which can be inconsistent).
|
||||
9. **Draft first**: always create releases as `--draft` first, iterate on content, then publish.
|
||||
@@ -1,165 +0,0 @@
|
||||
---
|
||||
name: toml-config
|
||||
description: How to write and use TOML configs in prime-rl. Use when creating config files, running commands with configs, or overriding config values via CLI.
|
||||
---
|
||||
|
||||
# TOML Config
|
||||
|
||||
All prime-rl commands use `pydantic_config` (tyro-backed) with TOML configs and CLI overrides.
|
||||
|
||||
## Running with configs
|
||||
|
||||
```bash
|
||||
# Load a config file with @ syntax
|
||||
uv run inference @ configs/debug/infer.toml
|
||||
uv run sft @ configs/debug/sft/train.toml
|
||||
uv run rl @ configs/debug/rl/train.toml
|
||||
|
||||
# CLI overrides (take precedence over TOML)
|
||||
uv run inference @ config.toml --model.name Qwen/Qwen3-0.6B --server.port 8001
|
||||
|
||||
# Boolean flags: no value needed
|
||||
uv run inference --model.enforce-eager # sets to true
|
||||
uv run inference --no-model.enforce-eager # sets to false
|
||||
|
||||
# CLI-only (no TOML file)
|
||||
uv run inference --model.name Qwen/Qwen3-0.6B --model.max-model-len 2048
|
||||
|
||||
# Compose multiple config files (later files override earlier ones)
|
||||
uv run rl @ examples/reverse_text/rl.toml @ examples/reverse_text/slurm_rl.toml
|
||||
|
||||
# Nested config files: load a config for a specific section
|
||||
uv run rl --model @ model.toml --data @ data.toml
|
||||
```
|
||||
|
||||
## TOML structure
|
||||
|
||||
Top-level fields must come before any `[section]` header — this is a TOML rule.
|
||||
|
||||
```toml
|
||||
# Top-level fields first
|
||||
gpu_memory_utilization = 0.5
|
||||
seed = 42
|
||||
|
||||
# Then sections
|
||||
[model]
|
||||
name = "Qwen/Qwen3-0.6B"
|
||||
max_model_len = 4096
|
||||
|
||||
[server]
|
||||
port = 8000
|
||||
```
|
||||
|
||||
Putting a top-level field after a section header nests it inside that section, which causes validation errors.
|
||||
|
||||
## Setting None
|
||||
|
||||
Use the string `"None"` in TOML to set a field to None:
|
||||
|
||||
```toml
|
||||
max_model_len = "None"
|
||||
```
|
||||
|
||||
## SLURM mode
|
||||
|
||||
Both `rl` and `sft` commands support SLURM execution via an optional `[slurm]` section. When present, the run is submitted as a SLURM job instead of running locally.
|
||||
|
||||
SLURM configs are composed with the base config via CLI:
|
||||
```bash
|
||||
uv run rl @ examples/reverse_text/rl.toml @ examples/reverse_text/slurm_rl.toml
|
||||
```
|
||||
|
||||
### RL SLURM
|
||||
|
||||
```toml
|
||||
output_dir = "/shared/experiments/my-run"
|
||||
|
||||
[deployment]
|
||||
type = "multi_node"
|
||||
num_train_nodes = 2
|
||||
num_infer_nodes = 1
|
||||
gpus_per_node = 8
|
||||
# nodes_per_fsdp_group = 1
|
||||
|
||||
[slurm]
|
||||
job_name = "my-rl-job"
|
||||
# dry_run = true # generate script without submitting
|
||||
# template_path = "path/to/custom.sh.j2"
|
||||
# project_dir = "/path/to/project"
|
||||
```
|
||||
|
||||
When `[slurm]` is set for RL:
|
||||
- `output_dir` must be explicitly set (the default `outputs` is rejected)
|
||||
- Teacher inference is not supported in multi-node deployment
|
||||
|
||||
### SFT SLURM
|
||||
|
||||
```toml
|
||||
output_dir = "/shared/experiments/my-sft-run"
|
||||
|
||||
[deployment]
|
||||
type = "multi_node"
|
||||
num_nodes = 2
|
||||
gpus_per_node = 8
|
||||
# nodes_per_fsdp_group = 1
|
||||
|
||||
[slurm]
|
||||
job_name = "my-sft-job"
|
||||
# dry_run = true
|
||||
# template_path = "path/to/custom.sh.j2"
|
||||
# project_dir = "/path/to/project"
|
||||
```
|
||||
|
||||
SFT deployment follows the same pattern as RL:
|
||||
- `[deployment]` configures node/GPU allocation (`single_node` default or `multi_node`)
|
||||
- `[slurm]` configures SLURM submission (job name, partition, template)
|
||||
- `output_dir` must be explicitly set when using SLURM
|
||||
- Multi-node deployment requires `[slurm]` to be set
|
||||
|
||||
## SFT Distillation (Hard Distillation) With Teacher Rollouts
|
||||
|
||||
Use this when the teacher is an external OpenAI-compatible endpoint and you want to train from teacher completions directly (no teacher token logprobs required).
|
||||
|
||||
```toml
|
||||
[trainer.loss]
|
||||
type = "sft"
|
||||
|
||||
[orchestrator]
|
||||
use_token_client = false
|
||||
|
||||
[orchestrator.teacher_rollout_model.client]
|
||||
base_url = ["https://your-openai-compatible-endpoint/v1"]
|
||||
skip_model_check = true
|
||||
|
||||
[orchestrator.teacher_rollout_model.model]
|
||||
name = "teacher-model-name"
|
||||
```
|
||||
|
||||
Notes:
|
||||
- `orchestrator.teacher_rollout_model` switches rollout generation to the external teacher endpoint.
|
||||
- `use_token_client = false` is required when `orchestrator.teacher_rollout_model` is set.
|
||||
- `trainer.loss.type = "sft"` makes the RL trainer optimize masked NLL like SFT.
|
||||
- In this mode, omit `[inference]`.
|
||||
- Image input is supported when using a VLM student model and OpenAI-style image messages (`data:image/...`).
|
||||
|
||||
## Available commands
|
||||
|
||||
All accept `@ config.toml` and CLI overrides:
|
||||
|
||||
| Command | Config class | Description |
|
||||
|---------|-------------|-------------|
|
||||
| `uv run rl` | full RL pipeline | Orchestrator + inference + trainer (local or SLURM) |
|
||||
| `uv run inference` | `InferenceConfig` | vLLM inference server |
|
||||
| `uv run trainer` | trainer config | RL trainer |
|
||||
| `uv run orchestrator` | orchestrator config | Rollout orchestrator |
|
||||
| `uv run env-server` | env server config | Environment server |
|
||||
| `uv run sft` | SFT config | Supervised fine-tuning (local or SLURM) |
|
||||
|
||||
## Key files
|
||||
|
||||
- `src/prime_rl/utils/config.py` — `BaseConfig`, `cli`, `get_all_fields`
|
||||
- `src/prime_rl/entrypoints/rl.py` — unified RL entrypoint (local + SLURM)
|
||||
- `src/prime_rl/configs/rl.py` — `RLConfig`, `SlurmConfig, DeploymentConfig`
|
||||
- `src/prime_rl/entrypoints/sft.py` — unified SFT entrypoint (local + SLURM)
|
||||
- `src/prime_rl/configs/sft.py` — `SFTConfig`
|
||||
- `configs/` — all config files, organized by task
|
||||
@@ -147,21 +147,64 @@ class DisaggregatedInferenceDeploymentConfig(BaseInferenceDeploymentConfig):
|
||||
|
||||
Each inference replica is split into separate prefill and decode node groups.
|
||||
Requires NIXL for KV transfer and a vllm-router for request routing.
|
||||
|
||||
Multi-replica support: set ``num_prefill_replicas`` / ``num_decode_replicas``
|
||||
to run multiple independent vLLM instances within the prefill / decode node
|
||||
groups. For example, ``num_prefill_nodes=4, num_prefill_replicas=2`` creates
|
||||
two prefill vLLM instances each spanning 2 nodes (EP16 with 8 GPUs/node).
|
||||
"""
|
||||
|
||||
type: Literal["disaggregated"] = "disaggregated"
|
||||
|
||||
num_prefill_nodes: Annotated[int, Field(ge=1, description="Number of prefill nodes per replica.")] = 1
|
||||
num_decode_nodes: Annotated[int, Field(ge=1, description="Number of decode nodes per replica.")] = 1
|
||||
num_prefill_nodes: Annotated[int, Field(ge=1, description="Total number of prefill nodes.")] = 1
|
||||
num_decode_nodes: Annotated[int, Field(ge=1, description="Total number of decode nodes.")] = 1
|
||||
|
||||
num_prefill_replicas: Annotated[
|
||||
int,
|
||||
Field(
|
||||
ge=1,
|
||||
description="Number of independent prefill vLLM instances. Must evenly divide num_prefill_nodes.",
|
||||
),
|
||||
] = 1
|
||||
num_decode_replicas: Annotated[
|
||||
int,
|
||||
Field(
|
||||
ge=1,
|
||||
description="Number of independent decode vLLM instances. Must evenly divide num_decode_nodes.",
|
||||
),
|
||||
] = 1
|
||||
|
||||
router_port: Annotated[int, Field(description="Port for the vllm-router on each replica.")] = 8000
|
||||
prefill_port: Annotated[int, Field(description="Port for prefill vLLM instances.")] = 8100
|
||||
decode_port: Annotated[int, Field(description="Port for decode vLLM instances.")] = 8200
|
||||
|
||||
prefill_env_overrides: Annotated[
|
||||
dict[str, str],
|
||||
Field(description="Extra environment variables exported only on prefill nodes."),
|
||||
] = {}
|
||||
decode_env_overrides: Annotated[
|
||||
dict[str, str],
|
||||
Field(description="Extra environment variables exported only on decode nodes."),
|
||||
] = {}
|
||||
|
||||
@property
|
||||
def num_nodes(self) -> int:
|
||||
return self.num_prefill_nodes + self.num_decode_nodes
|
||||
|
||||
@model_validator(mode="after")
|
||||
def validate_replicas_divide_nodes(self):
|
||||
if self.num_prefill_nodes % self.num_prefill_replicas != 0:
|
||||
raise ValueError(
|
||||
f"num_prefill_replicas ({self.num_prefill_replicas}) must evenly divide "
|
||||
f"num_prefill_nodes ({self.num_prefill_nodes})"
|
||||
)
|
||||
if self.num_decode_nodes % self.num_decode_replicas != 0:
|
||||
raise ValueError(
|
||||
f"num_decode_replicas ({self.num_decode_replicas}) must evenly divide "
|
||||
f"num_decode_nodes ({self.num_decode_nodes})"
|
||||
)
|
||||
return self
|
||||
|
||||
|
||||
InferenceDeploymentConfig: TypeAlias = Annotated[
|
||||
SingleNodeInferenceDeploymentConfig | MultiNodeInferenceDeploymentConfig | DisaggregatedInferenceDeploymentConfig,
|
||||
|
||||
@@ -55,8 +55,6 @@ class SharedLogConfig(BaseConfig):
|
||||
|
||||
level: Annotated[str | None, Field(description="The log level to use.")] = "info"
|
||||
|
||||
file: Annotated[bool | None, Field(description="Whether to log to a file.")] = True
|
||||
|
||||
json_logging: Annotated[
|
||||
bool,
|
||||
Field(description="Emit JSON logs (newline-delimited) for log aggregation (Loki, Grafana, etc.)."),
|
||||
@@ -445,9 +443,6 @@ class RLConfig(BaseConfig):
|
||||
if self.log.level is not None:
|
||||
self.trainer.log.level = self.log.level
|
||||
self.orchestrator.log.level = self.log.level
|
||||
if self.log.file is not None:
|
||||
self.trainer.log.file = self.log.file
|
||||
self.orchestrator.log.file = self.log.file
|
||||
self.trainer.log.json_logging = self.log.json_logging
|
||||
self.orchestrator.log.json_logging = self.log.json_logging
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ from pydantic import BaseModel, ConfigDict, Field, model_validator
|
||||
|
||||
from prime_rl.configs.shared import (
|
||||
HeartbeatConfig,
|
||||
LogConfig,
|
||||
SlurmConfig,
|
||||
TrainerLogConfig,
|
||||
WandbConfig,
|
||||
)
|
||||
from prime_rl.configs.trainer import (
|
||||
@@ -14,6 +14,7 @@ from prime_rl.configs.trainer import (
|
||||
BenchConfig,
|
||||
CheckpointConfig,
|
||||
ConstantSchedulerConfig,
|
||||
GCConfig,
|
||||
ModelConfig,
|
||||
OptimizerConfig,
|
||||
SchedulerConfig,
|
||||
@@ -182,7 +183,7 @@ class SFTConfig(BaseConfig):
|
||||
ckpt: CheckpointConfig | None = None
|
||||
|
||||
# The logging configuration
|
||||
log: LogConfig = LogConfig()
|
||||
log: TrainerLogConfig = TrainerLogConfig()
|
||||
|
||||
# The wandb configuration
|
||||
wandb: WandbConfig | None = None
|
||||
@@ -215,6 +216,13 @@ class SFTConfig(BaseConfig):
|
||||
),
|
||||
] = None
|
||||
|
||||
gc: Annotated[
|
||||
GCConfig | None,
|
||||
Field(
|
||||
description="Garbage collection config. Disables automatic GC and runs deterministic collections every N steps to avoid stragglers. Set to null to use Python's default GC behavior.",
|
||||
),
|
||||
] = GCConfig()
|
||||
|
||||
trace_path: Annotated[Path | None, Field(description="Path to write pytorch profiler trace to.")] = None
|
||||
|
||||
dist_timeout_seconds: Annotated[
|
||||
|
||||
@@ -102,6 +102,14 @@ class VLMConfig(BaseConfig):
|
||||
Field(description="Dotted attribute path to the language model module (e.g. 'model.language_model')."),
|
||||
]
|
||||
|
||||
freeze_vision_encoder: Annotated[
|
||||
bool,
|
||||
Field(
|
||||
description="Whether to freeze the vision encoder. When False, the vision encoder is trainable "
|
||||
"and FSDP-sharded per-block. Has no effect with LoRA (LoRA freezes all non-adapter parameters).",
|
||||
),
|
||||
] = True
|
||||
|
||||
|
||||
class BaseModelConfig(BaseConfig):
|
||||
"""Configures the model."""
|
||||
@@ -271,17 +279,10 @@ class LogConfig(BaseConfig):
|
||||
Field(description="Logging level for the verifiers package. Will determine the logging verbosity and format."),
|
||||
] = "info"
|
||||
|
||||
file: Annotated[
|
||||
json_logging: Annotated[
|
||||
bool,
|
||||
Field(
|
||||
description="Whether to log to a file. If True, will log to a file in the output directory.",
|
||||
),
|
||||
] = True
|
||||
|
||||
env_worker_logs: Annotated[
|
||||
bool,
|
||||
Field(
|
||||
description="Whether env workers log to files. If True, workers write to logs/env_workers/{env_name}.log.",
|
||||
description="Emit JSON logs (newline-delimited) for log aggregation (Loki, Grafana, etc.).",
|
||||
),
|
||||
] = False
|
||||
|
||||
@@ -292,12 +293,14 @@ class LogConfig(BaseConfig):
|
||||
),
|
||||
] = False
|
||||
|
||||
json_logging: Annotated[
|
||||
bool,
|
||||
Field(
|
||||
description="Emit JSON logs (newline-delimited) for log aggregation (Loki, Grafana, etc.).",
|
||||
),
|
||||
] = False
|
||||
|
||||
class TrainerLogConfig(LogConfig):
|
||||
"""Trainer-specific log config."""
|
||||
|
||||
ranks_filter: Annotated[
|
||||
list[int],
|
||||
Field(description="Which trainer ranks to show in console output. Passed to torchrun's --local-ranks-filter."),
|
||||
] = [0]
|
||||
|
||||
|
||||
class LogExtrasConfig(BaseConfig):
|
||||
|
||||
@@ -7,8 +7,8 @@ from prime_rl.configs.shared import (
|
||||
BaseModelConfig,
|
||||
FileSystemTransportConfig,
|
||||
HeartbeatConfig,
|
||||
LogConfig,
|
||||
MetricsServerConfig,
|
||||
TrainerLogConfig,
|
||||
TransportConfig,
|
||||
WandbConfig,
|
||||
)
|
||||
@@ -17,6 +17,7 @@ from prime_rl.utils.config import BaseConfig
|
||||
# -- Shared trainer configs (used by both SFT and RL trainers) --
|
||||
|
||||
AttnImplementation: TypeAlias = Literal["sdpa", "flash_attention_2", "flash_attention_3", "fa4"]
|
||||
EPCommBackend: TypeAlias = Literal["torch", "deepep"]
|
||||
|
||||
# User-facing name -> internal name. Users set `flash_attention_4` in configs,
|
||||
# which gets rewritten to `fa4` before pydantic validation.
|
||||
@@ -25,6 +26,22 @@ AttnImplementation: TypeAlias = Literal["sdpa", "flash_attention_2", "flash_atte
|
||||
_ATTN_ALIASES = {"flash_attention_4": "fa4"}
|
||||
|
||||
|
||||
class GCConfig(BaseConfig):
|
||||
"""Configures deterministic garbage collection to avoid stragglers in distributed training.
|
||||
|
||||
Disables Python's automatic GC and runs manual collections every `freq` steps so all
|
||||
ranks collect simultaneously, preventing one rank from stalling others.
|
||||
"""
|
||||
|
||||
interval: Annotated[
|
||||
int,
|
||||
Field(
|
||||
ge=1,
|
||||
description="Run garbage collection every `interval` training steps.",
|
||||
),
|
||||
] = 50
|
||||
|
||||
|
||||
class ActivationCheckpointConfig(BaseConfig):
|
||||
"""Configures activation checkpointing."""
|
||||
|
||||
@@ -46,12 +63,13 @@ class ActivationCheckpointConfig(BaseConfig):
|
||||
targets: Annotated[
|
||||
list[str],
|
||||
Field(
|
||||
description="Selective checkpoint targets. `norm` checkpoints every norm module inside selected layers (decoder, attention, MLA, etc.). `attn_proj` checkpoints QKV projections, QK norms, RoPE, and output projection — everything in the attention layer except the kernel. `mlp` checkpoints the entire dense MLP forward (not applicable to MoE layers). `mla_up_proj` checkpoints MLA Q/KV up-projection work where supported. `routed_experts` checkpoints routed expert compute in MoE layers (including LatentMoE). `mamba` checkpoints the Mamba mixer forward in NemotronH Mamba layers. `linear_attn` checkpoints the GatedDeltaNet forward in Qwen3.5-MoE linear attention layers.",
|
||||
description="Selective checkpoint targets. `norm` checkpoints every norm module inside selected layers (decoder, attention, MLA, etc.). `attn_proj` checkpoints projection-side attention work outside the kernel, including input/output projections, attention-local norms, RoPE, gating, and model-specific MLA projection helpers where exposed. `mlp` checkpoints the entire dense MLP forward (not applicable to MoE layers). `mla_up_proj` checkpoints MLA Q/KV up-projection work where supported. `routed_experts` checkpoints routed expert compute in MoE layers (including LatentMoE). `linear_attn` checkpoints supported token mixers outside the standard softmax-attention path, including NemotronH Mamba layers, Qwen3.5-MoE GatedDeltaNet layers, and AFMoE sliding-window attention layers.",
|
||||
),
|
||||
] = ["norm"]
|
||||
|
||||
@model_validator(mode="after")
|
||||
def validate_selective_targets(self):
|
||||
self.targets = list(dict.fromkeys(self.targets))
|
||||
if self.mode == "selective" and not self.targets:
|
||||
raise ValueError("Selective activation checkpointing requires at least one target.")
|
||||
return self
|
||||
@@ -222,6 +240,42 @@ class ModelConfig(BaseModelConfig):
|
||||
),
|
||||
] = 1
|
||||
|
||||
ep_comm_backend: Annotated[
|
||||
EPCommBackend,
|
||||
Field(
|
||||
description=(
|
||||
"Communication backend for expert parallelism. "
|
||||
"`torch` uses TorchTitan all-to-all collectives and `deepep` uses DeepEP custom kernels."
|
||||
),
|
||||
),
|
||||
] = "torch"
|
||||
|
||||
deepep_num_sms: Annotated[
|
||||
int,
|
||||
Field(
|
||||
ge=1,
|
||||
description=(
|
||||
"Number of SMs to allocate for DeepEP intranode dispatch/combine kernels. "
|
||||
"Also determines internode RDMA channel count (num_channels = num_sms / 2). "
|
||||
"Lower values leave more SMs for compute; higher values speed up dispatch/combine. "
|
||||
"The optimal value depends on the EP degree and hardware."
|
||||
"Only used when ep_comm_backend='deepep'."
|
||||
),
|
||||
),
|
||||
] = 20
|
||||
|
||||
deepep_token_chunk_size: Annotated[
|
||||
int | None,
|
||||
Field(
|
||||
ge=1,
|
||||
description=(
|
||||
"Optional token chunk size for DeepEP MoE pipelining. "
|
||||
"When set, DeepEP dispatch for chunk i+1 is launched while experts compute chunk i. "
|
||||
"Only used when ep_comm_backend='deepep'."
|
||||
),
|
||||
),
|
||||
] = None
|
||||
|
||||
cp: Annotated[
|
||||
int,
|
||||
Field(
|
||||
@@ -347,6 +401,16 @@ class ModelConfig(BaseModelConfig):
|
||||
raise ValueError("Flash attention 4 is only supported with the custom implementation")
|
||||
return self
|
||||
|
||||
@model_validator(mode="after")
|
||||
def validate_ep_comm_backend(self):
|
||||
if self.ep_comm_backend == "torch":
|
||||
return self
|
||||
|
||||
if self.ep <= 1:
|
||||
raise ValueError(f"model.ep_comm_backend='{self.ep_comm_backend}' requires model.ep > 1.")
|
||||
|
||||
return self
|
||||
|
||||
|
||||
class TokenizerConfig(BaseConfig):
|
||||
"""Configuration for the tokenizer."""
|
||||
@@ -445,7 +509,13 @@ class MuonConfig(BaseOptimizerConfig):
|
||||
] = 0.95
|
||||
|
||||
|
||||
OptimizerConfig: TypeAlias = Annotated[SGDConfig | AdamWConfig | MuonConfig, Field(discriminator="type")]
|
||||
class SignSGDConfig(BaseOptimizerConfig):
|
||||
type: Literal["sign_sgd"] = "sign_sgd"
|
||||
|
||||
|
||||
OptimizerConfig: TypeAlias = Annotated[
|
||||
SGDConfig | AdamWConfig | MuonConfig | SignSGDConfig, Field(discriminator="type")
|
||||
]
|
||||
|
||||
|
||||
class WeightCheckpointConfig(BaseConfig):
|
||||
@@ -675,7 +745,7 @@ class TrainerConfig(BaseConfig):
|
||||
rollout_transport: TransportConfig = FileSystemTransportConfig()
|
||||
|
||||
# The logging configuration
|
||||
log: LogConfig = LogConfig()
|
||||
log: TrainerLogConfig = TrainerLogConfig()
|
||||
|
||||
# The wandb configuration
|
||||
wandb: WandbConfig | None = None
|
||||
@@ -718,6 +788,13 @@ class TrainerConfig(BaseConfig):
|
||||
),
|
||||
] = None
|
||||
|
||||
gc: Annotated[
|
||||
GCConfig | None,
|
||||
Field(
|
||||
description="Garbage collection config. Disables automatic GC and runs deterministic collections every N steps to avoid stragglers. Set to null to use Python's default GC behavior.",
|
||||
),
|
||||
] = GCConfig()
|
||||
|
||||
trace_path: Annotated[Path | None, Field(description="Path to write pytorch profiler trace to.")] = None
|
||||
|
||||
dist_timeout_seconds: Annotated[
|
||||
@@ -754,6 +831,15 @@ class TrainerConfig(BaseConfig):
|
||||
)
|
||||
return self
|
||||
|
||||
@model_validator(mode="after")
|
||||
def vlm_freeze_incompatible_with_lora(self):
|
||||
if self.model.vlm is not None and not self.model.vlm.freeze_vision_encoder and self.model.lora is not None:
|
||||
raise ValueError(
|
||||
"freeze_vision_encoder=false is incompatible with LoRA. "
|
||||
"LoRA freezes all non-adapter parameters including the vision encoder."
|
||||
)
|
||||
return self
|
||||
|
||||
@model_validator(mode="after")
|
||||
def auto_setup_bench(self):
|
||||
if self.bench is not None:
|
||||
|
||||
@@ -7,7 +7,7 @@ import tomli_w
|
||||
from prime_rl.configs.inference import InferenceConfig
|
||||
from prime_rl.utils.config import cli
|
||||
from prime_rl.utils.logger import setup_logger
|
||||
from prime_rl.utils.pathing import get_config_dir
|
||||
from prime_rl.utils.pathing import format_log_message, get_config_dir, get_log_dir
|
||||
|
||||
INFERENCE_TOML = "inference.toml"
|
||||
INFERENCE_SBATCH = "inference.sbatch"
|
||||
@@ -50,11 +50,15 @@ def write_slurm_script(config: InferenceConfig, config_path: Path, script_path:
|
||||
template_vars.update(
|
||||
num_prefill_nodes=config.deployment.num_prefill_nodes,
|
||||
num_decode_nodes=config.deployment.num_decode_nodes,
|
||||
num_prefill_replicas=config.deployment.num_prefill_replicas,
|
||||
num_decode_replicas=config.deployment.num_decode_replicas,
|
||||
prefill_port=config.deployment.prefill_port,
|
||||
decode_port=config.deployment.decode_port,
|
||||
router_port=config.deployment.router_port,
|
||||
data_parallel_rpc_port=config.data_parallel_rpc_port,
|
||||
use_deep_gemm=config.use_deep_gemm,
|
||||
prefill_env_overrides=config.deployment.prefill_env_overrides,
|
||||
decode_env_overrides=config.deployment.decode_env_overrides,
|
||||
)
|
||||
elif is_multi_node:
|
||||
template_vars.update(
|
||||
@@ -87,11 +91,9 @@ def inference_slurm(config: InferenceConfig):
|
||||
write_slurm_script(config, config_path, script_path)
|
||||
logger.info(f"Wrote SLURM script to {script_path}")
|
||||
|
||||
log_message = (
|
||||
f"Logs:\n"
|
||||
f" Job: tail -F {config.output_dir}/job_*.log\n"
|
||||
f" Inference: tail -F {config.output_dir}/slurm/latest_infer_node_rank_*.log\n"
|
||||
)
|
||||
log_dir = get_log_dir(config.output_dir)
|
||||
num_nodes = getattr(config.deployment, "num_nodes", 1)
|
||||
log_message = format_log_message(log_dir=log_dir, inference=True, job_log=True, num_infer_nodes=num_nodes)
|
||||
|
||||
if config.dry_run:
|
||||
logger.success(f"Dry run complete. To submit manually:\n\n sbatch {script_path}\n\n{log_message}")
|
||||
|
||||
@@ -14,7 +14,7 @@ import tomli_w
|
||||
from prime_rl.configs.rl import RLConfig
|
||||
from prime_rl.utils.config import cli
|
||||
from prime_rl.utils.logger import setup_logger
|
||||
from prime_rl.utils.pathing import validate_output_dir
|
||||
from prime_rl.utils.pathing import format_log_message, validate_output_dir
|
||||
from prime_rl.utils.process import cleanup_processes, cleanup_threads, monitor_process
|
||||
from prime_rl.utils.utils import (
|
||||
get_free_port,
|
||||
@@ -94,7 +94,6 @@ def rl_local(config: RLConfig):
|
||||
|
||||
logger = setup_logger(
|
||||
config.log.level or "info",
|
||||
log_file=config.output_dir / "logs" / "rl.log" if config.log.file else None,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
|
||||
@@ -176,7 +175,7 @@ def rl_local(config: RLConfig):
|
||||
logger.info(f"Starting inference on GPU(s) {' '.join(map(str, infer_gpu_ids))}")
|
||||
logger.debug(f"Inference start command: {' '.join(inference_cmd)}")
|
||||
# If we don't log stdout, the server hangs
|
||||
with open(log_dir / "inference.stdout", "w") as log_file:
|
||||
with open(log_dir / "inference.log", "w") as log_file:
|
||||
inference_process = Popen(
|
||||
inference_cmd,
|
||||
env={
|
||||
@@ -220,7 +219,7 @@ def rl_local(config: RLConfig):
|
||||
teacher_inference_cmd = ["uv", "run", "inference", "@", (config_dir / TEACHER_INFERENCE_TOML).as_posix()]
|
||||
logger.info(f"Starting teacher inference process on GPU(s) {' '.join(map(str, teacher_gpu_ids))}")
|
||||
logger.debug(f"Teacher inference start command: {' '.join(teacher_inference_cmd)}")
|
||||
with open(log_dir / "teacher_inference.stdout", "w") as log_file:
|
||||
with open(log_dir / "teacher_inference.log", "w") as log_file:
|
||||
teacher_inference_process = Popen(
|
||||
teacher_inference_cmd,
|
||||
env={
|
||||
@@ -260,7 +259,7 @@ def rl_local(config: RLConfig):
|
||||
]
|
||||
logger.info("Starting orchestrator process")
|
||||
logger.debug(f"Orchestrator start command: {' '.join(orchestrator_cmd)}")
|
||||
with open(log_dir / "orchestrator.stdout", "w") as log_file:
|
||||
with open(log_dir / "orchestrator.log", "w") as log_file:
|
||||
orchestrator_process = Popen(
|
||||
orchestrator_cmd,
|
||||
stdout=log_file,
|
||||
@@ -298,8 +297,8 @@ def rl_local(config: RLConfig):
|
||||
f"--rdzv-endpoint=localhost:{get_free_port()}",
|
||||
f"--rdzv-id={uuid.uuid4().hex}",
|
||||
# Pipe all logs to file, and only master rank logs to stdout
|
||||
f"--log-dir={config.output_dir / 'torchrun'}",
|
||||
"--local-ranks-filter=0",
|
||||
f"--log-dir={log_dir / 'trainer' / 'torchrun'}",
|
||||
f"--local-ranks-filter={','.join(map(str, config.trainer.log.ranks_filter))}",
|
||||
"--redirect=3",
|
||||
"--tee=3",
|
||||
f"--nproc-per-node={len(trainer_gpu_ids)}",
|
||||
@@ -310,7 +309,7 @@ def rl_local(config: RLConfig):
|
||||
]
|
||||
logger.info(f"Starting trainer on GPU(s) {' '.join(map(str, trainer_gpu_ids))}")
|
||||
logger.debug(f"Training start command: {' '.join(trainer_cmd)}")
|
||||
with open(log_dir / "trainer.stdout", "w") as log_file:
|
||||
with open(log_dir / "trainer.log", "w") as log_file:
|
||||
trainer_process = Popen(
|
||||
trainer_cmd,
|
||||
env={
|
||||
@@ -340,7 +339,7 @@ def rl_local(config: RLConfig):
|
||||
# Monitor all processes for failures
|
||||
logger.success("Startup complete. Showing trainer logs...")
|
||||
|
||||
tail_process = Popen(["tail", "-F", log_dir / "trainer.stdout"])
|
||||
tail_process = Popen(["tail", "-F", log_dir / "trainer.log"])
|
||||
processes.append(tail_process)
|
||||
|
||||
# Check for errors from monitor threads
|
||||
@@ -419,6 +418,8 @@ def write_slurm_script(config: RLConfig, config_dir: Path, script_path: Path) ->
|
||||
num_infer_replicas=config.deployment.num_infer_replicas,
|
||||
num_prefill_nodes=infer_deploy.num_prefill_nodes,
|
||||
num_decode_nodes=infer_deploy.num_decode_nodes,
|
||||
num_prefill_replicas=infer_deploy.num_prefill_replicas,
|
||||
num_decode_replicas=infer_deploy.num_decode_replicas,
|
||||
gpus_per_node=config.deployment.gpus_per_node,
|
||||
router_port=infer_deploy.router_port,
|
||||
prefill_port=infer_deploy.prefill_port,
|
||||
@@ -426,8 +427,11 @@ def write_slurm_script(config: RLConfig, config_dir: Path, script_path: Path) ->
|
||||
inference_tp=config.inference.parallel.tp,
|
||||
inference_data_parallel_rpc_port=config.inference.data_parallel_rpc_port,
|
||||
use_deep_gemm=config.inference.use_deep_gemm,
|
||||
prefill_env_overrides=infer_deploy.prefill_env_overrides,
|
||||
decode_env_overrides=infer_deploy.decode_env_overrides,
|
||||
use_nccl_broadcast=config.weight_broadcast is not None and config.weight_broadcast.type == "nccl",
|
||||
wandb_shared=config.wandb is not None and config.wandb.shared,
|
||||
ranks_filter=",".join(map(str, config.trainer.log.ranks_filter)),
|
||||
)
|
||||
else:
|
||||
script = template.render(
|
||||
@@ -449,64 +453,33 @@ def write_slurm_script(config: RLConfig, config_dir: Path, script_path: Path) ->
|
||||
inference_data_parallel_rpc_port=config.inference.data_parallel_rpc_port if config.inference else 29600,
|
||||
use_nccl_broadcast=config.weight_broadcast is not None and config.weight_broadcast.type == "nccl",
|
||||
wandb_shared=config.wandb is not None and config.wandb.shared,
|
||||
ranks_filter=",".join(map(str, config.trainer.log.ranks_filter)),
|
||||
)
|
||||
|
||||
script_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
script_path.write_text(script)
|
||||
|
||||
|
||||
def format_log_message(
|
||||
trainer_log: str,
|
||||
orchestrator_log: str | None,
|
||||
inference_log: str | None,
|
||||
env_log_dir: Path,
|
||||
train_env_names: list[str],
|
||||
eval_env_names: list[str],
|
||||
) -> str:
|
||||
col = 18
|
||||
i1 = " " * 2
|
||||
i2 = " " * 3
|
||||
i3 = " " * 4
|
||||
max_name = col - 4
|
||||
|
||||
log_lines = [f"{i1}{'Trainer:':<{col}}tail -F {trainer_log}"]
|
||||
if orchestrator_log:
|
||||
log_lines.append(f"{i1}{'Orchestrator:':<{col}}tail -F {orchestrator_log}")
|
||||
if inference_log:
|
||||
log_lines.append(f"{i1}{'Inference:':<{col}}tail -F {inference_log}")
|
||||
log_lines.append(f"{i1}{'Envs:':<{col}}tail -F {env_log_dir}/*/*/*.log")
|
||||
log_lines.append(f"{i2}{'Train:':<{col - 1}}tail -F {env_log_dir}/train/*/*.log")
|
||||
for name in train_env_names:
|
||||
short = name if len(name) <= max_name else name[: max_name - 3] + "..."
|
||||
log_lines.append(f"{i3}{f'{short}:':<{col - 2}}tail -F {env_log_dir}/train/{name}/*.log")
|
||||
if eval_env_names:
|
||||
log_lines.append(f"{i2}{'Eval:':<{col - 1}}tail -F {env_log_dir}/eval/*/*.log")
|
||||
for name in eval_env_names:
|
||||
short = name if len(name) <= max_name else name[: max_name - 3] + "..."
|
||||
log_lines.append(f"{i3}{f'{short}:':<{col - 2}}tail -F {env_log_dir}/eval/{name}/*.log")
|
||||
return "Logs:\n" + "\n".join(log_lines)
|
||||
|
||||
|
||||
def rl_slurm(config: RLConfig):
|
||||
assert config.slurm is not None
|
||||
|
||||
logger = setup_logger(config.log.level or "info", json_logging=config.log.json_logging)
|
||||
|
||||
config_dir = config.output_dir / "configs"
|
||||
log_dir = get_log_dir(config.output_dir)
|
||||
|
||||
if config.deployment.type == "single_node":
|
||||
write_config(config, config_dir, exclude={"slurm", "dry_run", "clean_output_dir"})
|
||||
logger.info(f"Wrote config to {config_dir / RL_TOML}")
|
||||
|
||||
log_dir = get_log_dir(config.output_dir)
|
||||
env_log_dir = get_log_dir(config.output_dir) / "envs"
|
||||
train_env_names = [env.resolved_name for env in config.orchestrator.env]
|
||||
eval_env_names = [env.resolved_name for env in config.orchestrator.eval.env] if config.orchestrator.eval else []
|
||||
|
||||
log_message = format_log_message(
|
||||
trainer_log=f"{log_dir}/trainer.stdout",
|
||||
orchestrator_log=f"{log_dir}/orchestrator.stdout",
|
||||
inference_log=f"{log_dir}/inference.stdout",
|
||||
env_log_dir=env_log_dir,
|
||||
log_dir=log_dir,
|
||||
trainer=True,
|
||||
orchestrator=True,
|
||||
inference=True,
|
||||
train_env_names=train_env_names,
|
||||
eval_env_names=eval_env_names,
|
||||
)
|
||||
@@ -514,19 +487,19 @@ def rl_slurm(config: RLConfig):
|
||||
write_subconfigs(config, config_dir)
|
||||
logger.info(f"Wrote subconfigs to {config_dir}")
|
||||
|
||||
slurm_log_dir = config.output_dir / "slurm"
|
||||
env_log_dir = get_log_dir(config.output_dir) / "envs"
|
||||
train_env_names = [env.resolved_name for env in config.orchestrator.env]
|
||||
eval_env_names = [env.resolved_name for env in config.orchestrator.eval.env] if config.orchestrator.eval else []
|
||||
|
||||
has_infer = config.deployment.num_infer_nodes > 0
|
||||
log_message = format_log_message(
|
||||
trainer_log=f"{slurm_log_dir}/latest_train_node_rank_0.log",
|
||||
orchestrator_log=f"{slurm_log_dir}/latest_orchestrator.log" if has_infer else None,
|
||||
inference_log=f"{slurm_log_dir}/latest_infer_node_rank_0.log" if has_infer else None,
|
||||
env_log_dir=env_log_dir,
|
||||
log_dir=log_dir,
|
||||
trainer=True,
|
||||
orchestrator=has_infer,
|
||||
inference=has_infer,
|
||||
train_env_names=train_env_names,
|
||||
eval_env_names=eval_env_names,
|
||||
num_train_nodes=config.deployment.num_train_nodes,
|
||||
num_infer_nodes=config.deployment.total_infer_nodes if has_infer else 0,
|
||||
)
|
||||
|
||||
script_path = config.output_dir / RL_SBATCH
|
||||
|
||||
@@ -11,7 +11,7 @@ import tomli_w
|
||||
from prime_rl.configs.sft import SFTConfig
|
||||
from prime_rl.utils.config import cli
|
||||
from prime_rl.utils.logger import setup_logger
|
||||
from prime_rl.utils.pathing import get_config_dir, get_log_dir, validate_output_dir
|
||||
from prime_rl.utils.pathing import format_log_message, get_config_dir, get_log_dir, validate_output_dir
|
||||
from prime_rl.utils.process import cleanup_processes, cleanup_threads, monitor_process
|
||||
from prime_rl.utils.utils import get_free_port
|
||||
|
||||
@@ -51,6 +51,7 @@ def write_slurm_script(config: SFTConfig, config_path: Path, script_path: Path)
|
||||
output_dir=config.output_dir,
|
||||
num_nodes=config.deployment.num_nodes,
|
||||
gpus_per_node=config.deployment.gpus_per_node,
|
||||
ranks_filter=",".join(map(str, config.log.ranks_filter)),
|
||||
)
|
||||
|
||||
script_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
@@ -77,10 +78,9 @@ def sft_slurm(config: SFTConfig):
|
||||
write_slurm_script(config, config_path, script_path)
|
||||
logger.info(f"Wrote SLURM script to {script_path}")
|
||||
|
||||
if config.deployment.type == "single_node":
|
||||
log_message = f"Logs:\n Trainer: tail -F {get_log_dir(config.output_dir)}/trainer/rank_0.log"
|
||||
else:
|
||||
log_message = f"Logs:\n Trainer: tail -F {config.output_dir}/slurm/latest_train_node_rank_*.log"
|
||||
log_dir = get_log_dir(config.output_dir)
|
||||
num_nodes = config.deployment.num_nodes if config.deployment.type == "multi_node" else 1
|
||||
log_message = format_log_message(log_dir=log_dir, trainer=True, num_train_nodes=num_nodes)
|
||||
|
||||
if config.dry_run:
|
||||
logger.success(f"Dry run complete. To submit manually:\n\n sbatch {script_path}\n\n{log_message}")
|
||||
@@ -122,8 +122,8 @@ def sft_local(config: SFTConfig):
|
||||
"torchrun",
|
||||
f"--rdzv-endpoint=localhost:{get_free_port()}",
|
||||
f"--rdzv-id={uuid.uuid4().hex}",
|
||||
f"--log-dir={config.output_dir / 'torchrun'}",
|
||||
"--local-ranks-filter=0",
|
||||
f"--log-dir={config.output_dir / 'logs' / 'trainer' / 'torchrun'}",
|
||||
f"--local-ranks-filter={','.join(map(str, config.log.ranks_filter))}",
|
||||
"--redirect=3",
|
||||
"--tee=3",
|
||||
f"--nproc-per-node={config.deployment.num_gpus}",
|
||||
@@ -141,7 +141,7 @@ def sft_local(config: SFTConfig):
|
||||
error_queue: list[Exception] = []
|
||||
|
||||
try:
|
||||
with open(log_dir / "trainer.stdout", "w") as log_file:
|
||||
with open(log_dir / "trainer.log", "w") as log_file:
|
||||
trainer_process = Popen(
|
||||
trainer_cmd,
|
||||
env={
|
||||
@@ -163,7 +163,7 @@ def sft_local(config: SFTConfig):
|
||||
monitor_threads.append(monitor_thread)
|
||||
|
||||
logger.success("Startup complete. Showing trainer logs...")
|
||||
tail_process = Popen(["tail", "-F", str(log_dir / "trainer.stdout")])
|
||||
tail_process = Popen(["tail", "-F", str(log_dir / "trainer.log")])
|
||||
processes.append(tail_process)
|
||||
|
||||
stop_event.wait()
|
||||
|
||||
@@ -64,40 +64,6 @@ def _patch_qwen35_lora():
|
||||
MergedColumnParallelLinearWithShardedLoRA.slice_lora_a = slice_lora_a
|
||||
|
||||
|
||||
# Monkeypatch PrometheusStatLogger to avoid NotImplementedError for LoRA in DP mode
|
||||
def monkey_patch_prometheus_stat_logger_for_lora_in_dp_mode():
|
||||
from vllm.v1.metrics import loggers as vllm_metrics_loggers
|
||||
|
||||
_original_prometheus_stat_logger_init = vllm_metrics_loggers.PrometheusStatLogger.__init__
|
||||
|
||||
def _patched_prometheus_stat_logger_init(self, vllm_config, engine_indexes=None):
|
||||
"""Patched init that temporarily disables lora_config to skip the DP mode check."""
|
||||
original_lora_config = vllm_config.lora_config
|
||||
vllm_config.lora_config = None
|
||||
try:
|
||||
_original_prometheus_stat_logger_init(self, vllm_config, engine_indexes)
|
||||
finally:
|
||||
vllm_config.lora_config = original_lora_config
|
||||
# Re-initialize LoRA metrics if needed (after the DP check is bypassed)
|
||||
if original_lora_config is not None:
|
||||
self.labelname_max_lora = "max_lora"
|
||||
self.labelname_waiting_lora_adapters = "waiting_lora_adapters"
|
||||
self.labelname_running_lora_adapters = "running_lora_adapters"
|
||||
self.max_lora = original_lora_config.max_loras
|
||||
self.gauge_lora_info = vllm_metrics_loggers.PrometheusStatLogger._gauge_cls(
|
||||
name="vllm:lora_requests_info",
|
||||
documentation="Running stats on lora requests.",
|
||||
multiprocess_mode="sum",
|
||||
labelnames=[
|
||||
self.labelname_max_lora,
|
||||
self.labelname_waiting_lora_adapters,
|
||||
self.labelname_running_lora_adapters,
|
||||
],
|
||||
)
|
||||
|
||||
vllm_metrics_loggers.PrometheusStatLogger.__init__ = _patched_prometheus_stat_logger_init
|
||||
|
||||
|
||||
# Monkeypatch LoadLoRAAdapter to allow loading the same adapter multiple times
|
||||
def monkey_patch_load_lora_adapter():
|
||||
from http import HTTPStatus
|
||||
|
||||
@@ -7,9 +7,7 @@ from fastapi import APIRouter, Depends, HTTPException, Request
|
||||
from fastapi.responses import JSONResponse, StreamingResponse
|
||||
from starlette.datastructures import State
|
||||
from vllm.engine.protocol import EngineClient
|
||||
from vllm.entrypoints.chat_utils import load_chat_template
|
||||
from vllm.entrypoints.cli.serve import run_api_server_worker_proc
|
||||
from vllm.entrypoints.logger import RequestLogger
|
||||
from vllm.entrypoints.openai.api_server import init_app_state
|
||||
from vllm.entrypoints.openai.chat_completion.protocol import ChatCompletionResponse
|
||||
from vllm.entrypoints.openai.cli_args import make_arg_parser, validate_parsed_serve_args
|
||||
@@ -138,7 +136,6 @@ from prime_rl.inference.patches import (
|
||||
monkey_patch_harmony_stop_token_propagation,
|
||||
monkey_patch_hermes_tool_parser_thread_safety,
|
||||
monkey_patch_load_lora_adapter,
|
||||
monkey_patch_prometheus_stat_logger_for_lora_in_dp_mode,
|
||||
monkey_patch_tokenize_params_validation,
|
||||
monkey_patch_tokenizer_thread_safety,
|
||||
)
|
||||
@@ -149,8 +146,6 @@ from prime_rl.inference.vllm.serving_chat_with_tokens import (
|
||||
|
||||
# NOTE: Fix harmony stop token propagation for GPT-OSS models (vLLM 0.17.0 bug)
|
||||
monkey_patch_harmony_stop_token_propagation()
|
||||
# NOTE: Monkeypatch PrometheusStatLogger to avoid NotImplementedError for LoRA in DP mode
|
||||
monkey_patch_prometheus_stat_logger_for_lora_in_dp_mode()
|
||||
# NOTE: Monkeypatch LoadLoRAAdapter to allow loading the same adapter multiple times
|
||||
monkey_patch_load_lora_adapter()
|
||||
# NOTE: Monkeypatch TokenizeParams to fix overly conservative validation
|
||||
@@ -277,30 +272,26 @@ async def custom_init_app_state(
|
||||
args: Namespace,
|
||||
supported_tasks: tuple,
|
||||
):
|
||||
"""
|
||||
Modifies init_app_state:
|
||||
1. Set up the custom OpenAIServingChatWithTokens state.
|
||||
2. Monkey-patch to allow updating lora adapters in-place.
|
||||
"""
|
||||
"""Extend upstream app-state setup with PrimeRL's token-returning chat path."""
|
||||
# Setup the regular app state first (in-place)
|
||||
await init_app_state(engine_client, state, args, supported_tasks)
|
||||
if "generate" not in supported_tasks:
|
||||
state.openai_serving_chat_with_tokens = None
|
||||
return
|
||||
|
||||
# NOTE: Initialize the custom OpenAIServingChatWithTokens state here
|
||||
# TODO: Here, we repeat some calls done in init_app_state to be able to
|
||||
# correctly set up the OpenAIServingChatWithTokens state, which is a bit
|
||||
# brittle, and could probably be made nicer
|
||||
if args.enable_log_requests:
|
||||
request_logger = RequestLogger(max_log_len=args.max_log_len)
|
||||
else:
|
||||
request_logger = None
|
||||
|
||||
resolved_chat_template = load_chat_template(args.chat_template)
|
||||
|
||||
chat_kwargs = dict(
|
||||
request_logger=request_logger,
|
||||
chat_template=resolved_chat_template,
|
||||
chat_template_content_format=args.chat_template_content_format,
|
||||
trust_request_chat_template=args.trust_request_chat_template,
|
||||
# vLLM 0.18.0 centralizes chat-serving setup in openai_serving_render.
|
||||
# Reuse that state so our custom handler stays aligned with upstream.
|
||||
serving_render = state.openai_serving_render
|
||||
serving_chat = OpenAIServingChatWithTokens(
|
||||
engine_client,
|
||||
state.openai_serving_models,
|
||||
args.response_role,
|
||||
openai_serving_render=serving_render,
|
||||
request_logger=serving_render.request_logger,
|
||||
chat_template=serving_render.chat_template,
|
||||
chat_template_content_format=serving_render.chat_template_content_format,
|
||||
default_chat_template_kwargs=serving_render.default_chat_template_kwargs,
|
||||
trust_request_chat_template=serving_render.trust_request_chat_template,
|
||||
return_tokens_as_token_ids=args.return_tokens_as_token_ids,
|
||||
enable_auto_tools=args.enable_auto_tool_choice,
|
||||
exclude_tools_when_tool_choice_none=args.exclude_tools_when_tool_choice_none,
|
||||
@@ -309,18 +300,11 @@ async def custom_init_app_state(
|
||||
enable_prompt_tokens_details=args.enable_prompt_tokens_details,
|
||||
enable_force_include_usage=args.enable_force_include_usage,
|
||||
enable_log_outputs=args.enable_log_outputs,
|
||||
enable_log_deltas=args.enable_log_deltas,
|
||||
)
|
||||
if hasattr(args, "log_error_stack"):
|
||||
chat_kwargs["log_error_stack"] = args.log_error_stack
|
||||
|
||||
serving_chat = OpenAIServingChatWithTokens(
|
||||
engine_client,
|
||||
state.openai_serving_models,
|
||||
args.response_role,
|
||||
**chat_kwargs,
|
||||
)
|
||||
state.openai_serving_chat = serving_chat if "generate" in supported_tasks else None
|
||||
state.openai_serving_chat_with_tokens = serving_chat if "generate" in supported_tasks else None
|
||||
serving_chat.warmup()
|
||||
state.openai_serving_chat = serving_chat
|
||||
state.openai_serving_chat_with_tokens = serving_chat
|
||||
|
||||
|
||||
def custom_run_api_server_worker_proc(listen_address, sock, args, client_config=None, **uvicorn_kwargs) -> None:
|
||||
|
||||
@@ -2,7 +2,6 @@ import asyncio
|
||||
import atexit
|
||||
import gc
|
||||
import multiprocessing as mp
|
||||
import random
|
||||
import time
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
@@ -83,7 +82,6 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
# Initialize the logger
|
||||
logger = setup_logger(
|
||||
config.log.level,
|
||||
log_file=config.output_dir / "logs" / "orchestrator.log" if config.log.file else None,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
intercept_vf_logging(logger="verifiers.serve", level=config.log.vf_level) # show logs from env clients
|
||||
@@ -823,9 +821,8 @@ async def orchestrate(config: OrchestratorConfig):
|
||||
# Log metrics to monitor(s)
|
||||
monitor.log(to_log, step=progress.step)
|
||||
|
||||
# Log samples to monitor(s) if enabled
|
||||
subset_train_rollouts = random.sample(train_rollouts, min(8, len(train_rollouts)))
|
||||
monitor.log_samples(subset_train_rollouts, step=progress.step)
|
||||
# Log samples to monitor(s) if enabled.
|
||||
monitor.log_samples(train_rollouts, step=progress.step)
|
||||
|
||||
# Log distributions (rewards, advantages) if enabled
|
||||
monitor.log_distributions(
|
||||
|
||||
@@ -27,7 +27,11 @@ export GPUS_PER_NODE={{ gpus_per_node }}
|
||||
{% if disaggregated -%}
|
||||
export NUM_PREFILL_NODES={{ num_prefill_nodes }}
|
||||
export NUM_DECODE_NODES={{ num_decode_nodes }}
|
||||
export NUM_PREFILL_REPLICAS={{ num_prefill_replicas }}
|
||||
export NUM_DECODE_REPLICAS={{ num_decode_replicas }}
|
||||
export NODES_PER_REPLICA=$((NUM_PREFILL_NODES + NUM_DECODE_NODES))
|
||||
export NODES_PER_PREFILL_REPLICA=$((NUM_PREFILL_NODES / NUM_PREFILL_REPLICAS))
|
||||
export NODES_PER_DECODE_REPLICA=$((NUM_DECODE_NODES / NUM_DECODE_REPLICAS))
|
||||
export PREFILL_PORT={{ prefill_port }}
|
||||
export DECODE_PORT={{ decode_port }}
|
||||
export ROUTER_PORT={{ router_port }}
|
||||
@@ -41,7 +45,8 @@ export BACKEND_PORT={{ backend_port }}
|
||||
export PROJECT_DIR={{ project_dir }}
|
||||
export CONFIG_PATH={{ config_path }}
|
||||
export OUTPUT_DIR={{ output_dir }}
|
||||
mkdir -p $OUTPUT_DIR/slurm
|
||||
mkdir -p $OUTPUT_DIR/logs/inference
|
||||
ln -sfn inference/node_0.log $OUTPUT_DIR/logs/inference.log
|
||||
|
||||
# General
|
||||
export CUDA_DEVICE_ORDER=PCI_BUS_ID
|
||||
@@ -142,19 +147,24 @@ srun bash -c '
|
||||
KV_CFG='"'"'{"kv_connector":"NixlConnector","kv_role":"kv_both","kv_connector_extra_config":{"num_threads":1}}'"'"'
|
||||
DECODE_COMPILE_CFG='"'"'{"cudagraph_mode":"FULL_DECODE_ONLY"}'"'"'
|
||||
|
||||
# Determine replica and role
|
||||
# Determine outer replica (P/D pair) and role
|
||||
REPLICA_IDX=$((INFER_NODE_RANK / NODES_PER_REPLICA))
|
||||
RANK_IN_REPLICA=$((INFER_NODE_RANK % NODES_PER_REPLICA))
|
||||
REPLICA_BASE=$((REPLICA_IDX * NODES_PER_REPLICA))
|
||||
|
||||
if [ "$RANK_IN_REPLICA" -lt "$NUM_PREFILL_NODES" ]; then
|
||||
# ── Prefill node ──
|
||||
ROLE="prefill"
|
||||
ROLE_RANK=$RANK_IN_REPLICA
|
||||
EP=$((NUM_PREFILL_NODES * GPUS_PER_NODE))
|
||||
SUB_REPLICA=$((RANK_IN_REPLICA / NODES_PER_PREFILL_REPLICA))
|
||||
ROLE_RANK=$((RANK_IN_REPLICA % NODES_PER_PREFILL_REPLICA))
|
||||
EP=$((NODES_PER_PREFILL_REPLICA * GPUS_PER_NODE))
|
||||
PORT=$PREFILL_PORT
|
||||
START_RANK=$((ROLE_RANK * GPUS_PER_NODE))
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_IDX * NODES_PER_REPLICA))]}"
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_BASE + SUB_REPLICA * NODES_PER_PREFILL_REPLICA))]}"
|
||||
|
||||
{% for key, value in prefill_env_overrides.items() %}
|
||||
export {{ key }}="{{ value }}"
|
||||
{% endfor %}
|
||||
ROLE_EXTRA="\"all2all_backend\": \"deepep_high_throughput\""
|
||||
|
||||
if [ "$ROLE_RANK" -eq 0 ]; then
|
||||
@@ -166,12 +176,17 @@ srun bash -c '
|
||||
# ── Decode node ──
|
||||
export UCX_NET_DEVICES=mlx5_0:1
|
||||
ROLE="decode"
|
||||
ROLE_RANK=$((RANK_IN_REPLICA - NUM_PREFILL_NODES))
|
||||
EP=$((NUM_DECODE_NODES * GPUS_PER_NODE))
|
||||
RANK_IN_DECODE=$((RANK_IN_REPLICA - NUM_PREFILL_NODES))
|
||||
SUB_REPLICA=$((RANK_IN_DECODE / NODES_PER_DECODE_REPLICA))
|
||||
ROLE_RANK=$((RANK_IN_DECODE % NODES_PER_DECODE_REPLICA))
|
||||
EP=$((NODES_PER_DECODE_REPLICA * GPUS_PER_NODE))
|
||||
PORT=$DECODE_PORT
|
||||
START_RANK=$((ROLE_RANK * GPUS_PER_NODE))
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_IDX * NODES_PER_REPLICA + NUM_PREFILL_NODES))]}"
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_BASE + NUM_PREFILL_NODES + SUB_REPLICA * NODES_PER_DECODE_REPLICA))]}"
|
||||
|
||||
{% for key, value in decode_env_overrides.items() %}
|
||||
export {{ key }}="{{ value }}"
|
||||
{% endfor %}
|
||||
ROLE_EXTRA="\"all2all_backend\": \"deepep_low_latency\", \"compilation_config\": $DECODE_COMPILE_CFG"
|
||||
|
||||
if [ "$ROLE_RANK" -eq 0 ]; then
|
||||
@@ -181,13 +196,12 @@ srun bash -c '
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "NODE_RANK=$INFER_NODE_RANK ROLE=$ROLE REPLICA=$REPLICA_IDX ROLE_RANK=$ROLE_RANK EP=$EP PORT=$PORT LOCAL_IP=$LOCAL_IP" \
|
||||
| tee $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
echo "NODE_RANK=$INFER_NODE_RANK ROLE=$ROLE REPLICA=$REPLICA_IDX SUB_REPLICA=$SUB_REPLICA ROLE_RANK=$ROLE_RANK EP=$EP PORT=$PORT LOCAL_IP=$LOCAL_IP" \
|
||||
| tee $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
|
||||
# Start vllm-router on the first prefill node of each replica (background)
|
||||
if [ "$RANK_IN_REPLICA" -eq 0 ]; then
|
||||
ROUTER_LOG="$OUTPUT_DIR/slurm/latest_router_replica_${REPLICA_IDX}.log"
|
||||
ROUTER_LOG="$OUTPUT_DIR/logs/inference/router_${REPLICA_IDX}.log"
|
||||
echo "Starting vllm-router on $LOCAL_IP:$ROUTER_PORT for replica $REPLICA_IDX" | tee $ROUTER_LOG
|
||||
|
||||
REPLICA_ROUTER_ARGS=$(echo "$ALL_ROUTER_ARGS" | cut -d"|" -f$((REPLICA_IDX + 1)))
|
||||
@@ -211,18 +225,16 @@ srun bash -c '
|
||||
--parallel.dp $EP \
|
||||
--data-parallel-rpc-port $RPC_PORT \
|
||||
--vllm-extra "$VLLM_EXTRA" \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
{%- elif num_nodes > 1 %}
|
||||
echo "INFER_NODE_RANK=${INFER_NODE_RANK}, LOCAL_IP=${LOCAL_IP}" \
|
||||
| tee $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
| tee $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
|
||||
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:False
|
||||
|
||||
# Start router on node 0
|
||||
if [ "$INFER_NODE_RANK" -eq 0 ]; then
|
||||
ROUTER_LOG="$OUTPUT_DIR/slurm/latest_router.log"
|
||||
ROUTER_LOG="$OUTPUT_DIR/logs/inference/router.log"
|
||||
echo "Starting vllm-router on $LOCAL_IP:$ROUTER_PORT" | tee $ROUTER_LOG
|
||||
|
||||
vllm-router \
|
||||
@@ -239,16 +251,14 @@ srun bash -c '
|
||||
@ $CONFIG_PATH \
|
||||
--server.host 0.0.0.0 \
|
||||
--server.port $BACKEND_PORT \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
{%- else %}
|
||||
echo "INFER_NODE_RANK=${INFER_NODE_RANK}, LOCAL_IP=${LOCAL_IP}" | tee $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log $OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
|
||||
echo "INFER_NODE_RANK=${INFER_NODE_RANK}, LOCAL_IP=${LOCAL_IP}" | tee $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
# Required for graph compilation to work
|
||||
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:False
|
||||
|
||||
uv run inference \
|
||||
@ $CONFIG_PATH \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log $OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
{%- endif %}
|
||||
'
|
||||
|
||||
@@ -35,6 +35,10 @@ export INFERENCE_DATA_PARALLEL_RPC_PORT={{ inference_data_parallel_rpc_port }}
|
||||
{% if is_disaggregated -%}
|
||||
export NUM_PREFILL_NODES={{ num_prefill_nodes }}
|
||||
export NUM_DECODE_NODES={{ num_decode_nodes }}
|
||||
export NUM_PREFILL_REPLICAS={{ num_prefill_replicas }}
|
||||
export NUM_DECODE_REPLICAS={{ num_decode_replicas }}
|
||||
export NODES_PER_PREFILL_REPLICA=$((NUM_PREFILL_NODES / NUM_PREFILL_REPLICAS))
|
||||
export NODES_PER_DECODE_REPLICA=$((NUM_DECODE_NODES / NUM_DECODE_REPLICAS))
|
||||
export PREFILL_PORT={{ prefill_port }}
|
||||
export DECODE_PORT={{ decode_port }}
|
||||
{%- else -%}
|
||||
@@ -54,7 +58,9 @@ export PROJECT_DIR={{ project_dir }}
|
||||
export CONFIG_DIR={{ config_dir }}
|
||||
export OUTPUT_DIR={{ output_dir }}
|
||||
export ORCHESTRATOR_OUTPUT_DIR={{ orchestrator_output_dir }}
|
||||
mkdir -p $OUTPUT_DIR/slurm
|
||||
mkdir -p $OUTPUT_DIR/logs/trainer $OUTPUT_DIR/logs/inference
|
||||
ln -sfn trainer/node_0.log $OUTPUT_DIR/logs/trainer.log
|
||||
ln -sfn inference/node_0.log $OUTPUT_DIR/logs/inference.log
|
||||
|
||||
# Clear previous rollouts and broadcast flags from ALL runs (not just the current one)
|
||||
# to prevent the trainer from training on stale data from old run_* directories.
|
||||
@@ -180,8 +186,7 @@ if [ "$SLURM_PROCID" -lt "$NUM_INFER_NODES" ]; then
|
||||
RANK_IN_REPLICA=$((INFER_NODE_RANK % NODES_PER_INFER_REPLICA))
|
||||
|
||||
echo "INFER_NODE_RANK=$INFER_NODE_RANK REPLICA=$REPLICA_IDX RANK_IN_REPLICA=$RANK_IN_REPLICA LOCAL_IP=$LOCAL_IP" \
|
||||
| tee $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
| tee $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
|
||||
{% if is_disaggregated -%}
|
||||
# PD disaggregated: NIXL KV transfer + role-based inference
|
||||
@@ -201,28 +206,38 @@ if [ "$SLURM_PROCID" -lt "$NUM_INFER_NODES" ]; then
|
||||
KV_CFG='"'"'{"kv_connector":"NixlConnector","kv_role":"kv_both","kv_connector_extra_config":{"num_threads":1}}'"'"'
|
||||
DECODE_COMPILE_CFG='"'"'{"cudagraph_mode":"FULL_DECODE_ONLY"}'"'"'
|
||||
|
||||
REPLICA_BASE=$((REPLICA_IDX * NODES_PER_INFER_REPLICA))
|
||||
|
||||
if [ "$RANK_IN_REPLICA" -lt "$NUM_PREFILL_NODES" ]; then
|
||||
ROLE="prefill"
|
||||
ROLE_RANK=$RANK_IN_REPLICA
|
||||
DP=$((NUM_PREFILL_NODES * INFERENCE_DP_LOCAL))
|
||||
SUB_REPLICA=$((RANK_IN_REPLICA / NODES_PER_PREFILL_REPLICA))
|
||||
ROLE_RANK=$((RANK_IN_REPLICA % NODES_PER_PREFILL_REPLICA))
|
||||
DP=$((NODES_PER_PREFILL_REPLICA * INFERENCE_DP_LOCAL))
|
||||
PORT=$PREFILL_PORT
|
||||
START_RANK=$((ROLE_RANK * INFERENCE_DP_LOCAL))
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_IDX * NODES_PER_INFER_REPLICA))]}"
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_BASE + SUB_REPLICA * NODES_PER_PREFILL_REPLICA))]}"
|
||||
{% for key, value in prefill_env_overrides.items() %}
|
||||
export {{ key }}="{{ value }}"
|
||||
{% endfor %}
|
||||
ROLE_EXTRA="\"all2all_backend\": \"deepep_high_throughput\""
|
||||
else
|
||||
export UCX_NET_DEVICES=mlx5_0:1
|
||||
ROLE="decode"
|
||||
ROLE_RANK=$((RANK_IN_REPLICA - NUM_PREFILL_NODES))
|
||||
DP=$((NUM_DECODE_NODES * INFERENCE_DP_LOCAL))
|
||||
RANK_IN_DECODE=$((RANK_IN_REPLICA - NUM_PREFILL_NODES))
|
||||
SUB_REPLICA=$((RANK_IN_DECODE / NODES_PER_DECODE_REPLICA))
|
||||
ROLE_RANK=$((RANK_IN_DECODE % NODES_PER_DECODE_REPLICA))
|
||||
DP=$((NODES_PER_DECODE_REPLICA * INFERENCE_DP_LOCAL))
|
||||
PORT=$DECODE_PORT
|
||||
START_RANK=$((ROLE_RANK * INFERENCE_DP_LOCAL))
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_IDX * NODES_PER_INFER_REPLICA + NUM_PREFILL_NODES))]}"
|
||||
HEAD_HOST="${HOSTNAMES[$((REPLICA_BASE + NUM_PREFILL_NODES + SUB_REPLICA * NODES_PER_DECODE_REPLICA))]}"
|
||||
{% for key, value in decode_env_overrides.items() %}
|
||||
export {{ key }}="{{ value }}"
|
||||
{% endfor %}
|
||||
ROLE_EXTRA="\"all2all_backend\": \"deepep_low_latency\", \"compilation_config\": $DECODE_COMPILE_CFG"
|
||||
fi
|
||||
|
||||
echo "ROLE=$ROLE REPLICA=$REPLICA_IDX ROLE_RANK=$ROLE_RANK DP=$DP PORT=$PORT" \
|
||||
| tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
echo "ROLE=$ROLE REPLICA=$REPLICA_IDX SUB_REPLICA=$SUB_REPLICA ROLE_RANK=$ROLE_RANK DP=$DP PORT=$PORT" \
|
||||
| tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
|
||||
if [ "$DP" -gt 1 ]; then
|
||||
if [ "$ROLE_RANK" -eq 0 ]; then
|
||||
@@ -236,7 +251,7 @@ if [ "$SLURM_PROCID" -lt "$NUM_INFER_NODES" ]; then
|
||||
|
||||
# Start vllm-router on the first node of each replica (PD mode)
|
||||
if [ "$RANK_IN_REPLICA" -eq 0 ]; then
|
||||
ROUTER_LOG="$OUTPUT_DIR/slurm/latest_router_replica_${REPLICA_IDX}.log"
|
||||
ROUTER_LOG="$OUTPUT_DIR/logs/inference/router_${REPLICA_IDX}.log"
|
||||
echo "Starting vllm-router (PD) on $LOCAL_IP:$ROUTER_PORT for replica $REPLICA_IDX" | tee $ROUTER_LOG
|
||||
|
||||
REPLICA_ROUTER_ARGS=$(echo "$ALL_ROUTER_ARGS" | cut -d"|" -f$((REPLICA_IDX + 1)))
|
||||
@@ -259,12 +274,11 @@ if [ "$SLURM_PROCID" -lt "$NUM_INFER_NODES" ]; then
|
||||
--parallel.dp $DP \
|
||||
--data-parallel-rpc-port $INFERENCE_DATA_PARALLEL_RPC_PORT \
|
||||
--vllm-extra "$VLLM_EXTRA" \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
{%- else -%}
|
||||
# Start vllm-router on the first node of each replica
|
||||
if [ "$RANK_IN_REPLICA" -eq 0 ]; then
|
||||
ROUTER_LOG="$OUTPUT_DIR/slurm/latest_router_replica_${REPLICA_IDX}.log"
|
||||
ROUTER_LOG="$OUTPUT_DIR/logs/inference/router_${REPLICA_IDX}.log"
|
||||
echo "Starting vllm-router on $LOCAL_IP:$ROUTER_PORT for replica $REPLICA_IDX" | tee $ROUTER_LOG
|
||||
|
||||
REPLICA_ROUTER_ARGS=$(echo "$ALL_ROUTER_ARGS" | cut -d"|" -f$((REPLICA_IDX + 1)))
|
||||
@@ -295,15 +309,13 @@ if [ "$SLURM_PROCID" -lt "$NUM_INFER_NODES" ]; then
|
||||
--server.port $BACKEND_PORT \
|
||||
--data-parallel-rpc-port $INFERENCE_DATA_PARALLEL_RPC_PORT \
|
||||
--vllm-extra "$VLLM_EXTRA" \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
else
|
||||
uv run inference \
|
||||
@ $CONFIG_DIR/inference.toml \
|
||||
--server.host 0.0.0.0 \
|
||||
--server.port $BACKEND_PORT \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_infer_node_rank_${INFER_NODE_RANK}.log \
|
||||
$OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_infer_node_rank_${INFER_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/inference/node_${INFER_NODE_RANK}.log
|
||||
fi
|
||||
{%- endif %}
|
||||
|
||||
@@ -316,7 +328,7 @@ else
|
||||
ORCHESTRATOR_ARGS="$ORCHESTRATOR_ARGS --client.admin-base-url $ADMIN_URLS"
|
||||
{% if use_nccl_broadcast %}ORCHESTRATOR_ARGS="$ORCHESTRATOR_ARGS --weight_broadcast.host $MASTER_ADDR"
|
||||
{% endif %}{% if wandb_shared %}WANDB_SHARED_LABEL=orchestrator {% endif %}uv run orchestrator $ORCHESTRATOR_ARGS \
|
||||
2>&1 | tee $OUTPUT_DIR/slurm/latest_orchestrator.log $OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_orchestrator.log &
|
||||
2>&1 | tee $OUTPUT_DIR/logs/orchestrator.log &
|
||||
fi
|
||||
{%- else %}
|
||||
TRAIN_NODE_RANK=$SLURM_PROCID
|
||||
@@ -327,7 +339,7 @@ else
|
||||
# This is required for compilation to work correctly
|
||||
export PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True"
|
||||
|
||||
echo $HOSTNAMES_STR | tee $OUTPUT_DIR/slurm/latest_train_node_rank_${TRAIN_NODE_RANK}.log
|
||||
echo $HOSTNAMES_STR | tee $OUTPUT_DIR/logs/trainer/node_${TRAIN_NODE_RANK}.log
|
||||
|
||||
{% if wandb_shared %}WANDB_SHARED_LABEL=trainer {% endif %}uv run torchrun \
|
||||
--nnodes=$NUM_TRAIN_NODES \
|
||||
@@ -335,12 +347,12 @@ else
|
||||
--node-rank=$TRAIN_NODE_RANK \
|
||||
--rdzv-endpoint=$MASTER_ADDR:$MASTER_PORT \
|
||||
--rdzv-id=job_$SLURM_JOB_ID \
|
||||
--log-dir=$OUTPUT_DIR/torchrun \
|
||||
--log-dir=$OUTPUT_DIR/logs/trainer/torchrun \
|
||||
--tee=3 \
|
||||
--redirects=3 \
|
||||
--local-ranks-filter=$(seq -s, 0 $((GPUS_PER_NODE - 1))) \
|
||||
--local-ranks-filter={{ ranks_filter }} \
|
||||
-m prime_rl.trainer.rl.train \
|
||||
@ $CONFIG_DIR/trainer.toml \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_train_node_rank_${TRAIN_NODE_RANK}.log $OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_train_node_rank_${TRAIN_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/trainer/node_${TRAIN_NODE_RANK}.log
|
||||
{% if num_infer_nodes > 0 %} fi{% endif %}
|
||||
'
|
||||
|
||||
@@ -29,7 +29,8 @@ export GPUS_PER_NODE={{ gpus_per_node }}
|
||||
export PROJECT_DIR={{ project_dir }}
|
||||
export CONFIG_PATH={{ config_path }}
|
||||
export OUTPUT_DIR={{ output_dir }}
|
||||
mkdir -p $OUTPUT_DIR/slurm
|
||||
mkdir -p $OUTPUT_DIR/logs/trainer
|
||||
ln -sfn trainer/node_0.log $OUTPUT_DIR/logs/trainer.log
|
||||
|
||||
# General
|
||||
export CUDA_DEVICE_ORDER=PCI_BUS_ID
|
||||
@@ -79,18 +80,18 @@ srun bash -c '
|
||||
# This is required for compilation to work correctly
|
||||
export PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True"
|
||||
|
||||
echo $HOSTNAMES | tee $OUTPUT_DIR/slurm/latest_train_node_rank_${TRAIN_NODE_RANK}.log
|
||||
echo $HOSTNAMES | tee $OUTPUT_DIR/logs/trainer/node_${TRAIN_NODE_RANK}.log
|
||||
uv run torchrun \
|
||||
--nnodes=$NUM_NODES \
|
||||
--nproc-per-node=$GPUS_PER_NODE \
|
||||
--node-rank=$TRAIN_NODE_RANK \
|
||||
--rdzv-endpoint=$MASTER_ADDR:$MASTER_PORT \
|
||||
--rdzv-id=job_$SLURM_JOB_ID \
|
||||
--log-dir=$OUTPUT_DIR/torchrun \
|
||||
--log-dir=$OUTPUT_DIR/logs/trainer/torchrun \
|
||||
--tee=3 \
|
||||
--redirects=3 \
|
||||
--local-ranks-filter=$(seq -s, 0 $((GPUS_PER_NODE - 1))) \
|
||||
--local-ranks-filter={{ ranks_filter }} \
|
||||
-m prime_rl.trainer.sft.train \
|
||||
@ $CONFIG_PATH \
|
||||
2>&1 | tee -a $OUTPUT_DIR/slurm/latest_train_node_rank_${TRAIN_NODE_RANK}.log $OUTPUT_DIR/slurm/job_${SLURM_JOB_ID}_train_node_rank_${TRAIN_NODE_RANK}.log
|
||||
2>&1 | tee -a $OUTPUT_DIR/logs/trainer/node_${TRAIN_NODE_RANK}.log
|
||||
'
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
from prime_rl.trainer.distributed.expert_parallel import DeepEPExpertParallel, get_ep_group
|
||||
|
||||
__all__ = ["DeepEPExpertParallel", "get_ep_group"]
|
||||
@@ -0,0 +1,344 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
import torch
|
||||
from deep_ep import Buffer
|
||||
from deep_ep.utils import EventHandle, EventOverlap
|
||||
from torch.distributed import ProcessGroup
|
||||
|
||||
_buffer: Buffer | None = None
|
||||
_handle_cache: dict[int, object] = {}
|
||||
_pending_dispatch_events: dict[int, EventOverlap] = {}
|
||||
_handle_counter = 0
|
||||
_pending_combine_event: EventOverlap | None = None
|
||||
_deepep_cuda_ops_registered = False
|
||||
_deepep_cuda_lib: torch.library.Library | None = None
|
||||
|
||||
|
||||
def _get_next_handle_id() -> torch.Tensor:
|
||||
global _handle_counter
|
||||
_handle_counter += 1
|
||||
return torch.tensor([_handle_counter], dtype=torch.int64, device="cpu")
|
||||
|
||||
|
||||
def _new_event_overlap() -> EventOverlap:
|
||||
return EventOverlap(EventHandle())
|
||||
|
||||
|
||||
def register_deepep_cuda_ops() -> None:
|
||||
global _deepep_cuda_lib, _deepep_cuda_ops_registered
|
||||
if _deepep_cuda_ops_registered:
|
||||
return
|
||||
|
||||
# Keep the Library alive so PyTorch does not deregister the custom ops.
|
||||
_deepep_cuda_lib = torch.library.Library("deepep", "DEF")
|
||||
_deepep_cuda_lib.define(
|
||||
"dispatch(Tensor x, Tensor topk_idx, Tensor topk_weights, "
|
||||
"Tensor num_tokens_per_rank, Tensor num_tokens_per_rdma_rank, "
|
||||
"Tensor is_token_in_rank, Tensor num_tokens_per_expert) "
|
||||
"-> (Tensor, Tensor, Tensor, Tensor, Tensor)"
|
||||
)
|
||||
|
||||
torch.library.impl(_deepep_cuda_lib, "dispatch", "CUDA")(_dispatch_op_impl)
|
||||
|
||||
torch.library.register_autograd("deepep::dispatch", _dispatch_backward, setup_context=_dispatch_setup_context)
|
||||
|
||||
_deepep_cuda_ops_registered = True
|
||||
|
||||
|
||||
def _dispatch_op_impl(
|
||||
x: torch.Tensor,
|
||||
topk_idx: torch.Tensor,
|
||||
topk_weights: torch.Tensor,
|
||||
num_tokens_per_rank: torch.Tensor,
|
||||
num_tokens_per_rdma_rank: torch.Tensor,
|
||||
is_token_in_rank: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
assert _buffer is not None, "DeepEP buffer must be initialized before dispatch."
|
||||
|
||||
previous_event = _new_event_overlap()
|
||||
recv_x, recv_indices, recv_scores, recv_num_tokens_per_expert_list, handle, after_event = _buffer.dispatch(
|
||||
x=x,
|
||||
topk_idx=topk_idx,
|
||||
topk_weights=topk_weights.to(torch.float32),
|
||||
num_tokens_per_rank=num_tokens_per_rank,
|
||||
num_tokens_per_rdma_rank=num_tokens_per_rdma_rank,
|
||||
is_token_in_rank=is_token_in_rank,
|
||||
num_tokens_per_expert=num_tokens_per_expert,
|
||||
previous_event=previous_event,
|
||||
async_finish=True,
|
||||
allocate_on_comm_stream=True,
|
||||
)
|
||||
handle_id = _get_next_handle_id()
|
||||
_handle_cache[handle_id.item()] = handle
|
||||
_pending_dispatch_events[handle_id.item()] = after_event
|
||||
recv_num_tokens_per_expert = torch.tensor(recv_num_tokens_per_expert_list, dtype=torch.int32, device="cpu")
|
||||
return recv_x, recv_indices, recv_scores, recv_num_tokens_per_expert, handle_id
|
||||
|
||||
|
||||
def _dispatch_setup_context(ctx, inputs, output) -> None:
|
||||
x, *_ = inputs
|
||||
*_, handle_id = output
|
||||
ctx.input_dtype = x.dtype
|
||||
ctx.saved_handle = _handle_cache.get(handle_id.item())
|
||||
|
||||
|
||||
def _dispatch_backward(
|
||||
ctx,
|
||||
grad_recv_x,
|
||||
grad_recv_indices,
|
||||
grad_recv_scores,
|
||||
grad_recv_num_tokens_per_expert,
|
||||
grad_handle_id,
|
||||
):
|
||||
if grad_recv_x is None:
|
||||
return None, None, None, None, None, None, None
|
||||
|
||||
handle = ctx.saved_handle
|
||||
assert handle is not None
|
||||
|
||||
previous_event = _new_event_overlap()
|
||||
grad_x, grad_scores, after_event = _buffer.combine(
|
||||
x=grad_recv_x,
|
||||
handle=handle,
|
||||
topk_weights=grad_recv_scores.float() if grad_recv_scores is not None else None,
|
||||
previous_event=previous_event,
|
||||
async_finish=True,
|
||||
allocate_on_comm_stream=True,
|
||||
)
|
||||
after_event.current_stream_wait()
|
||||
|
||||
grad_x = grad_x.to(ctx.input_dtype)
|
||||
grad_topk_weights = grad_scores.to(ctx.input_dtype) if grad_scores is not None else None
|
||||
return grad_x, None, grad_topk_weights, None, None, None, None
|
||||
|
||||
|
||||
class _DeepEPCombine(torch.autograd.Function):
|
||||
@staticmethod
|
||||
def forward(ctx, x: torch.Tensor, handle_id: torch.Tensor) -> torch.Tensor:
|
||||
global _pending_combine_event
|
||||
|
||||
assert _buffer is not None, "DeepEP buffer must be initialized before combine."
|
||||
handle = _handle_cache.pop(handle_id.item(), None)
|
||||
assert handle is not None, f"Handle not found for handle_id={handle_id.item()}"
|
||||
|
||||
previous_event = _new_event_overlap()
|
||||
combined, _, after_event = _buffer.combine(
|
||||
x=x,
|
||||
handle=handle,
|
||||
previous_event=previous_event,
|
||||
async_finish=True,
|
||||
allocate_on_comm_stream=True,
|
||||
)
|
||||
_pending_combine_event = after_event
|
||||
ctx.handle = handle
|
||||
return combined
|
||||
|
||||
@staticmethod
|
||||
def backward(ctx, grad_combined: torch.Tensor) -> tuple[torch.Tensor, None]:
|
||||
handle = ctx.handle
|
||||
assert handle is not None, "Handle not found in DeepEP combine backward."
|
||||
|
||||
previous_event = _new_event_overlap()
|
||||
grad_x, _, _, _, _, after_event = _buffer.dispatch(
|
||||
x=grad_combined,
|
||||
topk_idx=None,
|
||||
topk_weights=None,
|
||||
num_tokens_per_rank=None,
|
||||
num_tokens_per_rdma_rank=None,
|
||||
is_token_in_rank=None,
|
||||
num_tokens_per_expert=None,
|
||||
handle=handle,
|
||||
previous_event=previous_event,
|
||||
async_finish=True,
|
||||
allocate_on_comm_stream=True,
|
||||
)
|
||||
after_event.current_stream_wait()
|
||||
return grad_x, None
|
||||
|
||||
|
||||
@torch.compiler.disable()
|
||||
def sync_combine() -> None:
|
||||
global _pending_combine_event
|
||||
|
||||
if _pending_combine_event is not None:
|
||||
_pending_combine_event.current_stream_wait()
|
||||
_pending_combine_event = None
|
||||
|
||||
|
||||
@torch.compiler.disable()
|
||||
def _sync_dispatch(handle_id: torch.Tensor | int) -> None:
|
||||
handle_key = handle_id if isinstance(handle_id, int) else handle_id.item()
|
||||
pending_event = _pending_dispatch_events.pop(handle_key, None)
|
||||
if pending_event is not None:
|
||||
pending_event.current_stream_wait()
|
||||
|
||||
|
||||
def configure_num_sms(num_sms: int) -> None:
|
||||
"""Set the number of SMs for DeepEP intranode dispatch/combine kernels.
|
||||
|
||||
Must be called before the first dispatch/combine. Also determines
|
||||
internode RDMA channel count (num_channels = num_sms / 2).
|
||||
"""
|
||||
Buffer.set_num_sms(num_sms)
|
||||
|
||||
|
||||
def get_hidden_bytes(x: torch.Tensor) -> int:
|
||||
return x.size(1) * max(x.element_size(), 2)
|
||||
|
||||
|
||||
def get_buffer(group: ProcessGroup, hidden_bytes: int) -> Buffer:
|
||||
global _buffer
|
||||
|
||||
num_nvl_bytes, num_rdma_bytes = 0, 0
|
||||
for config in (Buffer.get_dispatch_config(group.size()), Buffer.get_combine_config(group.size())):
|
||||
num_nvl_bytes = max(config.get_nvl_buffer_size_hint(hidden_bytes, group.size()), num_nvl_bytes)
|
||||
num_rdma_bytes = max(config.get_rdma_buffer_size_hint(hidden_bytes, group.size()), num_rdma_bytes)
|
||||
|
||||
if (
|
||||
_buffer is None
|
||||
or _buffer.group != group
|
||||
or _buffer.num_nvl_bytes < num_nvl_bytes
|
||||
or _buffer.num_rdma_bytes < num_rdma_bytes
|
||||
):
|
||||
_buffer = Buffer(group, num_nvl_bytes, num_rdma_bytes)
|
||||
|
||||
return _buffer
|
||||
|
||||
|
||||
def _permute_tokens(
|
||||
hidden_states: torch.Tensor,
|
||||
dispatched_indices: torch.Tensor,
|
||||
dispatched_scores: torch.Tensor,
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
mask = dispatched_indices != -1
|
||||
valid_expert_ids = dispatched_indices[mask]
|
||||
valid_scores = dispatched_scores[mask]
|
||||
|
||||
sort_order = torch.argsort(valid_expert_ids, stable=True)
|
||||
permuted_indices = torch.arange(len(hidden_states), device=hidden_states.device).repeat_interleave(mask.sum(dim=1))[
|
||||
sort_order
|
||||
]
|
||||
permuted_hidden_states = hidden_states.index_select(0, permuted_indices)
|
||||
permuted_scores = valid_scores[sort_order]
|
||||
return permuted_hidden_states, permuted_scores, permuted_indices
|
||||
|
||||
|
||||
def _unpermute_tokens(
|
||||
permuted_hidden_states: torch.Tensor,
|
||||
permuted_indices: torch.Tensor,
|
||||
num_tokens: int,
|
||||
) -> torch.Tensor:
|
||||
hidden_dim = permuted_hidden_states.shape[1]
|
||||
output_hidden_states = permuted_hidden_states.new_zeros((num_tokens, hidden_dim))
|
||||
output_hidden_states.scatter_add_(0, permuted_indices.unsqueeze(1).expand(-1, hidden_dim), permuted_hidden_states)
|
||||
return output_hidden_states
|
||||
|
||||
|
||||
@dataclass
|
||||
class _DispatchState:
|
||||
handle_id: torch.Tensor
|
||||
permuted_indices: torch.Tensor
|
||||
num_recv_tokens: int
|
||||
permuted_scores: torch.Tensor | None = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class _PendingDispatchState:
|
||||
hidden_states: torch.Tensor
|
||||
dispatched_indices: torch.Tensor
|
||||
dispatched_scores: torch.Tensor
|
||||
num_tokens_per_expert: torch.Tensor
|
||||
handle_id: torch.Tensor
|
||||
score_before_experts: bool
|
||||
|
||||
|
||||
def dispatch_tokens_async(
|
||||
hidden_states: torch.Tensor,
|
||||
selected_experts_indices: torch.Tensor,
|
||||
top_scores: torch.Tensor,
|
||||
num_experts: int,
|
||||
group: ProcessGroup,
|
||||
*,
|
||||
score_before_experts: bool = True,
|
||||
) -> _PendingDispatchState:
|
||||
selected_experts_indices = selected_experts_indices.contiguous()
|
||||
top_scores = top_scores.contiguous()
|
||||
selected_experts_indices = selected_experts_indices.masked_fill(top_scores == 0, -1)
|
||||
if top_scores.dtype != torch.float32:
|
||||
top_scores = top_scores.float()
|
||||
|
||||
buffer = get_buffer(group, get_hidden_bytes(hidden_states))
|
||||
num_tokens_per_rank, num_tokens_per_rdma_rank, num_tokens_per_expert_dispatch, is_token_in_rank, _ = (
|
||||
buffer.get_dispatch_layout(topk_idx=selected_experts_indices, num_experts=num_experts)
|
||||
)
|
||||
|
||||
hidden_states, dispatched_indices, dispatched_expert_scores, num_tokens_per_expert, handle_id = (
|
||||
torch.ops.deepep.dispatch(
|
||||
hidden_states,
|
||||
selected_experts_indices,
|
||||
top_scores,
|
||||
num_tokens_per_rank,
|
||||
num_tokens_per_rdma_rank,
|
||||
is_token_in_rank,
|
||||
num_tokens_per_expert_dispatch,
|
||||
)
|
||||
)
|
||||
|
||||
return _PendingDispatchState(
|
||||
hidden_states=hidden_states,
|
||||
dispatched_indices=dispatched_indices,
|
||||
dispatched_scores=dispatched_expert_scores,
|
||||
num_tokens_per_expert=num_tokens_per_expert,
|
||||
handle_id=handle_id,
|
||||
score_before_experts=score_before_experts,
|
||||
)
|
||||
|
||||
|
||||
def finalize_dispatch_tokens(pending_state: _PendingDispatchState) -> tuple[torch.Tensor, torch.Tensor, _DispatchState]:
|
||||
_sync_dispatch(pending_state.handle_id)
|
||||
|
||||
hidden_states = pending_state.hidden_states
|
||||
num_recv_tokens = hidden_states.shape[0]
|
||||
hidden_states, permuted_scores, permuted_indices = _permute_tokens(
|
||||
hidden_states,
|
||||
pending_state.dispatched_indices,
|
||||
pending_state.dispatched_scores,
|
||||
)
|
||||
num_tokens_per_expert = pending_state.num_tokens_per_expert.to(hidden_states.device)
|
||||
|
||||
if pending_state.score_before_experts and permuted_scores is not None:
|
||||
hidden_states = (hidden_states.to(torch.float32) * permuted_scores.to(torch.float32).reshape(-1, 1)).to(
|
||||
hidden_states.dtype
|
||||
)
|
||||
permuted_scores_for_state = None
|
||||
else:
|
||||
permuted_scores_for_state = permuted_scores
|
||||
|
||||
state = _DispatchState(
|
||||
handle_id=pending_state.handle_id,
|
||||
permuted_indices=permuted_indices,
|
||||
num_recv_tokens=num_recv_tokens,
|
||||
permuted_scores=permuted_scores_for_state,
|
||||
)
|
||||
return hidden_states, num_tokens_per_expert, state
|
||||
|
||||
|
||||
def combine_tokens(hidden_states: torch.Tensor, state: _DispatchState) -> torch.Tensor:
|
||||
if state.permuted_scores is not None:
|
||||
hidden_states = (hidden_states.to(torch.float32) * state.permuted_scores.to(torch.float32).reshape(-1, 1)).to(
|
||||
hidden_states.dtype
|
||||
)
|
||||
hidden_states = _unpermute_tokens(hidden_states, state.permuted_indices, state.num_recv_tokens)
|
||||
return _DeepEPCombine.apply(hidden_states, state.handle_id)
|
||||
|
||||
|
||||
register_deepep_cuda_ops()
|
||||
|
||||
__all__ = [
|
||||
"combine_tokens",
|
||||
"configure_num_sms",
|
||||
"dispatch_tokens_async",
|
||||
"finalize_dispatch_tokens",
|
||||
"sync_combine",
|
||||
]
|
||||
@@ -0,0 +1,27 @@
|
||||
import torch.nn as nn
|
||||
from torch.distributed import ProcessGroup
|
||||
from torch.distributed.tensor import DeviceMesh, Shard, distribute_module, distribute_tensor
|
||||
from torch.distributed.tensor.parallel import ParallelStyle
|
||||
|
||||
|
||||
class DeepEPExpertParallel(ParallelStyle):
|
||||
"""Expert-parallel style backed by DeepEP dispatch/combine.
|
||||
|
||||
Only handles weight sharding (Shard(0) on expert dim) and stores the EP
|
||||
process group on the module. PrimeRL drives DeepEP dispatch/combine from
|
||||
`MoE.forward()` so communication stays outside the selective-AC checkpoint
|
||||
boundary while local expert matmuls remain checkpointable.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def _partition_fn(name: str, mod: nn.Module, device_mesh: DeviceMesh) -> None:
|
||||
for param_name, param in mod.named_parameters(recurse=False):
|
||||
mod.register_parameter(param_name, nn.Parameter(distribute_tensor(param, device_mesh, [Shard(0)])))
|
||||
mod._ep_group = device_mesh.get_group()
|
||||
|
||||
def _apply(self, module: nn.Module, device_mesh: DeviceMesh) -> nn.Module:
|
||||
return distribute_module(module, device_mesh, partition_fn=self._partition_fn)
|
||||
|
||||
|
||||
def get_ep_group(experts: nn.Module) -> ProcessGroup:
|
||||
return experts._ep_group
|
||||
@@ -22,6 +22,7 @@ from transformers.tokenization_utils import PreTrainedTokenizer
|
||||
from transformers.utils.import_utils import is_flash_attn_3_available
|
||||
|
||||
from prime_rl.configs.trainer import ActivationCheckpointConfig, CompileConfig, ModelConfig, TokenizerConfig
|
||||
from prime_rl.trainer.distributed import DeepEPExpertParallel
|
||||
from prime_rl.trainer.lora import apply_lora_to_model, freeze_all_except_lora_and_specified, strip_lora_from_state_dict
|
||||
from prime_rl.trainer.models import (
|
||||
AutoModelForCausalLMPrimeRL,
|
||||
@@ -167,6 +168,20 @@ def is_tt_moe_model(model: nn.Module) -> bool:
|
||||
return hasattr(model.config, "num_experts") or hasattr(model.config, "n_routed_experts")
|
||||
|
||||
|
||||
def configure_moe_ep_backend(model: nn.Module, config: ModelConfig) -> None:
|
||||
backend = config.ep_comm_backend
|
||||
if backend == "deepep":
|
||||
from prime_rl.trainer.distributed.deepep import configure_num_sms
|
||||
|
||||
configure_num_sms(config.deepep_num_sms)
|
||||
language_model = get_language_model(model)
|
||||
for transformer_block in language_model.layers:
|
||||
if not isinstance(transformer_block.mlp, (MoE, LatentMoE)):
|
||||
continue
|
||||
transformer_block.mlp.set_ep_comm_backend(backend)
|
||||
transformer_block.mlp.set_deepep_token_chunk_size(config.deepep_token_chunk_size)
|
||||
|
||||
|
||||
def get_load_balance_stats(
|
||||
model: nn.Module, reset_stats: bool = True, try_to_avoid_padding_experts: bool = True
|
||||
) -> dict[str, Tensor | None]:
|
||||
@@ -307,8 +322,8 @@ def get_model(
|
||||
)
|
||||
logger.debug(f"Loaded model {config.name} in {time.perf_counter() - load_model_start_time:.2f} seconds")
|
||||
|
||||
# For VLM training, freeze the vision encoder
|
||||
if is_vlm_training:
|
||||
# For VLM models, optionally freeze the vision encoder
|
||||
if is_vlm_training and config.vlm.freeze_vision_encoder:
|
||||
freeze_vision_encoder(model, override_attr=config.vlm.vision_encoder_attr)
|
||||
|
||||
assert model.lm_head.weight.dtype == dtype, (
|
||||
@@ -352,8 +367,9 @@ def setup_fsdp(model: nn.Module, config: ModelConfig, parallel_dims: ParallelDim
|
||||
vision_encoder = get_vision_encoder(model, override=config.vlm.vision_encoder_attr)
|
||||
if vision_encoder is None:
|
||||
raise ValueError(f"VLM model {config.name} has no recognized vision encoder")
|
||||
|
||||
fully_shard(vision_encoder, mesh=hsdp_mesh, **fsdp_config)
|
||||
get_logger().info("Applied FSDP to frozen vision encoder")
|
||||
get_logger().info(f"Applied FSDP to vision encoder (frozen={config.vlm.freeze_vision_encoder})")
|
||||
|
||||
language_model = get_language_model(model, override=config.vlm.language_model_attr if is_vlm_training else None)
|
||||
transformer_layers = language_model.layers
|
||||
@@ -607,6 +623,7 @@ def reshard_module(model: nn.Module):
|
||||
def apply_ac(model: nn.Module, ac_config: ActivationCheckpointConfig):
|
||||
logger = get_logger()
|
||||
language_model = get_language_model(model)
|
||||
target_list = sorted(frozenset(ac_config.targets))
|
||||
selective_layers = 0
|
||||
full_layers = 0
|
||||
fallback_layer_types: set[str] = set()
|
||||
@@ -618,7 +635,7 @@ def apply_ac(model: nn.Module, ac_config: ActivationCheckpointConfig):
|
||||
|
||||
if ac_config.mode == "selective" and supports_selective_activation_checkpointing(transformer_block):
|
||||
model_supported_targets.update(get_supported_targets(transformer_block))
|
||||
set_selective_activation_checkpointing(transformer_block, ac_config.targets)
|
||||
set_selective_activation_checkpointing(transformer_block, target_list)
|
||||
selective_layers += 1
|
||||
else:
|
||||
if ac_config.mode == "selective":
|
||||
@@ -629,7 +646,7 @@ def apply_ac(model: nn.Module, ac_config: ActivationCheckpointConfig):
|
||||
language_model.layers.register_module(layer_name, transformer_block)
|
||||
|
||||
if ac_config.mode == "selective":
|
||||
unsupported_targets = frozenset(ac_config.targets) - model_supported_targets
|
||||
unsupported_targets = frozenset(target_list) - model_supported_targets
|
||||
if unsupported_targets:
|
||||
raise ValueError(
|
||||
f"Selective activation checkpoint targets {sorted(unsupported_targets)} are not supported "
|
||||
@@ -642,7 +659,7 @@ def apply_ac(model: nn.Module, ac_config: ActivationCheckpointConfig):
|
||||
)
|
||||
logger.info(
|
||||
"Applied selective activation checkpointing "
|
||||
f"(freq={ac_config.freq}, targets={ac_config.targets}, selective_layers={selective_layers}, "
|
||||
f"(freq={ac_config.freq}, targets={target_list}, selective_layers={selective_layers}, "
|
||||
f"full_fallback_layers={full_layers})"
|
||||
)
|
||||
return
|
||||
@@ -659,15 +676,19 @@ def apply_compile(model: nn.Module, compile_config: CompileConfig):
|
||||
get_logger().info(f"Compiled {len(language_model.layers)} layers (fullgraph={compile_config.fullgraph})")
|
||||
|
||||
|
||||
def apply_ep(model: nn.Module, parallel_dims: ParallelDims):
|
||||
def apply_ep(model: nn.Module, config: ModelConfig, parallel_dims: ParallelDims):
|
||||
language_model = get_language_model(model)
|
||||
for transformer_block in language_model.layers:
|
||||
block_mlp = getattr(transformer_block, "mlp", None)
|
||||
if block_mlp is not None and isinstance(block_mlp, (MoE, LatentMoE)):
|
||||
if config.ep_comm_backend == "torch":
|
||||
parallelize_plan = ExpertParallel()
|
||||
else:
|
||||
parallelize_plan = DeepEPExpertParallel()
|
||||
parallelize_module(
|
||||
block_mlp.experts,
|
||||
device_mesh=parallel_dims.get_mesh("ep"),
|
||||
parallelize_plan=ExpertParallel(),
|
||||
parallelize_plan=parallelize_plan,
|
||||
)
|
||||
|
||||
|
||||
@@ -741,6 +762,7 @@ def setup_model(
|
||||
|
||||
# 1. We load to meta device by default
|
||||
model = get_model(config, device=torch.device("meta"), dtype=DTYPE_MAP[config.optimization_dtype])
|
||||
configure_moe_ep_backend(model, config)
|
||||
|
||||
possible_to_load_to_meta = can_reinit_empty_buffers(model)
|
||||
|
||||
@@ -753,6 +775,7 @@ def setup_model(
|
||||
if not possible_to_load_to_meta:
|
||||
logger.warning("Cannot load model to meta device only, loading to CPU instead.")
|
||||
model = get_model(config, device=torch.device("cpu"), dtype=DTYPE_MAP[config.optimization_dtype])
|
||||
configure_moe_ep_backend(model, config)
|
||||
|
||||
lm_head_chunk_size: int | None = None
|
||||
if isinstance(config.fused_lm_head_token_chunk_size, int):
|
||||
@@ -768,7 +791,7 @@ def setup_model(
|
||||
freeze_moe_router(model)
|
||||
|
||||
if parallel_dims.ep_enabled:
|
||||
apply_ep(model, parallel_dims)
|
||||
apply_ep(model, config, parallel_dims)
|
||||
# EP replaces params with DTensors that default to requires_grad=True,
|
||||
# re-freeze base params that LoRA froze earlier.
|
||||
if config.lora is not None:
|
||||
|
||||
@@ -101,11 +101,27 @@ class AfmoeAttentionBase(nn.Module):
|
||||
self.q_norm = RMSNorm(RMSNormConfig(hidden_size=self.head_dim, eps=config.rms_norm_eps))
|
||||
self.k_norm = RMSNorm(RMSNormConfig(hidden_size=self.head_dim, eps=config.rms_norm_eps))
|
||||
|
||||
def _project_states(
|
||||
def output_proj(
|
||||
self,
|
||||
attn_output: torch.Tensor,
|
||||
gate_states: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
input_shape = gate_states.shape[:-1]
|
||||
if attn_output.dim() == 4:
|
||||
attn_output = attn_output.transpose(1, 2).contiguous()
|
||||
attn_output = attn_output.contiguous().view(*input_shape, -1)
|
||||
attn_output = attn_output * torch.sigmoid(gate_states)
|
||||
return self.o_proj(attn_output)
|
||||
|
||||
|
||||
class AfmoeSDPAAttention(AfmoeAttentionBase):
|
||||
"""AFMoE attention using PyTorch's scaled_dot_product_attention."""
|
||||
|
||||
def attn_projections(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor, tuple[int, ...]]:
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
input_shape = hidden_states.shape[:-1]
|
||||
hidden_shape = (*input_shape, -1, self.head_dim)
|
||||
|
||||
@@ -128,23 +144,7 @@ class AfmoeAttentionBase(nn.Module):
|
||||
key_states = _repeat_kv(key_states, self.num_key_value_groups)
|
||||
value_states = _repeat_kv(value_states, self.num_key_value_groups)
|
||||
|
||||
return query_states, key_states, value_states, gate_states, input_shape
|
||||
|
||||
def _finalize_output(
|
||||
self,
|
||||
attn_output: torch.Tensor,
|
||||
gate_states: torch.Tensor,
|
||||
input_shape: tuple[int, ...],
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
attn_output = attn_output.transpose(1, 2).contiguous()
|
||||
attn_output = attn_output.view(*input_shape, -1)
|
||||
attn_output = attn_output * torch.sigmoid(gate_states)
|
||||
attn_output = self.o_proj(attn_output)
|
||||
return attn_output, None
|
||||
|
||||
|
||||
class AfmoeSDPAAttention(AfmoeAttentionBase):
|
||||
"""AFMoE attention using PyTorch's scaled_dot_product_attention."""
|
||||
return query_states, key_states, value_states, gate_states
|
||||
|
||||
def _attention_core(
|
||||
self,
|
||||
@@ -172,9 +172,7 @@ class AfmoeSDPAAttention(AfmoeAttentionBase):
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
query_states, key_states, value_states, gate_states, input_shape = self._project_states(
|
||||
hidden_states, position_embeddings
|
||||
)
|
||||
query_states, key_states, value_states, gate_states = self.attn_projections(hidden_states, position_embeddings)
|
||||
|
||||
dropout_p = self.attention_dropout if self.training else 0.0
|
||||
attn_output = self._attention_core(
|
||||
@@ -185,7 +183,7 @@ class AfmoeSDPAAttention(AfmoeAttentionBase):
|
||||
dropout_p=dropout_p,
|
||||
)
|
||||
|
||||
return self._finalize_output(attn_output, gate_states, input_shape)
|
||||
return self.output_proj(attn_output, gate_states), None
|
||||
|
||||
|
||||
class AfmoeFlashAttention(AfmoeAttentionBase):
|
||||
@@ -228,14 +226,11 @@ class AfmoeFlashAttention(AfmoeAttentionBase):
|
||||
) -> torch.Tensor:
|
||||
return self._compute_attention(query_states[0], key_states[0], value_states[0], cu_seqlens, max_seqlen)
|
||||
|
||||
def forward(
|
||||
def attn_projections(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
||||
attention_mask: torch.Tensor | None = None,
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
input_shape = hidden_states.shape[:-1]
|
||||
hidden_shape = (*input_shape, -1, self.head_dim)
|
||||
|
||||
@@ -255,6 +250,17 @@ class AfmoeFlashAttention(AfmoeAttentionBase):
|
||||
query_states = query_states.transpose(1, 2)
|
||||
key_states = key_states.transpose(1, 2)
|
||||
|
||||
return query_states, key_states, value_states, gate_states
|
||||
|
||||
def forward(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
||||
attention_mask: torch.Tensor | None = None,
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
query_states, key_states, value_states, gate_states = self.attn_projections(hidden_states, position_embeddings)
|
||||
attn_output = self._attention_core(
|
||||
query_states,
|
||||
key_states,
|
||||
@@ -262,10 +268,7 @@ class AfmoeFlashAttention(AfmoeAttentionBase):
|
||||
cu_seqlens=cu_seqlens,
|
||||
max_seqlen=max_seqlen,
|
||||
)
|
||||
attn_output = attn_output.contiguous().view(*input_shape, -1)
|
||||
attn_output = attn_output * torch.sigmoid(gate_states)
|
||||
attn_output = self.o_proj(attn_output)
|
||||
return attn_output, None
|
||||
return self.output_proj(attn_output, gate_states), None
|
||||
|
||||
|
||||
AFMOE_ATTN_IMPL2CLASS = {
|
||||
|
||||
@@ -128,13 +128,13 @@ class GlmMoeDsaAttention(nn.Module):
|
||||
self.indexer = Indexer(args)
|
||||
self.scaling = self.qk_head_dim ** (-0.5)
|
||||
|
||||
def _mla_latents(self, hidden_states: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
def attn_projections(self, hidden_states: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
q_latent = self.q_a_layernorm(self.q_a_proj(hidden_states))
|
||||
compressed_kv = self.kv_a_proj_with_mqa(hidden_states)
|
||||
k_compressed, k_rope = compressed_kv.split([self.kv_lora_rank, self.qk_rope_head_dim], dim=-1)
|
||||
return q_latent, self.kv_a_layernorm(k_compressed), k_rope
|
||||
|
||||
def _mla_up_proj(
|
||||
def mla_up_proj(
|
||||
self,
|
||||
q_latent: torch.Tensor,
|
||||
k_compressed_normed: torch.Tensor,
|
||||
@@ -167,6 +167,12 @@ class GlmMoeDsaAttention(nn.Module):
|
||||
def _mla_unabsorb(self, out: torch.Tensor, w_v: torch.Tensor) -> torch.Tensor:
|
||||
return torch.einsum("bshk,hdk->bshd", out, w_v)
|
||||
|
||||
def output_proj(self, attn_output: torch.Tensor, w_v: torch.Tensor) -> torch.Tensor:
|
||||
attn_output = self._mla_unabsorb(attn_output, w_v)
|
||||
batch_size, total_tokens = attn_output.shape[:2]
|
||||
attn_output = attn_output.reshape(batch_size, total_tokens, -1)
|
||||
return self.o_proj(attn_output)
|
||||
|
||||
def forward(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
@@ -174,15 +180,13 @@ class GlmMoeDsaAttention(nn.Module):
|
||||
ks: torch.Tensor | None = None,
|
||||
ke: torch.Tensor | None = None,
|
||||
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
||||
batch_size, total_tokens, _ = hidden_states.shape
|
||||
|
||||
q_latent, k_compressed_normed, k_rope = self._mla_latents(hidden_states)
|
||||
q_latent, k_compressed_normed, k_rope = self.attn_projections(hidden_states)
|
||||
|
||||
indices = self.indexer.compute_sparse_indices(
|
||||
hidden_states, q_latent, ks, ke, self.args.index_topk, position_embeddings
|
||||
)
|
||||
|
||||
sparse_q, sparse_kv, w_v = self._mla_up_proj(
|
||||
sparse_q, sparse_kv, w_v = self.mla_up_proj(
|
||||
q_latent,
|
||||
k_compressed_normed,
|
||||
k_rope,
|
||||
@@ -190,7 +194,4 @@ class GlmMoeDsaAttention(nn.Module):
|
||||
)
|
||||
|
||||
out = _SparseMLA.apply(sparse_q, sparse_kv, indices, self.scaling)
|
||||
out = self._mla_unabsorb(out, w_v)
|
||||
|
||||
out = out.reshape(batch_size, total_tokens, -1)
|
||||
return self.o_proj(out), None
|
||||
return self.output_proj(out, w_v), None
|
||||
|
||||
@@ -116,7 +116,7 @@ class FlashAttention(nn.Module):
|
||||
out = self._compute_attention(query_states[0], key_states[0], value_states[0], cu_seqlens, max_seqlen)
|
||||
return out.contiguous().view(1, out.shape[0], -1)
|
||||
|
||||
def _attn_projections(
|
||||
def attn_projections(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor] | None = None,
|
||||
@@ -155,7 +155,7 @@ class FlashAttention(nn.Module):
|
||||
|
||||
return query_states, key_states, value_states
|
||||
|
||||
def _output_proj(self, attn_output: torch.Tensor) -> torch.Tensor:
|
||||
def output_proj(self, attn_output: torch.Tensor) -> torch.Tensor:
|
||||
return self.o_proj(attn_output)
|
||||
|
||||
def forward(
|
||||
@@ -165,7 +165,7 @@ class FlashAttention(nn.Module):
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
||||
query_states, key_states, value_states = self._attn_projections(hidden_states, position_embeddings)
|
||||
query_states, key_states, value_states = self.attn_projections(hidden_states, position_embeddings)
|
||||
|
||||
attn_output = self._attention_core(
|
||||
query_states,
|
||||
@@ -174,7 +174,7 @@ class FlashAttention(nn.Module):
|
||||
cu_seqlens=cu_seqlens,
|
||||
max_seqlen=max_seqlen,
|
||||
)
|
||||
attn_output = self._output_proj(attn_output)
|
||||
attn_output = self.output_proj(attn_output)
|
||||
return attn_output, None
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@ class SDPAAttention(nn.Module):
|
||||
self.q_norm = RMSNorm(RMSNormConfig(hidden_size=self.head_dim, eps=config.rms_norm_eps))
|
||||
self.k_norm = RMSNorm(RMSNormConfig(hidden_size=self.head_dim, eps=config.rms_norm_eps))
|
||||
|
||||
def _attn_projections(
|
||||
def attn_projections(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor] | None,
|
||||
@@ -258,7 +258,7 @@ class SDPAAttention(nn.Module):
|
||||
out = out.transpose(1, 2).contiguous()
|
||||
return out.view(out.shape[0], out.shape[1], -1)
|
||||
|
||||
def _output_proj(self, attn_output: torch.Tensor) -> torch.Tensor:
|
||||
def output_proj(self, attn_output: torch.Tensor) -> torch.Tensor:
|
||||
return self.o_proj(attn_output)
|
||||
|
||||
def forward(
|
||||
@@ -268,10 +268,10 @@ class SDPAAttention(nn.Module):
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
||||
query_states, key_states, value_states = self._attn_projections(hidden_states, position_embeddings)
|
||||
query_states, key_states, value_states = self.attn_projections(hidden_states, position_embeddings)
|
||||
|
||||
attn_output = self._attention_core(query_states, key_states, value_states)
|
||||
attn_output = self._output_proj(attn_output)
|
||||
attn_output = self.output_proj(attn_output)
|
||||
return attn_output, None
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,31 @@
|
||||
"""Selective activation checkpointing hooks for custom decoder layers.
|
||||
|
||||
New model integration contract:
|
||||
|
||||
- `norm`: no explicit hook is required. Every child module whose type name
|
||||
contains `norm` is checkpointed through `forward()`.
|
||||
- `attn_proj`: expose `layer.self_attn.attn_projections(...)` for
|
||||
projection-side attention work before the core kernel, plus
|
||||
`layer.self_attn.output_proj(...)` for the post-attention output projection.
|
||||
This target is meant for attention-local work outside the main attention
|
||||
kernel, such as q/k/v projections, attention-local norms, RoPE, gating, and
|
||||
similar model-specific helpers.
|
||||
- `mla_up_proj`: expose `layer.self_attn.mla_up_proj(...)` when MLA-style
|
||||
up-projection work should be checkpointed separately from
|
||||
`attn_projections(...)`.
|
||||
- `mlp`: expose a dense `layer.mlp.forward(...)`. A module is treated as dense
|
||||
when it does not define `_run_routed_experts` or `tokens_per_expert`.
|
||||
- `routed_experts`: expose `layer.mlp._run_routed_experts(...)` for the MoE
|
||||
expert path, and optionally `layer.mlp._run_local_routed_experts(...)` when
|
||||
local expert compute is separated from dispatch/combine.
|
||||
- `linear_attn`: expose a token-mixer module on `layer.linear_attn` or
|
||||
`layer.mamba`, or reuse `layer.self_attn` when
|
||||
`layer.attention_type == "sliding_attention"`.
|
||||
|
||||
These hook names are an intentional public interface for custom model support,
|
||||
so new models should follow them directly rather than adding private aliases.
|
||||
"""
|
||||
|
||||
from collections.abc import Iterable
|
||||
from functools import wraps
|
||||
|
||||
@@ -5,7 +33,7 @@ import torch
|
||||
import torch.nn as nn
|
||||
from torch.utils.checkpoint import checkpoint
|
||||
|
||||
SELECTIVE_AC_TARGETS = frozenset({"norm", "attn_proj", "mlp", "mla_up_proj", "routed_experts", "mamba", "linear_attn"})
|
||||
SELECTIVE_AC_TARGETS = frozenset({"norm", "attn_proj", "mlp", "mla_up_proj", "routed_experts", "linear_attn"})
|
||||
_PATCHED_METHODS_ATTR = "_prime_rl_selective_ac_patched_methods"
|
||||
|
||||
|
||||
@@ -49,23 +77,40 @@ def _is_dense_mlp(mlp: nn.Module) -> bool:
|
||||
return not hasattr(mlp, "_run_routed_experts") and not hasattr(mlp, "tokens_per_expert")
|
||||
|
||||
|
||||
def _supports_attn_proj(self_attn: nn.Module | None) -> bool:
|
||||
return self_attn is not None and hasattr(self_attn, "attn_projections") and hasattr(self_attn, "output_proj")
|
||||
|
||||
|
||||
def _get_linear_attn_module(layer: nn.Module) -> nn.Module | None:
|
||||
linear_attn = getattr(layer, "linear_attn", None)
|
||||
if linear_attn is not None:
|
||||
return linear_attn
|
||||
|
||||
mamba = getattr(layer, "mamba", None)
|
||||
if mamba is not None:
|
||||
return mamba
|
||||
|
||||
if getattr(layer, "attention_type", None) == "sliding_attention":
|
||||
return getattr(layer, "self_attn", None)
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_supported_targets(layer: nn.Module) -> frozenset[str]:
|
||||
"""Infer which selective activation checkpoint targets a decoder layer supports."""
|
||||
supported_targets = {"norm"}
|
||||
self_attn = getattr(layer, "self_attn", None)
|
||||
mlp = getattr(layer, "mlp", None)
|
||||
mamba = getattr(layer, "mamba", None)
|
||||
linear_attn = getattr(layer, "linear_attn", None)
|
||||
linear_attn = _get_linear_attn_module(layer)
|
||||
|
||||
if self_attn is not None and hasattr(self_attn, "_attn_projections"):
|
||||
if _supports_attn_proj(self_attn):
|
||||
supported_targets.add("attn_proj")
|
||||
if self_attn is not None and hasattr(self_attn, "_mla_up_proj"):
|
||||
if self_attn is not None and hasattr(self_attn, "mla_up_proj"):
|
||||
supported_targets.add("mla_up_proj")
|
||||
if mlp is not None and _is_dense_mlp(mlp):
|
||||
supported_targets.add("mlp")
|
||||
if mlp is not None and hasattr(mlp, "_run_routed_experts"):
|
||||
if mlp is not None and (hasattr(mlp, "_run_routed_experts") or hasattr(mlp, "_run_local_routed_experts")):
|
||||
supported_targets.add("routed_experts")
|
||||
if mamba is not None:
|
||||
supported_targets.add("mamba")
|
||||
if linear_attn is not None:
|
||||
supported_targets.add("linear_attn")
|
||||
|
||||
@@ -73,29 +118,29 @@ def get_supported_targets(layer: nn.Module) -> frozenset[str]:
|
||||
|
||||
|
||||
def set_selective_activation_checkpointing(layer: nn.Module, targets: Iterable[str]) -> None:
|
||||
normalized_targets = frozenset(targets)
|
||||
invalid_targets = normalized_targets - SELECTIVE_AC_TARGETS
|
||||
target_set = frozenset(targets)
|
||||
invalid_targets = target_set - SELECTIVE_AC_TARGETS
|
||||
if invalid_targets:
|
||||
raise ValueError(f"Unsupported selective activation checkpoint targets: {sorted(invalid_targets)}")
|
||||
|
||||
enabled_targets = normalized_targets & get_supported_targets(layer)
|
||||
enabled_targets = target_set & get_supported_targets(layer)
|
||||
self_attn = getattr(layer, "self_attn", None)
|
||||
mlp = getattr(layer, "mlp", None)
|
||||
linear_attn = _get_linear_attn_module(layer)
|
||||
attn_proj_is_subsumed = "linear_attn" in enabled_targets and linear_attn is self_attn
|
||||
|
||||
mamba = getattr(layer, "mamba", None)
|
||||
linear_attn = getattr(layer, "linear_attn", None)
|
||||
|
||||
if self_attn is not None and "attn_proj" in enabled_targets:
|
||||
checkpoint_method(self_attn, "_attn_projections")
|
||||
checkpoint_method(self_attn, "_output_proj")
|
||||
if self_attn is not None and "attn_proj" in enabled_targets and not attn_proj_is_subsumed:
|
||||
checkpoint_method(self_attn, "attn_projections")
|
||||
checkpoint_method(self_attn, "output_proj")
|
||||
if self_attn is not None and "mla_up_proj" in enabled_targets:
|
||||
checkpoint_method(self_attn, "_mla_up_proj")
|
||||
checkpoint_method(self_attn, "mla_up_proj")
|
||||
if mlp is not None and "mlp" in enabled_targets:
|
||||
checkpoint_method(mlp, "forward")
|
||||
if mlp is not None and "routed_experts" in enabled_targets:
|
||||
checkpoint_method(mlp, "_run_routed_experts")
|
||||
if mamba is not None and "mamba" in enabled_targets:
|
||||
checkpoint_method(mamba, "forward")
|
||||
if hasattr(mlp, "_run_routed_experts"):
|
||||
checkpoint_method(mlp, "_run_routed_experts")
|
||||
if hasattr(mlp, "_run_local_routed_experts"):
|
||||
checkpoint_method(mlp, "_run_local_routed_experts")
|
||||
if linear_attn is not None and "linear_attn" in enabled_targets:
|
||||
checkpoint_method(linear_attn, "forward")
|
||||
if "norm" in enabled_targets:
|
||||
|
||||
@@ -331,13 +331,10 @@ class MultiLoRAGroupedExperts(MultiLoRAModule):
|
||||
base_w2 = self.base_layer.w2 # [num_experts, dim, hidden_dim]
|
||||
base_w3 = self.base_layer.w3 # [num_experts, hidden_dim, dim]
|
||||
|
||||
# EP handling: mirror the @expert_parallel decorator — convert DTensors
|
||||
# to local shards and permute tokens by local expert with alignment padding.
|
||||
# EP handling: convert DTensors to local shards.
|
||||
# Standard EP also needs token permutation; DeepEP tokens are already dispatched.
|
||||
permuted_indices = None
|
||||
if isinstance(base_w1, DTensor):
|
||||
from torchtitan.distributed.expert_parallel import TOKEN_GROUP_ALIGN_SIZE_M
|
||||
from torchtitan.experiments.kernels.moe.indices import generate_permute_indices
|
||||
|
||||
base_w1 = base_w1.to_local()
|
||||
base_w2 = base_w2.to_local()
|
||||
base_w3 = base_w3.to_local()
|
||||
@@ -348,21 +345,25 @@ class MultiLoRAGroupedExperts(MultiLoRAModule):
|
||||
w3_lora_a = w3_lora_a.to_local()
|
||||
w3_lora_b = w3_lora_b.to_local()
|
||||
|
||||
experts_per_ep_rank = base_w1.shape[0]
|
||||
num_ep_ranks = num_tokens_per_expert.shape[0] // experts_per_ep_rank
|
||||
if getattr(self.base_layer, "ep_comm_backend", "torch") != "deepep":
|
||||
from torchtitan.distributed.expert_parallel import TOKEN_GROUP_ALIGN_SIZE_M
|
||||
from torchtitan.experiments.kernels.moe.indices import generate_permute_indices
|
||||
|
||||
with torch.no_grad():
|
||||
permuted_indices, num_tokens_per_expert, _ = generate_permute_indices(
|
||||
num_tokens_per_expert,
|
||||
experts_per_ep_rank,
|
||||
num_ep_ranks,
|
||||
x.shape[0] + experts_per_ep_rank * TOKEN_GROUP_ALIGN_SIZE_M,
|
||||
TOKEN_GROUP_ALIGN_SIZE_M,
|
||||
)
|
||||
experts_per_ep_rank = base_w1.shape[0]
|
||||
num_ep_ranks = num_tokens_per_expert.shape[0] // experts_per_ep_rank
|
||||
|
||||
x = torch.vstack((x, x.new_zeros((x.shape[-1]))))
|
||||
input_shape = x.shape
|
||||
x = x[permuted_indices, :]
|
||||
with torch.no_grad():
|
||||
permuted_indices, num_tokens_per_expert, _ = generate_permute_indices(
|
||||
num_tokens_per_expert,
|
||||
experts_per_ep_rank,
|
||||
num_ep_ranks,
|
||||
x.shape[0] + experts_per_ep_rank * TOKEN_GROUP_ALIGN_SIZE_M,
|
||||
TOKEN_GROUP_ALIGN_SIZE_M,
|
||||
)
|
||||
|
||||
x = torch.vstack((x, x.new_zeros((x.shape[-1]))))
|
||||
input_shape = x.shape
|
||||
x = x[permuted_indices, :]
|
||||
|
||||
# Compute offsets for grouped_mm
|
||||
offsets = torch.cumsum(num_tokens_per_expert, dim=0, dtype=torch.int32)
|
||||
|
||||
@@ -12,6 +12,8 @@ import torch.nn.functional as F
|
||||
from torch import nn
|
||||
from torchtitan.distributed.expert_parallel import expert_parallel
|
||||
|
||||
from prime_rl.configs.trainer import EPCommBackend
|
||||
|
||||
|
||||
@dataclass
|
||||
class MoEArgs:
|
||||
@@ -85,8 +87,7 @@ class BCFeedForward(nn.Module):
|
||||
|
||||
# TODO: keeping this for-loop implementation for comparison
|
||||
# and readability, may remove later
|
||||
@expert_parallel
|
||||
def _run_experts_for_loop(
|
||||
def _run_experts_for_loop_impl(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
w3: torch.Tensor,
|
||||
@@ -121,6 +122,17 @@ def _run_experts_for_loop(
|
||||
return out
|
||||
|
||||
|
||||
@expert_parallel
|
||||
def _run_experts_for_loop(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
w3: torch.Tensor,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
return _run_experts_for_loop_impl(w1, w2, w3, x, num_tokens_per_expert)
|
||||
|
||||
|
||||
@expert_parallel
|
||||
def _run_experts_grouped_mm(
|
||||
w1: torch.Tensor,
|
||||
@@ -128,6 +140,16 @@ def _run_experts_grouped_mm(
|
||||
w3: torch.Tensor,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
return _run_experts_grouped_mm_impl(w1, w2, w3, x, num_tokens_per_expert)
|
||||
|
||||
|
||||
def _run_experts_grouped_mm_impl(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
w3: torch.Tensor,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
offsets = torch.cumsum(num_tokens_per_expert, dim=0, dtype=torch.int32)
|
||||
# grouped mm between a 2D tensor and a 3D tensor
|
||||
@@ -154,12 +176,27 @@ class GroupedExperts(nn.Module):
|
||||
self.w2 = nn.Parameter(torch.empty(num_experts, dim, hidden_dim))
|
||||
self.w3 = nn.Parameter(torch.empty(num_experts, hidden_dim, dim))
|
||||
self.use_grouped_mm = use_grouped_mm
|
||||
self.ep_comm_backend: EPCommBackend = "torch"
|
||||
|
||||
def set_ep_comm_backend(self, backend: EPCommBackend) -> None:
|
||||
self.ep_comm_backend = backend
|
||||
|
||||
def _forward_deepep(self, x: torch.Tensor, num_tokens_per_expert: torch.Tensor) -> torch.Tensor:
|
||||
w1 = self.w1.to_local()
|
||||
w2 = self.w2.to_local()
|
||||
w3 = self.w3.to_local()
|
||||
if self.use_grouped_mm:
|
||||
return _run_experts_grouped_mm_impl(w1, w2, w3, x, num_tokens_per_expert)
|
||||
return _run_experts_for_loop_impl(w1, w2, w3, x, num_tokens_per_expert)
|
||||
|
||||
def forward(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
if self.ep_comm_backend == "deepep":
|
||||
return self._forward_deepep(x, num_tokens_per_expert)
|
||||
|
||||
if self.use_grouped_mm:
|
||||
return _run_experts_grouped_mm(self.w1, self.w2, self.w3, x, num_tokens_per_expert)
|
||||
else:
|
||||
@@ -337,6 +374,8 @@ class MoE(nn.Module):
|
||||
num_experts=num_experts,
|
||||
use_grouped_mm=moe_args.use_grouped_mm,
|
||||
)
|
||||
self.ep_comm_backend: EPCommBackend = "torch"
|
||||
self.experts.set_ep_comm_backend(self.ep_comm_backend)
|
||||
self.router = TokenChoiceTopKRouter(
|
||||
dim=dim,
|
||||
num_experts=num_experts,
|
||||
@@ -353,6 +392,7 @@ class MoE(nn.Module):
|
||||
else None
|
||||
)
|
||||
self.score_before_experts = moe_args.score_before_experts
|
||||
self.deepep_token_chunk_size: int | None = None
|
||||
|
||||
# define fields for auxiliary-loss-free load balancing (https://arxiv.org/abs/2408.15664)
|
||||
# NOTE: tokens_per_expert is accumulated in the model forward pass.
|
||||
@@ -375,6 +415,20 @@ class MoE(nn.Module):
|
||||
persistent=False,
|
||||
)
|
||||
|
||||
def set_ep_comm_backend(self, backend: EPCommBackend) -> None:
|
||||
self.ep_comm_backend = backend
|
||||
self.experts.set_ep_comm_backend(backend)
|
||||
|
||||
def set_deepep_token_chunk_size(self, chunk_size: int | None) -> None:
|
||||
self.deepep_token_chunk_size = chunk_size
|
||||
|
||||
def _run_local_routed_experts(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
return self.experts(x, num_tokens_per_expert)
|
||||
|
||||
def _run_routed_experts(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
@@ -396,6 +450,60 @@ class MoE(nn.Module):
|
||||
|
||||
return routed_output
|
||||
|
||||
def _run_deepep_routed_experts(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
selected_experts_indices: torch.Tensor,
|
||||
top_scores: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
from prime_rl.trainer.distributed.deepep import (
|
||||
combine_tokens,
|
||||
dispatch_tokens_async,
|
||||
finalize_dispatch_tokens,
|
||||
sync_combine,
|
||||
)
|
||||
from prime_rl.trainer.distributed.expert_parallel import get_ep_group
|
||||
|
||||
if x.shape[0] == 0:
|
||||
shared_output = self.shared_expert(x) if self.shared_expert is not None else None
|
||||
return x.new_zeros(x.shape) if shared_output is None else shared_output
|
||||
|
||||
group = get_ep_group(self.experts)
|
||||
chunk_size = min(self.deepep_token_chunk_size or x.shape[0], x.shape[0])
|
||||
|
||||
def dispatch_chunk(start: int, end: int):
|
||||
return dispatch_tokens_async(
|
||||
x[start:end],
|
||||
selected_experts_indices[start:end],
|
||||
top_scores[start:end],
|
||||
num_experts=self.experts.num_experts,
|
||||
group=group,
|
||||
score_before_experts=self.score_before_experts,
|
||||
)
|
||||
|
||||
def run_pending_chunk(pending_state):
|
||||
hidden_states, num_tokens_per_expert, dispatch_state = finalize_dispatch_tokens(pending_state)
|
||||
routed_output = self._run_local_routed_experts(hidden_states, num_tokens_per_expert)
|
||||
# Keep combine outside the checkpointed routed-expert region so
|
||||
# selective AC only recomputes local expert matmuls.
|
||||
return combine_tokens(routed_output, dispatch_state)
|
||||
|
||||
pending_state = dispatch_chunk(0, chunk_size)
|
||||
routed_outputs: list[torch.Tensor] = []
|
||||
|
||||
for chunk_start in range(chunk_size, x.shape[0], chunk_size):
|
||||
chunk_end = min(chunk_start + chunk_size, x.shape[0])
|
||||
next_pending_state = dispatch_chunk(chunk_start, chunk_end)
|
||||
routed_outputs.append(run_pending_chunk(pending_state))
|
||||
pending_state = next_pending_state
|
||||
|
||||
routed_outputs.append(run_pending_chunk(pending_state))
|
||||
|
||||
shared_output = self.shared_expert(x) if self.shared_expert is not None else None
|
||||
sync_combine()
|
||||
routed_output = routed_outputs[0] if len(routed_outputs) == 1 else torch.cat(routed_outputs, dim=0)
|
||||
return routed_output if shared_output is None else shared_output + routed_output
|
||||
|
||||
def forward(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
@@ -434,6 +542,10 @@ class MoE(nn.Module):
|
||||
with torch.no_grad():
|
||||
self.tokens_per_expert.add_(num_tokens_per_expert)
|
||||
|
||||
if self.ep_comm_backend == "deepep":
|
||||
routed_output = self._run_deepep_routed_experts(x, selected_experts_indices, top_scores)
|
||||
return routed_output.reshape(bs, slen, dim)
|
||||
|
||||
# top_scores and token_indices_experts_sorted shape (bs*slen*top_k,)
|
||||
# num_tokens_per_expert shape (num_experts,)
|
||||
# NOTE: the reason we need to compute num_tokens_per_expert again is:
|
||||
@@ -484,8 +596,7 @@ def relu2(x: torch.Tensor) -> torch.Tensor:
|
||||
return F.relu(x).square()
|
||||
|
||||
|
||||
@expert_parallel
|
||||
def _run_nongated_experts_for_loop(
|
||||
def _run_nongated_experts_for_loop_impl(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
_w3: torch.Tensor,
|
||||
@@ -511,7 +622,17 @@ def _run_nongated_experts_for_loop(
|
||||
|
||||
|
||||
@expert_parallel
|
||||
def _run_nongated_experts_grouped_mm(
|
||||
def _run_nongated_experts_for_loop(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
_w3: torch.Tensor,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
return _run_nongated_experts_for_loop_impl(w1, w2, _w3, x, num_tokens_per_expert)
|
||||
|
||||
|
||||
def _run_nongated_experts_grouped_mm_impl(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
_w3: torch.Tensor,
|
||||
@@ -526,6 +647,17 @@ def _run_nongated_experts_grouped_mm(
|
||||
return out
|
||||
|
||||
|
||||
@expert_parallel
|
||||
def _run_nongated_experts_grouped_mm(
|
||||
w1: torch.Tensor,
|
||||
w2: torch.Tensor,
|
||||
_w3: torch.Tensor,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
return _run_nongated_experts_grouped_mm_impl(w1, w2, _w3, x, num_tokens_per_expert)
|
||||
|
||||
|
||||
class NonGatedGroupedExperts(nn.Module):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -541,12 +673,26 @@ class NonGatedGroupedExperts(nn.Module):
|
||||
# Dummy w3 for @expert_parallel decorator compatibility (expects w1, w2, w3 signature)
|
||||
self.w3 = nn.Parameter(torch.empty(0))
|
||||
self.use_grouped_mm = use_grouped_mm
|
||||
self.ep_comm_backend: EPCommBackend = "torch"
|
||||
|
||||
def set_ep_comm_backend(self, backend: EPCommBackend) -> None:
|
||||
self.ep_comm_backend = backend
|
||||
|
||||
def _forward_deepep(self, x: torch.Tensor, num_tokens_per_expert: torch.Tensor) -> torch.Tensor:
|
||||
w1 = self.w1.to_local()
|
||||
w2 = self.w2.to_local()
|
||||
w3 = self.w3.to_local()
|
||||
if self.use_grouped_mm:
|
||||
return _run_nongated_experts_grouped_mm_impl(w1, w2, w3, x, num_tokens_per_expert)
|
||||
return _run_nongated_experts_for_loop_impl(w1, w2, w3, x, num_tokens_per_expert)
|
||||
|
||||
def forward(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
if self.ep_comm_backend == "deepep":
|
||||
return self._forward_deepep(x, num_tokens_per_expert)
|
||||
if self.use_grouped_mm:
|
||||
return _run_nongated_experts_grouped_mm(self.w1, self.w2, self.w3, x, num_tokens_per_expert)
|
||||
else:
|
||||
@@ -682,8 +828,11 @@ class LatentMoE(nn.Module):
|
||||
num_experts=num_experts,
|
||||
use_grouped_mm=use_grouped_mm,
|
||||
)
|
||||
self.ep_comm_backend: EPCommBackend = "torch"
|
||||
self.experts.set_ep_comm_backend(self.ep_comm_backend)
|
||||
self.reorderer = TokenReorderer(num_experts=num_experts, top_k=top_k)
|
||||
self.shared_expert = BCNonGatedFeedForward(dim=dim, hidden_dim=shared_expert_intermediate_size)
|
||||
self.deepep_token_chunk_size: int | None = None
|
||||
|
||||
if latent_dim is not None:
|
||||
self.fc1_latent_proj = nn.Linear(dim, latent_dim, bias=False)
|
||||
@@ -709,6 +858,20 @@ class LatentMoE(nn.Module):
|
||||
persistent=False,
|
||||
)
|
||||
|
||||
def set_ep_comm_backend(self, backend: EPCommBackend) -> None:
|
||||
self.ep_comm_backend = backend
|
||||
self.experts.set_ep_comm_backend(backend)
|
||||
|
||||
def set_deepep_token_chunk_size(self, chunk_size: int | None) -> None:
|
||||
self.deepep_token_chunk_size = chunk_size
|
||||
|
||||
def _run_local_routed_experts(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
num_tokens_per_expert: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
return self.experts(x, num_tokens_per_expert)
|
||||
|
||||
def _run_routed_experts(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
@@ -729,6 +892,61 @@ class LatentMoE(nn.Module):
|
||||
routed_output = self.fc2_latent_proj(routed_output)
|
||||
return routed_output
|
||||
|
||||
def _run_deepep_routed_experts(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
selected_experts_indices: torch.Tensor,
|
||||
top_scores: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
from prime_rl.trainer.distributed.deepep import (
|
||||
combine_tokens,
|
||||
dispatch_tokens_async,
|
||||
finalize_dispatch_tokens,
|
||||
sync_combine,
|
||||
)
|
||||
from prime_rl.trainer.distributed.expert_parallel import get_ep_group
|
||||
|
||||
if x.shape[0] == 0:
|
||||
return self.shared_expert(x)
|
||||
|
||||
group = get_ep_group(self.experts)
|
||||
# Project before dispatch so DeepEP communicates the smaller latent activations.
|
||||
latent_x = self.fc1_latent_proj(x)
|
||||
chunk_size = min(self.deepep_token_chunk_size or latent_x.shape[0], latent_x.shape[0])
|
||||
|
||||
def dispatch_chunk(start: int, end: int):
|
||||
return dispatch_tokens_async(
|
||||
latent_x[start:end],
|
||||
selected_experts_indices[start:end],
|
||||
top_scores[start:end],
|
||||
num_experts=self.experts.num_experts,
|
||||
group=group,
|
||||
score_before_experts=False,
|
||||
)
|
||||
|
||||
def run_pending_chunk(pending_state):
|
||||
hidden_states, num_tokens_per_expert, dispatch_state = finalize_dispatch_tokens(pending_state)
|
||||
routed_output = self._run_local_routed_experts(hidden_states, num_tokens_per_expert)
|
||||
return combine_tokens(routed_output, dispatch_state)
|
||||
|
||||
pending_state = dispatch_chunk(0, chunk_size)
|
||||
routed_outputs: list[torch.Tensor] = []
|
||||
|
||||
for chunk_start in range(chunk_size, latent_x.shape[0], chunk_size):
|
||||
chunk_end = min(chunk_start + chunk_size, latent_x.shape[0])
|
||||
next_pending_state = dispatch_chunk(chunk_start, chunk_end)
|
||||
routed_outputs.append(run_pending_chunk(pending_state))
|
||||
pending_state = next_pending_state
|
||||
|
||||
routed_outputs.append(run_pending_chunk(pending_state))
|
||||
|
||||
shared_output = self.shared_expert(x)
|
||||
sync_combine()
|
||||
routed_output = routed_outputs[0] if len(routed_outputs) == 1 else torch.cat(routed_outputs, dim=0)
|
||||
routed_output = routed_output * self.routed_scaling_factor
|
||||
routed_output = self.fc2_latent_proj(routed_output)
|
||||
return shared_output + routed_output
|
||||
|
||||
def forward(self, x: torch.Tensor, routed_experts: torch.Tensor | None = None) -> torch.Tensor:
|
||||
bs, slen, dim = x.shape
|
||||
x_flat = x.view(-1, dim)
|
||||
@@ -738,6 +956,10 @@ class LatentMoE(nn.Module):
|
||||
with torch.no_grad():
|
||||
self.tokens_per_expert.add_(num_tokens_per_expert)
|
||||
|
||||
if self.ep_comm_backend == "deepep":
|
||||
routed_output = self._run_deepep_routed_experts(x_flat, selected_experts_indices, top_scores)
|
||||
return routed_output.reshape(bs, slen, dim)
|
||||
|
||||
(
|
||||
top_scores_experts_sorted,
|
||||
token_indices_experts_sorted,
|
||||
|
||||
@@ -374,10 +374,44 @@ class Qwen3_5MoeGatedAttentionBase(nn.Module):
|
||||
self.q_norm = Qwen3_5MoeRMSNorm(self.head_dim, eps=config.rms_norm_eps)
|
||||
self.k_norm = Qwen3_5MoeRMSNorm(self.head_dim, eps=config.rms_norm_eps)
|
||||
|
||||
def output_proj(
|
||||
self,
|
||||
attn_output: torch.Tensor,
|
||||
gate: torch.Tensor,
|
||||
) -> torch.Tensor:
|
||||
input_shape = gate.shape[:-1]
|
||||
if attn_output.dim() == 4:
|
||||
attn_output = attn_output.transpose(1, 2).contiguous()
|
||||
attn_output = attn_output.contiguous().view(*input_shape, -1)
|
||||
attn_output = attn_output * torch.sigmoid(gate)
|
||||
return self.o_proj(attn_output)
|
||||
|
||||
|
||||
class Qwen3_5MoeGatedSDPAAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
"""Gated softmax attention using PyTorch's scaled_dot_product_attention."""
|
||||
|
||||
def attn_projections(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
input_shape = hidden_states.shape[:-1]
|
||||
hidden_shape = (*input_shape, -1, self.head_dim)
|
||||
|
||||
query_states, gate = torch.chunk(
|
||||
self.q_proj(hidden_states).view(*input_shape, -1, self.head_dim * 2), 2, dim=-1
|
||||
)
|
||||
gate = gate.reshape(*input_shape, -1)
|
||||
|
||||
query_states = self.q_norm(query_states.view(hidden_shape)).transpose(1, 2)
|
||||
key_states = self.k_norm(self.k_proj(hidden_states).view(hidden_shape)).transpose(1, 2)
|
||||
value_states = self.v_proj(hidden_states).view(hidden_shape).transpose(1, 2)
|
||||
|
||||
cos, sin = position_embeddings
|
||||
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)
|
||||
|
||||
return query_states, key_states, value_states, gate
|
||||
|
||||
def _attention_core(
|
||||
self,
|
||||
query_states: torch.Tensor,
|
||||
@@ -401,28 +435,9 @@ class Qwen3_5MoeGatedSDPAAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
input_shape = hidden_states.shape[:-1]
|
||||
hidden_shape = (*input_shape, -1, self.head_dim)
|
||||
|
||||
# Split Q into query + gate
|
||||
query_states, gate = torch.chunk(
|
||||
self.q_proj(hidden_states).view(*input_shape, -1, self.head_dim * 2), 2, dim=-1
|
||||
)
|
||||
gate = gate.reshape(*input_shape, -1)
|
||||
|
||||
query_states = self.q_norm(query_states.view(hidden_shape)).transpose(1, 2)
|
||||
key_states = self.k_norm(self.k_proj(hidden_states).view(hidden_shape)).transpose(1, 2)
|
||||
value_states = self.v_proj(hidden_states).view(hidden_shape).transpose(1, 2)
|
||||
|
||||
cos, sin = position_embeddings
|
||||
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)
|
||||
|
||||
query_states, key_states, value_states, gate = self.attn_projections(hidden_states, position_embeddings)
|
||||
attn_output = self._attention_core(query_states, key_states, value_states)
|
||||
attn_output = attn_output.transpose(1, 2).contiguous()
|
||||
attn_output = attn_output.view(*input_shape, -1)
|
||||
attn_output = attn_output * torch.sigmoid(gate)
|
||||
attn_output = self.o_proj(attn_output)
|
||||
return attn_output, None
|
||||
return self.output_proj(attn_output, gate), None
|
||||
|
||||
|
||||
class Qwen3_5MoeGatedFlashAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
@@ -462,17 +477,14 @@ class Qwen3_5MoeGatedFlashAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
) -> torch.Tensor:
|
||||
return self._compute_attention(query_states[0], key_states[0], value_states[0], cu_seqlens, max_seqlen)
|
||||
|
||||
def forward(
|
||||
def attn_projections(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
|
||||
input_shape = hidden_states.shape[:-1]
|
||||
hidden_shape = (*input_shape, -1, self.head_dim)
|
||||
|
||||
# Split Q into query + gate
|
||||
query_states, gate = torch.chunk(
|
||||
self.q_proj(hidden_states).view(*input_shape, -1, self.head_dim * 2), 2, dim=-1
|
||||
)
|
||||
@@ -482,7 +494,6 @@ class Qwen3_5MoeGatedFlashAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
key_states = self.k_norm(self.k_proj(hidden_states).view(hidden_shape))
|
||||
value_states = self.v_proj(hidden_states).view(hidden_shape)
|
||||
|
||||
# Apply RoPE (need transpose for apply_rotary_pos_emb format)
|
||||
query_states = query_states.transpose(1, 2)
|
||||
key_states = key_states.transpose(1, 2)
|
||||
cos, sin = position_embeddings
|
||||
@@ -490,6 +501,16 @@ class Qwen3_5MoeGatedFlashAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
query_states = query_states.transpose(1, 2)
|
||||
key_states = key_states.transpose(1, 2)
|
||||
|
||||
return query_states, key_states, value_states, gate
|
||||
|
||||
def forward(
|
||||
self,
|
||||
hidden_states: torch.Tensor,
|
||||
position_embeddings: tuple[torch.Tensor, torch.Tensor],
|
||||
cu_seqlens: torch.LongTensor | None = None,
|
||||
max_seqlen: int | None = None,
|
||||
) -> tuple[torch.Tensor, None]:
|
||||
query_states, key_states, value_states, gate = self.attn_projections(hidden_states, position_embeddings)
|
||||
attn_output = self._attention_core(
|
||||
query_states,
|
||||
key_states,
|
||||
@@ -497,10 +518,7 @@ class Qwen3_5MoeGatedFlashAttention(Qwen3_5MoeGatedAttentionBase):
|
||||
cu_seqlens=cu_seqlens,
|
||||
max_seqlen=max_seqlen,
|
||||
)
|
||||
attn_output = attn_output.contiguous().view(*input_shape, -1)
|
||||
attn_output = attn_output * torch.sigmoid(gate)
|
||||
attn_output = self.o_proj(attn_output)
|
||||
return attn_output, None
|
||||
return self.output_proj(attn_output, gate), None
|
||||
|
||||
|
||||
QWEN35MOE_ATTN_IMPL2CLASS = {
|
||||
|
||||
@@ -11,6 +11,7 @@ from torch.optim import SGD, AdamW, Optimizer
|
||||
from prime_rl.configs.trainer import OptimizerConfig
|
||||
from prime_rl.trainer.parallel_dims import ParallelDims
|
||||
from prime_rl.trainer.runs import get_multi_run_manager
|
||||
from prime_rl.trainer.sign_sgd import SignSGD
|
||||
from prime_rl.trainer.world import get_world
|
||||
from prime_rl.utils.logger import get_logger
|
||||
|
||||
@@ -166,6 +167,12 @@ def _create_optimizer(
|
||||
)
|
||||
case "muon":
|
||||
return _create_muon_optimizer(config, named_params, parallel_dims, lr)
|
||||
case "sign_sgd":
|
||||
return SignSGD(
|
||||
params=[p for _, p in named_params],
|
||||
lr=lr,
|
||||
weight_decay=config.weight_decay,
|
||||
)
|
||||
|
||||
|
||||
def _create_muon_optimizer(
|
||||
|
||||
@@ -169,7 +169,11 @@ class DataLoader:
|
||||
|
||||
def wait_for_batch(self) -> None:
|
||||
if self.world.is_master:
|
||||
self.packer.pack()
|
||||
self.packer._arm_watchdog()
|
||||
try:
|
||||
self.packer.pack()
|
||||
finally:
|
||||
self.packer._disarm_watchdog()
|
||||
self.receiver.wait()
|
||||
self.multi_run_manager.synchronize_state()
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import os
|
||||
import shutil
|
||||
import threading
|
||||
import time
|
||||
from abc import ABC, abstractmethod
|
||||
from collections import deque
|
||||
@@ -19,6 +21,7 @@ from prime_rl.utils.logger import get_logger
|
||||
from prime_rl.utils.pathing import get_rollout_dir
|
||||
|
||||
TIMEOUT_SECONDS = 0.1
|
||||
WATCHDOG_TIMEOUT_SECONDS = 1800 # 30 minutes
|
||||
|
||||
|
||||
class BasePacker(ABC):
|
||||
@@ -42,6 +45,30 @@ class BasePacker(ABC):
|
||||
self.sender: MicroBatchSender = setup_micro_batch_sender(
|
||||
self.multi_run_manager.output_dir, dp_world_size, start_step, config
|
||||
)
|
||||
self._last_heartbeat = time.monotonic()
|
||||
self._watchdog_armed = threading.Event()
|
||||
self._watchdog = threading.Thread(target=self._watchdog_loop, daemon=True)
|
||||
self._watchdog.start()
|
||||
|
||||
def _heartbeat(self) -> None:
|
||||
self._last_heartbeat = time.monotonic()
|
||||
|
||||
def _arm_watchdog(self) -> None:
|
||||
self._last_heartbeat = time.monotonic()
|
||||
self._watchdog_armed.set()
|
||||
|
||||
def _disarm_watchdog(self) -> None:
|
||||
self._watchdog_armed.clear()
|
||||
|
||||
def _watchdog_loop(self) -> None:
|
||||
while True:
|
||||
time.sleep(60)
|
||||
if not self._watchdog_armed.is_set():
|
||||
continue
|
||||
stale = time.monotonic() - self._last_heartbeat
|
||||
if stale > WATCHDOG_TIMEOUT_SECONDS:
|
||||
self.logger.error(f"Packer heartbeat stale for {stale:.0f}s, killing process to trigger restart")
|
||||
os._exit(1)
|
||||
|
||||
@abstractmethod
|
||||
def pack(self) -> None:
|
||||
@@ -66,6 +93,7 @@ class SinglePacker(BasePacker):
|
||||
# Wait for batch to be available
|
||||
batches = []
|
||||
while len(batches) == 0:
|
||||
self._heartbeat()
|
||||
self.multi_run_manager.discover_runs()
|
||||
batches = self.receiver.receive()
|
||||
time.sleep(0.2)
|
||||
@@ -157,6 +185,7 @@ class MultiPacker(BasePacker):
|
||||
|
||||
def _get_batch(self) -> None:
|
||||
"""Receive batches from orchestrator and buffer samples per run."""
|
||||
self._heartbeat()
|
||||
self.multi_run_manager.discover_runs()
|
||||
batches = self.receiver.receive()
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ from prime_rl.trainer.model import (
|
||||
from prime_rl.trainer.parallel_dims import get_parallel_dims
|
||||
from prime_rl.trainer.perf import get_perf_counter
|
||||
from prime_rl.trainer.utils import (
|
||||
GarbageCollection,
|
||||
MemoryProfiler,
|
||||
Tensors,
|
||||
export_benchmark_json,
|
||||
@@ -68,7 +69,6 @@ def train(config: TrainerConfig):
|
||||
world = get_world()
|
||||
logger = setup_logger(
|
||||
config.log.level,
|
||||
log_file=config.output_dir / "logs" / "trainer" / f"rank_{world.rank}.log" if config.log.file else None,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
logger.info(f"Starting RL trainer in {world} in {config.output_dir}")
|
||||
@@ -209,6 +209,8 @@ def train(config: TrainerConfig):
|
||||
config.rollout_transport,
|
||||
)
|
||||
|
||||
gc_handler = GarbageCollection(config.gc.interval) if config.gc else None
|
||||
|
||||
logger.info(f"Starting training loop (max_steps={config.max_steps or 'infinite'})")
|
||||
is_first_step = True
|
||||
maybe_record_function = nullcontext
|
||||
@@ -219,6 +221,8 @@ def train(config: TrainerConfig):
|
||||
while True:
|
||||
# Reset peak memory stats
|
||||
torch.cuda.reset_peak_memory_stats()
|
||||
if gc_handler is not None:
|
||||
gc_handler.run(progress.step)
|
||||
is_last_step = config.max_steps is not None and progress.step == config.max_steps
|
||||
|
||||
# Broadcast weights at every step, (except step 0, because no need to broadcast the base model)
|
||||
|
||||
@@ -32,6 +32,7 @@ from prime_rl.trainer.parallel_dims import get_parallel_dims
|
||||
from prime_rl.trainer.perf import get_perf_counter
|
||||
from prime_rl.trainer.sft.data import load_sft_dataset, setup_dataloader, setup_dataset
|
||||
from prime_rl.trainer.utils import (
|
||||
GarbageCollection,
|
||||
MemoryProfiler,
|
||||
export_benchmark_json,
|
||||
get_zero_gradient_ratio,
|
||||
@@ -58,7 +59,6 @@ def train(config: SFTConfig):
|
||||
world = get_world()
|
||||
logger = setup_logger(
|
||||
config.log.level,
|
||||
log_file=config.output_dir / "logs" / "trainer" / f"rank_{world.rank}.log" if config.log.file else None,
|
||||
json_logging=config.log.json_logging,
|
||||
)
|
||||
logger.info(f"Starting SFT trainer in {world}")
|
||||
@@ -271,6 +271,8 @@ def train(config: SFTConfig):
|
||||
logger.success(f"Validation | Step {step} | Loss: {mean_loss:.4f}")
|
||||
monitor.log({"val/loss": mean_loss, "step": step}, step=step)
|
||||
|
||||
gc_handler = GarbageCollection(config.gc.interval) if config.gc else None
|
||||
|
||||
logger.info(f"Starting training loop (max_steps={config.max_steps or 'infinite'})")
|
||||
max_memory = torch.cuda.mem_get_info()[1] / 1024**3 # GiB
|
||||
is_first_step = True
|
||||
@@ -281,6 +283,8 @@ def train(config: SFTConfig):
|
||||
while True:
|
||||
# Reset peak memory stats
|
||||
torch.cuda.reset_peak_memory_stats()
|
||||
if gc_handler is not None:
|
||||
gc_handler.run(progress.step)
|
||||
is_last_step = config.max_steps is not None and progress.step == config.max_steps
|
||||
|
||||
if (
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
from typing import Callable
|
||||
|
||||
import torch
|
||||
from torch.optim import Optimizer
|
||||
|
||||
|
||||
class SignSGD(Optimizer):
|
||||
"""Sign-based SGD optimizer with minimal memory footprint.
|
||||
|
||||
This optimizer uses the sign of gradients instead of storing momentum and variance,
|
||||
making it equivalent to AdamW with beta1=0 and beta2=0 (resetting optimizer state each step).
|
||||
|
||||
Mathematical equivalence:
|
||||
AdamW: W = W - lr * m_t / sqrt(v_t + eps)
|
||||
With beta1=0, beta2=0: m_t = g_t, v_t = g_t^2
|
||||
Simplified: W = W - lr * g_t / sqrt(g_t^2 + eps)
|
||||
Ignoring eps: W = W - lr * sign(g_t)
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
params,
|
||||
lr: float = 1e-3,
|
||||
weight_decay: float = 0.01,
|
||||
):
|
||||
if lr < 0.0:
|
||||
raise ValueError(f"Invalid learning rate: {lr}")
|
||||
if weight_decay < 0.0:
|
||||
raise ValueError(f"Invalid weight_decay: {weight_decay}")
|
||||
|
||||
defaults = dict(lr=lr, weight_decay=weight_decay)
|
||||
super().__init__(params, defaults)
|
||||
|
||||
@torch.no_grad()
|
||||
def step(self, closure: Callable = None):
|
||||
loss = None
|
||||
if closure is not None:
|
||||
with torch.enable_grad():
|
||||
loss = closure()
|
||||
|
||||
for group in self.param_groups:
|
||||
for p in group["params"]:
|
||||
if p.grad is None:
|
||||
continue
|
||||
|
||||
sign_grad = torch.sign(p.grad)
|
||||
|
||||
if group["weight_decay"] > 0.0:
|
||||
p.add_(p, alpha=-group["lr"] * group["weight_decay"])
|
||||
|
||||
p.add_(sign_grad, alpha=-group["lr"])
|
||||
|
||||
return loss
|
||||
@@ -1,3 +1,4 @@
|
||||
import gc
|
||||
import json
|
||||
import pickle
|
||||
import shutil
|
||||
@@ -27,6 +28,33 @@ from prime_rl.utils.utils import format_num, format_time, get_step_path
|
||||
DEFAULT_TIMEOUT = timedelta(seconds=600)
|
||||
|
||||
|
||||
class GarbageCollection:
|
||||
"""Controls Python garbage collection to avoid stragglers in distributed training.
|
||||
|
||||
In multi-GPU training, Python's automatic GC can trigger unpredictably on one rank
|
||||
while others wait at a synchronization point, stalling the entire step. This class
|
||||
disables automatic GC and runs deterministic collections every `interval` steps so
|
||||
all ranks collect simultaneously.
|
||||
|
||||
Based on the approach from torchtitan (https://arxiv.org/abs/2505.05713).
|
||||
"""
|
||||
|
||||
def __init__(self, interval: int = 50):
|
||||
assert interval > 0, "gc interval must be a positive integer"
|
||||
self.interval = interval
|
||||
gc.disable()
|
||||
self._collect()
|
||||
|
||||
def run(self, step: int):
|
||||
if step > 0 and step % self.interval == 0:
|
||||
self._collect()
|
||||
|
||||
def _collect(self, generation: int = 1):
|
||||
begin = time.monotonic()
|
||||
gc.collect(generation)
|
||||
get_logger().info(f"[GC] collection took {time.monotonic() - begin:.2f}s")
|
||||
|
||||
|
||||
def _to_local_tensor(tensor: Tensor | DTensor) -> Tensor:
|
||||
if isinstance(tensor, DTensor):
|
||||
return tensor.to_local()
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import atexit
|
||||
import json as json_module
|
||||
import logging
|
||||
import sys
|
||||
import traceback
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
# Global logger instance
|
||||
@@ -61,24 +59,6 @@ def json_sink(message) -> None:
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
class JsonFileSink:
|
||||
"""File sink that keeps the handle open and writes flat JSON lines."""
|
||||
|
||||
def __init__(self, log_file: Path):
|
||||
log_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
self._file = open(log_file, "a")
|
||||
atexit.register(self._close)
|
||||
|
||||
def _close(self):
|
||||
if self._file and not self._file.closed:
|
||||
self._file.close()
|
||||
|
||||
def write(self, message) -> None:
|
||||
log_entry = build_log_entry(message.record)
|
||||
self._file.write(json_module.dumps(log_entry) + "\n")
|
||||
self._file.flush()
|
||||
|
||||
|
||||
class InterceptHandler(logging.Handler):
|
||||
"""Intercept standard logging library and routes to our prime-rl logger with specified prefix."""
|
||||
|
||||
@@ -106,8 +86,6 @@ class InterceptHandler(logging.Handler):
|
||||
|
||||
def setup_logger(
|
||||
log_level: str = "info",
|
||||
log_file: Path | None = None,
|
||||
append: bool = False,
|
||||
tag: str | None = None,
|
||||
json_logging: bool = False,
|
||||
):
|
||||
@@ -163,16 +141,6 @@ def setup_logger(
|
||||
else:
|
||||
logger.add(sys.stdout, format=format, level=log_level.upper(), colorize=True)
|
||||
|
||||
# If specified, install file handler
|
||||
if log_file is not None:
|
||||
if not append and log_file.exists():
|
||||
log_file.unlink()
|
||||
if json_logging:
|
||||
file_sink = JsonFileSink(log_file)
|
||||
logger.add(file_sink.write, level=log_level.upper(), enqueue=True)
|
||||
else:
|
||||
logger.add(log_file, format=format, level=log_level.upper(), colorize=True)
|
||||
|
||||
# Disable critical logging
|
||||
logger.critical = lambda _: None
|
||||
|
||||
|
||||
@@ -1,9 +1,32 @@
|
||||
import random
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Any
|
||||
|
||||
import verifiers as vf
|
||||
|
||||
|
||||
def sample_items_for_logging(items: list[Any], sample_ratio: float | None) -> list[Any]:
|
||||
"""Apply monitor sample_ratio semantics to a batch of items.
|
||||
|
||||
- ``None`` keeps the full batch.
|
||||
- ``<= 0`` logs nothing.
|
||||
- ``0 < ratio < 1`` logs a random subset with a minimum of 1 item.
|
||||
- ``>= 1`` keeps the full batch.
|
||||
"""
|
||||
if sample_ratio is None:
|
||||
return items
|
||||
if sample_ratio <= 0.0:
|
||||
return []
|
||||
if sample_ratio >= 1.0 or len(items) <= 1:
|
||||
return items
|
||||
|
||||
max_samples = max(1, int(len(items) * sample_ratio))
|
||||
if len(items) <= max_samples:
|
||||
return items
|
||||
|
||||
return random.sample(items, max_samples)
|
||||
|
||||
|
||||
class Monitor(ABC):
|
||||
"""Base class for all monitoring implementations.
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import asyncio
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
import time
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
@@ -20,7 +19,7 @@ from transformers.tokenization_utils import PreTrainedTokenizer
|
||||
from prime_rl.configs.shared import PrimeMonitorConfig
|
||||
from prime_rl.utils.config import BaseConfig
|
||||
from prime_rl.utils.logger import get_logger
|
||||
from prime_rl.utils.monitor.base import Monitor
|
||||
from prime_rl.utils.monitor.base import Monitor, sample_items_for_logging
|
||||
|
||||
|
||||
def _json(val: Any) -> str:
|
||||
@@ -257,14 +256,12 @@ class PrimeMonitor(Monitor):
|
||||
):
|
||||
return
|
||||
|
||||
ratio = self.config.log_extras.sample_ratio
|
||||
if ratio is not None:
|
||||
if ratio <= 0.0:
|
||||
return
|
||||
if ratio < 1.0:
|
||||
max_samples = max(1, int(len(rollouts) * ratio))
|
||||
if len(rollouts) > max_samples:
|
||||
rollouts = random.sample(rollouts, max_samples)
|
||||
rollouts = sample_items_for_logging(
|
||||
rollouts,
|
||||
self.config.log_extras.sample_ratio,
|
||||
)
|
||||
if not rollouts:
|
||||
return
|
||||
|
||||
assert self.last_log_samples_step <= step, "Step must be greater than last logged step"
|
||||
assert step not in self._pending_sample_steps, f"Step {step} upload already in progress"
|
||||
@@ -293,13 +290,19 @@ class PrimeMonitor(Monitor):
|
||||
now = datetime.now(timezone.utc)
|
||||
rows = []
|
||||
|
||||
for rollout in rollouts:
|
||||
for sample_id, rollout in enumerate(rollouts):
|
||||
prompt = rollout.get("prompt")
|
||||
completion = rollout.get("completion")
|
||||
trajectory = rollout.get("trajectory") or []
|
||||
if prompt is None or completion is None or not trajectory:
|
||||
continue
|
||||
|
||||
example_id = rollout.get("example_id")
|
||||
try:
|
||||
problem_id = int(example_id) if example_id is not None else sample_id
|
||||
except (TypeError, ValueError):
|
||||
problem_id = sample_id
|
||||
|
||||
trajectory_data = [
|
||||
{
|
||||
"prompt": ts["prompt"],
|
||||
@@ -318,8 +321,8 @@ class PrimeMonitor(Monitor):
|
||||
"run_id": self.run_id,
|
||||
"step": step,
|
||||
"tag": "",
|
||||
"problem_id": 0,
|
||||
"sample_id": 0,
|
||||
"problem_id": problem_id,
|
||||
"sample_id": sample_id,
|
||||
"prompt": json.dumps(prompt),
|
||||
"completion": json.dumps(completion),
|
||||
"trajectory": json.dumps(trajectory_data),
|
||||
|
||||
@@ -14,7 +14,7 @@ from wandb.errors import CommError
|
||||
from prime_rl.configs.shared import WandbConfig, WandbWithExtrasConfig
|
||||
from prime_rl.utils.config import BaseConfig
|
||||
from prime_rl.utils.logger import get_logger
|
||||
from prime_rl.utils.monitor.base import Monitor
|
||||
from prime_rl.utils.monitor.base import Monitor, sample_items_for_logging
|
||||
|
||||
|
||||
class WandbMonitor(Monitor):
|
||||
@@ -137,11 +137,18 @@ class WandbMonitor(Monitor):
|
||||
# Do not log samples if not enabled or not log interval step
|
||||
return
|
||||
|
||||
rollouts = sample_items_for_logging(
|
||||
rollouts,
|
||||
self.config.log_extras.sample_ratio,
|
||||
)
|
||||
if not rollouts:
|
||||
return
|
||||
|
||||
assert self.tokenizer is not None, "Tokenizer is required for sample logging"
|
||||
assert self.last_log_samples_step <= step, "Step must be greater than last logged step"
|
||||
assert self.logger is not None, "Logger is required for sample logging"
|
||||
|
||||
self.logger.info(f"Logging samples to W&B table at step {step}")
|
||||
self.logger.info(f"Logging {len(rollouts)} samples to W&B table at step {step}")
|
||||
start_time = time.perf_counter()
|
||||
|
||||
for rollout in rollouts:
|
||||
@@ -183,9 +190,11 @@ class WandbMonitor(Monitor):
|
||||
return
|
||||
|
||||
for rollout in rollouts:
|
||||
completion = rollout.get("completion", "")
|
||||
completion = rollout.get("completion")
|
||||
if not completion:
|
||||
continue
|
||||
if isinstance(completion, list):
|
||||
completion = self.tokenizer.apply_chat_template(completion, tokenize=False)
|
||||
sample = {
|
||||
"step": step,
|
||||
"env": env_name,
|
||||
|
||||
@@ -10,6 +10,53 @@ def get_log_dir(output_dir: Path) -> Path:
|
||||
return output_dir / "logs"
|
||||
|
||||
|
||||
def format_log_message(
|
||||
log_dir: Path,
|
||||
trainer: bool = False,
|
||||
orchestrator: bool = False,
|
||||
inference: bool = False,
|
||||
job_log: bool = False,
|
||||
train_env_names: list[str] | None = None,
|
||||
eval_env_names: list[str] | None = None,
|
||||
num_train_nodes: int = 1,
|
||||
num_infer_nodes: int = 0,
|
||||
) -> str:
|
||||
"""Format a log message showing where to find all log files."""
|
||||
col = 18
|
||||
i1 = " " * 2
|
||||
i2 = " " * 3
|
||||
i3 = " " * 4
|
||||
max_name = col - 4
|
||||
|
||||
log_lines: list[str] = []
|
||||
if job_log:
|
||||
log_lines.append(f"{i1}{'Job:':<{col}}tail -F {log_dir.parent}/job_*.log")
|
||||
if trainer:
|
||||
log_lines.append(f"{i1}{'Trainer:':<{col}}tail -F {log_dir}/trainer.log")
|
||||
if num_train_nodes > 1:
|
||||
log_lines.append(f"{i2}{'All nodes:':<{col - 1}}tail -F {log_dir}/trainer/node_*.log")
|
||||
log_lines.append(f"{i2}{'All ranks:':<{col - 1}}tail -F {log_dir}/trainer/torchrun/*/*/*/*.log")
|
||||
if orchestrator:
|
||||
log_lines.append(f"{i1}{'Orchestrator:':<{col}}tail -F {log_dir}/orchestrator.log")
|
||||
if inference:
|
||||
log_lines.append(f"{i1}{'Inference:':<{col}}tail -F {log_dir}/inference.log")
|
||||
if num_infer_nodes > 1:
|
||||
log_lines.append(f"{i2}{'All nodes:':<{col - 1}}tail -F {log_dir}/inference/node_*.log")
|
||||
if train_env_names:
|
||||
env_log_dir = log_dir / "envs"
|
||||
log_lines.append(f"{i1}{'Envs:':<{col}}tail -F {env_log_dir}/*/*/*.log")
|
||||
log_lines.append(f"{i2}{'Train:':<{col - 1}}tail -F {env_log_dir}/train/*/*.log")
|
||||
for name in train_env_names:
|
||||
short = name if len(name) <= max_name else name[: max_name - 3] + "..."
|
||||
log_lines.append(f"{i3}{f'{short}:':<{col - 2}}tail -F {env_log_dir}/train/{name}/*.log")
|
||||
if eval_env_names:
|
||||
log_lines.append(f"{i2}{'Eval:':<{col - 1}}tail -F {env_log_dir}/eval/*/*.log")
|
||||
for name in eval_env_names:
|
||||
short = name if len(name) <= max_name else name[: max_name - 3] + "..."
|
||||
log_lines.append(f"{i3}{f'{short}:':<{col - 2}}tail -F {env_log_dir}/eval/{name}/*.log")
|
||||
return "Logs:\n" + "\n".join(log_lines)
|
||||
|
||||
|
||||
def get_config_dir(output_dir: Path) -> Path:
|
||||
return output_dir / "configs"
|
||||
|
||||
|
||||
@@ -56,13 +56,13 @@ def test_no_error(rl_process: ProcessResult, rl_output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, rl_output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process."""
|
||||
with open(rl_output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(rl_output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_in_range(rl_process: ProcessResult, test_no_error, rl_output_dir: Path):
|
||||
"""Tests that the reward is in range in the RL process."""
|
||||
with open(rl_output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(rl_output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.05)
|
||||
|
||||
@@ -31,6 +31,7 @@ def rl_process(
|
||||
"rl",
|
||||
"@",
|
||||
"configs/ci/integration/rl/start.toml",
|
||||
"--clean-output-dir",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
@@ -77,14 +78,14 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_in_range(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward is in range in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.65)
|
||||
|
||||
@@ -97,6 +98,6 @@ def test_no_error_resume(rl_resume_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_in_range_resume(rl_resume_process: ProcessResult, test_no_error_resume, output_dir: Path):
|
||||
"""Tests that the reward is in range in the RL resume process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.65)
|
||||
|
||||
@@ -31,6 +31,7 @@ def rl_process(
|
||||
"rl",
|
||||
"@",
|
||||
"configs/ci/integration/rl_lora/start.toml",
|
||||
"--clean-output-dir",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
@@ -77,14 +78,14 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_in_range(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward is in range in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.65)
|
||||
|
||||
@@ -97,6 +98,6 @@ def test_no_error_resume(rl_resume_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_in_range_resume(rl_resume_process: ProcessResult, test_no_error_resume, output_dir: Path):
|
||||
"""Tests that the reward is in range in the RL resume process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.65)
|
||||
|
||||
@@ -102,7 +102,7 @@ def start_inference_and_trainer(
|
||||
inference_procs: list[subprocess.Popen] = []
|
||||
inference_logs: list[Path] = []
|
||||
for i, port in enumerate(INFERENCE_PORTS):
|
||||
inference_log = log_dir / f"inference_{i}.stdout"
|
||||
inference_log = log_dir / f"inference_{i}.log"
|
||||
inference_logs.append(inference_log)
|
||||
with open(inference_log, "w") as f:
|
||||
inference_proc = subprocess.Popen(
|
||||
@@ -122,7 +122,7 @@ def start_inference_and_trainer(
|
||||
inference_procs.append(inference_proc)
|
||||
|
||||
# Start trainer with 2 GPUs
|
||||
trainer_log = log_dir / "trainer.stdout"
|
||||
trainer_log = log_dir / "trainer.log"
|
||||
with open(trainer_log, "w") as f:
|
||||
trainer_proc = subprocess.Popen(
|
||||
[
|
||||
@@ -215,7 +215,7 @@ def start_orchestrator(
|
||||
cmd.append("--client.base-url")
|
||||
cmd.extend(INFERENCE_BASE_URLS)
|
||||
|
||||
with open(orch_log_dir / "orchestrator.stdout", "w") as f:
|
||||
with open(orch_log_dir / "orchestrator.log", "w") as f:
|
||||
proc = subprocess.Popen(
|
||||
cmd,
|
||||
stdout=f,
|
||||
@@ -255,7 +255,7 @@ def multi_run_result(
|
||||
# Kill alpha orchestrator once it is past step 10
|
||||
# ------------------------------------------------
|
||||
# There is a checkpoint at step 10, so we need to wait for step 11
|
||||
killed_log = output_dir / "run_alpha" / "logs" / "orchestrator.stdout"
|
||||
killed_log = output_dir / "run_alpha" / "logs" / "orchestrator.log"
|
||||
wait_for_log(
|
||||
killed_log,
|
||||
conditions=["Step 11", "Step 12", "Step 13"],
|
||||
@@ -268,7 +268,7 @@ def multi_run_result(
|
||||
wait_for_file(alpha_ckpt_dir / "STABLE", timeout=TIMEOUT)
|
||||
|
||||
# Stash alpha checkpoint and logs
|
||||
shutil.copy(output_dir / "run_alpha" / "logs" / "orchestrator.stdout", log_dir / "alpha_orchestrator.stdout")
|
||||
shutil.copy(output_dir / "run_alpha" / "logs" / "orchestrator.log", log_dir / "alpha_orchestrator.log")
|
||||
shutil.copytree(alpha_ckpt_dir, tmp_path / "alpha_ckpt_step_10")
|
||||
print(f"Copied alpha checkpoint to {tmp_path / 'alpha_ckpt_step_10'}")
|
||||
|
||||
@@ -292,7 +292,7 @@ def multi_run_result(
|
||||
# Clear beta run directory once it saves the final checkpoint
|
||||
# ------------------------------------------------------------
|
||||
wait_for_log(
|
||||
output_dir / "run_beta" / "logs" / "orchestrator.stdout",
|
||||
output_dir / "run_beta" / "logs" / "orchestrator.log",
|
||||
conditions=["Orchestrator finished."],
|
||||
proc=orch_procs["beta"],
|
||||
poll_interval=1,
|
||||
@@ -301,7 +301,7 @@ def multi_run_result(
|
||||
run_dir = output_dir / "run_beta"
|
||||
beta_ckpt_dir = run_dir / "checkpoints" / "step_20"
|
||||
wait_for_file(beta_ckpt_dir / "STABLE", timeout=TIMEOUT)
|
||||
shutil.copy(run_dir / "logs" / "orchestrator.stdout", log_dir / "beta_orchestrator.stdout")
|
||||
shutil.copy(run_dir / "logs" / "orchestrator.log", log_dir / "beta_orchestrator.log")
|
||||
shutil.copytree(beta_ckpt_dir, tmp_path / "beta_ckpt_step_20")
|
||||
print(f"Copied {beta_ckpt_dir} to {tmp_path / 'beta_ckpt_step_20'}")
|
||||
shutil.rmtree(run_dir)
|
||||
@@ -322,12 +322,12 @@ def multi_run_result(
|
||||
# Clear gamma run directory once it finishes
|
||||
# -------------------------------------------
|
||||
wait_for_log(
|
||||
output_dir / "run_gamma" / "logs" / "orchestrator.stdout",
|
||||
output_dir / "run_gamma" / "logs" / "orchestrator.log",
|
||||
conditions=["Orchestrator finished."],
|
||||
proc=orch_procs["gamma"],
|
||||
timeout=TIMEOUT,
|
||||
)
|
||||
shutil.copy(output_dir / "run_gamma" / "logs" / "orchestrator.stdout", log_dir / "gamma_orchestrator.stdout")
|
||||
shutil.copy(output_dir / "run_gamma" / "logs" / "orchestrator.log", log_dir / "gamma_orchestrator.log")
|
||||
shutil.rmtree(output_dir / "run_gamma")
|
||||
|
||||
# ================================================
|
||||
@@ -340,9 +340,9 @@ def multi_run_result(
|
||||
orch_procs[name].terminate()
|
||||
|
||||
for name in ["alpha_resume", "beta_resume"]:
|
||||
src_log = output_dir / f"run_{name}" / "logs" / "orchestrator.stdout"
|
||||
src_log = output_dir / f"run_{name}" / "logs" / "orchestrator.log"
|
||||
if src_log.exists():
|
||||
shutil.copy(src_log, log_dir / f"{name}_orchestrator.stdout")
|
||||
shutil.copy(src_log, log_dir / f"{name}_orchestrator.log")
|
||||
|
||||
# ===============
|
||||
# Build results
|
||||
@@ -374,7 +374,7 @@ def test_remaining_orchestrators_complete(
|
||||
if name == "alpha": # We sigtermed alpha
|
||||
continue
|
||||
if result.returncode != 0:
|
||||
log_file = log_dir / f"{name}_orchestrator.stdout"
|
||||
log_file = log_dir / f"{name}_orchestrator.log"
|
||||
if log_file.exists():
|
||||
print(f"=== {name} Orchestrator Outputs ===")
|
||||
print(log_file.read_text()[-5000:])
|
||||
@@ -390,7 +390,7 @@ def test_reward_goes_up(multi_run_result: dict[str, ProcessResult], output_dir:
|
||||
# The resumes are close to saturation so might not go up
|
||||
if "resume" in name:
|
||||
continue
|
||||
log_file = log_dir / f"{name}_orchestrator.stdout"
|
||||
log_file = log_dir / f"{name}_orchestrator.log"
|
||||
with open(log_file, "r") as f:
|
||||
lines = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(lines)
|
||||
@@ -402,7 +402,7 @@ def test_reward_in_range(multi_run_result: dict[str, ProcessResult], output_dir:
|
||||
|
||||
print("Test reward in range", multi_run_result.keys())
|
||||
for name in multi_run_result.keys():
|
||||
log_file = log_dir / f"{name}_orchestrator.stdout"
|
||||
log_file = log_dir / f"{name}_orchestrator.log"
|
||||
with open(log_file, "r") as f:
|
||||
lines = strip_escape_codes(f.read()).splitlines()
|
||||
if name in ["beta", "gamma"]:
|
||||
|
||||
@@ -28,14 +28,12 @@ def sft_process(
|
||||
cmd = [
|
||||
"uv",
|
||||
"run",
|
||||
"torchrun",
|
||||
"--local-ranks-filter",
|
||||
"0",
|
||||
"--nproc-per-node",
|
||||
"2",
|
||||
"src/prime_rl/trainer/sft/train.py",
|
||||
"sft",
|
||||
"@",
|
||||
"configs/ci/integration/sft/start.toml",
|
||||
"--deployment.num-gpus",
|
||||
"2",
|
||||
"--clean-output-dir",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
@@ -60,14 +58,11 @@ def sft_resume_process(
|
||||
cmd = [
|
||||
"uv",
|
||||
"run",
|
||||
"torchrun",
|
||||
"--local-ranks-filter",
|
||||
"0",
|
||||
"--nproc-per-node",
|
||||
"2",
|
||||
"src/prime_rl/trainer/sft/train.py",
|
||||
"sft",
|
||||
"@",
|
||||
"configs/ci/integration/sft/resume.toml",
|
||||
"--deployment.num-gpus",
|
||||
"2",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
@@ -86,7 +81,7 @@ def test_no_error(sft_process: ProcessResult):
|
||||
|
||||
def test_loss_goes_down(sft_process: ProcessResult, output_dir: Path):
|
||||
"""Tests that the loss goes down in the SFT process"""
|
||||
trainer_log_path = output_dir / "logs" / "trainer" / "rank_0.log"
|
||||
trainer_log_path = output_dir / "logs" / "trainer.log"
|
||||
print(f"Checking trainer path in {trainer_log_path}")
|
||||
with open(trainer_log_path, "r") as f:
|
||||
trainer_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
@@ -100,7 +95,7 @@ def test_no_error_resume(sft_resume_process: ProcessResult):
|
||||
|
||||
def test_loss_goes_down_resume(sft_resume_process: ProcessResult, output_dir: Path):
|
||||
"""Tests that the loss goes down in the SFT resume process"""
|
||||
trainer_log_path = output_dir / "logs" / "trainer" / "rank_0.log"
|
||||
trainer_log_path = output_dir / "logs" / "trainer.log"
|
||||
print(f"Checking trainer path in {trainer_log_path}")
|
||||
with open(trainer_log_path, "r") as f:
|
||||
trainer_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
|
||||
@@ -38,14 +38,12 @@ def sft_lora_process(
|
||||
cmd = [
|
||||
"uv",
|
||||
"run",
|
||||
"torchrun",
|
||||
"--local-ranks-filter",
|
||||
"0",
|
||||
"--nproc-per-node",
|
||||
"2",
|
||||
"src/prime_rl/trainer/sft/train.py",
|
||||
"sft",
|
||||
"@",
|
||||
"configs/ci/integration/sft_lora/start.toml",
|
||||
"--deployment.num-gpus",
|
||||
"2",
|
||||
"--clean-output-dir",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
@@ -70,14 +68,11 @@ def sft_lora_resume_process(
|
||||
cmd = [
|
||||
"uv",
|
||||
"run",
|
||||
"torchrun",
|
||||
"--local-ranks-filter",
|
||||
"0",
|
||||
"--nproc-per-node",
|
||||
"2",
|
||||
"src/prime_rl/trainer/sft/train.py",
|
||||
"sft",
|
||||
"@",
|
||||
"configs/ci/integration/sft_lora/resume.toml",
|
||||
"--deployment.num-gpus",
|
||||
"2",
|
||||
"--wandb.project",
|
||||
wandb_project,
|
||||
"--wandb.name",
|
||||
@@ -96,7 +91,7 @@ def test_no_error(sft_lora_process: ProcessResult):
|
||||
|
||||
def test_loss_goes_down(sft_lora_process: ProcessResult, output_dir: Path):
|
||||
"""Tests that the loss goes down in the SFT LoRA process"""
|
||||
trainer_log_path = output_dir / "logs" / "trainer" / "rank_0.log"
|
||||
trainer_log_path = output_dir / "logs" / "trainer.log"
|
||||
print(f"Checking trainer path in {trainer_log_path}")
|
||||
with open(trainer_log_path, "r") as f:
|
||||
trainer_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
@@ -116,7 +111,7 @@ def test_no_error_resume(sft_lora_resume_process: ProcessResult):
|
||||
|
||||
def test_loss_goes_down_resume(sft_lora_resume_process: ProcessResult, output_dir: Path):
|
||||
"""Tests that the loss goes down in the SFT LoRA resume process"""
|
||||
trainer_log_path = output_dir / "logs" / "trainer" / "rank_0.log"
|
||||
trainer_log_path = output_dir / "logs" / "trainer.log"
|
||||
print(f"Checking trainer path in {trainer_log_path}")
|
||||
with open(trainer_log_path, "r") as f:
|
||||
trainer_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
|
||||
@@ -50,13 +50,13 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_mismatch_kl_in_band(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that mismatch KL stays within the expected band."""
|
||||
with open(output_dir / "logs" / "trainer.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "trainer.log", "r") as f:
|
||||
trainer_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_mismatch_kl_in_range(trainer_stdout, min_threshold=MISMATCH_KL_MIN, max_threshold=MISMATCH_KL_MAX)
|
||||
|
||||
@@ -46,6 +46,6 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
@@ -59,20 +59,20 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the train reward goes up during training"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_reaches_threshold(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the train reward reaches a minimum threshold"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=MIN_TRAIN_REWARD)
|
||||
|
||||
|
||||
def test_mismatch_kl_in_band(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that mismatch KL stays within the expected band."""
|
||||
with open(output_dir / "logs" / "trainer.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "trainer.log", "r") as f:
|
||||
trainer_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_mismatch_kl_in_range(trainer_stdout, min_threshold=MISMATCH_KL_MIN, max_threshold=MISMATCH_KL_MAX)
|
||||
|
||||
@@ -49,14 +49,14 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_reaches_threshold(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the average reward over the last steps exceeds the threshold"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_avg_reward_in_range(
|
||||
orchestrator_stdout, last_n_steps=REWARD_AVG_LAST_N_STEPS, min_threshold=REWARD_MIN_THRESHOLD
|
||||
|
||||
@@ -46,13 +46,13 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
|
||||
def test_reward_reaches_threshold(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_in_range(orchestrator_stdout, min_threshold=0.65)
|
||||
|
||||
@@ -46,6 +46,6 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
@@ -46,6 +46,6 @@ def test_no_error(rl_process: ProcessResult, output_dir: Path):
|
||||
|
||||
def test_reward_goes_up(rl_process: ProcessResult, test_no_error, output_dir: Path):
|
||||
"""Tests that the reward goes up in the RL process"""
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
orchestrator_stdout = strip_escape_codes(f.read()).splitlines()
|
||||
check_reward_goes_up(orchestrator_stdout)
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
import torch.nn as nn
|
||||
|
||||
from prime_rl.trainer.models.layers.checkpointing import (
|
||||
get_supported_targets,
|
||||
set_selective_activation_checkpointing,
|
||||
)
|
||||
|
||||
_PATCHED_METHODS_ATTR = "_prime_rl_selective_ac_patched_methods"
|
||||
|
||||
|
||||
class DummySelfAttention(nn.Module):
|
||||
def attn_projections(self, hidden_states, position_embeddings=None):
|
||||
return hidden_states
|
||||
|
||||
def output_proj(self, attn_output):
|
||||
return attn_output
|
||||
|
||||
def forward(self, hidden_states):
|
||||
return hidden_states
|
||||
|
||||
|
||||
class DummySlidingAttentionLayer(nn.Module):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.self_attn = DummySelfAttention()
|
||||
self.attention_type = "sliding_attention"
|
||||
|
||||
|
||||
class DummyMamba(nn.Module):
|
||||
def forward(self, hidden_states):
|
||||
return hidden_states
|
||||
|
||||
|
||||
class DummyMambaLayer(nn.Module):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.mamba = DummyMamba()
|
||||
|
||||
|
||||
class DummyMoEMlp(nn.Module):
|
||||
def forward(self, hidden_states):
|
||||
return hidden_states
|
||||
|
||||
def _run_routed_experts(self, hidden_states, *args):
|
||||
return hidden_states
|
||||
|
||||
def _run_local_routed_experts(self, hidden_states, num_tokens_per_expert):
|
||||
return hidden_states
|
||||
|
||||
|
||||
class DummyMoELayer(nn.Module):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.mlp = DummyMoEMlp()
|
||||
|
||||
|
||||
def test_get_supported_targets_treats_mamba_as_linear_attention():
|
||||
assert get_supported_targets(DummyMambaLayer()) == frozenset({"norm", "linear_attn"})
|
||||
|
||||
|
||||
def test_sliding_attention_linear_attn_subsumes_attn_proj_hooks():
|
||||
layer = DummySlidingAttentionLayer()
|
||||
|
||||
set_selective_activation_checkpointing(layer, ["attn_proj", "linear_attn"])
|
||||
|
||||
assert getattr(layer.self_attn, _PATCHED_METHODS_ATTR) == frozenset({"forward"})
|
||||
|
||||
|
||||
def test_routed_experts_checkpointing_patches_local_and_global_helpers():
|
||||
layer = DummyMoELayer()
|
||||
|
||||
assert "routed_experts" in get_supported_targets(layer)
|
||||
|
||||
set_selective_activation_checkpointing(layer, ["routed_experts"])
|
||||
|
||||
assert getattr(layer.mlp, _PATCHED_METHODS_ATTR) == frozenset({"_run_local_routed_experts", "_run_routed_experts"})
|
||||
@@ -84,6 +84,7 @@ def test_nemotron_h_mamba_moe_only():
|
||||
if isinstance(layer, NemotronHAttentionLayer):
|
||||
layer.forward = lambda hidden_states, **kwargs: hidden_states
|
||||
|
||||
torch.manual_seed(42)
|
||||
with torch.device("cuda"), default_dtype(torch.float32):
|
||||
input_ids = torch.randint(0, 256, (1, 32))
|
||||
position_ids = torch.arange(0, 32).unsqueeze(0)
|
||||
|
||||
@@ -18,8 +18,7 @@ def test_dir_with_only_logs_passes(tmp_path):
|
||||
output_dir = tmp_path / "has_logs"
|
||||
output_dir.mkdir()
|
||||
(output_dir / "logs").mkdir()
|
||||
(output_dir / "logs" / "trainer").mkdir(parents=True)
|
||||
(output_dir / "logs" / "trainer" / "rank_0.log").touch()
|
||||
(output_dir / "logs" / "trainer.log").touch()
|
||||
validate_output_dir(output_dir, resuming=False, clean=False)
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
import io
|
||||
import json
|
||||
|
||||
import pyarrow.parquet as pq
|
||||
|
||||
from prime_rl.utils.monitor.prime import PrimeMonitor
|
||||
|
||||
|
||||
def _build_rollout(*, example_id: int, reward: float, task: str) -> dict:
|
||||
return {
|
||||
"example_id": example_id,
|
||||
"prompt": [{"role": "user", "content": f"prompt-{example_id}"}],
|
||||
"completion": [{"role": "assistant", "content": f"completion-{example_id}"}],
|
||||
"trajectory": [
|
||||
{
|
||||
"prompt": [{"role": "user", "content": f"prompt-{example_id}"}],
|
||||
"completion": [{"role": "assistant", "content": f"completion-{example_id}"}],
|
||||
"reward": reward,
|
||||
"advantage": reward / 2,
|
||||
"extras": {"source": "test"},
|
||||
"tokens": {
|
||||
"prompt_ids": [1, 2, 3],
|
||||
"completion_ids": [4, 5],
|
||||
},
|
||||
}
|
||||
],
|
||||
"answer": f"answer-{example_id}",
|
||||
"task": task,
|
||||
"info": {"difficulty": "easy"},
|
||||
"reward": reward,
|
||||
"advantage": reward / 2,
|
||||
"metrics": {"accuracy": reward},
|
||||
"timing": {"generation_ms": 12.5},
|
||||
}
|
||||
|
||||
|
||||
def test_rollouts_to_parquet_bytes_preserves_all_rollouts_and_ids():
|
||||
monitor = PrimeMonitor.__new__(PrimeMonitor)
|
||||
monitor.run_id = "run-123"
|
||||
|
||||
parquet_bytes = monitor._rollouts_to_parquet_bytes(
|
||||
[
|
||||
_build_rollout(example_id=101, reward=1.0, task="task-a"),
|
||||
_build_rollout(example_id=202, reward=0.0, task="task-b"),
|
||||
],
|
||||
step=7,
|
||||
)
|
||||
|
||||
assert parquet_bytes is not None
|
||||
|
||||
table = pq.read_table(io.BytesIO(parquet_bytes))
|
||||
rows = table.to_pylist()
|
||||
|
||||
assert len(rows) == 2
|
||||
assert [row["problem_id"] for row in rows] == [101, 202]
|
||||
assert [row["sample_id"] for row in rows] == [0, 1]
|
||||
assert all(row["run_id"] == "run-123" for row in rows)
|
||||
assert all(row["step"] == 7 for row in rows)
|
||||
assert json.loads(rows[0]["prompt"])[0]["content"] == "prompt-101"
|
||||
assert json.loads(rows[1]["completion"])[0]["content"] == "completion-202"
|
||||
|
||||
|
||||
def test_rollouts_to_parquet_bytes_skips_rollouts_without_trajectory():
|
||||
monitor = PrimeMonitor.__new__(PrimeMonitor)
|
||||
monitor.run_id = "run-456"
|
||||
|
||||
parquet_bytes = monitor._rollouts_to_parquet_bytes(
|
||||
[
|
||||
_build_rollout(example_id=1, reward=1.0, task="task-a"),
|
||||
{
|
||||
"example_id": 2,
|
||||
"prompt": [{"role": "user", "content": "missing-trajectory"}],
|
||||
"completion": [{"role": "assistant", "content": "ignored"}],
|
||||
"trajectory": [],
|
||||
},
|
||||
],
|
||||
step=3,
|
||||
)
|
||||
|
||||
assert parquet_bytes is not None
|
||||
|
||||
table = pq.read_table(io.BytesIO(parquet_bytes))
|
||||
rows = table.to_pylist()
|
||||
|
||||
assert len(rows) == 1
|
||||
assert rows[0]["problem_id"] == 1
|
||||
assert rows[0]["sample_id"] == 0
|
||||
+2
-2
@@ -13,10 +13,10 @@ def check_no_error(process: ProcessResult, output_dir: Path) -> None:
|
||||
"""Helper to assert that a process did not error"""
|
||||
if process.returncode != 0:
|
||||
print("=== Inference Outputs ===")
|
||||
with open(output_dir / "logs" / "inference.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "inference.log", "r") as f:
|
||||
print(*f.readlines()[-100:], sep="\n")
|
||||
print("=== Orchestrator Outputs ===")
|
||||
with open(output_dir / "logs" / "orchestrator.stdout", "r") as f:
|
||||
with open(output_dir / "logs" / "orchestrator.log", "r") as f:
|
||||
print(*f.readlines()[-1000:], sep="\n")
|
||||
assert process.returncode == 0, f"Process has non-zero return code ({process})"
|
||||
|
||||
|
||||
@@ -84,16 +84,8 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/50/42/32cf8e7704ceb4481406eb87161349abb46a57fee3f008ba9cb610968646/aiohttp-3.13.3.tar.gz", hash = "sha256:a949eee43d3782f2daae4f4a2819b2cb9b0c5d3b7f7a927067cc84dafdbb9f88", size = 7844556, upload-time = "2026-01-03T17:33:05.204Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/a8/5a35dc56a06a2c90d4742cbf35294396907027f80eea696637945a106f25/aiohttp-3.13.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d32764c6c9aafb7fb55366a224756387cd50bfa720f32b88e0e6fa45b27dcf29", size = 1737839, upload-time = "2026-01-03T17:30:19.422Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/62/4b9eeb331da56530bf2e198a297e5303e1c1ebdceeb00fe9b568a65c5a0c/aiohttp-3.13.3-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b1a6102b4d3ebc07dad44fbf07b45bb600300f15b552ddf1851b5390202ea2e3", size = 1703932, upload-time = "2026-01-03T17:30:21.756Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/f6/af16887b5d419e6a367095994c0b1332d154f647e7dc2bd50e61876e8e3d/aiohttp-3.13.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c014c7ea7fb775dd015b2d3137378b7be0249a448a1612268b5a90c2d81de04d", size = 1771906, upload-time = "2026-01-03T17:30:23.932Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/83/397c634b1bcc24292fa1e0c7822800f9f6569e32934bdeef09dae7992dfb/aiohttp-3.13.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2b8d8ddba8f95ba17582226f80e2de99c7a7948e66490ef8d947e272a93e9463", size = 1871020, upload-time = "2026-01-03T17:30:26Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/f6/a62cbbf13f0ac80a70f71b1672feba90fdb21fd7abd8dbf25c0105fb6fa3/aiohttp-3.13.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9ae8dd55c8e6c4257eae3a20fd2c8f41edaea5992ed67156642493b8daf3cecc", size = 1755181, upload-time = "2026-01-03T17:30:27.554Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/87/20a35ad487efdd3fba93d5843efdfaa62d2f1479eaafa7453398a44faf13/aiohttp-3.13.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:01ad2529d4b5035578f5081606a465f3b814c542882804e2e8cda61adf5c71bf", size = 1561794, upload-time = "2026-01-03T17:30:29.254Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/de/95/8fd69a66682012f6716e1bc09ef8a1a2a91922c5725cb904689f112309c4/aiohttp-3.13.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bb4f7475e359992b580559e008c598091c45b5088f28614e855e42d39c2f1033", size = 1697900, upload-time = "2026-01-03T17:30:31.033Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/66/7b94b3b5ba70e955ff597672dad1691333080e37f50280178967aff68657/aiohttp-3.13.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:c19b90316ad3b24c69cd78d5c9b4f3aa4497643685901185b65166293d36a00f", size = 1728239, upload-time = "2026-01-03T17:30:32.703Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/71/6f72f77f9f7d74719692ab65a2a0252584bf8d5f301e2ecb4c0da734530a/aiohttp-3.13.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:96d604498a7c782cb15a51c406acaea70d8c027ee6b90c569baa6e7b93073679", size = 1740527, upload-time = "2026-01-03T17:30:34.695Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fa/b4/75ec16cbbd5c01bdaf4a05b19e103e78d7ce1ef7c80867eb0ace42ff4488/aiohttp-3.13.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:084911a532763e9d3dd95adf78a78f4096cd5f58cdc18e6fdbc1b58417a45423", size = 1554489, upload-time = "2026-01-03T17:30:36.864Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/8f/bc518c0eea29f8406dcf7ed1f96c9b48e3bc3995a96159b3fc11f9e08321/aiohttp-3.13.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:7a4a94eb787e606d0a09404b9c38c113d3b099d508021faa615d70a0131907ce", size = 1767852, upload-time = "2026-01-03T17:30:39.433Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/f2/a07a75173124f31f11ea6f863dc44e6f09afe2bca45dd4e64979490deab1/aiohttp-3.13.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:87797e645d9d8e222e04160ee32aa06bc5c163e8499f24db719e7852ec23093a", size = 1722379, upload-time = "2026-01-03T17:30:41.081Z" },
|
||||
]
|
||||
|
||||
@@ -238,7 +230,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/45/b6/4c1205dde5e464ea3bd88e8742e19f899c16fa8916fb8510a851fae985b5/bcrypt-5.0.0-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c2388ca94ffee269b6038d48747f4ce8df0ffbea43f31abfa18ac72f0218effb", size = 275009, upload-time = "2025-09-25T19:49:50.581Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3b/71/427945e6ead72ccffe77894b2655b695ccf14ae1866cd977e185d606dd2f/bcrypt-5.0.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:560ddb6ec730386e7b3b26b8b4c88197aaed924430e7b74666a586ac997249ef", size = 278029, upload-time = "2025-09-25T19:49:52.533Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/72/c344825e3b83c5389a369c8a8e58ffe1480b8a699f46c127c34580c4666b/bcrypt-5.0.0-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d79e5c65dcc9af213594d6f7f1fa2c98ad3fc10431e7aa53c176b441943efbdd", size = 275907, upload-time = "2025-09-25T19:49:54.709Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/7e/d4e47d2df1641a36d1212e5c0514f5291e1a956a7749f1e595c07a972038/bcrypt-5.0.0-cp38-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2b732e7d388fa22d48920baa267ba5d97cca38070b69c0e2d37087b381c681fd", size = 296500, upload-time = "2025-09-25T19:49:56.013Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/c3/0ae57a68be2039287ec28bc463b82e4b8dc23f9d12c0be331f4782e19108/bcrypt-5.0.0-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:0c8e093ea2532601a6f686edbc2c6b2ec24131ff5c52f7610dd64fa4553b5464", size = 278412, upload-time = "2025-09-25T19:49:57.356Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/2b/77424511adb11e6a99e3a00dcc7745034bee89036ad7d7e255a7e47be7d8/bcrypt-5.0.0-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5b1589f4839a0899c146e8892efe320c0fa096568abd9b95593efac50a87cb75", size = 275486, upload-time = "2025-09-25T19:49:59.116Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/0a/405c753f6158e0f3f14b00b462d8bca31296f7ecfc8fc8bc7919c0c7d73a/bcrypt-5.0.0-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:89042e61b5e808b67daf24a434d89bab164d4de1746b37a8d173b6b14f3db9ff", size = 277940, upload-time = "2025-09-25T19:50:00.869Z" },
|
||||
@@ -249,7 +240,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/ee/2f4985dbad090ace5ad1f7dd8ff94477fe089b5fab2040bd784a3d5f187b/bcrypt-5.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ddb4e1500f6efdd402218ffe34d040a1196c072e07929b9820f363a1fd1f4191", size = 275290, upload-time = "2025-09-25T19:50:13.673Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/6e/b77ade812672d15cf50842e167eead80ac3514f3beacac8902915417f8b7/bcrypt-5.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7aeef54b60ceddb6f30ee3db090351ecf0d40ec6e2abf41430997407a46d2254", size = 278253, upload-time = "2025-09-25T19:50:15.089Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/c4/ed00ed32f1040f7990dac7115f82273e3c03da1e1a1587a778d8cea496d8/bcrypt-5.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f0ce778135f60799d89c9693b9b398819d15f1921ba15fe719acb3178215a7db", size = 276084, upload-time = "2025-09-25T19:50:16.699Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e7/c4/fa6e16145e145e87f1fa351bbd54b429354fd72145cd3d4e0c5157cf4c70/bcrypt-5.0.0-cp39-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a71f70ee269671460b37a449f5ff26982a6f2ba493b3eabdd687b4bf35f875ac", size = 297185, upload-time = "2025-09-25T19:50:18.525Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/b4/11f8a31d8b67cca3371e046db49baa7c0594d71eb40ac8121e2fc0888db0/bcrypt-5.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f8429e1c410b4073944f03bd778a9e066e7fad723564a52ff91841d278dfc822", size = 278656, upload-time = "2025-09-25T19:50:19.809Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/31/79f11865f8078e192847d2cb526e3fa27c200933c982c5b2869720fa5fce/bcrypt-5.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:edfcdcedd0d0f05850c52ba3127b1fce70b9f89e0fe5ff16517df7e81fa3cbb8", size = 275662, upload-time = "2025-09-25T19:50:21.567Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/8d/5e43d9584b3b3591a6f9b68f755a4da879a59712981ef5ad2a0ac1379f7a/bcrypt-5.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:611f0a17aa4a25a69362dcc299fda5c8a3d4f160e2abb3831041feb77393a14a", size = 278240, upload-time = "2025-09-25T19:50:23.305Z" },
|
||||
@@ -288,9 +278,6 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e7/08/22b6326dbe002ca77c92082b37b14a935003897b0e3eed025da92c700751/blake3-1.0.5.tar.gz", hash = "sha256:7bac73f393a67ea6d5ac32e4a45d39c184487c89c712ab3ed839c1a51ed82259", size = 115140, upload-time = "2025-05-19T20:08:29.911Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/40/b81a25077df6fa1722be8c268732205281e12a244f9d5a15e9e72c2baa04/blake3-1.0.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:abe84cc2db3172bbade48dbf7b6029decb82e9cd382bc3cb783b8624a3ee55d8", size = 374599, upload-time = "2025-05-19T20:07:06.951Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/1b/8fc14c7b7ae116edc42f8e8cd5c21a99d8b68ab761e31347c4c9c6bbedf6/blake3-1.0.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ca8935b4a733968a463d6445dc7cb0dcc09759c280df4847f020deec8fcaff27", size = 375221, upload-time = "2025-05-19T20:07:08.39Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/91/e335f22765d7e80fd5aa6a25b2f2f5f0c5d649049f88d0c8ac1f6a8c431d/blake3-1.0.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:15ecd628f824d5591a1958babd4217749f1facd3945f33a14c3e5fbb52ffb922", size = 509907, upload-time = "2025-05-19T20:07:11.023Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/ec/c1676c275592efdb3a6e4489d0f5e029d38565593466ba70c42b73e76b1a/blake3-1.0.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a12b12df3c40089bf2785c333f8f1161b2a66ecacb44828de9fbf2868037934b", size = 395611, upload-time = "2025-05-19T20:07:12.815Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/04/a86bfb3c20e859e43ead0b13be59afd98feb166ea929e76fa3d190f65f6e/blake3-1.0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f39e8d36e33f413938230683f192f0565f44ee2b050ad92fb94b343706f3df55", size = 384757, upload-time = "2025-05-19T20:07:14.122Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/bf/93ce719f88b48d5bcdf2f765789a5a955ea6a02a33f310321508c8421ad6/blake3-1.0.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7083e1b2cfb737c812e20d790c232c38045c7bfe37ef02526f395d491f90f213", size = 551032, upload-time = "2025-05-19T20:07:15.56Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/13/99/a2e644e0a2039977beb67abbc1f48f6f6c7e0f0c345665811cfa2880b196/blake3-1.0.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:21240932fc914fd719e2d33297f29742c28a31d8a96cb666ec4679bf2c35aa48", size = 555543, upload-time = "2025-05-19T20:07:17.056Z" },
|
||||
@@ -350,8 +337,6 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529", size = 523588, upload-time = "2025-09-08T23:24:04.541Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/72/12b5f8d3865bf0f87cf1404d8c374e7487dcf097a1c91c436e72e6badd83/cffi-2.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b21e08af67b8a103c71a250401c78d5e0893beff75e28c53c98f4de42f774062", size = 220097, upload-time = "2025-09-08T23:22:48.677Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/95/7a135d52a50dfa7c882ab0ac17e8dc11cec9d55d2c18dda414c051c5e69e/cffi-2.0.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:1e3a615586f05fc4065a8b22b8152f0c1b00cdbc60596d187c2a74f9e3036e4e", size = 207983, upload-time = "2025-09-08T23:22:50.06Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3a/c8/15cb9ada8895957ea171c62dc78ff3e99159ee7adb13c0123c001a2546c1/cffi-2.0.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:81afed14892743bbe14dacb9e36d9e0e504cd204e0b165062c488942b9718037", size = 206519, upload-time = "2025-09-08T23:22:51.364Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/2d/7fa73dfa841b5ac06c7b8855cfc18622132e365f5b81d02230333ff26e9e/cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3e17ed538242334bf70832644a32a7aae3d83b57567f9fd60a26257e992b79ba", size = 219572, upload-time = "2025-09-08T23:22:52.902Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/07/e0/267e57e387b4ca276b90f0434ff88b2c2241ad72b16d31836adddfd6031b/cffi-2.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3925dd22fa2b7699ed2617149842d2e6adde22b262fcbfada50e3d195e4b3a94", size = 222963, upload-time = "2025-09-08T23:22:54.518Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/75/1f2747525e06f53efbd878f4d03bac5b859cbc11c633d0fb81432d98a795/cffi-2.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2c8f814d84194c9ea681642fd164267891702542f028a15fc97d4674b6206187", size = 221361, upload-time = "2025-09-08T23:22:55.867Z" },
|
||||
@@ -373,7 +358,6 @@ source = { registry = "https://pypi.org/simple" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/29/59/133001a6a7549dd34a3c28d1358122b0e68a59f27840efb2102b72eb73cf/chardet-7.4.0.post1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:45adca296eddec38b803ce352bffcc5fff40576246e74fcd2aa358f9c813ffe0", size = 859436, upload-time = "2026-03-26T19:17:30.2Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c3/00/2eec7b47263524f204b3225d023f7d75e9c06a0a75c06a4c85faf2aec246/chardet-7.4.0.post1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f03aef24d91168232db8b01e4d6726676708be503e6aa07e28ab808e6d0fe606", size = 868655, upload-time = "2026-03-26T19:17:31.871Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/a2/36e5b1a46a36293cac237fa5c61f9e11497e025ec2e4b10e8d187dede9b9/chardet-7.4.0.post1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5aec4e167de05470a3e2466a1ae751d7f0ad15510f63633fdd01a0405515df7a", size = 862406, upload-time = "2026-03-26T19:17:33.529Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/d7/47988d40231b41376f5a66346ef3b322c81091dfd4c0f84df5a1e3bb06b5/chardet-7.4.0.post1-py3-none-any.whl", hash = "sha256:57a62ef50f69bc2fb3a3ea1ffffec6d10f3d2112d3b05d6e3cb15c2c9b55f6cc", size = 624666, upload-time = "2026-03-26T19:17:51.248Z" },
|
||||
]
|
||||
|
||||
@@ -384,12 +368,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz", hash = "sha256:6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14", size = 122371, upload-time = "2025-08-09T07:57:28.46Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/a8/c6ec5d389672521f644505a257f50544c074cf5fc292d5390331cd6fc9c3/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0cacf8f7297b0c4fcb74227692ca46b4a5852f8f4f24b3c766dd94a1075c4884", size = 146223, upload-time = "2025-08-09T07:56:09.708Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fc/eb/a2ffb08547f4e1e5415fb69eb7db25932c52a52bed371429648db4d84fb1/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c6fd51128a41297f5409deab284fecbe5305ebd7e5a1f959bee1c054622b7018", size = 159366, upload-time = "2025-08-09T07:56:11.326Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/10/0fd19f20c624b278dddaf83b8464dcddc2456cb4b02bb902a6da126b87a1/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3cfb2aad70f2c6debfbcb717f23b7eb55febc0bb23dcffc0f076009da10c6392", size = 157104, upload-time = "2025-08-09T07:56:13.014Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/16/ab/0233c3231af734f5dfcf0844aa9582d5a1466c985bbed6cedab85af9bfe3/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1606f4a55c0fd363d754049cdf400175ee96c992b1f8018b993941f221221c5f", size = 151830, upload-time = "2025-08-09T07:56:14.428Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/02/e29e22b4e02839a0e4a06557b1999d0a47db3567e82989b5bb21f3fbbd9f/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:027b776c26d38b7f15b26a5da1044f376455fb3766df8fc38563b4efbc515154", size = 148854, upload-time = "2025-08-09T07:56:16.051Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/6b/e2539a0a4be302b481e8cafb5af8792da8093b486885a1ae4d15d452bcec/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:42e5088973e56e31e4fa58eb6bd709e42fc03799c11c42929592889a2e54c491", size = 160670, upload-time = "2025-08-09T07:56:17.314Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/e7/883ee5676a2ef217a40ce0bffcc3d0dfbf9e64cbcfbdf822c52981c3304b/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:cc34f233c9e71701040d772aa7490318673aa7164a0efe3172b2981218c26d93", size = 158501, upload-time = "2025-08-09T07:56:18.641Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/35/6525b21aa0db614cf8b5792d232021dca3df7f90a1944db934efa5d20bb1/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:320e8e66157cc4e247d9ddca8e21f427efc7a04bbd0ac8a9faf56583fa543f9f", size = 153173, upload-time = "2025-08-09T07:56:20.289Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/1f/f041989e93b001bc4e44bb1669ccdcf54d3f00e628229a85b08d330615c5/charset_normalizer-3.4.3-py3-none-any.whl", hash = "sha256:ce571ab16d890d23b5c278547ba694193a45011ff86a9162a71307ed9f86759a", size = 53175, upload-time = "2025-08-09T07:57:26.864Z" },
|
||||
]
|
||||
@@ -533,22 +513,16 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/1c/67/38769ca6b65f07461eb200e85fc1639b438bdc667be02cf7f2cd6a64601c/cryptography-46.0.3-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:09859af8466b69bc3c27bdf4f5d84a665e0f7ab5088412e9e2ec49758eca5cbc", size = 4296667, upload-time = "2025-10-15T23:16:54.369Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/49/498c86566a1d80e978b42f0d702795f69887005548c041636df6ae1ca64c/cryptography-46.0.3-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:01ca9ff2885f3acc98c29f1860552e37f6d7c7d013d7334ff2a9de43a449315d", size = 4450807, upload-time = "2025-10-15T23:16:56.414Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/0a/863a3604112174c8624a2ac3c038662d9e59970c7f926acdcfaed8d61142/cryptography-46.0.3-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:6eae65d4c3d33da080cff9c4ab1f711b15c1d9760809dad6ea763f3812d254cb", size = 4299615, upload-time = "2025-10-15T23:16:58.442Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/02/b73a533f6b64a69f3cd3872acb6ebc12aef924d8d103133bb3ea750dc703/cryptography-46.0.3-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e5bf0ed4490068a2e72ac03d786693adeb909981cc596425d09032d372bcc849", size = 4016800, upload-time = "2025-10-15T23:17:00.378Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/25/d5/16e41afbfa450cde85a3b7ec599bebefaef16b5c6ba4ec49a3532336ed72/cryptography-46.0.3-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:5ecfccd2329e37e9b7112a888e76d9feca2347f12f37918facbb893d7bb88ee8", size = 4984707, upload-time = "2025-10-15T23:17:01.98Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/56/e7e69b427c3878352c2fb9b450bd0e19ed552753491d39d7d0a2f5226d41/cryptography-46.0.3-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a2c0cd47381a3229c403062f764160d57d4d175e022c1df84e168c6251a22eec", size = 4482541, upload-time = "2025-10-15T23:17:04.078Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/f6/50736d40d97e8483172f1bb6e698895b92a223dba513b0ca6f06b2365339/cryptography-46.0.3-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:549e234ff32571b1f4076ac269fcce7a808d3bf98b76c8dd560e42dbc66d7d91", size = 4299464, upload-time = "2025-10-15T23:17:05.483Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/de/d8e26b1a855f19d9994a19c702fa2e93b0456beccbcfe437eda00e0701f2/cryptography-46.0.3-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:c0a7bb1a68a5d3471880e264621346c48665b3bf1c3759d682fc0864c540bd9e", size = 4950838, upload-time = "2025-10-15T23:17:07.425Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8f/29/798fc4ec461a1c9e9f735f2fc58741b0daae30688f41b2497dcbc9ed1355/cryptography-46.0.3-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:10b01676fc208c3e6feeb25a8b83d81767e8059e1fe86e1dc62d10a3018fa926", size = 4481596, upload-time = "2025-10-15T23:17:09.343Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/15/8d/03cd48b20a573adfff7652b76271078e3045b9f49387920e7f1f631d125e/cryptography-46.0.3-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:0abf1ffd6e57c67e92af68330d05760b7b7efb243aab8377e583284dbab72c71", size = 4426782, upload-time = "2025-10-15T23:17:11.22Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fa/b1/ebacbfe53317d55cf33165bda24c86523497a6881f339f9aae5c2e13e57b/cryptography-46.0.3-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a04bee9ab6a4da801eb9b51f1b708a1b5b5c9eb48c03f74198464c66f0d344ac", size = 4698381, upload-time = "2025-10-15T23:17:12.829Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/27/32/b68d27471372737054cbd34c84981f9edbc24fe67ca225d389799614e27f/cryptography-46.0.3-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4b7387121ac7d15e550f5cb4a43aef2559ed759c35df7336c402bb8275ac9683", size = 4294089, upload-time = "2025-10-15T23:17:48.269Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/42/fa8389d4478368743e24e61eea78846a0006caffaf72ea24a15159215a14/cryptography-46.0.3-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:15ab9b093e8f09daab0f2159bb7e47532596075139dd74365da52ecc9cb46c5d", size = 4440029, upload-time = "2025-10-15T23:17:49.837Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5f/eb/f483db0ec5ac040824f269e93dd2bd8a21ecd1027e77ad7bdf6914f2fd80/cryptography-46.0.3-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:46acf53b40ea38f9c6c229599a4a13f0d46a6c3fa9ef19fc1a124d62e338dfa0", size = 4297222, upload-time = "2025-10-15T23:17:51.357Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/cf/da9502c4e1912cb1da3807ea3618a6829bee8207456fbbeebc361ec38ba3/cryptography-46.0.3-cp38-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:10ca84c4668d066a9878890047f03546f3ae0a6b8b39b697457b7757aaf18dbc", size = 4012280, upload-time = "2025-10-15T23:17:52.964Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/8f/9adb86b93330e0df8b3dcf03eae67c33ba89958fc2e03862ef1ac2b42465/cryptography-46.0.3-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:36e627112085bb3b81b19fed209c05ce2a52ee8b15d161b7c643a7d5a88491f3", size = 4978958, upload-time = "2025-10-15T23:17:54.965Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/a0/5fa77988289c34bdb9f913f5606ecc9ada1adb5ae870bd0d1054a7021cc4/cryptography-46.0.3-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:1000713389b75c449a6e979ffc7dcc8ac90b437048766cef052d4d30b8220971", size = 4473714, upload-time = "2025-10-15T23:17:56.754Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/e5/fc82d72a58d41c393697aa18c9abe5ae1214ff6f2a5c18ac470f92777895/cryptography-46.0.3-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:b02cf04496f6576afffef5ddd04a0cb7d49cf6be16a9059d793a30b035f6b6ac", size = 4296970, upload-time = "2025-10-15T23:17:58.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/06/5663ed35438d0b09056973994f1aec467492b33bd31da36e468b01ec1097/cryptography-46.0.3-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:71e842ec9bc7abf543b47cf86b9a743baa95f4677d22baa4c7d5c69e49e9bc04", size = 4940236, upload-time = "2025-10-15T23:18:00.897Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fc/59/873633f3f2dcd8a053b8dd1d38f783043b5fce589c0f6988bf55ef57e43e/cryptography-46.0.3-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:402b58fc32614f00980b66d6e56a5b4118e6cb362ae8f3fda141ba4689bd4506", size = 4472642, upload-time = "2025-10-15T23:18:02.749Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/39/8e71f3930e40f6877737d6f69248cf74d4e34b886a3967d32f919cc50d3b/cryptography-46.0.3-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ef639cb3372f69ec44915fafcd6698b6cc78fbe0c2ea41be867f6ed612811963", size = 4423126, upload-time = "2025-10-15T23:18:04.85Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cd/c7/f65027c2810e14c3e7268353b1681932b87e5a48e65505d8cc17c99e36ae/cryptography-46.0.3-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:3b51b8ca4f1c6453d8829e1eb7299499ca7f313900dd4d89a24b8b87c0a780d4", size = 4686573, upload-time = "2025-10-15T23:18:06.908Z" },
|
||||
@@ -585,19 +559,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/af/f3/6b032a554019cfb3447e671798c1bd3e79b5f1af20d10253f56cea269ef2/cuda_python-12.9.4-py3-none-any.whl", hash = "sha256:d2cacea882a69863f1e7d27ee71d75f0684f4c76910aff839067e4f89c902279", size = 7594, upload-time = "2025-10-21T14:55:12.846Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cupy-cuda12x"
|
||||
version = "13.6.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "fastrlock", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "numpy", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/12/c5/7e7fc4816d0de0154e5d9053242c3a08a0ca8b43ee656a6f7b3b95055a7b/cupy_cuda12x-13.6.0-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:a6970ceefe40f9acbede41d7fe17416bd277b1bd2093adcde457b23b578c5a59", size = 127334633, upload-time = "2025-08-18T08:24:43.065Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/95/d7e1295141e7d530674a3cc567e13ed0eb6b81524cb122d797ed996b5bea/cupy_cuda12x-13.6.0-cp312-cp312-manylinux2014_x86_64.whl", hash = "sha256:79b0cacb5e8b190ef409f9e03f06ac8de1b021b0c0dda47674d446f5557e0eb1", size = 112886268, upload-time = "2025-08-18T08:24:49.294Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "datasets"
|
||||
version = "4.0.0"
|
||||
@@ -874,18 +835,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/5c/9516828037b1680de14bae4d93b2868b26417059e1e5cb7d8ad7be649197/fastcore-1.12.31-py3-none-any.whl", hash = "sha256:2634f117fe3a2f6c250f8500f70211c96158399936e90fa6d1010d2d516bf03a", size = 98509, upload-time = "2026-03-22T02:21:19.274Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fastrlock"
|
||||
version = "0.8.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/73/b1/1c3d635d955f2b4bf34d45abf8f35492e04dbd7804e94ce65d9f928ef3ec/fastrlock-0.8.3.tar.gz", hash = "sha256:4af6734d92eaa3ab4373e6c9a1dd0d5ad1304e172b1521733c6c3b3d73c8fa5d", size = 79327, upload-time = "2024-12-17T11:03:39.638Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/57/21/ea1511b0ef0d5457efca3bf1823effb9c5cad4fc9dca86ce08e4d65330ce/fastrlock-0.8.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85a49a1f1e020097d087e1963e42cea6f307897d5ebe2cb6daf4af47ffdd3eed", size = 52201, upload-time = "2024-12-17T11:02:19.512Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/07/cdecb7aa976f34328372f1c4efd6c9dc1b039b3cc8d3f38787d640009a25/fastrlock-0.8.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5f13ec08f1adb1aa916c384b05ecb7dbebb8df9ea81abd045f60941c6283a670", size = 53924, upload-time = "2024-12-17T11:02:20.85Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/88/6d/59c497f8db9a125066dd3a7442fab6aecbe90d6fec344c54645eaf311666/fastrlock-0.8.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0ea4e53a04980d646def0f5e4b5e8bd8c7884288464acab0b37ca0c65c482bfe", size = 52140, upload-time = "2024-12-17T11:02:22.263Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/62/04/9138943c2ee803d62a48a3c17b69de2f6fa27677a6896c300369e839a550/fastrlock-0.8.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:38340f6635bd4ee2a4fb02a3a725759fe921f2ca846cb9ca44531ba739cc17b4", size = 53261, upload-time = "2024-12-17T11:02:24.418Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "filelock"
|
||||
version = "3.19.1"
|
||||
@@ -960,7 +909,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flashinfer-python"
|
||||
version = "0.6.4"
|
||||
version = "0.6.6"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "apache-tvm-ffi", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -977,9 +926,9 @@ dependencies = [
|
||||
{ name = "torch", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "tqdm", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/77/45/15645d2a4ee81d08206f3e132a77323e48312f510462415d7cd1122eba43/flashinfer_python-0.6.4.tar.gz", hash = "sha256:e6ab798bd1030e5ff7a3bc6952f36386c406928f60b79cf964a6db7aa7ccde75", size = 5337134, upload-time = "2026-02-19T07:33:36.647Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/03/70/c5a235297351021f5d3d3233523a85f5a6468495587489ad2f257e8eafe2/flashinfer_python-0.6.6.tar.gz", hash = "sha256:0730ba7c7aad332961933bcebc5119762797161ede57d955f6fd199818ed1d92", size = 5344156, upload-time = "2026-03-11T01:36:21.434Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/17/9a/d2bab76d2bb15062c6a2329614653e4f8bec9c78eec9069856ef0c7c0a79/flashinfer_python-0.6.4-py3-none-any.whl", hash = "sha256:105596b505892ae330af84e250ee0eb6fc2c3a22e8dc42bd46de1b90d36004c8", size = 7819999, upload-time = "2026-02-19T07:33:34.82Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/61/385d06755f3ab66333018285657adf0daf8a90a129448231fd09e315bd2e/flashinfer_python-0.6.6-py3-none-any.whl", hash = "sha256:078f158636969eec1a0d3dea19c3ca90b426b66df89bbf7b7b8276ce2ec08148", size = 7817047, upload-time = "2026-03-11T01:36:19.198Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -997,14 +946,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/79/b1/b64018016eeb087db503b038296fd782586432b9c077fc5c7839e9cb6ef6/frozenlist-1.7.0.tar.gz", hash = "sha256:2e310d81923c2437ea8670467121cc3e9b0f76d3043cc1d2331d56c7fb7a3a8f", size = 45078, upload-time = "2025-06-09T23:02:35.538Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/a2/a910bafe29c86997363fb4c02069df4ff0b5bc39d33c5198b4e9dd42d8f8/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa57daa5917f1738064f302bf2626281a1cb01920c32f711fbc7bc36111058a8", size = 243084, upload-time = "2025-06-09T23:00:46.125Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/3e/5036af9d5031374c64c387469bfcc3af537fc0f5b1187d83a1cf6fab1639/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c193dda2b6d49f4c4398962810fa7d7c78f032bf45572b3e04dd5249dff27e08", size = 233524, upload-time = "2025-06-09T23:00:47.73Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/06/39/6a17b7c107a2887e781a48ecf20ad20f1c39d94b2a548c83615b5b879f28/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bfe2b675cf0aaa6d61bf8fbffd3c274b3c9b7b1623beb3809df8a81399a4a9c4", size = 248493, upload-time = "2025-06-09T23:00:49.742Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/00/711d1337c7327d88c44d91dd0f556a1c47fb99afc060ae0ef66b4d24793d/frozenlist-1.7.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8fc5d5cda37f62b262405cf9652cf0856839c4be8ee41be0afe8858f17f4c94b", size = 244116, upload-time = "2025-06-09T23:00:51.352Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/db/48421f62a6f77c553575201e89048e97198046b793f4a089c79a6e3268bd/frozenlist-1.7.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:488d0a7d6a0008ca0db273c542098a0fa9e7dfaa7e57f70acef43f32b3f69dca", size = 241820, upload-time = "2025-06-09T23:00:54.43Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/fa/cb4a76bea23047c8462976ea7b7a2bf53997a0ca171302deae9d6dd12096/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:15a7eaba63983d22c54d255b854e8108e7e5f3e89f647fc854bd77a237e767df", size = 236542, upload-time = "2025-06-09T23:00:56.409Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/32/476a4b5cfaa0ec94d3f808f193301debff2ea42288a099afe60757ef6282/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1eaa7e9c6d15df825bf255649e05bd8a74b04a4d2baa1ae46d9c2d00b2ca2cb5", size = 249350, upload-time = "2025-06-09T23:00:58.468Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/29/3a32959e68f9cf000b04e79ba574527c17e8842e38c91d68214a37455786/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:73bd45e1488c40b63fe5a7df892baf9e2a4d4bb6409a2b3b78ac1c6236178e01", size = 245482, upload-time = "2025-06-09T23:01:01.474Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/e8/edf2f9e00da553f07f5fa165325cfc302dead715cab6ac8336a5f3d0adc2/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:99886d98e1643269760e5fe0df31e5ae7050788dd288947f7f007209b8c33f08", size = 249590, upload-time = "2025-06-09T23:01:02.961Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1c/80/9a0eb48b944050f94cc51ee1c413eb14a39543cc4f760ed12657a5a3c45a/frozenlist-1.7.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:290a172aae5a4c278c6da8a96222e6337744cd9c77313efe33d5670b9f65fc43", size = 237785, upload-time = "2025-06-09T23:01:05.095Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/45/b82e3c16be2182bff01179db177fe144d58b5dc787a7d4492c6ed8b9317f/frozenlist-1.7.0-py3-none-any.whl", hash = "sha256:9a5af342e34f7e97caf8c995864c7a396418ae2859cc6fdf1b1073020d516a7e", size = 13106, upload-time = "2025-06-09T23:02:34.204Z" },
|
||||
]
|
||||
@@ -1115,26 +1058,12 @@ dependencies = [
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/0b/bb/d89b2f8ed062af360e872746cab9d5a98acf80f9fec537536203695cce63/grpcio-1.78.0rc2.tar.gz", hash = "sha256:d624592c82a19a5898c5576fbda43c28d7062bac04ea6f33bbd8871bc0639e64", size = 12831859, upload-time = "2026-01-16T07:30:23.727Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/08/ca0f91793817a002a775b0a3918d88645237bf3d69c7e53dcc7c5769a1bc/grpcio-1.78.0rc2-cp312-cp312-linux_armv7l.whl", hash = "sha256:5ccf4496425b5f5a7a9b801d79fe5e8bfbdf2408b2ab976f291f3e1536d4a3f7", size = 5914063, upload-time = "2026-01-16T07:28:33.049Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/e7/94e4c7ae7fdbaf7adc8af47eb6e3b53166c184b281a470210df8bf0dcb96/grpcio-1.78.0rc2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7fe343a2ccaa3ca48a933e81f4c0a9de37057cf5bc5567864a98775cce570456", size = 6476173, upload-time = "2026-01-16T07:28:38.599Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/d7/60e821443c044365222a7fcd6630344016ea3e31bf4903f3a22f93e5b3a1/grpcio-1.78.0rc2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e7bde54ad7bee2d4dbc6d4a351d5b62cc2bfa87c58e9db911ed8a0489192ca9a", size = 6690812, upload-time = "2026-01-16T07:28:43.887Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/47/b19c67ca6e0622fccb88558452e6f7458551ef365456585968dcd84a1db3/grpcio-1.78.0rc2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4e99bbce4f509eb6af4b523109152258043b92bbb945950456a9318eca71ef2e", size = 7266122, upload-time = "2026-01-16T07:28:46.109Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/81/dcf11b5915a39024d4a98ef14b16cb0c636a4f2f26ef657982d3144c6544/grpcio-1.78.0rc2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ea66e360e5ea032a1f6dde926915ba683edca811ed6f0e0620c52e264ba364e4", size = 7698266, upload-time = "2026-01-16T07:28:51.342Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "grpcio-reflection"
|
||||
version = "1.78.0rc2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "grpcio", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "protobuf", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f7/4f/7c5032a6365cf964ef3e1fea7df76294d2804e6414802e36000d57f0eeb3/grpcio_reflection-1.78.0rc2.tar.gz", hash = "sha256:d925a43ef37f93a2129575111bf4add284d344eecc7e610b65f3b61a59c671b7", size = 19111, upload-time = "2026-01-16T08:01:53.077Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/61/c3/a1082fb098bb23c19c5df32b78c83bd000289592e079fa2daf7dddba7a43/grpcio_reflection-1.78.0rc2-py3-none-any.whl", hash = "sha256:c4a5f8e9681a83c0ddc80b8648d74144bf6c7bad1e7e2598c77754a8e7998d61", size = 22838, upload-time = "2026-01-16T08:01:41.466Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "grpclib"
|
||||
version = "0.4.9"
|
||||
@@ -1453,9 +1382,6 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ee/9d/ae7ddb4b8ab3fb1b51faf4deb36cb48a4fbbd7cb36bad6a5fca4741306f7/jiter-0.10.0.tar.gz", hash = "sha256:07a7142c38aacc85194391108dc91b5b57093c978a9932bd86a36862759d9500", size = 162759, upload-time = "2025-05-18T19:04:59.73Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/85/1ce02cade7516b726dd88f59a4ee46914bf79d1676d1228ef2002ed2f1c9/jiter-0.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23ba7722d6748b6920ed02a8f1726fb4b33e0fd2f3f621816a8b486c66410ab2", size = 345330, upload-time = "2025-05-18T19:03:47.596Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/d0/bb6b4f209a77190ce10ea8d7e50bf3725fc16d3372d0a9f11985a2b23eff/jiter-0.10.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:371eab43c0a288537d30e1f0b193bc4eca90439fc08a022dd83e5e07500ed026", size = 369670, upload-time = "2025-05-18T19:03:49.334Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/f5/a61787da9b8847a601e6827fbc42ecb12be2c925ced3252c8ffcb56afcaf/jiter-0.10.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6c675736059020365cebc845a820214765162728b51ab1e03a1b7b3abb70f74c", size = 489057, upload-time = "2025-05-18T19:03:50.66Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/12/e4/6f906272810a7b21406c760a53aadbe52e99ee070fc5c0cb191e316de30b/jiter-0.10.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0c5867d40ab716e4684858e4887489685968a47e3ba222e44cde6e4a2154f959", size = 389372, upload-time = "2025-05-18T19:03:51.98Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e2/ba/77013b0b8ba904bf3762f11e0129b8928bff7f978a81838dfcc958ad5728/jiter-0.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:395bb9a26111b60141757d874d27fdea01b17e8fac958b91c20128ba8f4acc8a", size = 352038, upload-time = "2025-05-18T19:03:53.703Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/72/0d6b7e31fc17a8fdce76164884edef0698ba556b8eb0af9546ae1a06b91d/jiter-0.10.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:62755d1bcea9876770d4df713d82606c8c1a3dca88ff39046b85a048566d56ea", size = 523557, upload-time = "2025-05-18T19:03:56.386Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/09/bc1661fbbcbeb6244bd2904ff3a06f340aa77a2b94e5a7373fd165960ea3/jiter-0.10.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:533efbce2cacec78d5ba73a41756beff8431dfa1694b6346ce7af3a12c42202b", size = 514202, upload-time = "2025-05-18T19:03:57.675Z" },
|
||||
@@ -1535,16 +1461,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/43/6a/ca128561b22b60bd5a0c4ea26649e68c8556b82bc70a0c396eebc977fe86/jupyterlab_widgets-3.0.15-py3-none-any.whl", hash = "sha256:d59023d7d7ef71400d51e6fee9a88867f6e65e10a4201605d2d7f3e8f012a31c", size = 216571, upload-time = "2025-05-05T12:32:29.534Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "kaldi-native-fbank"
|
||||
version = "1.22.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/3a/2c/84076b352107ce12d56f28c313f1aca1be332d953dd96aec7b84976e6d53/kaldi-native-fbank-1.22.3.tar.gz", hash = "sha256:387bf87225c6b83c93ae652eeaef1b4d531994b6e398e7a77189de340674f9af", size = 71013, upload-time = "2025-10-09T02:31:21.487Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/43/28/6f4fd8953c0b3f30de4526fd024095032abcdc25b6736c77a891687c604e/kaldi_native_fbank-1.22.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f5a44b4a83cf9bf13d3f77858928068b06d3ec2238c27ff2e39393fbf7749c9f", size = 298887, upload-time = "2025-10-09T02:30:53.739Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/90/01ef7331c52b1eaf9916f3f7a535155aac2e9e2ddad12a141613d92758c7/kaldi_native_fbank-1.22.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f16e74372fe9e20abb4183f98a8e2288d5ee4c48d04d94b6160311170e007661", size = 322002, upload-time = "2025-10-09T02:30:13.04Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "kubernetes"
|
||||
version = "35.0.0"
|
||||
@@ -1849,7 +1765,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "mistral-common"
|
||||
version = "1.9.1"
|
||||
version = "1.10.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "jsonschema", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -1861,9 +1777,9 @@ dependencies = [
|
||||
{ name = "tiktoken", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "typing-extensions", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/db/ce/685b8127a326478e05501cb4c9ca23d1cd9f37e16c465a1e832c75aea709/mistral_common-1.9.1.tar.gz", hash = "sha256:550583d70a395c3586cfb748ffab53bd1d7c3409507f0efc0118bff30ffb26e9", size = 6338922, upload-time = "2026-02-12T10:53:41.639Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a7/22/f798c1acc3f8cf32b6201b063d96867d79aa39d31dff12478739e1a78979/mistral_common-1.10.0.tar.gz", hash = "sha256:e456ff101edbdfc094039ec6c26f7d0f73356729798d628a6e6e96c3917147bc", size = 6351515, upload-time = "2026-03-13T10:13:46.683Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/72/a38bb1fd9fd4d4ef990341c9dd1a7c8061f1951e10efa6d50c0a3f04eced/mistral_common-1.9.1-py3-none-any.whl", hash = "sha256:9e2b2520b6f67bac2e2bb06fcf985b7a1277b01938da2b7cda8cf0fdbfa92e91", size = 6518623, upload-time = "2026-02-12T10:53:39.457Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/c6/1429a0a3ab40f8530492b62b52eb792266c261b22ed62aa7f25d61d531ae/mistral_common-1.10.0-py3-none-any.whl", hash = "sha256:c594d1a05202b61e8f0d867ec6064df4c5e5d492c2c2bdb6fd8fb4872c6afd8b", size = 6525284, upload-time = "2026-03-13T10:13:44.329Z" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
@@ -1892,11 +1808,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/91/1a/edb23803a168f070d
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/e2/51ed62063b44d10b06d975ac87af287729eeb5e3ed9772f7584a17983e90/mmh3-5.2.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8e6c219e375f6341d0959af814296372d265a8ca1af63825f65e2e87c618f006", size = 103274, upload-time = "2026-03-05T15:54:26.44Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/ce/12a7524dca59eec92e5b31fdb13ede1e98eda277cf2b786cf73bfbc24e81/mmh3-5.2.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:26fb5b9c3946bf7f1daed7b37e0c03898a6f062149127570f8ede346390a0825", size = 106158, upload-time = "2026-03-05T15:54:28.578Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/1f/d3ba6dd322d01ab5d44c46c8f0c38ab6bbbf9b5e20e666dfc05bf4a23604/mmh3-5.2.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3c38d142c706201db5b2345166eeef1e7740e3e2422b470b8ba5c8727a9b4c7a", size = 113005, upload-time = "2026-03-05T15:54:29.767Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/a9/15d6b6f913294ea41b44d901741298e3718e1cb89ee626b3694625826a43/mmh3-5.2.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:50885073e2909251d4718634a191c49ae5f527e5e1736d738e365c3e8be8f22b", size = 120744, upload-time = "2026-03-05T15:54:30.931Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/b3/70b73923fd0284c439860ff5c871b20210dfdbe9a6b9dd0ee6496d77f174/mmh3-5.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b3f99e1756fc48ad507b95e5d86f2fb21b3d495012ff13e6592ebac14033f166", size = 99111, upload-time = "2026-03-05T15:54:32.353Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/68/6e292c0853e204c44d2f03ea5f090be3317a0e2d9417ecb62c9eb27687df/mmh3-5.2.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8f767ba0911602ddef289404e33835a61168314ebd3c729833db2ed685824211", size = 106437, upload-time = "2026-03-05T15:54:35.177Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dd/c6/fedd7284c459cfb58721d461fcf5607a4c1f5d9ab195d113d51d10164d16/mmh3-5.2.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:67e41a497bac88cc1de96eeba56eeb933c39d54bc227352f8455aa87c4ca4000", size = 110002, upload-time = "2026-03-05T15:54:36.673Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3b/ac/ca8e0c19a34f5b71390171d2ff0b9f7f187550d66801a731bb68925126a4/mmh3-5.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3d74a03fb57757ece25aa4b3c1c60157a1cece37a020542785f942e2f827eed5", size = 97507, upload-time = "2026-03-05T15:54:37.804Z" },
|
||||
]
|
||||
|
||||
@@ -1983,14 +1895,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/69/7f/0652e6ed47ab288e3756ea9c0df8b14950781184d4bd7883f4d87dd41245/multidict-6.6.4.tar.gz", hash = "sha256:d2d4e4787672911b48350df02ed3fa3fffdc2f2e8ca06dd6afdf34189b76a9dd", size = 101843, upload-time = "2025-08-11T12:08:48.217Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/c8/45/8b3d6dbad8cf3252553cc41abea09ad527b33ce47a5e199072620b296902/multidict-6.6.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0a2088c126b6f72db6c9212ad827d0ba088c01d951cee25e758c450da732c138", size = 258299, upload-time = "2025-08-11T12:06:58.946Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/e8/8ca2e9a9f5a435fc6db40438a55730a4bf4956b554e487fa1b9ae920f825/multidict-6.6.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0f37bed7319b848097085d7d48116f545985db988e2256b2e6f00563a3416ee6", size = 242357, upload-time = "2025-08-11T12:07:00.301Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/84/80c77c99df05a75c28490b2af8f7cba2a12621186e0a8b0865d8e745c104/multidict-6.6.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:01368e3c94032ba6ca0b78e7ccb099643466cf24f8dc8eefcfdc0571d56e58f9", size = 268369, upload-time = "2025-08-11T12:07:01.638Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0d/e9/920bfa46c27b05fb3e1ad85121fd49f441492dca2449c5bcfe42e4565d8a/multidict-6.6.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8fe323540c255db0bffee79ad7f048c909f2ab0edb87a597e1c17da6a54e493c", size = 269341, upload-time = "2025-08-11T12:07:02.943Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/af/65/753a2d8b05daf496f4a9c367fe844e90a1b2cac78e2be2c844200d10cc4c/multidict-6.6.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8eb3025f17b0a4c3cd08cda49acf312a19ad6e8a4edd9dbd591e6506d999402", size = 256100, upload-time = "2025-08-11T12:07:04.564Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/54/655be13ae324212bf0bc15d665a4e34844f34c206f78801be42f7a0a8aaa/multidict-6.6.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bbc14f0365534d35a06970d6a83478b249752e922d662dc24d489af1aa0d1be7", size = 253584, upload-time = "2025-08-11T12:07:05.914Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/74/ab2039ecc05264b5cec73eb018ce417af3ebb384ae9c0e9ed42cb33f8151/multidict-6.6.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:75aa52fba2d96bf972e85451b99d8e19cc37ce26fd016f6d4aa60da9ab2b005f", size = 251018, upload-time = "2025-08-11T12:07:08.301Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0e/b0/0ed49bba775b135937f52fe13922bc64a7eaf0a3ead84a36e8e4e446e096/multidict-6.6.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:db9801fe021f59a5b375ab778973127ca0ac52429a26e2fd86aa9508f4d26eb7", size = 263575, upload-time = "2025-08-11T12:07:11.928Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3e/d9/7fb85a85e14de2e44dfb6a24f03c41e2af8697a6df83daddb0e9b7569f73/multidict-6.6.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a650629970fa21ac1fb06ba25dabfc5b8a2054fcbf6ae97c758aa956b8dba802", size = 259649, upload-time = "2025-08-11T12:07:13.244Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/03/9e/b3a459bcf9b6e74fa461a5222a10ff9b544cb1cd52fd482fb1b75ecda2a2/multidict-6.6.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:452ff5da78d4720d7516a3a2abd804957532dd69296cb77319c193e3ffb87e24", size = 251505, upload-time = "2025-08-11T12:07:14.57Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/69/b547032297c7e63ba2af494edba695d781af8a0c6e89e4d06cf848b21d80/multidict-6.6.4-py3-none-any.whl", hash = "sha256:27d8f8e125c07cb954e54d75d04905a9bba8a439c1d84aca94949d4d03d8601c", size = 12313, upload-time = "2025-08-11T12:08:46.891Z" },
|
||||
]
|
||||
@@ -2036,16 +1942,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/43/73/79a0b22fc731989c708068427579e840a6cf4e937fe7ae5c5d0b7356ac22/ninja-1.13.0.tar.gz", hash = "sha256:4a40ce995ded54d9dc24f8ea37ff3bf62ad192b547f6c7126e7e25045e76f978", size = 242558, upload-time = "2025-08-11T15:10:19.421Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/de/6e1cd6b84b412ac1ef327b76f0641aeb5dcc01e9d3f9eee0286d0c34fd93/ninja-1.13.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3d00c692fb717fd511abeb44b8c5d00340c36938c12d6538ba989fe764e79630", size = 177467, upload-time = "2025-08-11T15:09:52.767Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/c7/ba22748fb59f7f896b609cd3e568d28a0a367a6d953c24c461fe04fc4433/ninja-1.13.0-py3-none-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:60056592cf495e9a6a4bea3cd178903056ecb0943e4de45a2ea825edb6dc8d3e", size = 202736, upload-time = "2025-08-11T15:09:55.745Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/22/d1de07632b78ac8e6b785f41fa9aad7a978ec8c0a1bf15772def36d77aac/ninja-1.13.0-py3-none-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:1c97223cdda0417f414bf864cfb73b72d8777e57ebb279c5f6de368de0062988", size = 179034, upload-time = "2025-08-11T15:09:57.394Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/de/0e6edf44d6a04dabd0318a519125ed0415ce437ad5a1ec9b9be03d9048cf/ninja-1.13.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fb46acf6b93b8dd0322adc3a4945452a4e774b75b91293bafcc7b7f8e6517dfa", size = 180716, upload-time = "2025-08-11T15:09:58.696Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/28/938b562f9057aaa4d6bfbeaa05e81899a47aebb3ba6751e36c027a7f5ff7/ninja-1.13.0-py3-none-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4be9c1b082d244b1ad7ef41eb8ab088aae8c109a9f3f0b3e56a252d3e00f42c1", size = 146843, upload-time = "2025-08-11T15:10:00.046Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/fb/d06a3838de4f8ab866e44ee52a797b5491df823901c54943b2adb0389fbb/ninja-1.13.0-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:6739d3352073341ad284246f81339a384eec091d9851a886dfa5b00a6d48b3e2", size = 154402, upload-time = "2025-08-11T15:10:01.657Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/bf/0d7808af695ceddc763cf251b84a9892cd7f51622dc8b4c89d5012779f06/ninja-1.13.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:11be2d22027bde06f14c343f01d31446747dbb51e72d00decca2eb99be911e2f", size = 552388, upload-time = "2025-08-11T15:10:03.349Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/70/c99d0c2c809f992752453cce312848abb3b1607e56d4cd1b6cded317351a/ninja-1.13.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:aa45b4037b313c2f698bc13306239b8b93b4680eb47e287773156ac9e9304714", size = 472501, upload-time = "2025-08-11T15:10:04.735Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/45/9151bba2c8d0ae2b6260f71696330590de5850e5574b7b5694dce6023e20/ninja-1.13.0-py3-none-musllinux_1_2_ppc64le.whl", hash = "sha256:3d7d7779d12cb20c6d054c61b702139fd23a7a964ec8f2c823f1ab1b084150db", size = 642420, upload-time = "2025-08-11T15:10:08.35Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/fb/95752eb635bb8ad27d101d71bef15bc63049de23f299e312878fc21cb2da/ninja-1.13.0-py3-none-musllinux_1_2_riscv64.whl", hash = "sha256:d741a5e6754e0bda767e3274a0f0deeef4807f1fec6c0d7921a0244018926ae5", size = 585106, upload-time = "2025-08-11T15:10:09.818Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/31/aa56a1a286703800c0cbe39fb4e82811c277772dc8cd084f442dd8e2938a/ninja-1.13.0-py3-none-musllinux_1_2_s390x.whl", hash = "sha256:e8bad11f8a00b64137e9b315b137d8bb6cbf3086fbdc43bf1f90fd33324d2e96", size = 707138, upload-time = "2025-08-11T15:10:11.366Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/34/6f/5f5a54a1041af945130abdb2b8529cbef0cdcbbf9bcf3f4195378319d29a/ninja-1.13.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:b4f2a072db3c0f944c32793e91532d8948d20d9ab83da9c0c7c15b5768072200", size = 581758, upload-time = "2025-08-11T15:10:13.295Z" },
|
||||
]
|
||||
|
||||
@@ -2396,11 +2294,8 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/92/94/01509d510bebf6606614e51113e5a415ced15b8f34aa98a8bf2539314650/openai_harmony-0.0.4.tar.gz", hash = "sha256:5c67ac6df349236fb7b64f57c3dbb0273efcdca24314daa108f2a482c427106c", size = 279848, upload-time = "2025-08-09T01:43:24.974Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/05/88/ade63bd8f36603610040e7cc086bc134d57a99a742e05f7fcddfdf822ee1/openai_harmony-0.0.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3cf2344366f10981bbc0f6d9949a0b2bb87151d209ed295943ed6ad8eda37932", size = 2963206, upload-time = "2025-08-09T01:43:02.433Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/ef/a65a0ff177fdf67bc0afd18bb9e7ad690d1b553a8eb5ebf27f601b22dbd0/openai_harmony-0.0.4-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2d8d16d84702059833fb03b841b28c25600c54e83cadccef79af44e1c81166b1", size = 2724854, upload-time = "2025-08-09T01:43:04.606Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/24/246f6f470bfbc89a117714b68f27cdaee12b31166237a227cc657780cc1d/openai_harmony-0.0.4-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:567cc568b6bf7b4d041b0c9aa7d6b2c9394f8af6065bc87fa6d23f207b5af9a7", size = 3447870, upload-time = "2025-08-09T01:43:06.734Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/ec/dcdcace0ffcf3a532cca910e0c351b62d3a7decf0b091ea8cf856d2a67a6/openai_harmony-0.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:31e9bcac0902a309e2fc688e52f247eec7fffcd00d17e958b9a83a8fea6519c2", size = 3049306, upload-time = "2025-08-09T01:43:11.019Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/39/172f1048d935db1523a82b45fee5231ad6c622645e566706e6bcf3731da8/openai_harmony-0.0.4-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:96a63199c0d81095b5d5d1ae8ca82b64c1c13d18d4e30323ae9e8ab31bc80a3d", size = 3121347, upload-time = "2025-08-09T01:43:16.705Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/36/8ee4ca5d0b25587121fd3621e6a6106fba80218cb6d159e1670aeb2b22ef/openai_harmony-0.0.4-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:d38f2639f6bf7c3c34a5dfd79e29075811ae2fa9b895a63e76767f74a47a971e", size = 2952326, upload-time = "2025-08-09T01:43:18.841Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/bd/aa9e6e5cf140716dbcae17402fac2a81a9ebb3f934059ac0eec61cb447fc/openai_harmony-0.0.4-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:15e6d53a66502491a3675a536df30e271f976e6c5efe68250a65191efcb85c4f", size = 3221129, upload-time = "2025-08-09T01:43:23.146Z" },
|
||||
]
|
||||
|
||||
@@ -2547,12 +2442,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/53/45/b268004f745ede84e5798b48ee12b05129d19235d0e15267aa57dcdb400b/orjson-3.11.7.tar.gz", hash = "sha256:9b1a67243945819ce55d24a30b59d6a168e86220452d2c96f4d1f093e71c0c49", size = 6144992, upload-time = "2026-02-02T15:38:49.29Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/83/10e48852865e5dd151bdfe652c06f7da484578ed02c5fca938e3632cb0b8/orjson-3.11.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5ede977b5fe5ac91b1dffc0a517ca4542d2ec8a6a4ff7b2652d94f640796342a", size = 128154, upload-time = "2026-02-02T15:37:48.954Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/52/a66e22a2b9abaa374b4a081d410edab6d1e30024707b87eab7c734afe28d/orjson-3.11.7-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b7b1dae39230a393df353827c855a5f176271c23434cfd2db74e0e424e693e10", size = 123548, upload-time = "2026-02-02T15:37:50.187Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/98/af32e842b0ffd2335c89714d48ca4e3917b42f5d6ee5537832e069a4b3ac/orjson-3.11.7-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3726be79e36e526e3d9c1aceaadbfb4a04ee80a72ab47b3f3c17fefb9812e7b8", size = 141686, upload-time = "2026-02-02T15:37:52.607Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/96/0b/fc793858dfa54be6feee940c1463370ece34b3c39c1ca0aa3845f5ba9892/orjson-3.11.7-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0724e265bc548af1dedebd9cb3d24b4e1c1e685a343be43e87ba922a5c5fff2f", size = 130812, upload-time = "2026-02-02T15:37:53.944Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/91/98a52415059db3f374757d0b7f0f16e3b5cd5976c90d1c2b56acaea039e6/orjson-3.11.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e7745312efa9e11c17fbd3cb3097262d079da26930ae9ae7ba28fb738367cbad", size = 133440, upload-time = "2026-02-02T15:37:55.615Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/b6/cb540117bda61791f46381f8c26c8f93e802892830a6055748d3bb1925ab/orjson-3.11.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f904c24bdeabd4298f7a977ef14ca2a022ca921ed670b92ecd16ab6f3d01f867", size = 138386, upload-time = "2026-02-02T15:37:56.814Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/63/1a/50a3201c334a7f17c231eee5f841342190723794e3b06293f26e7cf87d31/orjson-3.11.7-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:b9fc4d0f81f394689e0814617aadc4f2ea0e8025f38c226cbf22d3b5ddbf025d", size = 408853, upload-time = "2026-02-02T15:37:58.291Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/fe/d605d700c35dd55f51710d159fc54516a280923cd1b7e47508982fbb387d/orjson-3.11.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4682d1db3bcebd2b64757e0ddf9e87ae5f00d29d16c5cdf3a62f561d08cc3dd2", size = 134818, upload-time = "2026-02-02T15:38:01.507Z" },
|
||||
]
|
||||
|
||||
@@ -2862,8 +2753,8 @@ requires-dist = [
|
||||
{ name = "torchtitan", git = "https://github.com/pytorch/torchtitan?rev=a1fdd7e" },
|
||||
{ name = "transformers", git = "https://github.com/huggingface/transformers.git?rev=5c1c72b" },
|
||||
{ name = "uvloop", specifier = ">=0.21.0" },
|
||||
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=0db45e6" },
|
||||
{ name = "vllm", specifier = ">=0.17.0" },
|
||||
{ name = "verifiers", git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=5d75d97" },
|
||||
{ name = "vllm", specifier = ">=0.18.0" },
|
||||
{ name = "vllm-router", marker = "platform_machine == 'x86_64' and extra == 'disagg'", url = "https://github.com/samsja/flash-attn-builds/releases/download/v0.3/vllm_router-0.1.11-cp38-abi3-linux_x86_64.whl" },
|
||||
{ name = "wandb", specifier = ">=0.24.2" },
|
||||
{ name = "wiki-search", marker = "extra == 'envs'", index = "https://hub.primeintellect.ai/primeintellect/simple/" },
|
||||
@@ -2952,13 +2843,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a6/16/43264e4a779dd8588c21a70f0709665ee8f611211bdd2c87d952cfa7c776/propcache-0.3.2.tar.gz", hash = "sha256:20d7d62e4e7ef05f221e0db2856b979540686342e7dd9973b815599c7057e168", size = 44139, upload-time = "2025-06-09T22:56:06.081Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/37/2c/489afe311a690399d04a3e03b069225670c1d489eb7b044a566511c1c498/propcache-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bca54bd347a253af2cf4544bbec232ab982f4868de0dd684246b67a51bc6b1db", size = 226958, upload-time = "2025-06-09T22:54:35.186Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/ca/63b520d2f3d418c968bf596839ae26cf7f87bead026b6192d4da6a08c467/propcache-0.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:55780d5e9a2ddc59711d727226bb1ba83a22dd32f64ee15594b9392b1f544eb1", size = 234894, upload-time = "2025-06-09T22:54:36.708Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/60/1d0ed6fff455a028d678df30cc28dcee7af77fa2b0e6962ce1df95c9a2a9/propcache-0.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:035e631be25d6975ed87ab23153db6a73426a48db688070d925aa27e996fe93c", size = 233672, upload-time = "2025-06-09T22:54:38.062Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/7c/54fd5301ef38505ab235d98827207176a5c9b2aa61939b10a460ca53e123/propcache-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee6f22b6eaa39297c751d0e80c0d3a454f112f5c6481214fcf4c092074cecd67", size = 224395, upload-time = "2025-06-09T22:54:39.634Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5e/33/ca98368586c9566a6b8d5ef66e30484f8da84c0aac3f2d9aec6d31a11bd5/propcache-0.3.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7a4f30862869fa2b68380d677cc1c5fcf1e0f2b9ea0cf665812895c75d0ca3b8", size = 222949, upload-time = "2025-06-09T22:54:43.038Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ba/11/ace870d0aafe443b33b2f0b7efdb872b7c3abd505bfb4890716ad7865e9d/propcache-0.3.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:b77ec3c257d7816d9f3700013639db7491a434644c906a2578a11daf13176251", size = 217258, upload-time = "2025-06-09T22:54:44.376Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/07/94/2d7d1e328f45ff34a0a284cf5a2847013701e24c2a53117e7c280a4316b3/propcache-0.3.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:0b504d29f3c47cf6b9e936c1852246c83d450e8e063d50562115a6be6d3a2535", size = 227684, upload-time = "2025-06-09T22:54:47.63Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b7/05/37ae63a0087677e90b1d14710e532ff104d44bc1efa3b3970fff99b891dc/propcache-0.3.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:ce2ac2675a6aa41ddb2a0c9cbff53780a617ac3d43e620f8fd77ba1c84dcfc06", size = 234562, upload-time = "2025-06-09T22:54:48.982Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/7c/3f539fcae630408d0bd8bf3208b9a647ccad10976eda62402a80adf8fc34/propcache-0.3.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:62b4239611205294cc433845b914131b2a1f03500ff3c1ed093ed216b82621e1", size = 222142, upload-time = "2025-06-09T22:54:50.424Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/35/cc0aaecf278bb4575b8555f2b137de5ab821595ddae9da9d3cd1da4072c7/propcache-0.3.2-py3-none-any.whl", hash = "sha256:98f1ec44fb675f5052cccc8e609c46ed23a35a1cfd18545ad4e29002d858a43f", size = 12663, upload-time = "2025-06-09T22:56:04.484Z" },
|
||||
]
|
||||
@@ -2970,7 +2856,6 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ba/25/7c72c307aafc96fa87062aa6291d9f7c94836e43214d43722e86037aac02/protobuf-6.33.5.tar.gz", hash = "sha256:6ddcac2a081f8b7b9642c09406bc6a4290128fce5f471cddd165960bb9119e5c", size = 444465, upload-time = "2026-01-29T21:51:33.494Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/b1/c79468184310de09d75095ed1314b839eb2f72df71097db9d1404a1b2717/protobuf-6.33.5-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:9b71e0281f36f179d00cbcb119cb19dec4d14a81393e5ea220f64b286173e190", size = 324638, upload-time = "2026-01-29T21:51:26.423Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/f5/65d838092fd01c44d16037953fd4c2cc851e783de9b8f02b27ec4ffd906f/protobuf-6.33.5-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:8afa18e1d6d20af15b417e728e9f60f3aa108ee76f23c3b2c07a2c3b546d3afd", size = 339411, upload-time = "2026-01-29T21:51:27.446Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/53/a9443aa3ca9ba8724fdfa02dd1887c1bcd8e89556b715cfbacca6b63dbec/protobuf-6.33.5-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:cbf16ba3350fb7b889fca858fb215967792dc125b35c7976ca4818bee3521cf0", size = 323465, upload-time = "2026-01-29T21:51:28.925Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/57/bf/2086963c69bdac3d7cff1cc7ff79b8ce5ea0bec6797a017e1be338a46248/protobuf-6.33.5-py3-none-any.whl", hash = "sha256:69915a973dd0f60f31a08b8318b73eab2bd6a392c79184b3612226b0a3f8ec02", size = 170687, upload-time = "2026-01-29T21:51:32.557Z" },
|
||||
]
|
||||
@@ -3032,15 +2917,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/04/14/43297a7b7f0c1bf0c
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/87/d9baf98cbfc37b8657290ad4421f3a3c36aa0eafe4872c5859cfb52f3448/pybase64-1.4.2-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ace8b23093a6bb862477080d9059b784096ab2f97541e8bfc40d42f062875149", size = 71587, upload-time = "2025-07-27T13:03:12.719Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/89/3df043cc56ef3b91b7aa0c26ae822a2d7ec8da0b0fd7c309c879b0eb5988/pybase64-1.4.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1772c7532a7fb6301baea3dd3e010148dbf70cd1136a83c2f5f91bdc94822145", size = 59910, upload-time = "2025-07-27T13:03:14.266Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/4f/6641e9edf37aeb4d4524dc7ba2168eff8d96c90e77f6283c2be3400ab380/pybase64-1.4.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:f86f7faddcba5cbfea475f8ab96567834c28bf09ca6c7c3d66ee445adac80d8f", size = 56701, upload-time = "2025-07-27T13:03:15.6Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/7f/20d8ac1046f12420a0954a45a13033e75f98aade36eecd00c64e3549b071/pybase64-1.4.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:0b8c8e275b5294089f314814b4a50174ab90af79d6a4850f6ae11261ff6a7372", size = 59288, upload-time = "2025-07-27T13:03:16.823Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/ea/9c0ca570e3e50b3c6c3442e280c83b321a0464c86a9db1f982a4ff531550/pybase64-1.4.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:864d85a0470c615807ae8b97d724d068b940a2d10ac13a5f1b9e75a3ce441758", size = 60267, upload-time = "2025-07-27T13:03:18.132Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f9/ac/46894929d71ccedebbfb0284173b0fea96bc029cd262654ba8451a7035d6/pybase64-1.4.2-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:47254d97ed2d8351e30ecfdb9e2414547f66ba73f8a09f932c9378ff75cd10c5", size = 54801, upload-time = "2025-07-27T13:03:19.669Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/1e/02c95218ea964f0b2469717c2c69b48e63f4ca9f18af01a5b2a29e4c1216/pybase64-1.4.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:264b65ecc4f0ee73f3298ab83bbd8008f7f9578361b8df5b448f985d8c63e02a", size = 58599, upload-time = "2025-07-27T13:03:20.951Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/15/45/ccc21004930789b8fb439d43e3212a6c260ccddb2bf450c39a20db093f33/pybase64-1.4.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:fbcc2b30cd740c16c9699f596f22c7a9e643591311ae72b1e776f2d539e9dd9d", size = 52388, upload-time = "2025-07-27T13:03:23.064Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/55/0c/232c6261b81296e5593549b36e6e7884a5da008776d12665923446322c36/pybase64-1.4.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:0c91c6d2a7232e2a1cd10b3b75a8bb657defacd4295a1e5e80455df2dfc84d4f", size = 57841, upload-time = "2025-07-27T13:03:25.948Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/20/8a/b35a615ae6f04550d696bb179c414538b3b477999435fdd4ad75b76139e4/pybase64-1.4.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a370dea7b1cee2a36a4d5445d4e09cc243816c5bc8def61f602db5a6f5438e52", size = 54320, upload-time = "2025-07-27T13:03:27.495Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/a9/8bd4f9bcc53689f1b457ecefed1eaa080e4949d65a62c31a38b7253d5226/pybase64-1.4.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9aa4de83f02e462a6f4e066811c71d6af31b52d7484de635582d0e3ec3d6cc3e", size = 56482, upload-time = "2025-07-27T13:03:28.942Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/e5/4a7735b54a1191f61c3f5c2952212c85c2d6b06eb5fb3671c7603395f70c/pybase64-1.4.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:83a1c2f9ed00fee8f064d548c8654a480741131f280e5750bb32475b7ec8ee38", size = 70959, upload-time = "2025-07-27T13:03:30.171Z" },
|
||||
]
|
||||
|
||||
@@ -3101,12 +2978,8 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/68/b8/a01b53cb0e59139fbc9e4fda3e9724ede8de279097179be4ff31f1abb65a/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e96cea19e34778f8d59fe40775a7a574d95816eb150850a85a7a4c8f4b94ac69", size = 1919200, upload-time = "2025-11-04T13:40:02.241Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/de/8c36b5198a29bdaade07b5985e80a233a5ac27137846f3bc2d3b40a47360/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed2e99c456e3fadd05c991f8f437ef902e00eedf34320ba2b0842bd1c3ca3a75", size = 2052578, upload-time = "2025-11-04T13:40:04.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/b5/0e8e4b5b081eac6cb3dbb7e60a65907549a1ce035a724368c330112adfdd/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:65840751b72fbfd82c3c640cff9284545342a4f1eb1586ad0636955b261b0b05", size = 2208504, upload-time = "2025-11-04T13:40:06.072Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/56/87a61aad59c7c5b9dc8caad5a41a5545cba3810c3e828708b3d7404f6cef/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e536c98a7626a98feb2d3eaf75944ef6f3dbee447e1f841eae16f2f0a72d8ddc", size = 2335816, upload-time = "2025-11-04T13:40:07.835Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0d/76/941cc9f73529988688a665a5c0ecff1112b3d95ab48f81db5f7606f522d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eceb81a8d74f9267ef4081e246ffd6d129da5d87e37a77c9bde550cb04870c1c", size = 2075366, upload-time = "2025-11-04T13:40:09.804Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/87/41f3202e4193e3bacfc2c065fab7706ebe81af46a83d3e27605029c1f5a6/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:c23e27686783f60290e36827f9c626e63154b82b116d7fe9adba1fda36da706c", size = 2132603, upload-time = "2025-11-04T13:40:13.868Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/7d/4c00df99cb12070b6bccdef4a195255e6020a550d572768d92cc54dba91a/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:482c982f814460eabe1d3bb0adfdc583387bd4691ef00b90575ca0d2b6fe2294", size = 2329591, upload-time = "2025-11-04T13:40:15.672Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/6a/ebf4b1d65d458f3cda6a7335d141305dfa19bdc61140a884d165a8a1bbc7/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:bfea2a5f0b4d8d43adf9d7b8bf019fb46fdd10a2e5cde477fbcb9d1fa08c68e1", size = 2319068, upload-time = "2025-11-04T13:40:17.532Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/0d/e3549b2399f71d56476b77dbf3cf8937cec5cd70536bdc0e374a421d0599/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c007fe8a43d43b3969e8469004e9845944f1a80e6acd47c150856bb87f230c56", size = 1942879, upload-time = "2025-11-04T13:42:56.483Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/07/34573da085946b6a313d7c42f82f16e8920bfd730665de2d11c0c37a74b5/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:76d0819de158cd855d1cbb8fcafdf6f5cf1eb8e470abe056d5d161106e38062b", size = 2139017, upload-time = "2025-11-04T13:42:59.471Z" },
|
||||
@@ -3267,7 +3140,6 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631, upload-time = "2024-08-06T20:33:50.674Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154, upload-time = "2024-08-06T20:32:28.363Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223, upload-time = "2024-08-06T20:32:30.058Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542, upload-time = "2024-08-06T20:32:31.881Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164, upload-time = "2024-08-06T20:32:37.083Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611, upload-time = "2024-08-06T20:32:38.898Z" },
|
||||
@@ -3303,30 +3175,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/28/e688da97806474963b2983a8231572733de11ed48f8899410c0afc8bdf15/quack_kernels-0.3.6-py3-none-any.whl", hash = "sha256:973d974ccca816014006af8f136294ba0f15b1c324197f8b54ffc6500666e0e5", size = 198865, upload-time = "2026-03-24T13:29:59.107Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ray"
|
||||
version = "2.49.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "click", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "filelock", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "jsonschema", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "msgpack", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "packaging", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "protobuf", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "pyyaml", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "requests", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/c6/ba/77eae921fc2595087516df6efc0ca03caacc14d16592341985916f1aed13/ray-2.49.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:cf63b916e399c2a4d484249611a96cee283cef32e544126115a4ad3e872c34eb", size = 69287149, upload-time = "2025-09-03T00:25:47.605Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/02/c81260c0f94bd34a1442ea488bdd433dfc9e6ed6211c9a59bc4157b8e00e/ray-2.49.1-cp312-cp312-manylinux2014_x86_64.whl", hash = "sha256:484064fca02732e0b6f4a09dad0d1fb6abd4ca4b6d9bf7c26ab7a17a2887cd09", size = 70114899, upload-time = "2025-09-03T00:25:53.144Z" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
cgraph = [
|
||||
{ name = "cupy-cuda12x", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "referencing"
|
||||
version = "0.36.2"
|
||||
@@ -3348,12 +3196,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/b2/5a/4c63457fbcaf19d138d72b2e9b39405954f98c0349b31c601bfcb151582c/regex-2025.9.1.tar.gz", hash = "sha256:88ac07b38d20b54d79e704e38aa3bd2c0f8027432164226bdee201a1c0c9c9ff", size = 400852, upload-time = "2025-09-01T22:10:10.479Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/74/f933a607a538f785da5021acf5323961b4620972e2c2f1f39b6af4b71db7/regex-2025.9.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9dc5991592933a4192c166eeb67b29d9234f9c86344481173d1bc52f73a7104", size = 797441, upload-time = "2025-09-01T22:08:39.108Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/d0/71fc49b4f20e31e97f199348b8c4d6e613e7b6a54a90eb1b090c2b8496d7/regex-2025.9.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a32291add816961aab472f4fad344c92871a2ee33c6c219b6598e98c1f0108f2", size = 862654, upload-time = "2025-09-01T22:08:40.586Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/59/05/984edce1411a5685ba9abbe10d42cdd9450aab4a022271f9585539788150/regex-2025.9.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:588c161a68a383478e27442a678e3b197b13c5ba51dbba40c1ccb8c4c7bee9e9", size = 910862, upload-time = "2025-09-01T22:08:42.416Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/02/5c891bb5fe0691cc1bad336e3a94b9097fbcf9707ec8ddc1dce9f0397289/regex-2025.9.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:47829ffaf652f30d579534da9085fe30c171fa2a6744a93d52ef7195dc38218b", size = 801991, upload-time = "2025-09-01T22:08:44.072Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/ae/fd10d6ad179910f7a1b3e0a7fde1ef8bb65e738e8ac4fd6ecff3f52252e4/regex-2025.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1e978e5a35b293ea43f140c92a3269b6ab13fe0a2bf8a881f7ac740f5a6ade85", size = 786651, upload-time = "2025-09-01T22:08:46.079Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/cf/9d686b07bbc5bf94c879cc168db92542d6bc9fb67088d03479fef09ba9d3/regex-2025.9.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:4cf09903e72411f4bf3ac1eddd624ecfd423f14b2e4bf1c8b547b72f248b7bf7", size = 856556, upload-time = "2025-09-01T22:08:48.376Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/9d/302f8a29bb8a49528abbab2d357a793e2a59b645c54deae0050f8474785b/regex-2025.9.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:d016b0f77be63e49613c9e26aaf4a242f196cd3d7a4f15898f5f0ab55c9b24d2", size = 849001, upload-time = "2025-09-01T22:08:50.067Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/fa/b4c6dbdedc85ef4caec54c817cd5f4418dbfa2453214119f2538082bf666/regex-2025.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:656563e620de6908cd1c9d4f7b9e0777e3341ca7db9d4383bcaa44709c90281e", size = 788138, upload-time = "2025-09-01T22:08:51.933Z" },
|
||||
]
|
||||
|
||||
@@ -3430,12 +3274,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/73/46/05a94dc55ac03cf931d18e43b86ecee5ee054cb88b7853fffd741e35009c/rignore-0.6.4.tar.gz", hash = "sha256:e893fdd2d7fdcfa9407d0b7600ef2c2e2df97f55e1c45d4a8f54364829ddb0ab", size = 11633, upload-time = "2025-07-19T19:24:46.219Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/75/b9be0c523d97c09f3c6508a67ce376aba4efe41c333c58903a0d7366439a/rignore-0.6.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcb0d7d7ecc3fbccf6477bb187c04a091579ea139f15f139abe0b3b48bdfef69", size = 892779, upload-time = "2025-07-19T19:22:35.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/f4/3064b06233697f2993485d132f06fe95061fef71631485da75aed246c4fd/rignore-0.6.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:feac73377a156fb77b3df626c76f7e5893d9b4e9e886ac8c0f9d44f1206a2a91", size = 872116, upload-time = "2025-07-19T19:22:47.828Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/99/94/cb8e7af9a3c0a665f10e2366144e0ebc66167cf846aca5f1ac31b3661598/rignore-0.6.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:465179bc30beb1f7a3439e428739a2b5777ed26660712b8c4e351b15a7c04483", size = 1163345, upload-time = "2025-07-19T19:23:00.557Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/6b/49faa7ad85ceb6ccef265df40091d9992232d7f6055fa664fe0a8b13781c/rignore-0.6.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4a4877b4dca9cf31a4d09845b300c677c86267657540d0b4d3e6d0ce3110e6e9", size = 939967, upload-time = "2025-07-19T19:23:13.494Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/c8/b91afda10bd5ca1e3a80463340b899c0dc26a7750a9f3c94f668585c7f40/rignore-0.6.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:456456802b1e77d1e2d149320ee32505b8183e309e228129950b807d204ddd17", size = 949717, upload-time = "2025-07-19T19:23:36.404Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/8f/a80b4a2e48ceba56ba19e096d41263d844757e10aa36ede212571b5d8117/rignore-0.6.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e445fbc214ae18e0e644a78086ea5d0f579e210229a4fbe86367d11a4cd03c11", size = 1067837, upload-time = "2025-07-19T19:23:59.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/90/0905597af0e78748909ef58418442a480ddd93e9fc89b0ca9ab170c357c0/rignore-0.6.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:e07d9c5270fc869bc431aadcfb6ed0447f89b8aafaa666914c077435dc76a123", size = 1134959, upload-time = "2025-07-19T19:24:12.396Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/a7/92892ed86b2e36da403dd3a0187829f2d880414cef75bd612bfdf4dedebc/rignore-0.6.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:536392c5ec91755db48389546c833c4ab1426fe03e5a8522992b54ef8a244e7e", size = 1120546, upload-time = "2025-07-19T19:24:36.377Z" },
|
||||
]
|
||||
|
||||
@@ -3455,11 +3295,7 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e9/dd/2c0cbe774744272b0ae725f44032c77bdcab6e8bcf544bffa3b6e70c8dba/rpds_py-0.27.1.tar.gz", hash = "sha256:26a1c73171d10b7acccbded82bf6a586ab8203601e565badc74bbbf8bc5a10f8", size = 27479, upload-time = "2025-08-27T12:16:36.024Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/0e/e650e1b81922847a09cca820237b0edee69416a01268b7754d506ade11ad/rpds_py-0.27.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16323f674c089b0360674a4abd28d5042947d54ba620f72514d69be4ff64845e", size = 385121, upload-time = "2025-08-27T12:13:13.008Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/ea/b306067a712988e2bff00dcc7c8f31d26c29b6d5931b461aa4b60a013e33/rpds_py-0.27.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9a1f4814b65eacac94a00fc9a526e3fdafd78e439469644032032d0d63de4881", size = 398976, upload-time = "2025-08-27T12:13:14.368Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/0a/26dc43c8840cb8fe239fe12dbc8d8de40f2365e838f3d395835dde72f0e5/rpds_py-0.27.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7ba32c16b064267b22f1850a34051121d423b6f7338a12b9459550eb2096e7ec", size = 525953, upload-time = "2025-08-27T12:13:15.774Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/22/14/c85e8127b573aaf3a0cbd7fbb8c9c99e735a4a02180c84da2a463b766e9e/rpds_py-0.27.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5c20f33fd10485b80f65e800bbe5f6785af510b9f4056c5a3c612ebc83ba6cb", size = 407915, upload-time = "2025-08-27T12:13:17.379Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/7b/8f4fee9ba1fb5ec856eb22d725a4efa3deb47f769597c809e03578b0f9d9/rpds_py-0.27.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:466bfe65bd932da36ff279ddd92de56b042f2266d752719beb97b08526268ec5", size = 386883, upload-time = "2025-08-27T12:13:18.704Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/47/28fa6d60f8b74fcdceba81b272f8d9836ac0340570f68f5df6b41838547b/rpds_py-0.27.1-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:41e532bbdcb57c92ba3be62c42e9f096431b4cf478da9bc3bc6ce5c38ab7ba7a", size = 405699, upload-time = "2025-08-27T12:13:20.089Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/ba/3c4978b54a73ed19a7d74531be37a8bcc542d917c770e14d372b8daea186/rpds_py-0.27.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:80c60cfb5310677bd67cb1e85a1e8eb52e12529545441b43e6f14d90b878775a", size = 562324, upload-time = "2025-08-27T12:13:22.789Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/73/9d7a8f4be5f4396f011a6bb7a19fe26303a0dac9064462f5651ced2f572f/rpds_py-0.27.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a512c8263249a9d68cac08b05dd59d2b3f2061d99b322813cbcc14c3c7421998", size = 558137, upload-time = "2025-08-27T12:13:25.557Z" },
|
||||
]
|
||||
@@ -3470,16 +3306,9 @@ version = "0.13.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/6e/1a/1f4b722862840295bcaba8c9e5261572347509548faaa99b2d57ee7bfe6a/ruff-0.13.0.tar.gz", hash = "sha256:5b4b1ee7eb35afae128ab94459b13b2baaed282b1fb0f472a73c82c996c8ae60", size = 5372863, upload-time = "2025-09-10T16:25:37.917Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/fe/6f87b419dbe166fd30a991390221f14c5b68946f389ea07913e1719741e0/ruff-0.13.0-py3-none-linux_armv6l.whl", hash = "sha256:137f3d65d58ee828ae136a12d1dc33d992773d8f7644bc6b82714570f31b2004", size = 12187826, upload-time = "2025-09-10T16:24:39.5Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/03/8b5ff2a211efb68c63a1d03d157e924997ada87d01bebffbd13a0f3fcdeb/ruff-0.13.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b2c653ae9b9d46e0ef62fc6fbf5b979bda20a0b1d2b22f8f7eb0cde9f4963b8", size = 12312489, upload-time = "2025-09-10T16:24:49.556Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/fc/2336ef6d5e9c8d8ea8305c5f91e767d795cd4fc171a6d97ef38a5302dadc/ruff-0.13.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4cec632534332062bc9eb5884a267b689085a1afea9801bf94e3ba7498a2d207", size = 11991631, upload-time = "2025-09-10T16:24:53.439Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/c8/a8a5b81d8729b5d1f663348d11e2a9d65a7a9bd3c399763b1a51c72be1ce/ruff-0.13.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:afe37db8e1466acb173bb2a39ca92df00570e0fd7c94c72d87b51b21bb63efea", size = 14697751, upload-time = "2025-09-10T16:24:59.89Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/57/f5/183ec292272ce7ec5e882aea74937f7288e88ecb500198b832c24debc6d3/ruff-0.13.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0f96a8d90bb258d7d3358b372905fe7333aaacf6c39e2408b9f8ba181f4b6ef2", size = 14095317, upload-time = "2025-09-10T16:25:03.025Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/8d/7f9771c971724701af7926c14dab31754e7b303d127b0d3f01116faef456/ruff-0.13.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:94b5e3d883e4f924c5298e3f2ee0f3085819c14f68d1e5b6715597681433f153", size = 13144418, upload-time = "2025-09-10T16:25:06.272Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/a6/7985ad1778e60922d4bef546688cd8a25822c58873e9ff30189cfe5dc4ab/ruff-0.13.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03447f3d18479df3d24917a92d768a89f873a7181a064858ea90a804a7538991", size = 13370843, upload-time = "2025-09-10T16:25:09.965Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/1c/bafdd5a7a05a50cc51d9f5711da704942d8dd62df3d8c70c311e98ce9f8a/ruff-0.13.0-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:fbc6b1934eb1c0033da427c805e27d164bb713f8e273a024a7e86176d7f462cf", size = 13321891, upload-time = "2025-09-10T16:25:12.969Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/3e/7817f989cb9725ef7e8d2cee74186bf90555279e119de50c750c4b7a72fe/ruff-0.13.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a8ab6a3e03665d39d4a25ee199d207a488724f022db0e1fe4002968abdb8001b", size = 12119119, upload-time = "2025-09-10T16:25:16.621Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/07/9df080742e8d1080e60c426dce6e96a8faf9a371e2ce22eef662e3839c95/ruff-0.13.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2a5c62f8ccc6dd2fe259917482de7275cecc86141ee10432727c4816235bc41", size = 11961594, upload-time = "2025-09-10T16:25:19.49Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/39/e776c10a3b349fc8209a905bfb327831d7516f6058339a613a8d2aaecacd/ruff-0.13.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:79ea0c44a3032af768cabfd9616e44c24303af49d633b43e3a5096e009ebe823", size = 13418555, upload-time = "2025-09-10T16:25:25.681Z" },
|
||||
]
|
||||
|
||||
@@ -3490,12 +3319,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ac/cc/738f3011628920e027a11754d9cae9abec1aed00f7ae860abbf843755233/safetensors-0.6.2.tar.gz", hash = "sha256:43ff2aa0e6fa2dc3ea5524ac7ad93a9839256b8703761e76e2d0b2a3fa4f15d9", size = 197968, upload-time = "2025-08-08T13:13:58.654Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/8e/f70c34e47df3110e8e0bb268d90db8d4be8958a54ab0336c9be4fe86dac8/safetensors-0.6.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d2d2b3ce1e2509c68932ca03ab8f20570920cd9754b05063d4368ee52833ecd", size = 473261, upload-time = "2025-08-08T13:13:41.259Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/f5/be9c6a7c7ef773e1996dc214e73485286df1836dbd063e8085ee1976f9cb/safetensors-0.6.2-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:93de35a18f46b0f5a6a1f9e26d91b442094f2df02e9fd7acf224cfec4238821a", size = 485117, upload-time = "2025-08-08T13:13:43.506Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/55/23f2d0a2c96ed8665bf17a30ab4ce5270413f4d74b6d87dd663258b9af31/safetensors-0.6.2-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:89a89b505f335640f9120fac65ddeb83e40f1fd081cb8ed88b505bdccec8d0a1", size = 616154, upload-time = "2025-08-08T13:13:45.096Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/c6/affb0bd9ce02aa46e7acddbe087912a04d953d7a4d74b708c91b5806ef3f/safetensors-0.6.2-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fc4d0d0b937e04bdf2ae6f70cd3ad51328635fe0e6214aa1fc811f3b576b3bda", size = 520713, upload-time = "2025-08-08T13:13:46.25Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fe/5d/5a514d7b88e310c8b146e2404e0dc161282e78634d9358975fd56dfd14be/safetensors-0.6.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8045db2c872db8f4cbe3faa0495932d89c38c899c603f21e9b6486951a5ecb8f", size = 485835, upload-time = "2025-08-08T13:13:49.373Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5a/50/0057e11fe1f3cead9254315a6c106a16dd4b1a19cd247f7cc6414f6b7866/safetensors-0.6.2-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:b0e4d029ab0a0e0e4fdf142b194514695b1d7d3735503ba700cf36d0fc7136ce", size = 652256, upload-time = "2025-08-08T13:13:53.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e9/29/473f789e4ac242593ac1656fbece6e1ecd860bb289e635e963667807afe3/safetensors-0.6.2-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:fa48268185c52bfe8771e46325a1e21d317207bcabcb72e65c6e28e9ffeb29c7", size = 747281, upload-time = "2025-08-08T13:13:54.656Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/fe/cad1d9762868c7c5dc70c8620074df28ebb1a8e4c17d4c0cb031889c457e/safetensors-0.6.2-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d944cea65fad0ead848b6ec2c37cc0b197194bec228f8020054742190e9312ac", size = 655957, upload-time = "2025-08-08T13:13:57.029Z" },
|
||||
]
|
||||
|
||||
@@ -3543,9 +3368,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/8d/48/49393a96a2eef1ab4
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/99/71630546b9395b095f4082be41165d1078204d1696c2d9baade3de3202d0/setproctitle-1.3.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:2906b6c7959cdb75f46159bf0acd8cc9906cf1361c9e1ded0d065fe8f9039629", size = 32932, upload-time = "2025-09-05T12:49:39.271Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/22/cee06af4ffcfb0e8aba047bd44f5262e644199ae7527ae2c1f672b86495c/setproctitle-1.3.7-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6915964a6dda07920a1159321dcd6d94fc7fc526f815ca08a8063aeca3c204f1", size = 33736, upload-time = "2025-09-05T12:49:40.565Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/00/a5949a8bb06ef5e7df214fc393bb2fb6aedf0479b17214e57750dfdd0f24/setproctitle-1.3.7-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cff72899861c765bd4021d1ff1c68d60edc129711a2fdba77f9cb69ef726a8b6", size = 35605, upload-time = "2025-09-05T12:49:42.362Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/3a/50caca532a9343828e3bf5778c7a84d6c737a249b1796d50dd680290594d/setproctitle-1.3.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b7cb05bd446687ff816a3aaaf831047fc4c364feff7ada94a66024f1367b448c", size = 33143, upload-time = "2025-09-05T12:49:43.515Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/14/b843a251296ce55e2e17c017d6b9f11ce0d3d070e9265de4ecad948b913d/setproctitle-1.3.7-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:3a57b9a00de8cae7e2a1f7b9f0c2ac7b69372159e16a7708aa2f38f9e5cc987a", size = 34434, upload-time = "2025-09-05T12:49:45.31Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c8/b7/06145c238c0a6d2c4bc881f8be230bb9f36d2bf51aff7bddcb796d5eed67/setproctitle-1.3.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d8828b356114f6b308b04afe398ed93803d7fca4a955dd3abe84430e28d33739", size = 32795, upload-time = "2025-09-05T12:49:46.419Z" },
|
||||
]
|
||||
|
||||
@@ -3810,12 +3633,8 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/73/6f/f80cfef4a312e1fb34baf7d85c72d4411afde10978d4657f8cdd811d3ccc/tokenizers-0.22.2.tar.gz", hash = "sha256:473b83b915e547aa366d1eee11806deaf419e17be16310ac0a14077f1e28f917", size = 372115, upload-time = "2026-01-05T10:45:15.988Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", size = 3290736, upload-time = "2026-01-05T10:40:32.165Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/59/09d0d9ba94dcd5f4f1368d4858d24546b4bdc0231c2354aa31d6199f0399/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25b85325d0815e86e0bac263506dd114578953b7b53d7de09a6485e4a160a7dd", size = 3168835, upload-time = "2026-01-05T10:40:38.847Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/fa/89f4cb9e08df770b57adb96f8cbb7e22695a4cb6c2bd5f0c4f0ebcf33b66/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c774b1276f71e1ef716e5486f21e76333464f47bece56bbd554485982a9e03e", size = 3724818, upload-time = "2026-01-05T10:40:44.507Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/04/ca2363f0bfbe3b3d36e95bf67e56a4c88c8e3362b658e616d1ac185d47f2/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df6c4265b289083bf710dff49bc51ef252f9d5be33a45ee2bed151114a56207b", size = 3379195, upload-time = "2026-01-05T10:40:51.139Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", size = 3274982, upload-time = "2026-01-05T10:40:58.331Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/28/5f9f5a4cc211b69e89420980e483831bcc29dade307955cc9dc858a40f01/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:29c30b83d8dcd061078b05ae0cb94d3c710555fbb44861139f9f83dcca3dc3e4", size = 9478245, upload-time = "2026-01-05T10:41:04.053Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/fb/66e2da4704d6aadebf8cb39f1d6d1957df667ab24cff2326b77cda0dcb85/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:37ae80a28c1d3265bb1f22464c856bd23c02a05bb211e56d0c5301a435be6c1a", size = 9560069, upload-time = "2026-01-05T10:45:10.673Z" },
|
||||
{ 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" },
|
||||
]
|
||||
|
||||
@@ -4184,7 +4003,7 @@ wheels = [
|
||||
[[package]]
|
||||
name = "verifiers"
|
||||
version = "0.1.12.dev1"
|
||||
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=0db45e6#0db45e6f4d8b20fb6ecfbb0e06138735ec4f3d99" }
|
||||
source = { git = "https://github.com/PrimeIntellect-ai/verifiers.git?rev=5d75d97#5d75d979a6eef05d494acf31348ebcb52cd473ea" }
|
||||
dependencies = [
|
||||
{ name = "aiolimiter", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "anthropic", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -4225,7 +4044,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "vllm"
|
||||
version = "0.17.0"
|
||||
version = "0.18.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "aiohttp", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -4242,10 +4061,7 @@ dependencies = [
|
||||
{ name = "filelock", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "flashinfer-python", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "gguf", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "grpcio", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "grpcio-reflection", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "ijson", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "kaldi-native-fbank", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "lark", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "llguidance", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "lm-format-enforcer", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -4256,6 +4072,7 @@ dependencies = [
|
||||
{ name = "ninja", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "numba", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "numpy", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "nvidia-cudnn-frontend", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "nvidia-cutlass-dsl", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "openai", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "openai-harmony", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -4278,7 +4095,6 @@ dependencies = [
|
||||
{ name = "pyyaml", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "pyzmq", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "quack-kernels", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "ray", extra = ["cgraph"], marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "regex", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "requests", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "sentencepiece", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -4296,10 +4112,10 @@ dependencies = [
|
||||
{ name = "watchfiles", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
{ name = "xgrammar", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/13/d5/af83a4262ca4d5692a93b3c322ae954e3e6c4e23f8f9db3ab87bd79c919e/vllm-0.17.0.tar.gz", hash = "sha256:b0b62e58ef4eb633ef371f2726976372cf6dfcb7ff2ea9ddf7194c1930d5629a", size = 30541311, upload-time = "2026-03-07T03:54:54.333Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/39/a9/ed48c497572a41552cc71b5ede15291d882c546a01df27ed42944eb3b3ad/vllm-0.18.0.tar.gz", hash = "sha256:9a1bee091db8dbb4664a2a09cd9c61912e9912a44af1ce12b8593a231d05971c", size = 30812817, upload-time = "2026-03-20T22:16:59.039Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/72/78a48668f2631def18bbaaa331d7878bcfc5c3137455422aafb0748e1261/vllm-0.17.0-cp38-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:310fb82fe061ed75dceeb4aeb803cd8ee0d590337ec720f7abfb03a69314d710", size = 385329399, upload-time = "2026-03-07T03:54:34.261Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/25/4f/972726f9a501f01203b5c4796e1932abbe435fae6d7715a4c3f1aad14a58/vllm-0.17.0-cp38-abi3-manylinux_2_31_x86_64.whl", hash = "sha256:0296670a09d392ee43455d9bebf590d05a9bc2ebce5e25e2919222fc815158da", size = 432927988, upload-time = "2026-03-07T03:54:02.312Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/f8/d677aef63536b54d8d0268241dc50a4fe01efcf162ef26190b9ed4bed109/vllm-0.18.0-cp38-abi3-manylinux_2_31_aarch64.whl", hash = "sha256:66a2c5bcf1bdf8de3e63b9fee067754068108cd510c65ffba70ff4368c33cba8", size = 385589729, upload-time = "2026-03-20T22:16:38.734Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/e9/59cf9b8939b51e859d2166ac3336b353f52ec4f9ceda34228aae7b386840/vllm-0.18.0-cp38-abi3-manylinux_2_31_x86_64.whl", hash = "sha256:0bc51491598f4bcd161b693b27cbe2864082d6c49fa9065965d94b371f6ae8ef", size = 433215727, upload-time = "2026-03-20T22:16:00.336Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4375,9 +4191,6 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/2a/9a/d451fcc97d029f5812e898fd30a53fd8c15c7bbd058fd75cfc6beb9bd761/watchfiles-1.1.0.tar.gz", hash = "sha256:693ed7ec72cbfcee399e92c895362b6e66d63dac6b91e2c11ae03d10d503e575", size = 94406, upload-time = "2025-06-15T19:06:59.42Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/86/50/dee79968566c03190677c26f7f47960aff738d32087087bdf63a5473e7df/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:130fc497b8ee68dce163e4254d9b0356411d1490e868bd8790028bc46c5cc297", size = 450939, upload-time = "2025-06-15T19:05:26.494Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/45/a7b56fb129700f3cfe2594a01aa38d033b92a33dddce86c8dfdfc1247b72/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:50a51a90610d0845a5931a780d8e51d7bd7f309ebc25132ba975aca016b576a0", size = 457270, upload-time = "2025-06-15T19:05:27.466Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/68/42cfcdd6533ec94f0a7aab83f759ec11280f70b11bfba0b0f885e298f9bd/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a543492513a93b001975ae283a51f4b67973662a375a403ae82f420d2c7205ee", size = 598654, upload-time = "2025-06-15T19:05:29.997Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/74/b2a1544224118cc28df7e59008a929e711f9c68ce7d554e171b2dc531352/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ac164e20d17cc285f2b94dc31c384bc3aa3dd5e7490473b3db043dd70fbccfd", size = 478667, upload-time = "2025-06-15T19:05:31.172Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/77/e3362fe308358dc9f8588102481e599c83e1b91c2ae843780a7ded939a35/watchfiles-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f7590d5a455321e53857892ab8879dce62d1f4b04748769f5adf2e707afb9d4f", size = 452213, upload-time = "2025-06-15T19:05:32.299Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/17/c8f1a36540c9a1558d4faf08e909399e8133599fa359bf52ec8fcee5be6f/watchfiles-1.1.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:37d3d3f7defb13f62ece99e9be912afe9dd8a0077b7c45ee5a57c74811d581a4", size = 626718, upload-time = "2025-06-15T19:05:33.415Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/45/fb599be38b4bd38032643783d7496a26a6f9ae05dea1a42e58229a20ac13/watchfiles-1.1.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:7080c4bb3efd70a07b1cc2df99a7aa51d98685be56be6038c3169199d0a1c69f", size = 623098, upload-time = "2025-06-15T19:05:34.534Z" },
|
||||
@@ -4457,7 +4270,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "xgrammar"
|
||||
version = "0.1.29"
|
||||
version = "0.1.33"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "numpy", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
@@ -4467,10 +4280,10 @@ dependencies = [
|
||||
{ name = "triton", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
|
||||
{ name = "typing-extensions", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/02/a3/70dbe3ffd331a1e7e1ad5a95690a4086e6c7cdb8089f5c7eda712219ccec/xgrammar-0.1.29.tar.gz", hash = "sha256:cf195afa81b489eebf35d4c6f37f27136d05420739ab4a6f7f065c938d7e4baa", size = 2321317, upload-time = "2025-12-19T08:23:54.53Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/db/43/e5dfddb1d2a4fccf3e3a88f103e88698cdefc3182f4e169a359ffe1c1794/xgrammar-0.1.33.tar.gz", hash = "sha256:8dbe5fc3d76651ab1fac7a68fc2a118b885fa0ec7189927fb6e0dce0081aea99", size = 2398956, upload-time = "2026-03-27T10:16:36.582Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/57/94/18793c64bf0368075a34c06e196bf002f1e6ab0aee332268f44e8d356d5a/xgrammar-0.1.29-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6eb370a16b27a683e5f2b9e429ab41440c69977d4a504849ed61831b94cc704c", size = 34705239, upload-time = "2025-12-19T08:23:28.369Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3e/da/4c14e3e00be698009b52700f15326a23272b4b00475939b6acc86b151188/xgrammar-0.1.29-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79e6e4f5cd33be77418cf91efc482f2b3d773d309891224383bc8a4948ad7b07", size = 34906135, upload-time = "2025-12-19T08:23:30.838Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/04/43d4baca876f5ae1b45897ec30a59801a2da37f16da1fcd85f9555e4c125/xgrammar-0.1.33-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c803e60d791854c5d1f271ece7e1f34d73c82dd4a8b2a06b7af5331482a78ac", size = 42133168, upload-time = "2026-03-27T10:15:16.994Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/a8/672833a3cff027253793aa999401d8364896ebf396967e475c7a878b895f/xgrammar-0.1.33-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:52b8eaa533282a0efb0835db6998ae72e7b3c7875d7a52e360ffebff9b78c30a", size = 42205803, upload-time = "2026-03-27T10:15:21.599Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4480,12 +4293,8 @@ source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/00/5e/d6e5258d69df8b4ed8c83b6664f2b47d30d2dec551a29ad72a6c69eafd31/xxhash-3.5.0.tar.gz", hash = "sha256:84f2caddf951c9cbf8dc2e22a89d4ccf5d86391ac6418fe81e3c67d0cf60b45f", size = 84241, upload-time = "2024-08-17T09:20:38.972Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5b/84/de7c89bc6ef63d750159086a6ada6416cc4349eab23f76ab870407178b93/xxhash-3.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08424f6648526076e28fae6ea2806c0a7d504b9ef05ae61d196d571e5c879c84", size = 220959, upload-time = "2024-08-17T09:18:26.518Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fe/86/51258d3e8a8545ff26468c977101964c14d56a8a37f5835bc0082426c672/xxhash-3.5.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:61a1ff00674879725b194695e17f23d3248998b843eb5e933007ca743310f793", size = 200006, upload-time = "2024-08-17T09:18:27.905Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/0a/96973bd325412feccf23cf3680fd2246aebf4b789122f938d5557c54a6b2/xxhash-3.5.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f2f2c61bee5844d41c3eb015ac652a0229e901074951ae48581d58bfb2ba01be", size = 428326, upload-time = "2024-08-17T09:18:29.335Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/a7/81dba5010f7e733de88af9555725146fc133be97ce36533867f4c7e75066/xxhash-3.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d32a592cac88d18cc09a89172e1c32d7f2a6e516c3dfde1b9adb90ab5df54a6", size = 194380, upload-time = "2024-08-17T09:18:30.706Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/6e/6e88b8f24612510e73d4d70d9b0c7dff62a2e78451b9f0d042a5462c8d03/xxhash-3.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e5d0ddaca65ecca9c10dcf01730165fd858533d0be84c75c327487c37a906a27", size = 216301, upload-time = "2024-08-17T09:18:33.474Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/22/61/8d6a40f288f791cf79ed5bb113159abf0c81d6efb86e734334f698eb4c59/xxhash-3.5.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:149b7914451eb154b3dfaa721315117ea1dac2cc55a01bfbd4df7c68c5dd683d", size = 210294, upload-time = "2024-08-17T09:18:36.355Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/02/215c4698955762d45a8158117190261b2dbefe9ae7e5b906768c09d8bc74/xxhash-3.5.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:eade977f5c96c677035ff39c56ac74d851b1cca7d607ab3d8f23c6b859379cab", size = 414674, upload-time = "2024-08-17T09:18:38.536Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/5c/b7a8db8a3237cff3d535261325d95de509f6a8ae439a5a7a4ffcff478189/xxhash-3.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fa9f547bd98f5553d03160967866a71056a60960be00356a15ecc44efb40ba8e", size = 192022, upload-time = "2024-08-17T09:18:40.138Z" },
|
||||
]
|
||||
|
||||
@@ -4501,14 +4310,8 @@ dependencies = [
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/3c/fb/efaa23fa4e45537b827620f04cf8f3cd658b76642205162e072703a5b963/yarl-1.20.1.tar.gz", hash = "sha256:d017a4997ee50c91fd5466cef416231bb82177b93b029906cefc542ce14c35ac", size = 186428, upload-time = "2025-06-10T00:46:09.923Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/99/da/4d798025490e89426e9f976702e5f9482005c548c579bdae792a4c37769e/yarl-1.20.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:90bbd29c4fe234233f7fa2b9b121fb63c321830e5d05b45153a2ca68f7d310ee", size = 352287, upload-time = "2025-06-10T00:43:49.924Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/26/54a15c6a567aac1c61b18aa0f4b8aa2e285a52d547d1be8bf48abe2b3991/yarl-1.20.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:680e19c7ce3710ac4cd964e90dad99bf9b5029372ba0c7cbfcd55e54d90ea819", size = 345429, upload-time = "2025-06-10T00:43:51.7Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/95/9dcf2386cb875b234353b93ec43e40219e14900e046bf6ac118f94b1e353/yarl-1.20.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4a979218c1fdb4246a05efc2cc23859d47c89af463a90b99b7c56094daf25a16", size = 365429, upload-time = "2025-06-10T00:43:53.494Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/b2/33a8750f6a4bc224242a635f5f2cff6d6ad5ba651f6edcccf721992c21a0/yarl-1.20.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:255b468adf57b4a7b65d8aad5b5138dce6a0752c139965711bdcb81bc370e1b6", size = 363862, upload-time = "2025-06-10T00:43:55.766Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/28/3ab7acc5b51f4434b181b0cee8f1f4b77a65919700a355fb3617f9488874/yarl-1.20.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a97d67108e79cfe22e2b430d80d7571ae57d19f17cda8bb967057ca8a7bf5bfd", size = 355616, upload-time = "2025-06-10T00:43:58.056Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/81/5f466427e09773c04219d3450d7a1256138a010b6c9f0af2d48565e9ad13/yarl-1.20.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:97c75596019baae7c71ccf1d8cc4738bc08134060d0adfcbe5642f778d1dca38", size = 365575, upload-time = "2025-06-10T00:44:02.051Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/e3/e4b0ad8403e97e6c9972dd587388940a032f030ebec196ab81a3b8e94d31/yarl-1.20.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1c48912653e63aef91ff988c5432832692ac5a1d8f0fb8a33091520b5bbe19ef", size = 365061, upload-time = "2025-06-10T00:44:04.196Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/34/f2/08ed34a4a506d82a1a3e5bab99ccd930a040f9b6449e9fd050320e45845c/yarl-1.20.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c5e9642f27036283550f5f57dc6156c51084b458570b9d0d96100c8bebb186a8", size = 381894, upload-time = "2025-06-10T00:44:08.379Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/f8/9a3fbf0968eac704f681726eff595dce9b49c8a25cd92bf83df209668285/yarl-1.20.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:2c26b0c49220d5799f7b22c6838409ee9bc58ee5c95361a4d7831f03cc225b5a", size = 383378, upload-time = "2025-06-10T00:44:10.51Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/af/85/9363f77bdfa1e4d690957cd39d192c4cacd1c58965df0470a4905253b54f/yarl-1.20.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:564ab3d517e3d01c408c67f2e5247aad4019dcf1969982aba3974b4093279004", size = 374069, upload-time = "2025-06-10T00:44:12.834Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/2d/2345fce04cfd4bee161bf1e7d9cdc702e3e16109021035dbb24db654a622/yarl-1.20.1-py3-none-any.whl", hash = "sha256:83b8eb083fe4683c6115795d9fc1cfaf2cbbefb19b3a1cb68f6527460f483a77", size = 46542, upload-time = "2025-06-10T00:46:07.521Z" },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user