Repository navigation
ssh pools on own nodes: two pools of a run on one leased node, trainer nodes, oversized TP; upload prompts_file - #922
Merged
Merged
Conversation
… oversized TP; upload prompts_file - yeto run up (dry run and real) refuses two ssh pools of one run on one node of an inventory with lease_store (the second would wait for the node lease forever), and an ssh pool on a node of the run's ssh: trainer islands or their trainer-spare nodes (yeto/launch/own_node_checks.py). - provider.nodes naming a node whose inventory roles lack sampler is refused. - the pool dry run refuses a spec whose tensor parallel size exceeds the node's cards (provider.devices when set). - the inventory refuses one non-loopback address on two nodes. - an ssh pool at price 0 no longer prints the "bill until they are released" warning; it says the nodes are not billed but held until the pool stops. - ssh pools upload prompts_file to the host path behind the spec's prompts.path at every start and check its size and sha256 there (the rented-node semantics); the dry run says where the sampler reads the file, and warns when no mount or workdir holds the path. - the own trainer + own sampler template sets prompts_file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ter import) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…node (review of #922) - two ssh pools of one lease store: refused only when both name one node in provider.nodes or their targets exceed the nodes the two can take; a note otherwise (a pool skips a node the other holds). - a pool on a trainer node: refused without node leases common to both; with them, refused only when the trainer nodes left after the pools' (quarantined nodes not counted) are fewer than the islands need, a warning otherwise. - one machine: the host after any user; lease stores compared after parse_lease_store (file:// and the bare directory are one store). - devices beyond the node's cards are refused and the card count is min(devices, cards); tp "8" is read as 8, a tp that is no number a problem. - the prompts upload keeps a matching copy, streams the file under a temp name of the shell with a size-based timeout, and an unseen path or a missing local file is a config error (not retried). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaellchung
force-pushed
the
own/ssh-pool-checks
branch
from
November 26, 2026 21:51
a451ffa to
cb5e955
Compare
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.
Summary
Seven checks for ssh sampler pools on own nodes (own-cluster-fleet-stability):
Two pools of a run on the nodes of one lease store. A node lease is held per node name. A pool skips a node the other pool holds and takes another free node of its slots.
yeto run up(dry run and real run) refuses with exit 2, and starts nothing, in two cases:provider.nodes;Otherwise it prints a note. The refusal names the pools and the node(s) and gives two ways out:
lease_store, with the cards split byprovider.devices;Lease semantics are unchanged. Lease stores are compared after
parse_lease_store, sofile:///xand/xare one store.Billing wording. An ssh pool at price 0 no longer prints "Cloud rollout islands (ssh) bill until they are released". It now says the nodes are not billed but their cards are held until the pool stops. A priced ssh pool and the cloud providers keep the old warning. The examples/k31 customer outputs never printed this line and are unchanged.
Roles and trainer nodes.
provider.nodeswhose inventory roles lacksampleris refused. Nodes with no roles are still accepted.ssh:trainer islands, or on theirtrainer-sparenodes, is refused when no node lease is common to both (one lease store, one node name), because the trainer takes every card of its nodes.node_quarantine.shared_quarantines) are not counted. Otherwise it prints a warning.TP against cards. The pool dry run refuses a spec whose tensor parallel size is larger than the node's cards. When
provider.devicesis set, the count ismin(len(devices), cards). The size is read fromengine.options.tp; a decimal string such as"8"is read as a number, and anything that is not a whole number is a problem. Without it, the vllm-server / sglang-server default is used; these defaults are constants checked against the adapters by a test, because the launch layer imports no adapter. Aprovider.devicesindex beyond the node's cards is refused.prompts_fileupload. At every start the ssh pool checks the size and sha256 of the copy at the host path behind the spec'sprompts.path(under the pool's workdir or a mount, translated through the mount)..tmp.$$), with a timeout of 60 s plus the bytes at 10 MiB/s (at most 30 min), then checked again before the sampler starts.prompts_file.Duplicate addresses. The inventory refuses one address on two nodes. Loopback addresses are exempt, because each container has its own loopback.
Dry-run prompts note. The ssh pool dry run no longer says each start fails without
prompts_file. It says where the sampler reads the file (workdir, a mount with its host path, or the host for a venv runtime). It prints a WARNING line when no mount or workdir holds the path, and a problem whenprompts_filetargets such a path.Tests
tests/test_ssh_pool_checks.py(47 tests) covers each check:[trainer, sampler]node on a leased inventory), C (a leased inventory without roles, including a quarantined node read from the lease store) and D (no lease store);tests/test_own_cluster_templates.pyadds run up tests:lease_store;tests/test_ssh_sampler_pool.py: one assertion now passesdevices=None, because its fixture paired a TP8 spec with a one-device pool.Follow-up, not in this PR: move the adapters'
tpdefaults into a neutral core declaration that both the adapters and the launch layer read.🤖 Generated with Claude Code