Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e466d233e9 | ||
|
|
9ea9fb193e | ||
|
|
91c86b7383 | ||
|
|
d4b30bf3ae | ||
|
|
d5ce4ce84d | ||
|
|
04d067145f | ||
|
|
632ef2b318 |
@@ -7,9 +7,6 @@
|
||||
[submodule "research-environments"]
|
||||
path = deps/research-environments
|
||||
url = git@github.com:PrimeIntellect-ai/research-environments.git
|
||||
[submodule "configs/private"]
|
||||
path = configs/private
|
||||
url = git@github.com:PrimeIntellect-ai/research-configs.git
|
||||
[submodule "pydantic-config"]
|
||||
path = deps/pydantic-config
|
||||
url = https://github.com/PrimeIntellect-ai/pydantic-config
|
||||
|
||||
@@ -55,10 +55,10 @@ With `[model] impl = "auto"` (the default), the trainer selects that custom stac
|
||||
| Qwen3 / Qwen3.5 VLMs | see [advanced.md](docs/advanced.md#vision-language-models) (`qwen3_vl`, `qwen3_5`, `qwen3_5_moe`) | MoE only on MoE VLMs | MoE only | ✅ |
|
||||
| Poolside Laguna (`laguna`) | `poolside/Laguna-XS.2` | yes | ✅ | ✅ |
|
||||
| MiniMax M2 (`minimax_m2`) | `MiniMax/MiniMax-M2` | yes | ✅ | ✅ |
|
||||
| Nemotron H (`nemotron_h`) | `nvidia/Nemotron-3-Nano-30B-A3B`, `nvidia/Nemotron-3-Super-120B-A12B`, … | yes | ✅ | ❌ |
|
||||
| Nemotron H (`nemotron_h`) | `nvidia/Nemotron-3-Nano-30B-A3B`, `nvidia/Nemotron-3-Super-120B-A12B`, … | yes | ✅ | ✅ |
|
||||
| Trinity (`afmoe`) | `arcee-ai/Trinity-Mini`, … | yes | ✅ | ✅ |
|
||||
| GLM-4 · GLM-4.5 MoE · INTELLECT-3 (`glm4_moe`) | `THUDM/GLM-4-9B-0414`, `zai-org/GLM-4.5-Air`, `zai-org/GLM-4.5`, `PrimeIntellect/INTELLECT-3`, … | yes | ✅ | ✅ |
|
||||
| GPT-OSS (HF, MoE) | `openai/gpt-oss-20b`, `openai/gpt-oss-120b` | yes | ❌ | ✅ |
|
||||
| GPT-OSS (HF, MoE) | `openai/gpt-oss-20b`, `openai/gpt-oss-120b` | yes | ✅ | ✅ |
|
||||
| Other HF causal LMs | Qwen3 dense, Mistral, … (`impl = "hf"`) | varies | ❌ | ✅ |
|
||||
|
||||
|
||||
|
||||
Submodule configs/private deleted from 70c3503e1d
Vendored
+1
-1
Submodule deps/research-environments updated: c752781984...4c08260f07
Vendored
+1
-1
Submodule deps/verifiers updated: 05c66c2358...0ad8b4d523
+1
-1
@@ -115,7 +115,7 @@ LoRA pairs naturally with [multi-tenant training](#multi-tenant-training) — ea
|
||||
|
||||
## Multi-Tenant Training
|
||||
|
||||
Multi-tenant training lets a single trainer + inference deployment serve many concurrent LoRA "tenants" — each a fully isolated run with its own orchestrator, LoRA adapter, optimizer, scheduler, checkpoints, and progress tracking — sharing the same backbone weights and the same vLLM server. This is the topology behind hosted training on the [Prime Intellect platform (Lab)](https://app.primeintellect.ai). The trainer-side implementation is the `MultiRunManager` singleton, enabled by setting `trainer.max_concurrent_runs > 1`. For the full API surface, see [`src/prime_rl/trainer/runs/`](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/src/prime_rl/trainer/runs).
|
||||
Multi-tenant training lets a single trainer + inference deployment serve many concurrent LoRA "tenants" — each a fully isolated run with its own orchestrator, LoRA adapter, optimizer, scheduler, checkpoints, and progress tracking — sharing the same backbone weights and the same vLLM server. This is the topology behind hosted training on the [Prime Intellect platform (Lab)](https://app.primeintellect.ai). The trainer-side implementation is the `MultiRunManager` singleton, enabled by setting `trainer.max_concurrent_runs > 1`. For the full API surface, see [`src/prime_rl/trainer/runs.py`](https://github.com/PrimeIntellect-ai/prime-rl/blob/main/src/prime_rl/trainer/runs.py).
|
||||
|
||||
## Disaggregated Prefill/Decode Inference
|
||||
|
||||
|
||||
+1
-1
@@ -252,7 +252,7 @@ headless = true
|
||||
|
||||
### Router Replay
|
||||
|
||||
Router replay works by capturing the expert routing decisions into a buffer. This buffer then gets sent to the trainer, which can use it instead of re-computing the routing. This lowers the trainer<->inference mismatch by an order of magnitude, resulting in more stable training.
|
||||
Router replay works by capturing the expert routing decisions into a buffer. This buffer then gets sent to the trainer, which can use it instead of re-computing the routing. This lowers the trainer↔inference mismatch by an order of magnitude, resulting in more stable training.
|
||||
|
||||
To enable router replay, you can set `inference.enable_return_routed_experts = true`.
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ A `prime-rl` RL run is three cooperating processes:
|
||||
|
||||
- **Inference** — vLLM-backed server (or fleet) holding the current policy. The orchestrator drives rollouts through the token-in `/v1/generate` route via the [`renderers`](https://github.com/PrimeIntellect-ai/renderers) package (OpenAI-compatible chat/completions routes are also exposed for external clients). We are trying to stay up-to-date with the latest vLLM features, you can read more about the supported features and deployment options in the dedicated [inference documentation](inference.md).
|
||||
- **Orchestrator** — Lightweight CPU process that owns the data plane across many [`verifiers`](https://github.com/PrimeIntellect-ai/verifiers) training and eval environments. Each env runs in an isolated subprocess with a variable-size pool of env workers for scalability. The orchestrator drives multi-turn rollouts against the inference fleet (tool use, browsers, sandboxes, long horizons) without re-tokenizing across turns, computes advantages, packs the rollouts into training batches, and relays new weights from trainer to inference.
|
||||
- **Trainer** — FSDP2 process group that consumes packed rollouts and steps the optimizer. We ship optimized custom modeling code for many MoE / dense / VLM families that unlocks advanced trainer parallelism — expert parallelism (EP, with DeepEP kernels) and context parallelism (CP) for long-sequence training — plus selective activation checkpointing, FP8 training on Hopper+, LoRA, and multi-tenant training (many concurrent LoRA tenants sharing one trainer + inference deployment). You can read more in the dedicated [trainer documentation](trainer.md).
|
||||
- **Trainer** — FSDP2 process group that consumes packed rollouts and steps the optimizer. We ship optimized custom modeling code for many MoE / dense / VLM families that unlocks advanced trainer parallelism — expert parallelism (EP, with DeepEP kernels) and context parallelism (CP) for long-sequence training — plus selective activation checkpointing, FP8 training on Hopper+, LoRA, and multi-tenant training (many concurrent LoRA tenants sharing one trainer + inference deployment). You can read more in the dedicated [training documentation](training.md).
|
||||
|
||||
The three processes communicate through configurable transports — by default the trainer↔orchestrator rollout link uses the local filesystem, and weight broadcast uses the filesystem (or NCCL for synchronous setups). Swap to ZMQ for multi-host setups without shared storage. See [Scaling](scaling.md) for the deployment options.
|
||||
|
||||
|
||||
+3
-2
@@ -79,7 +79,6 @@ envs = [
|
||||
"math-python",
|
||||
"math500",
|
||||
"mini-swe-agent-plus",
|
||||
"mini-swe-agent-plus-rlm",
|
||||
"mmlu-pro",
|
||||
"opencode-cp",
|
||||
"opencode-deepdive",
|
||||
@@ -152,6 +151,7 @@ override-dependencies = [
|
||||
"transformers==5.6.2",
|
||||
"torch>=2.9.0",
|
||||
"openenv-core",
|
||||
"verifiers[packages]>=0.1.15.dev150",
|
||||
]
|
||||
|
||||
# ModelExpress 0.3.0 publishes protobuf<6 metadata, but its generated proto is
|
||||
@@ -209,6 +209,7 @@ color-codeword = { path = "deps/research-environments/environments/color_codewor
|
||||
deepdive = { path = "deps/research-environments/environments/deepdive", editable = true }
|
||||
general-agent = { path = "deps/research-environments/environments/general_agent", editable = true }
|
||||
gpqa = { path = "deps/research-environments/environments/gpqa", editable = true }
|
||||
harnesses = { path = "deps/verifiers/packages/harnesses", editable = true }
|
||||
hle = { path = "deps/research-environments/environments/hle", editable = true }
|
||||
ifeval = { path = "deps/research-environments/environments/ifeval", editable = true }
|
||||
livecodebench = { path = "deps/research-environments/environments/livecodebench", editable = true }
|
||||
@@ -217,7 +218,6 @@ math-env = { path = "deps/research-environments/environments/math_env", editable
|
||||
math-python = { path = "deps/verifiers/environments/math_python", editable = true }
|
||||
math500 = { path = "deps/research-environments/environments/math500", editable = true }
|
||||
mini-swe-agent-plus = { path = "deps/research-environments/environments/mini_swe_agent_plus", editable = true }
|
||||
mini-swe-agent-plus-rlm = { path = "deps/research-environments/environments/mini_swe_agent_plus_rlm", editable = true }
|
||||
mmlu-pro = { path = "deps/research-environments/environments/mmlu_pro", editable = true }
|
||||
opencode-cp = { path = "deps/research-environments/environments/opencode_cp", editable = true }
|
||||
opencode-deepdive = { path = "deps/research-environments/environments/opencode_deepdive", editable = true }
|
||||
@@ -229,6 +229,7 @@ rlm-swe = { path = "deps/research-environments/environments/rlm_swe", editable =
|
||||
science-env = { path = "deps/research-environments/environments/science_env", editable = true }
|
||||
simpleqa-verified = { path = "deps/research-environments/environments/simpleqa_verified", editable = true }
|
||||
tau2-bench = { path = "deps/research-environments/environments/tau2_bench", editable = true }
|
||||
tasksets = { path = "deps/verifiers/packages/tasksets", editable = true }
|
||||
wiki-search = { path = "deps/verifiers/environments/wiki_search", editable = true }
|
||||
wordle = { path = "deps/verifiers/environments/wordle", editable = true }
|
||||
torch = { index = "pytorch-cu128" }
|
||||
|
||||
+1
-17
@@ -74,27 +74,11 @@ ensure_known_hosts() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Initialize each submodule independently so that a missing private repo
|
||||
# (e.g. configs/private when the user lacks access) does not abort the install.
|
||||
init_submodules() {
|
||||
if [ ! -f .gitmodules ]; then
|
||||
return 0
|
||||
fi
|
||||
local paths failures
|
||||
paths=$(git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | awk '{print $2}')
|
||||
failures=()
|
||||
for path in $paths; do
|
||||
log_info "Initializing submodule: ${path}"
|
||||
if git submodule update --init --recursive -- "$path"; then
|
||||
:
|
||||
else
|
||||
log_warn "Could not initialize submodule '${path}' (likely no access). Continuing without it."
|
||||
failures+=("$path")
|
||||
fi
|
||||
done
|
||||
if [ "${#failures[@]}" -gt 0 ]; then
|
||||
log_warn "Skipped submodules: ${failures[*]}"
|
||||
fi
|
||||
git submodule update --init --recursive
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
@@ -74,5 +74,4 @@ Leave it unset for normal training. When enabled, it exports every sequence from
|
||||
|
||||
- `packages/prime-rl-configs/src/prime_rl/` — config classes under `configs/`; `utils/config.py` re-exports `BaseConfig` and `cli`
|
||||
- `configs/debug/` — minimal debug configs
|
||||
- `configs/private/` — private configs submodule (internal)
|
||||
- `examples/` — full example configs
|
||||
|
||||
@@ -16,11 +16,9 @@ bash scripts/install.sh # clones, inits submodules, installs uv, runs `uv sync
|
||||
For an existing clone, init submodules explicitly:
|
||||
|
||||
```bash
|
||||
git submodule update --init -- deps/verifiers deps/renderers deps/research-environments deps/pydantic-config
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
|
||||
Do **not** run `git submodule update --init --recursive` without paths — it tries to clone the private `configs/private` submodule and aborts for users without access. `scripts/install.sh` walks submodules one at a time and skips failures, so it works for everyone.
|
||||
|
||||
## Sync
|
||||
|
||||
```bash
|
||||
|
||||
@@ -194,10 +194,28 @@ srun --kill-on-bad-exit=1 bash -c '
|
||||
export VLLM_MOE_USE_DEEP_GEMM=1
|
||||
{%- endif %}
|
||||
export PYTORCH_CUDA_ALLOC_CONF="expandable_segments:False"
|
||||
export GLOO_SOCKET_IFNAME=bond0
|
||||
# Bind gloo to the interface that owns LOCAL_IP (the rendezvous IP) — NIC
|
||||
# names vary across clusters (bond0, eth0, ...). If the lookup fails, leave
|
||||
# GLOO_SOCKET_IFNAME unset so gloo falls back to its own detection.
|
||||
GLOO_IFNAME=$(ip -o -4 addr show to "$LOCAL_IP" 2>/dev/null | awk "{print \$2; exit}")
|
||||
if [ -n "$GLOO_IFNAME" ]; then export GLOO_SOCKET_IFNAME=$GLOO_IFNAME; fi
|
||||
export VLLM_ENGINE_READY_TIMEOUT_S=4200
|
||||
export UCX_TLS=all
|
||||
export UCX_NET_DEVICES=all
|
||||
# Enumerate RDMA NICs for UCX/NIXL from sysfs (ibv_devices is not on the job
|
||||
# PATH). Prefer InfiniBand ports and fall back to RoCE: "all" would also pick
|
||||
# up non-functional devices (e.g. an Ethernet bond UCX cannot open), which
|
||||
# fails NIXL backend creation. Hosts without RDMA devices keep "all" (TCP).
|
||||
rdma_ports() {
|
||||
for port in /sys/class/infiniband/*/ports/*; do
|
||||
[ "$(cat "$port/link_layer" 2>/dev/null)" = "$1" ] || continue
|
||||
grep -q ACTIVE "$port/state" 2>/dev/null || continue
|
||||
dev=${port%/ports/*}
|
||||
echo "$(basename "$dev"):$(basename "$port")"
|
||||
done | paste -sd,
|
||||
}
|
||||
UCX_NET_DEVICES=$(rdma_ports InfiniBand)
|
||||
[ -n "$UCX_NET_DEVICES" ] || UCX_NET_DEVICES=$(rdma_ports Ethernet)
|
||||
export UCX_NET_DEVICES=${UCX_NET_DEVICES:-all}
|
||||
export LD_LIBRARY_PATH="$PROJECT_DIR/third_party/ucx/lib:$PROJECT_DIR/third_party/ucx/lib/ucx:${LD_LIBRARY_PATH:-}"
|
||||
|
||||
export VLLM_NIXL_SIDE_CHANNEL_HOST=$LOCAL_IP
|
||||
|
||||
@@ -239,10 +239,28 @@ if [ "$SLURM_PROCID" -lt "$NUM_INFER_NODES" ]; then
|
||||
export VLLM_MOE_USE_DEEP_GEMM=1
|
||||
{%- endif %}
|
||||
|
||||
export GLOO_SOCKET_IFNAME=bond0
|
||||
# Bind gloo to the interface that owns LOCAL_IP (the rendezvous IP) — NIC
|
||||
# names vary across clusters (bond0, eth0, ...). If the lookup fails, leave
|
||||
# GLOO_SOCKET_IFNAME unset so gloo falls back to its own detection.
|
||||
GLOO_IFNAME=$(ip -o -4 addr show to "$LOCAL_IP" 2>/dev/null | awk "{print \$2; exit}")
|
||||
if [ -n "$GLOO_IFNAME" ]; then export GLOO_SOCKET_IFNAME=$GLOO_IFNAME; fi
|
||||
export VLLM_ENGINE_READY_TIMEOUT_S=4200
|
||||
export UCX_TLS=all
|
||||
export UCX_NET_DEVICES=all
|
||||
# Enumerate RDMA NICs for UCX/NIXL from sysfs (ibv_devices is not on the job
|
||||
# PATH). Prefer InfiniBand ports and fall back to RoCE: "all" would also pick
|
||||
# up non-functional devices (e.g. an Ethernet bond UCX cannot open), which
|
||||
# fails NIXL backend creation. Hosts without RDMA devices keep "all" (TCP).
|
||||
rdma_ports() {
|
||||
for port in /sys/class/infiniband/*/ports/*; do
|
||||
[ "$(cat "$port/link_layer" 2>/dev/null)" = "$1" ] || continue
|
||||
grep -q ACTIVE "$port/state" 2>/dev/null || continue
|
||||
dev=${port%/ports/*}
|
||||
echo "$(basename "$dev"):$(basename "$port")"
|
||||
done | paste -sd,
|
||||
}
|
||||
UCX_NET_DEVICES=$(rdma_ports InfiniBand)
|
||||
[ -n "$UCX_NET_DEVICES" ] || UCX_NET_DEVICES=$(rdma_ports Ethernet)
|
||||
export UCX_NET_DEVICES=${UCX_NET_DEVICES:-all}
|
||||
export LD_LIBRARY_PATH="$PROJECT_DIR/third_party/ucx/lib:$PROJECT_DIR/third_party/ucx/lib/ucx:${LD_LIBRARY_PATH:-}"
|
||||
export VLLM_NIXL_SIDE_CHANNEL_HOST=$LOCAL_IP
|
||||
export VLLM_NIXL_SIDE_CHANNEL_PORT=5600
|
||||
|
||||
@@ -12,7 +12,7 @@ import verifiers as vf
|
||||
from httpx import AsyncClient
|
||||
from openai import NotFoundError
|
||||
from renderers import RendererConfig
|
||||
from tenacity import retry, retry_if_exception, stop_after_attempt, stop_after_delay, wait_exponential
|
||||
from tenacity import AsyncRetrying, retry, retry_if_exception, stop_after_attempt, stop_after_delay, wait_exponential
|
||||
|
||||
from prime_rl.configs.shared import ClientConfig
|
||||
from prime_rl.utils.logger import get_logger
|
||||
@@ -303,8 +303,8 @@ async def check_health(
|
||||
NCCL_READY_MARKER = "NCCL_READY"
|
||||
|
||||
|
||||
def _is_retryable_pause_error(exception: BaseException) -> bool:
|
||||
"""Check if an exception should trigger a retry for pausing engines."""
|
||||
def _is_retryable_admin_error(exception: BaseException) -> bool:
|
||||
"""Check if an exception should trigger a retry for an admin op (pause/resume/update_weights)."""
|
||||
if isinstance(exception, httpx.HTTPStatusError):
|
||||
# Retry on transient server errors (5xx, e.g. engine briefly unresponsive);
|
||||
# client errors (4xx) won't fix themselves on retry.
|
||||
@@ -317,47 +317,55 @@ def _is_retryable_pause_error(exception: BaseException) -> bool:
|
||||
return False
|
||||
|
||||
|
||||
# Per-attempt and total bounds for `/pause`. Pausing drains in-flight requests
|
||||
# (mode="keep"), so a single attempt can legitimately take a while, but the global
|
||||
# admin AsyncClient uses `timeout=None`, so a stuck server would hang the weight
|
||||
# update forever. `_READ_TIMEOUT` converts a hang into a TimeoutException so
|
||||
# tenacity retries; `_TOTAL` is the wall-clock budget across all retries.
|
||||
PAUSE_READ_TIMEOUT_S = 120.0
|
||||
PAUSE_TOTAL_TIMEOUT_S = 300.0
|
||||
# Per-attempt read timeout for admin ops, overridable per call. The admin
|
||||
# AsyncClient uses `timeout=None`, so without this a stuck server would hang the
|
||||
# weight update forever: the read timeout converts a hang into a TimeoutException
|
||||
# that tenacity retries. Sized for `/pause`, which drains in-flight requests
|
||||
# (mode="keep") and so can legitimately take a while.
|
||||
ADMIN_TIMEOUT_S = 300.0
|
||||
# `/update_weights` runs a collective NCCL receive across all DP workers, which
|
||||
# can take longer than the other admin ops.
|
||||
UPDATE_WEIGHTS_TIMEOUT_S = 720.0
|
||||
|
||||
|
||||
async def _admin_post(client: AsyncClient, path: str, *, timeout_s: float = ADMIN_TIMEOUT_S, **kwargs) -> None:
|
||||
"""POST an admin op with a bounded per-attempt timeout, retrying transient errors.
|
||||
|
||||
The total wall-clock budget across all retries is twice the per-attempt timeout.
|
||||
"""
|
||||
async for attempt in AsyncRetrying(
|
||||
retry=retry_if_exception(_is_retryable_admin_error),
|
||||
stop=stop_after_delay(2 * timeout_s) | stop_after_attempt(10),
|
||||
wait=wait_exponential(multiplier=1, min=1, max=10),
|
||||
reraise=True,
|
||||
):
|
||||
with attempt:
|
||||
response = await client.post(
|
||||
path,
|
||||
timeout=httpx.Timeout(connect=10.0, read=timeout_s, write=60.0, pool=10.0),
|
||||
**kwargs,
|
||||
)
|
||||
response.raise_for_status()
|
||||
|
||||
|
||||
async def _pause_engines(admin_clients: list[AsyncClient], *, step: int) -> None:
|
||||
"""Pause all inference engines, waiting for in-flight requests to drain."""
|
||||
logger = get_logger()
|
||||
logger.info(f"Updating policy in-flight to v{step}")
|
||||
|
||||
@retry(
|
||||
retry=retry_if_exception(_is_retryable_pause_error),
|
||||
stop=stop_after_delay(PAUSE_TOTAL_TIMEOUT_S) | stop_after_attempt(10),
|
||||
wait=wait_exponential(multiplier=1, min=1, max=10),
|
||||
reraise=True,
|
||||
await asyncio.gather(
|
||||
*[_admin_post(client, "/pause", params={"mode": "keep", "clear_cache": "false"}) for client in admin_clients]
|
||||
)
|
||||
async def _pause(client: AsyncClient) -> None:
|
||||
response = await client.post(
|
||||
"/pause",
|
||||
params={"mode": "keep", "clear_cache": "false"},
|
||||
timeout=httpx.Timeout(connect=10.0, read=PAUSE_READ_TIMEOUT_S, write=60.0, pool=10.0),
|
||||
)
|
||||
response.raise_for_status()
|
||||
|
||||
await asyncio.gather(*[_pause(client) for client in admin_clients])
|
||||
logger.debug("All inference engines paused")
|
||||
|
||||
|
||||
async def _resume_engines(admin_clients: list[AsyncClient]) -> None:
|
||||
"""Resume all inference engines after weight update."""
|
||||
"""Resume all inference engines after weight update.
|
||||
|
||||
Resuming is idempotent (it just clears the paused flag), so retrying transient
|
||||
failures is safe; a dropped /resume would leave engines paused indefinitely.
|
||||
"""
|
||||
logger = get_logger()
|
||||
|
||||
async def _resume(client: AsyncClient) -> None:
|
||||
response = await client.post("/resume")
|
||||
response.raise_for_status()
|
||||
|
||||
await asyncio.gather(*[_resume(client) for client in admin_clients])
|
||||
await asyncio.gather(*[_admin_post(client, "/resume") for client in admin_clients])
|
||||
logger.debug("All inference engines resumed")
|
||||
|
||||
|
||||
@@ -383,11 +391,6 @@ async def update_weights(
|
||||
if lora_name is not None and weight_dir is not None:
|
||||
await load_lora_adapter(admin_clients, lora_name, weight_dir)
|
||||
else:
|
||||
|
||||
async def _update_weights(admin_client: AsyncClient, weight_dir: str | None) -> None:
|
||||
response = await admin_client.post("/update_weights", json={"weight_dir": weight_dir})
|
||||
response.raise_for_status()
|
||||
|
||||
# Pause engines so all DP workers drain in-flight work and can join the NCCL broadcast
|
||||
await _pause_engines(admin_clients, step=step)
|
||||
|
||||
@@ -399,7 +402,17 @@ async def update_weights(
|
||||
nccl_ready_file.touch()
|
||||
logger.debug(f"Created NCCL_READY marker at {nccl_ready_file}")
|
||||
|
||||
await asyncio.gather(*[_update_weights(admin_client, weight_dir_posix) for admin_client in admin_clients])
|
||||
await asyncio.gather(
|
||||
*[
|
||||
_admin_post(
|
||||
admin_client,
|
||||
"/update_weights",
|
||||
json={"weight_dir": weight_dir_posix},
|
||||
timeout_s=UPDATE_WEIGHTS_TIMEOUT_S,
|
||||
)
|
||||
for admin_client in admin_clients
|
||||
]
|
||||
)
|
||||
finally:
|
||||
await _resume_engines(admin_clients)
|
||||
|
||||
|
||||
@@ -26,9 +26,8 @@ CONFIG_CLASSES = [
|
||||
|
||||
|
||||
def get_config_files() -> list[Path]:
|
||||
"""Any TOML file inside `configs/` or `examples/` (skips the configs/private/ submodule)."""
|
||||
private = Path("configs/private")
|
||||
config_files = [p for p in Path("configs").rglob("*.toml") if private not in p.parents]
|
||||
"""Any TOML file inside `configs/` or `examples/`."""
|
||||
config_files = list(Path("configs").rglob("*.toml"))
|
||||
example_files = list(Path("examples").rglob("*.toml"))
|
||||
|
||||
return config_files + example_files
|
||||
|
||||
Reference in New Issue
Block a user