Skip to content

image adopt: trainer and sampler smoke, the yeto image adopt command and its docs - #894

Merged
michaellchung merged 7 commits into
mainfrom
own/image-adopt-smoke
Nov 26, 2026
Merged

michaellchung merged 7 commits into
mainfrom
own/image-adopt-smoke

Conversation

@michaellchung

@michaellchung michaellchung commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

own-cluster-fleet-stability tasks 7.3 and 7.5: the smoke (step 5) and the command.

  • yeto/launch/image_smoke.py:

    • trainer: smoke_layout takes the backend, recipe and tuning yeto adapt recommends 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:
      • prune on the node in the image (scripts/prune_layers.py): writes a hub snapshot under the node's scratch (revision = sha1 of the cut config.json). hf:// shards download into --cache-dir next 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).
      • train on the launcher: yeto launch --controller local of one ssh: island with --rl-single-island-no-sync, --trust-remote-code as decided below, a small local prompt file (--data, --rl-allow-local-data), the built-in yeto.rl.numeric_answer_reward:score, --inner-lr 1e-6 and --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's rl_round_cut event (YETO_RL_EVENT lines) names a cut whose round-cuts/<cut_id>/manifest.json is in the store.
      • resume: the same launch with --rl-stop-after-rounds 2. It passes only on an rl_resume / rl_round_cut_restored event naming that cut id (the loose regex is gone).
    • sampler: the yeto tree and the pool's sampler spec go to the node, then yeto.node.launch.container_argv (now taking module / module_args; default output unchanged) starts python -m yeto.node.smoke in the image as the node runtime starts a sampler. A spec with neither --release nor engine.server.base_dir is refused at plan time.
    • Cleanup, in run_plan's finally whatever the outcome (failure, timeout): yeto down <run> --missing-ok and docker rm -f of the run's yeto-<run>- containers (trainer) or the fixed yeto-adopt-<run> container (sampler); then the cut and download cache on the node, every object under --smoke-store/<run> and the launcher's image-adopt/<run> are deleted. With --keep-smoke-artifacts they are kept and printed with their size.
    • No injection: node scripts are built at render time once the values are known. Values are argv elements of shlex.join; the interpreter inside a shell string is shlex.quoted. The image interpreter must match ^/[\w./+-]+$, and pin() refuses a reference outside the docker reference grammar before any registry call.
    • HF_TOKEN and HF_ENDPOINT are 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.
    • Remote code: the model registry has no trust_remote_code field. Its equivalent is the model's config.json auto_map (what the Miles remote-code prewarm reads). The model needs --trust-remote-code when the config or its text_config has an auto_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-code override 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_REQUIRED says so), so the smoke always passes it, the note says the launch requires it when the model alone would not, and --no-trust-remote-code is refused at plan time with that reason.
  • yeto/node/smoke.py: builds the engine with the sampler entry's build_engine, then start, generate, reload (as version 1; the served version must become 1), generate. The reload must be in place: a reload whose LoadReport.reload_mode is not in_place (it fell back to a restart) fails the reload step, 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 in yeto/cli.py):

    • steps 1-5, the node re-checked idle right before the smoke, then the catalog record;
    • new flags --strict-arch, --allow-busy, --keep-smoke-artifacts;
    • a sampler record's engine is the spec's engine.adapter (normalized by engine_images.spec_needs), and a contradicting --engine is refused at fit;
    • a trainer record names the backend the smoke ran;
    • the notes (tuning, a dropped MTP, compatibility rules) go into the evidence;
    • --dry-run prints 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 with load_profiles, so a node's container: podman reaches 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 with container: podman is adopted with podman also when its runtime is rootfs: the ssh sampler pool starts its containers whatever the trainer runtime says, so the pool supports it. --pool-config (its provider.container.sudo; the inventory has no such key) or --container-sudo runs the engine as sudo -n <engine> in every step, the sampler smoke's start and cleanup included. The trainer smoke runs an ssh: trainer island, which starts docker containers as the SSH user, so for --role trainer a podman node, a rootfs node or --container-sudo is refused at plan time with that reason.

  • The pool config decides a sampler's nodes, engine and sudo (round 4): --pool-config is read the way the ssh sampler pool reads it (parse_config over the adoption's inventory). Its nodes: are the adopted nodes (a node not in the inventory exits 2), their engine is the pool's container.engine (pool_profile, default podman) whatever the inventory says, and its container.sudo is 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 is what puts the image there). --container-sudo against 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-config is for --role sampler only.

  • Pull by the node's engine (round 4, yeto/launch/preflight/cluster.py): ClusterPreflight(by_engine=True), used only by yeto image adopt, pulls every node it is given and checks that engine's image root whatever the node's runtime, so a rootfs node with container: docker is no longer skipped silently. The preflight's own rule (docker nodes are the runtime: docker ones) is unchanged.

  • Round 4: --role trainer refuses 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 flash while the Miles image's training backward pass failed with "Unsupported compute capability"; unfused trained): the fit refuses a trainer with flash on 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-backend now takes auto | 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-arg of 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):

    • The fit checks the backend the smoke resolves (M-A): the smoke's train argv goes through the yeto launch parser and trainer_image_check.training_attention, so under the default --attention-backend auto a 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 of unfused, and an explicit other backend exits 2 at plan time (the launch would refuse it). In practice that is deepseek-v4-flash only: the trainer smoke of a Qwen3.8-Flash-Next model runs the generic recipe (the registry's flags name no qwen3_8_next recipe), 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.
    • The pool's inventory and catalog (M-B): with --pool-config the inventory is the pool's provider.inventory and the catalog is that inventory's site_images: (the one the pool resolves image: auto from). --inventory may be left out; an --inventory or --catalog naming another file (compared by real path) exits 2 with both paths. A pool config without provider.inventory exits 2, as the pool itself refuses it.
    • A sampler spec that is not a JSON object, or whose engine, engine.server, engine.options or rollout_fields is not one, exits 2 with the reason (L-1).
    • The smoke's attention backend must be auto | flash | fused | unfused; an abbreviation of --rl-training-attention-backend in a --smoke-arg (a prefix no other launch option shares) exits 2 asking for the full name, as yeto launch takes long options by their full name only (Take long options by their full name only (no argparse abbreviations) #904) (L-2).
    • A sampler adopted without --pool-config prints NOTE: engine from inventory (<engines>); pass --pool-config to adopt with the pool's container engine (L-3).
    • The test for a node the pool names outside the inventory now checks the --pool-config <path>: prefix of the message (L-6).
  • yeto/node/smoke.py (round 3): a reload whose load() returns None or no reload_mode fails the reload step (the smoke cannot tell in place from a restart).

  • docs/OWN_CLUSTERS.md, section "## Onboarding a model image":

    • the trainer dry-run command carries --model-config;
    • the CUDA rules and --strict-arch;
    • the idle check and --allow-busy;
    • the room the cut needs;
    • the event / manifest checks;
    • cleanup and --keep-smoke-artifacts;
    • that the reload checks only the engine's hot-reload endpoint, not a trainer release's format, and must be in place;
    • HF_TOKEN for gated models and HF_ENDPOINT for a Hub mirror;
    • when the smoke passes --trust-remote-code;
    • each node's engine, podman on rootfs sampler nodes, the pool's sudo -n store and --pool-config / --container-sudo, an unconfirmed graphroot, and the trainer smoke's docker-only limit;
    • images left on nodes after a failure;
    • the catalog lock, YETO_SITE_IMAGES_PATH, per-hardware records, time zones and warnings;
    • all-ssh fleets only, and the pool's choice fixed at start.

    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_EVENT lines from the output of yeto launch --controller local (stdout and stderr are both read). What the code shows: with --rl-single-island-no-sync the Miles island installs the event echo (install_event_echo), so every tape record it writes is printed as a YETO_RL_EVENT line 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:

  1. Run yeto image adopt ... --role trainer on one idle node and keep the launcher output.
  2. Check that the train step's output has a YETO_RL_EVENT line with "event":"rl_round_cut" and a cut id, and the resume step's output an rl_resume or rl_round_cut_restored line with the same cut id.
  3. If the lines are missing, the smoke fails closed (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) and tests/test_image_adopt.py (65), 126 passed on this head:

    • the rendered train and resume argv go through the real yeto.cli parser and the launch's checks with --dry-run (production --inner-lr default restored, and YETO_PREFLIGHT_MODEL removed, 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 off the dry run is rejected;
    • a real-bash run of the rendered prune script (docker a shim running the container's bash, the image's interpreter a stub recording its argv and environment): $(), backticks, ; and both quotes in --model, --model-revision, HF_TOKEN and HF_ENDPOINT arrive byte for byte and create no file;
    • a sampler reload that falls back to a restart fails the reload step and names reload_mode restart;
    • remote code: no auto_map, auto_map at top level or in text_config, an unknown family, --smoke-arg on, off and last-wins, Miles refusing off, the note in the evidence;
    • injection: references with ;, $(), 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_TOKEN is exported into the prune script but absent from the dry-run text;
    • train and resume:
      • pass end to end with the cut's manifest in a store, which is then deleted;
      • fail, with cleanup still run, on a missing or failed rl_round_cut event, a missing manifest, a resume from another cut, a missing resume event, rc 1, and a timeout;
      • kept artifacts are reported with their size;
    • the scratch-space check: the real script with a docker shim exits 7 before docker runs, and the failure message is named;
    • a node that turned busy before the smoke is refused;
    • the sampler record takes the spec's engine, and a contradicting --engine is refused;
    • the CLI passes the spec engine and the arch, busy and keep flags, and the trainer record names the registry's backend;
    • tuning override, unknown tuning, dropped-MTP note, --inner-lr override;
    • the sampler release / base_dir rule;
    • the earlier node-smoke, prune-shim, dry-run and doc-command tests.
  • Round 3 tests (tests/test_image_smoke.py 73, tests/test_image_adopt.py 70): the CLI with an inventory file whose nodes have container: podman, on runtime: docker and rootfs, with and without the pool config's container.sudo: every probe runs podman run (or sudo -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 trainer refused 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.py 84, tests/test_image_adopt.py 88): the pool's nodes and engine win over the inventory and a pool node outside the inventory is refused; a venv pool, --pool-config with --role trainer and a contradicting --container-sudo exit 2; malformed pool configs (not a mapping, provider or container not a mapping, bad YAML) exit 2 with no traceback; container.pull: never in 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-arg sets 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.py 104, tests/test_image_adopt.py 88): 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 unfused or a --smoke-arg of fused exits 2; the generic recipe resolves to fused and is not held; a --smoke-arg of 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 without provider.inventory exits 2; sampler specs [1, 2], "x", null, {"engine": 5}, a list engine.server and a string rollout_fields exit 2 without a traceback; unknown backend values and abbreviations exit 2 while ambiguous prefixes such as --rl-train are 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:

    • shard 0/4: 4637 passed, 108 skipped; shard 1/4: 4677 passed, 67 skipped, 1 xfailed; shard 2/4: 4658 passed, 85 skipped, 2 xfailed; shard 3/4: 4620 passed, 117 skipped, 8 xfailed.
  • Mutation check, round 5: 26 mutations, all killed: the resolution step in main, the training_attention call, 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-config prefix 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_engine in 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):

    • each new launch flag and default;
    • the quoting, the join and the interpreter check;
    • the secret export;
    • the round-cut, manifest and resume checks, and the ok filter;
    • the cleanup, store deletion, launcher deletion and keep;
    • the space mark and size factor;
    • the download cache;
    • the release rule;
    • the tuning parse, validation and = form;
    • the MTP note;
    • the reference grammar;
    • the spec engine default and cross-check;
    • the re-check before the smoke;
    • the registry backend;
    • CLI flags and keep.

    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:

    • removing the quoting of the source, of the revision and of an exported value (two forms);
    • exporting HF_TOKEN only, passing -e HF_TOKEN only;
    • dropping --preflight-model off (killed now that the test runs the model preflight with a Hub stub, so it no longer depends on the network);
    • the in-place reload check, its reload_mode message, the in_place constant;
    • the auto_map check at top level and in 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:

  • 52 customer goldens: 52 passed on both. No golden file or examples/k31 file changed.
  • yeto run up --dry-run of run.agentic-262k.json and run.baremetal-b300-262k.json: the trainer yeto launch dry 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.
  • Normalized (paths, timestamps, digests), every output is line-for-line identical to main. The FLASH_ONLY_RECIPES constant in run_config.py is 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.cli parser 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 adopt is built on that parser and tests/test_exact_option_names.py passes. Before that: rebased onto main 73b7da5, where the one conflict was in docs/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.py is 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

michaellchung and others added 7 commits November 27, 2026 05:22
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
michaellchung merged commit f27ab23 into main Nov 26, 2026
7 checks passed
@michaellchung
michaellchung deleted the own/image-adopt-smoke branch November 26, 2026 21:46
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant