On torch 2.13 the c10d backend gives workers MASTER_ADDR=getfqdn() and a
fresh MASTER_PORT from the shared TCPStore (launcher.api returns no
master endpoint for non-static backends), which the launcher contract
rejects. local_tp2 now uses --rdzv-backend=static with the profiled
--master-addr/--master-port and --node-rank=0; the is_host approach is
dropped. two_host_tp2 keeps c10d. Allow ROLE_NAME and
TORCHELASTIC_SIGNALS_TO_HANDLE (set by torchrun 2.13) and LC_CTYPE (PEP
538 locale coercion) in the worker environment. Verified on 2x A100.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nvidia-smi topo -m underlines its header with ANSI SGR escapes even when
piped (\x1b[4mGPU0 ...\x1b[0m). parse_topology matched cells[0] against
GPU\d+, never found the header and silently returned {}, so every link was
"unknown" and --require-link nvlink failed on a real NV12 pair (2x A100).
Strip ANSI CSI sequences before parsing, and raise on nonempty output with
no recognizable header so smi_diagnostics records an error instead of an
empty topology.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of bfe32bb: resolve_module_execution_device walked the first
registered path from named_modules(), so a projection shared between
layers always inherited the first layer's ancestors and could resolve
the wrong device while admitting another layer.
Attention admission now passes its explicit [projection, attention,
layer, model] ancestry, checked one module at a time nearest-first.
Without explicit ancestry every registered alias path is resolved and
conflicting results raise "ambiguous shared module execution devices"
instead of picking the first. Adds shared-projection regressions (both
registration orders), unsupported/device-less hooks on an intermediate
container, and per-layer resolved-device assertions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The llama-tp-local-gpu gate failed on a 2x A100 host with
"DistNetworkError: The client socket has timed out ... connect to
(172.27.0.1, ...)". torch's c10d rendezvous only hosts the TCPStore when
_matches_machine_hostname(host) is true; on hosts whose hostname resolves
only to 127.0.1.1 no private IP matches, so every agent acts as a client.
The harness also picked a Docker bridge (br-*) because it took the first
RFC1918 address in sorted interface order.
- local_tp2 passes --rdzv-conf=is_host=1 (two-host shape unchanged).
- Interface ranking prefers non-virtual interfaces (docker, br-, veth,
virbr, cni, flannel, tailscale, lo deprioritized) with the old rule as
fallback; optional OBLITERATUS_TP_INTERFACE exact override.
- Opt-in worker log capture via OBLITERATUS_TP_WORKER_LOG_DIR (0600,
O_EXCL); default stays DEVNULL.
Helpers move to tests/conditional/_llama_tp_harness.py with CPU tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase admission's _attention_compute_dtypes passed the projection, its
attention module, layer and the root model to _hook_execution_device as
one list, which pools execution devices from every ancestor hook. On a
model split across two GPUs the layer hook (cuda:1) and the root dispatch
hook (cuda:0) differ, so every multi-GPU run failed admission with
"ambiguous Accelerate input execution devices". Found on 2x A100 with
module-placement-gpu devices=2 at 368660e.
Add resolve_module_execution_device, which walks ancestors nearest-first
and returns the first module whose own hook yields a device (a single
hook naming two devices still raises), and use it for attention
admission and the input-embedding walk. Modelling failures now report
"Phase '<p>': Cannot model phase demand: <cause>" instead of a bogus
"needs 0 bytes on cpu but only 0 bytes" shortfall.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parse_gpu_inventory fed raw.splitlines() to csv.reader, which splits
inside quoted fields, so a quoted UUID with an embedded newline lost it
and could pass validation with no inventory diagnostic. Parse from
io.StringIO so the newline is preserved and normalize_uuid rejects it.
Diagnostics-only: torch UUID validation still gates allocation.
Found in review of #367; pre-existing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to #366 review items: bytes input, embedded whitespace,
newline plus trailing junk, and that malformed UUIDs surface as
diagnostics or failed evidence/worker reports (smi_diagnostics,
supervise, edit/reload workers) rather than exceptions. Tests only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of 260674a found normalize_uuid did no syntax validation, so
malformed identities such as "not-a-uuid" passed evidence validation
that base rejected. Require an 8-4-4-4-12 hex body for GPU UUIDs and
accept MIG only as MIG-<uuid> or legacy MIG-GPU-<uuid>/<gi>/<ci>; raise
otherwise. Compare canonical UUIDs in inventory duplicate detection.
Replace malformed placeholder UUIDs in test fixtures and add negative
normalization, duplicate-inventory and evidence regressions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
torch reports device UUIDs without the "GPU-" prefix that nvidia-smi,
CUDA_VISIBLE_DEVICES and schedulers use. The driver (#356) compared raw
strings, so on real NVIDIA hardware:
- model workers were masked with the bare UUID, which CUDA does not
accept ("No CUDA GPUs are available");
- select_uuids rejected nvidia-smi-form --uuids;
- visible_device_records could not join the nvidia-smi inventory, leaving
pci_bus_id, physical_ordinal and topology empty.
Add normalize_uuid (bare or GPU- prefixed, case-insensitive, to
GPU-<lowercase>; MIG identifiers left distinct) and use it at discovery,
selection, inventory join, worker UUID checks and evidence validation.
Found on an A100 run of module-placement-gpu at 7fee696.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves conflicts in the Pain Axis scripts between the capacity
planning entry points and the split-model placement controls from #357;
the planner now honours device maps, max_memory and offload arguments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refusal evaluation with several returned sequences per prompt, internal
generation with return_dict_in_generate, and remote snapshot disabling
could produce wrong results without an error; each now behaves
correctly or refuses explicitly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OPERATOR DIRECTION: strict comparability with the E03 baseline is not required (E03 was a lucky proof of concept), and A100s are hard to rent, so the single-GPU campaign must run on any GPU with at least 80 GB: A100 80GB, H100 80GB, or RTX PRO 6000 96GB (Blackwell, sm_120).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>