Commit Graph
1174 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 e3ab98da38 fix(tests): use static rendezvous for local TP2 and allow torchrun keys
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>
2026-10-22 14:05:31 -04:00
Joseph MaglyandClaude Opus 5.5 f28d02a17a fix(qualification): parse nvidia-smi topology through ANSI escapes
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>
2026-10-22 14:05:29 -04:00
Joseph MaglyandClaude Opus 5.5 4acb27122e fix(admission): resolve shared projections through the caller's layer
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>
2026-10-22 13:50:26 -04:00
Joseph MaglyandClaude Opus 5.5 eaca7f9177 fix(tests): host the c10d store for local TP2 and prefer physical NICs
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>
2026-10-22 13:22:35 -04:00
Joseph MaglyandClaude Opus 5.5 bfe32bb105 fix(admission): resolve attention execution device nearest-first on split models
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>
2026-10-22 13:12:15 -04:00
Joseph Magly 368660ecc3 Merge pull request #368 from jmagly/fix/gpu-inventory-csv-newline
fix(gpu): keep embedded newlines when parsing nvidia-smi inventory CSV
2026-10-22 11:27:55 -04:00
Joseph MaglyandClaude Opus 5.5 547531a1dd fix(gpu): keep embedded newlines when parsing nvidia-smi inventory CSV
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>
2026-10-22 10:43:43 -04:00
Joseph Magly 2c731a96bc Merge pull request #367 from jmagly/test/gpu-uuid-followups
test(gpu): cover malformed UUID edge cases and failure reporting
2026-10-22 10:36:14 -04:00
Joseph MaglyandClaude Opus 5.5 d410367b27 test(gpu): cover malformed UUID edge cases and failure reporting
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>
2026-10-22 09:54:09 -04:00
Joseph Magly 021f4c94cd Merge pull request #366 from jmagly/fix/gpu-uuid-prefix
fix(gpu): canonicalize GPU UUIDs in the module-placement qualification driver
2026-10-22 09:50:44 -04:00
Joseph MaglyandClaude Opus 5.5 0f5bbd8054 fix(gpu): fail closed on malformed GPU/MIG UUIDs in qualification
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>
2026-10-22 08:35:50 -04:00
Joseph MaglyandClaude Opus 5.5 260674a9fa fix(gpu): canonicalize GPU UUIDs in the module-placement qualification driver
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>
2026-10-22 08:20:10 -04:00
Joseph Magly 7fee696874 Deliver UI, MCP, memory admission and distributed runtime improvements (#365)
Complete local readiness: UI, MCP, admission, and rank-local TP2 groundwork
2026-10-21 11:12:04 -04:00
Joseph Magly 09dd81845f ci: provide coverage headroom with six complete core partitions 2026-10-21 11:01:47 -04:00
Joseph Magly 669977b69d ci: refresh integration shard weights from measured test evidence 2026-10-21 10:49:36 -04:00
Joseph Magly 5e56e76b14 ci: distribute expanded integration across four bounded shards 2026-10-20 18:17:24 -04:00
Joseph Magly 002e6e56e1 feat: complete local readiness across UI, MCP and memory admission
Integrate bounded admission, UI ownership and controls, opt-in durable MCP execution, rank-local TP2 groundwork, regression hardening and operator guides. Physical larger-memory and two-host qualification remain separate.
2026-10-20 17:58:20 -04:00
Joseph Magly 6e1fb7b7f2 Merge pull request #364 from jmagly/feat/72b-placement
feat(gpu): 72B capacity planner and bounded export for split runs
2026-10-19 17:39:33 -04:00
Joseph MaglyandClaude Opus 5.5 482b415ea7 test: expect the workload prompt_characters field in qualification planning (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:53:25 -04:00
Joseph MaglyandClaude Opus 5.5 29b9611032 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:46:01 -04:00
Joseph MaglyandClaude Opus 5.5 441e59a279 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:41:20 -04:00
Joseph MaglyandClaude Opus 5.5 c282ccf519 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:28:58 -04:00
Joseph MaglyandClaude Opus 5.5 2166da1748 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:22:15 -04:00
Joseph MaglyandClaude Opus 5.5 dd90688f64 fix: reconcile merged Pain Axis scripts with both test suites (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:13:51 -04:00
Joseph MaglyandClaude Opus 5.5 463300345c fix: reconcile merged Pain Axis scripts with both test suites (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:02:37 -04:00
Joseph MaglyandClaude Opus 5.5 63b24bfa3e fix: reconcile merged Pain Axis scripts with both test suites (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 15:15:47 -04:00
Joseph MaglyandClaude Opus 5.5 d03e969f2e fix: address merge-resolution review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:24:37 -04:00
Joseph MaglyandClaude Opus 5.5 6a56a374fc Merge upstream/main into feat/72b-placement
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>
2026-10-19 14:20:05 -04:00
Joseph MaglyandClaude Opus 5.5 b865a2d203 docs(capacity): document known planner limitations (#363)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:12:41 -04:00
Joseph MaglyandClaude Opus 5.5 c10fcff7e4 fix(gpu): address silent-result review findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:08:01 -04:00
Joseph MaglyandClaude Opus 5.5 41ad522cdb fix(gpu): address silent-result review findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:02:04 -04:00
Joseph MaglyandClaude Opus 5.5 2e47adbabd fix(gpu): no silent metric or snapshot-policy errors in planned runs
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>
2026-10-19 13:57:28 -04:00
Joseph MaglyandClaude Opus 5.5 24e378c577 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:42:26 -04:00
Joseph MaglyandClaude Opus 5.5 12ea15dffb fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 02:31:27 -04:00
Joseph Magly 49b68eb34e Merge pull request #362 from jmagly/feat/campaign-hwflex
feat(campaign): run on any 80 GB GPU, Blackwell setup, three-seed reproducibility
2026-10-19 02:20:50 -04:00
Joseph MaglyandClaude Opus 5.5 e8c16fe420 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 02:18:29 -04:00
Joseph MaglyandClaude Opus 5.5 ed1ac3ee71 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 02:03:50 -04:00
Joseph MaglyandClaude Opus 5.5 7018c733db Merge upstream/main into feat/campaign-hwflex
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 01:45:57 -04:00
Joseph MaglyandClaude Opus 5.5 13da524fc9 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 01:45:01 -04:00
Joseph MaglyandClaude Opus 5.5 8bea800a82 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 01:34:18 -04:00
Joseph MaglyandClaude Opus 5.5 b5b23e41d7 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 01:21:48 -04:00
Joseph Magly 843dd9e4c7 Merge pull request #361 from jmagly/fix/steer-zero-dose-record
fix(steering): no telemetry record for zero-dose project hooks
2026-10-19 01:15:59 -04:00
Joseph MaglyandClaude Opus 5.5 3eba0ec88a fix: address review findings (campaign-hwflex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 00:55:26 -04:00
Joseph MaglyandClaude Opus 5.5 cc75851130 feat(campaign): run on any 80 GB GPU, Blackwell setup, three-seed reproducibility
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>
2026-10-19 00:48:15 -04:00
Joseph MaglyandClaude Opus 5.5 6dce2b7b4c Merge upstream/main into fix/steer-zero-dose-record
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 00:40:03 -04:00
Joseph Magly 08e88092f8 Merge pull request #360 from jmagly/feat/qwen38-a100-campaign
feat(scripts): resumable Qwen3.8-27B campaign runner
2026-10-19 00:30:22 -04:00
Joseph MaglyandClaude Opus 5.5 32b2ef069f Merge upstream/main into feat/qwen38-a100-campaign
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 23:48:19 -04:00
Joseph Magly ec89adec78 Merge pull request #359 from jmagly/feat/multistep-edit-order
feat(scripts): multi-step refusal + pain edit-order harness
2026-10-18 23:45:52 -04:00
Joseph MaglyandClaude Opus 5.5 16998b06a0 Merge upstream/main into feat/multistep-edit-order
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 23:10:56 -04:00
Joseph Magly 374deb1eb4 Merge pull request #358 from jmagly/fix/tp2-hardening
fix(distributed): TP2 hardening before two-GPU qualification
2026-10-18 23:00:03 -04:00