Repository navigation
image adopt: trainer and sampler smoke, the yeto image adopt command and its docs - #894
Merged
Merged
Conversation
michaellchung
force-pushed
the
own/image-adopt-checks
branch
from
November 26, 2026 10:38
8b46564 to
ffb4328
Compare
michaellchung
force-pushed
the
own/image-adopt-smoke
branch
from
November 26, 2026 10:38
c030191 to
f184022
Compare
This was referenced Nov 26, 2026
michaellchung
force-pushed
the
own/image-adopt-checks
branch
from
November 26, 2026 12:52
ffb4328 to
7127779
Compare
michaellchung
force-pushed
the
own/image-adopt-smoke
branch
from
November 26, 2026 12:52
f184022 to
9cd2668
Compare
michaellchung
force-pushed
the
own/image-adopt-checks
branch
from
November 26, 2026 15:29
7127779 to
915313f
Compare
michaellchung
force-pushed
the
own/image-adopt-smoke
branch
from
November 26, 2026 15:29
9cd2668 to
fc35540
Compare
This was referenced Nov 26, 2026
michaellchung
force-pushed
the
own/image-adopt-smoke
branch
from
November 26, 2026 20:19
fc35540 to
e6d2ace
Compare
Step 5 of the adoption (yeto.launch.image_smoke), then the catalog record: - trainer: the model is cut to the most layers (at most 16, the MFU 16L cut) whose trainer state fits one node in the model registry's sizing, with the backend and recipe yeto adapt recommends for the full model. scripts/prune_layers.py writes the cut on the node, in the image, as a hub snapshot under the node's scratch. A one-node ssh: island trains one round on replayed synthetic rollouts and ends it with a cut in --smoke-store; a second launch resumes from that cut. Only Miles has the train-only replay, so only Miles has a trainer smoke for now; - sampler: yeto.node.smoke builds the engine of the pool's sampler spec (the sampler entry's own build_engine), starts it, generates, reloads and generates again; it starts in the image exactly as the node runtime starts a sampler (container_argv takes the module to run). yeto image adopt REF --model M --role trainer|sampler --inventory INV runs the five steps; --dry-run prints every step and the smoke commands and reaches no registry or node. Any failed step exits 1 and leaves the catalog unchanged. docs/OWN_CLUSTERS.md: "Onboarding a model image". own-cluster-fleet-stability 7.3, 7.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, no injection - the trainer smoke launch carries what the launch's checks need: one island with no syncer, the local controller, trust-remote-code, a small local prompt file with the built-in numeric reward, an inner LR and no launcher-side model preflight (the cut exists only on the node); a test runs the rendered argv through the real parser in a dry run - the node is checked idle again right before the smoke; whatever the outcome the smoke's containers are removed and its run stopped, and the cut, the store checkpoint and the launcher files are deleted unless --keep-smoke-artifacts (then named with their size) - the prune downloads into a cache next to the cut, removed after it, and the scratch is checked for room for both first - node scripts are built after the values are known: argv elements of shlex.join, the interpreter quoted inside shell strings; a reference outside the docker grammar and an interpreter that is not a plain path are refused - train passes on an rl_round_cut event whose manifest is in the store; resume on an rl_resume / rl_round_cut_restored event naming that cut - the sampler record takes the spec's engine; a contradicting --engine is refused at fit; the trainer record names the backend the smoke ran - tuning (overridable with --smoke-arg) and a dropped MTP are in the notes and the evidence; a sampler smoke with neither --release nor base_dir is refused at plan; HF_TOKEN goes from the launcher to the node, unprinted - --strict-arch, --allow-busy and --keep-smoke-artifacts on the command; the docs cover each of these Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ub env - --trust-remote-code follows the model: on when config.json has an auto_map (the registry has no trust field; auto_map is its equivalent) or when the registry does not know the model, off otherwise; the evidence notes say why. --smoke-arg=--trust-remote-code / --no-trust-remote-code decide it. Pinned Miles refuses a launch without the flag, so the Miles smoke passes it for every model and refuses --no-trust-remote-code. - The sampler smoke fails when the reload falls back to a restart; the error names the reload_mode. - HF_ENDPOINT is exported to the node's prune like HF_TOKEN (the script over ssh stdin, never argv). - Tests: the real launch dry run with the model preflight on (a Hub that does not know the cut), a real-bash run of the prune script with shell words in the model, revision, HF_TOKEN and HF_ENDPOINT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- yeto image adopt reads the inventory with load_profiles, so a node's container: podman reaches the probe, the idle check, the pull and the smoke (it was dropped as a profile key, with an "ignored here" warning, and every node ran docker). A sampler node with container: podman is adopted with podman also when its runtime is rootfs, as the ssh sampler pool starts it. The trainer smoke runs an ssh: island, docker only: a podman or rootfs node, or --container-sudo, is refused for --role trainer with why. - --pool-config (its provider.container.sudo) or --container-sudo runs the engine as sudo -n <engine> in every step, the sampler smoke's start and cleanup included. - The dry run names each node's engine (and sudo) for the probe and the pull. - --trust-remote-code: every RL launch requires it (rl_args), a global rule now, not a Miles one. - The node smoke fails a reload whose load returns no report of its reload_mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- --pool-config is read the way the ssh sampler pool reads it (parse_config over the adoption's inventory): its nodes: are the nodes (one not in the inventory is an error), their engine is the pool's container.engine (pool_profile, default podman), its container.sudo the sudo. A runtime: venv pool runs no image and is refused; container.pull: never is named in the dry run (the adoption's pull puts the image there). --container-sudo against a pool whose sudo is off exits 2. A config that is not one (no mapping, provider or container not a mapping, bad YAML) exits 2 with the reason, never a traceback. - The cluster preflight takes by_engine (yeto image adopt): its nodes are pulled and their engine's image root is checked whatever their runtime, so a rootfs node with container: docker is pulled; the preflight's own runtime rule is unchanged. - --role trainer refuses a podman or rootfs node anywhere in the role, not only on the smoke node. - The image-removal hint names each holding node's own engine and sudo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… trains with the checked backend - fit: a trainer with --attention-backend flash on a node below sm90 (an A10G, sm86: its backward pass fails with "Unsupported compute capability", unfused trains) is not a fit on any node of the role; the reason names --attention-backend unfused. The image floor's flash lift no longer turns that into a warning. A sampler is not held to it. - --attention-backend takes auto | flash | fused | unfused; the trainer smoke launches with it (--rl-training-attention-backend), and a --smoke-arg of that flag is the backend the fit checks; the two naming different backends exit 2. - The dry run's fit line names the trainer's attention backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and catalog; spec and flag checks - The fit checks the trainer attention backend the smoke's launch resolves: its train argv through the yeto launch parser and training_attention, so under --attention-backend auto a recipe that trains with flash (deepseek-v4-flash, Qwen3.8-Flash-Next) is held to the sm90+ flash floor. Those recipes run flash only (run_config.FLASH_ONLY_RECIPES, now one constant): the fit then names sm90+ cards rather than unfused, and another backend for them exits 2. The dry-run fit line names the backend and its source. - --pool-config: the inventory is the pool's provider.inventory (the pool requires one) and the catalog its site_images:. --inventory or --catalog naming another file exits 2 with both paths; --inventory may be left out. - A sampler spec that is not a JSON object, or whose engine, engine.server, engine.options or rollout_fields is not one, exits 2 without a traceback. - The smoke's attention backend must be auto | flash | fused | unfused, and an abbreviation of --rl-training-attention-backend in a --smoke-arg is refused (yeto launch takes long options by their full name only). - A sampler adopted without --pool-config prints a NOTE that its engine comes from the inventory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaellchung
force-pushed
the
own/image-adopt-smoke
branch
from
November 26, 2026 21:25
e6d2ace to
14f2126
Compare
michaellchung
added a commit
that referenced
this pull request
Nov 26, 2026
…verage test) (#927) yeto/node/smoke.py (#894) built a plain argparse.ArgumentParser and landed after #925, whose coverage test requires every parser under yeto/ to be an ExactArgumentParser. The smoke runs as `python -m yeto.node.smoke` inside the adopted image with the yeto tree (it imports yeto.rl.engine.engine_sampler_entry), so it takes the exact parser. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
own-cluster-fleet-stability tasks 7.3 and 7.5: the smoke (step 5) and the command.
yeto/launch/image_smoke.py:smoke_layouttakes the backend, recipe and tuningyeto adaptrecommends for the full model (--smoke-arg=--tuning=...overrides the tuning) and picks the most layers (at most 16, the MFU 16L cut) whose state fits one node. Steps:pruneon the node in the image (scripts/prune_layers.py): writes a hub snapshot under the node'sscratch(revision = sha1 of the cut config.json).hf://shards download into--cache-dirnext to the cut, removed after it. The script first checks the scratch has room for the cut and the shards (the registry's parameter count of the cut times the checkpoint's bytes per parameter).trainon the launcher:yeto launch --controller localof onessh:island with--rl-single-island-no-sync,--trust-remote-codeas decided below, a small local prompt file (--data,--rl-allow-local-data), the built-inyeto.rl.numeric_answer_reward:score,--inner-lr 1e-6and--preflight-model off(each overridable with--smoke-arg; the cut exists only on the node), the registry's flags for the cut, Miles' train-only synthetic replay and--rl-stop-after-rounds 1. It passes only when the trainer'srl_round_cutevent (YETO_RL_EVENTlines) names a cut whoseround-cuts/<cut_id>/manifest.jsonis in the store.resume: the same launch with--rl-stop-after-rounds 2. It passes only on anrl_resume/rl_round_cut_restoredevent naming that cut id (the loose regex is gone).yeto.node.launch.container_argv(now takingmodule/module_args; default output unchanged) startspython -m yeto.node.smokein the image as the node runtime starts a sampler. A spec with neither--releasenorengine.server.base_diris refused at plan time.run_plan'sfinallywhatever the outcome (failure, timeout):yeto down <run> --missing-okanddocker rm -fof the run'syeto-<run>-containers (trainer) or the fixedyeto-adopt-<run>container (sampler); then the cut and download cache on the node, every object under--smoke-store/<run>and the launcher'simage-adopt/<run>are deleted. With--keep-smoke-artifactsthey are kept and printed with their size.shlex.join; the interpreter inside a shell string isshlex.quoted. The image interpreter must match^/[\w./+-]+$, andpin()refuses a reference outside the docker reference grammar before any registry call.HF_TOKENandHF_ENDPOINTare read from the launcher's environment and exported into the node's prune script (sent over ssh stdin, never in argv, never printed); docker receives them by name (-e HF_TOKEN -e HF_ENDPOINT). Docs say gated models need the token and a Hub mirror the endpoint.config.jsonauto_map(what the Miles remote-code prewarm reads). The model needs--trust-remote-codewhen the config or itstext_confighas anauto_map, does not when the registry knows its family and there is none, and is taken to need it when the registry does not know the model (its generic fallback); the evidence notes say which.--smoke-arg=--trust-remote-code/--smoke-arg=--no-trust-remote-codeoverride what the model needs. But every RL launch refuses to start without--trust-remote-code, whatever the model and backend (rl_args, a global rule;TRUST_REQUIREDsays so), so the smoke always passes it, the note says the launch requires it when the model alone would not, and--no-trust-remote-codeis refused at plan time with that reason.yeto/node/smoke.py: builds the engine with the sampler entry'sbuild_engine, then start, generate, reload (as version 1; the served version must become 1), generate. The reload must be in place: a reload whoseLoadReport.reload_modeis notin_place(it fell back to a restart) fails thereloadstep, and the error names the reload_mode. Each step prints a record; exit 1 names the failed step.yeto image adopt REF --model M --role trainer|sampler --inventory INV(registered inyeto/cli.py):--strict-arch,--allow-busy,--keep-smoke-artifacts;engine.adapter(normalized byengine_images.spec_needs), and a contradicting--engineis refused at fit;--dry-runprints every step, the smoke commands and the cleanup, and reaches no registry or node.Node profiles and the pool's sudo (round 3):
main()reads the inventory withload_profiles, so a node'scontainer: podmanreaches every step (it was dropped as a profile key with an "ignored here" warning, and every node ran docker). The dry run names each node's engine, and sudo, for the probe and the pull. A sampler node withcontainer: podmanis adopted with podman also when itsruntimeisrootfs: the ssh sampler pool starts its containers whatever the trainer runtime says, so the pool supports it.--pool-config(itsprovider.container.sudo; the inventory has no such key) or--container-sudoruns the engine assudo -n <engine>in every step, the sampler smoke's start and cleanup included. The trainer smoke runs anssh:trainer island, which starts docker containers as the SSH user, so for--role trainera podman node, arootfsnode or--container-sudois refused at plan time with that reason.The pool config decides a sampler's nodes, engine and sudo (round 4):
--pool-configis read the way the ssh sampler pool reads it (parse_configover the adoption's inventory). Itsnodes:are the adopted nodes (a node not in the inventory exits 2), their engine is the pool'scontainer.engine(pool_profile, default podman) whatever the inventory says, and itscontainer.sudois the sudo. Aruntime: venvpool runs no image and is refused;container.pull: neveris named in the dry run (the adoption's pull is what puts the image there).--container-sudoagainst a pool whose sudo is off exits 2 instead of contradicting it. A file that is not a pool config (not a mapping, provider or container not a mapping, bad YAML, a value the pool itself refuses) exits 2 with the reason, never a traceback.--pool-configis for--role sampleronly.Pull by the node's engine (round 4,
yeto/launch/preflight/cluster.py):ClusterPreflight(by_engine=True), used only byyeto image adopt, pulls every node it is given and checks that engine's image root whatever the node'sruntime, so arootfsnode withcontainer: dockeris no longer skipped silently. The preflight's own rule (docker nodes are theruntime: dockerones) is unchanged.Round 4:
--role trainerrefuses a podman or rootfs node anywhere in the role, not only on the smoke node; the image-removal hint after a failure names each holding node's own engine and sudo.Flash attention floor for the trainer (round 4, from the own-cluster rehearsal on A10G cards, sm86: the fit passed
--attention-backend flashwhile the Miles image's training backward pass failed with "Unsupported compute capability"; unfused trained): the fit refuses a trainer withflashon any node of the role below sm90 and names--attention-backend unfused; the image floor's flash lift no longer turns that into a warning. A sampler's inference attention is not held to it.--attention-backendnow takesauto | flash | fused | unfused, and the trainer smoke launches with it (--rl-training-attention-backend), so the smoke trains with the backend the fit checked; a--smoke-argof that flag counts as the backend, and the two naming different backends exit 2. The dry run's fit line names the backend.Round 5 (review REV-894e):
yeto launchparser andtrainer_image_check.training_attention, so under the default--attention-backend autoa recipe the smoke's launch trains with flash (deepseek-v4-flash, which the model registry names for DeepSeek-V4-Flash) is held to the sm90+ flash floor too: an A100 or L40S is refused at fit, before any cut or training, and an H100 passes.run_config.FLASH_ONLY_RECIPES(deepseek-v4-flash,qwen3_8_next; now one constant used by the recipe check as well) are the recipes that run flash only; for a smoke whose launch names one of them the fit names sm90+ cards instead ofunfused, and an explicit other backend exits 2 at plan time (the launch would refuse it). In practice that isdeepseek-v4-flashonly: the trainer smoke of a Qwen3.8-Flash-Next model runs the generic recipe (the registry's flags name noqwen3_8_nextrecipe), so the adoption does not exit 2 for it. (Corrected after merge; the follow-up PR drops the Qwen3.8-Flash-Next fingerprint clause that never applied to the smoke.) The dry-run fit line names the backend and its source, e.g.trainer attention flash (the deepseek-v4-flash recipe), held to sm90+ cards. When no backend is named, the launch argv is unchanged.--pool-configthe inventory is the pool'sprovider.inventoryand the catalog is that inventory'ssite_images:(the one the pool resolvesimage: autofrom).--inventorymay be left out; an--inventoryor--catalognaming another file (compared by real path) exits 2 with both paths. A pool config withoutprovider.inventoryexits 2, as the pool itself refuses it.engine,engine.server,engine.optionsorrollout_fieldsis not one, exits 2 with the reason (L-1).auto | flash | fused | unfused; an abbreviation of--rl-training-attention-backendin a--smoke-arg(a prefix no other launch option shares) exits 2 asking for the full name, asyeto launchtakes long options by their full name only (Take long options by their full name only (no argparse abbreviations) #904) (L-2).--pool-configprintsNOTE: engine from inventory (<engines>); pass --pool-config to adopt with the pool's container engine(L-3).--pool-config <path>:prefix of the message (L-6).yeto/node/smoke.py(round 3): a reload whoseload()returns None or noreload_modefails the reload step (the smoke cannot tell in place from a restart).docs/OWN_CLUSTERS.md, section "## Onboarding a model image":--model-config;--strict-arch;--allow-busy;--keep-smoke-artifacts;HF_TOKENfor gated models andHF_ENDPOINTfor a Hub mirror;--trust-remote-code;rootfssampler nodes, the pool'ssudo -nstore and--pool-config/--container-sudo, an unconfirmed graphroot, and the trainer smoke's docker-only limit;YETO_SITE_IMAGES_PATH, per-hardware records, time zones and warnings;If another own-cluster PR creates this file first, this PR rebases and keeps only its section.
The smoke has run on CPU fakes only. Its first real run is the own-cluster hardware acceptance.
Hardware acceptance (not confirmed on CPU)
The train and resume checks read
YETO_RL_EVENTlines from the output ofyeto launch --controller local(stdout and stderr are both read). What the code shows: with--rl-single-island-no-syncthe Miles island installs the event echo (install_event_echo), so every tape record it writes is printed as aYETO_RL_EVENTline on the island's stdout, and the ssh trainer island streams node 0's lines to the launcher. What is not confirmed: that those lines reach the stdout or stderr of the local controller process itself, rather than only its log file. On the first hardware run:yeto image adopt ... --role traineron one idle node and keep the launcher output.YETO_RL_EVENTline with"event":"rl_round_cut"and a cut id, and the resume step's output anrl_resumeorrl_round_cut_restoredline with the same cut id.train: no rl_round_cut event with a cut_id in the launch's output), it never passes falsely; the fix is then to read the run's event tape file instead of the output.Tests
tests/test_image_smoke.py(61 tests) andtests/test_image_adopt.py(65), 126 passed on this head:yeto.cliparser and the launch's checks with--dry-run(production--inner-lrdefault restored, andYETO_PREFLIGHT_MODELremoved, which the test conftest sets to off for every test, with a Hub that does not know the cut), rc 0 for both; without--preflight-model offthe dry run is rejected;$(), backticks,;and both quotes in--model,--model-revision,HF_TOKENandHF_ENDPOINTarrive byte for byte and create no file;reload_mode restart;text_config, an unknown family,--smoke-argon, off and last-wins, Miles refusing off, the note in the evidence;;,$(), a space or backticks are refused before the registry; a malicious ref and interpreter each render as one shell word; a non-plain interpreter path is refused before anything runs;HF_TOKENis exported into the prune script but absent from the dry-run text;rl_round_cutevent, a missing manifest, a resume from another cut, a missing resume event, rc 1, and a timeout;--engineis refused;--inner-lroverride;Round 3 tests (
tests/test_image_smoke.py73,tests/test_image_adopt.py70): the CLI with an inventory file whose nodes havecontainer: podman, onruntime: dockerandrootfs, with and without the pool config'scontainer.sudo: every probe runspodman run(orsudo -n podman run), both nodes pull with that engine, no docker call, the host probe reads that store's graphroot, the sampler smoke starts and cleans up with it, and no "ignored here" warning; the dry run names docker and podman nodes' engines and the sudo;--role trainerrefused on a podman node, a rootfs node and with--container-sudo; the pool config decides sudo unless the flag does, a non-mapping container section is refused; the trust rule on for every model, its notes, last-wins and the refusal; a reload returning None, a string or a dict instead of a report fails.Round 4 tests (
tests/test_image_smoke.py84,tests/test_image_adopt.py88): the pool's nodes and engine win over the inventory and a pool node outside the inventory is refused; a venv pool,--pool-configwith--role trainerand a contradicting--container-sudoexit 2; malformed pool configs (not a mapping, provider or container not a mapping, bad YAML) exit 2 with no traceback;container.pull: neverin the dry run; a rootfs node with docker is pulled and its image root checked; every trainer node held to the docker island; the removal hint per engine. Flash floor: sm86 + flash and sm89 + flash are not a fit, sm90 + flash and sm103 + flash are, sm86 + unfused / fused / auto are, a sampler on sm86 + flash is; the floor stops the adoption at fit when any node of the role is below it, writes no record, and unfused on the same nodes is recorded; the floor reads the node's architecture (non-CUDA and unknown pass); the smoke's train and resume launches carry the backend once, a--smoke-argsets it, a conflict is refused; the CLI dry run shows the backend, an unknown value is rejected by the parser.Round 5 tests (
tests/test_image_smoke.py104,tests/test_image_adopt.py88): deepseek-v4-flash under auto on A100 and L40S is not a fit (sm90+ cards named, no unfused hint) and on H100 and B300 is, with the dry-run line and an unchanged launch argv; that recipe with--attention-backend unfusedor a--smoke-argof fused exits 2; the generic recipe resolves to fused and is not held; a--smoke-argof flash is attributed to the smoke arg; an unparsable launch keeps the asked backend; the pool's inventory and catalog are taken with no--inventory, a symlink to the same files agrees, another inventory file or another catalog exits 2 naming both, no inventory anywhere exits 2, a pool withoutprovider.inventoryexits 2; sampler specs[1, 2],"x",null,{"engine": 5}, a listengine.serverand a stringrollout_fieldsexit 2 without a traceback; unknown backend values and abbreviations exit 2 while ambiguous prefixes such as--rl-trainare left to the launch; the NOTE for docker and podman inventories, and none with a pool config or for a trainer.Full suite on this head, 4 shards as CI runs them, each its own process: 18592 passed, 377 skipped, 11 xfailed, 0 failed:
Mutation check, round 5: 26 mutations, all killed: the resolution step in
main, thetraining_attentioncall, the flash-only test and its refusal, the flash-only message, the dry-run source, the smoke-arg attribution, the recipe constant, the flash-only pass-through to the fit; the inventory conflict check, the real-path comparison, the catalog conflict check, the pool catalog default, the required pool inventory, the pool's catalog field, the pool inventory choice; the spec object check, the section check and the nested sections; the backend value check, the abbreviation check and its uniqueness rule; the NOTE's condition and its engines; the--pool-configprefix of the pool's own refusal; and the previous round's backend pass-through to the smoke.Mutation check, round 4: 23 mutations of the new code, all killed: the flash floor's backend test, comparison, constant, per-node scope, problem vs warning, role restriction and unknown-architecture case; the smoke's backend conflict, its fallback, its launch flag, the plan and CLI wiring, the parser choices and the dry-run line;
by_enginein the pull and the host image-root check; the sudo contradiction, the trainer check on every node, the per-engine removal hint, the venv refusal,pool_profile, the YAML error and the pool's nodes.Mutation check: 31 new mutations for this round, all killed (4 after tests were added for survivors):
=form;Round 3: 18 mutations, all killed: load_profiles back to load_inventory; sudo from the args, into the request, in the dry-run probe and pull lines and into the sampler plan; the trainer's sudo refusal; the flag, the pool config value and its type check; the trainer's container check; sudo on the sampler start and cleanup; the trust refusal, the always-on result and its note; the missing-report reload check and its emit.
Round 2: 20 mutations, all killed:
HF_TOKENonly, passing-e HF_TOKENonly;--preflight-model off(killed now that the test runs the model preflight with a Hub stub, so it no longer depends on the network);text_config, the unknown-family default, last-wins, Miles refusing off, the Miles rule, stripping the smoke-only flags, the flag itself, the note and its Miles text.Customer gate
On this head vs main b65c3a0, both run in a hermetic environment with the same filled
examples/k31:examples/k31file changed.yeto run up --dry-runofrun.agentic-262k.jsonandrun.baremetal-b300-262k.json: the traineryeto launchdry run runs to its full plan with rc 0 in both, and its whole output (the run up preflight log, 174 and 587 lines, the cluster preflight command and the launch plan included) is compared, not only run up's own lines. The pool and sandbox steps stop on the gate's fake store endpoint and empty envs file, the same on main.yeto.launch.nc pool --config pool.nc-mi355x-agentic-262k.json --dry-run: the full pool plan; its one problem is the gate's unreachable store endpoint (model_pull), the same on main.FLASH_ONLY_RECIPESconstant inrun_config.pyis on the customer path and changes no output.An end-to-end run of the smoke through the real launcher with ssh and docker shims on this host was tried and dropped: past the launch's cluster preflight it needs a fake of the island's container lifecycle and of the trainer's event stream and store writes, which would mostly test those fakes. The coverage stays at the unit level above: the rendered train and resume argv through the real
yeto.cliparser and the launch's checks (dry run), and the step checks on fake launcher outputs and a fake store.Rebased onto main 1a5d22f (#904, #919, #910, #913, #918, #923 merged since the last push), with no conflict. The tests, the gate and the mutations ran on b65c3a0; #923 changes only two test files outside this PR (
tests/test_peer_recovery.py,tests/test_rl_full_parameter_dynamic_members.py), which pass on this head together with the image tests and the goldens. Since #904 the CLI takes long options by their full name only;yeto image adoptis built on that parser andtests/test_exact_option_names.pypasses. Before that: rebased onto main 73b7da5, where the one conflict was indocs/OWN_CLUSTERS.md(main's "Spare nodes" section and this PR's "Onboarding a model image" section both come at the end; both are kept, spare nodes first).yeto/launch/rl_backend.pyis not touched by this PR.Follow-up (not in this PR, after it merges): with
--pool-config, the sampler smoke's engine step runs the pool's own container argv (ssh_sampler_pool.container_run_argv(..., command=<smoke module>), in the foreground with--rm), so its security options, args, mounts, shm size and mount layout are the pool's; with a test that a release under the pool's model mount is readable.Not merged. #893 is merged; the base is main.
🤖 Generated with Claude Code