Commit Graph
266 Commits
Author SHA1 Message Date
LLMsherpa 263854cb12 fix: count resident load storage once and classify method outcomes 2026-10-26 12:23:30 -04:00
LLMsherpa ac6d92abc7 fix: preserve scored candidates across search, refinement and tournament replay 2026-10-25 21:52:42 -04:00
LLMsherpa f310c573f0 fix: preserve fused norms and correct final candidate quality checks 2026-10-25 20:12:30 -04:00
LLMsherpa e93ac1ae45 fix: expose native checkpoint and activation hooks 2026-10-25 19:25:18 -04:00
LLMsherpa 4b4ce2f278 fix: enforce final KL budgets and retain pristine comparisons 2026-10-25 19:10:21 -04:00
LLMsherpa ec2c6837c7 fix: align spectral sampling and verification reporting 2026-10-25 18:54:53 -04:00
LLMsherpa 5c8519eefa fix: handle V4.1 placement, readouts, and export memory 2026-10-25 13:10:12 -04:00
Joseph MaglyandClaude Opus 5.5 aa900a71a3 Require every recorded symlinked input to be hashed
Codex r6 (P2): bound_hashes skipped paths that were not files at hashing
time, so an input that vanished while it was hashed (for example a newly
added one whose directory was briefly renamed away) was recorded but never
hashed. Every file in the identity snapshot must now be hashed. Overlay
directory links no longer add expected paths: their files are bound through
the source tree, matching the default inventory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:56:49 -04:00
Joseph MaglyandClaude Opus 5.5 e45c1910ae Hash symlinked inputs through handles bound to their recorded identity
Codex r5 (P2): swapping a whole cache directory during hashing kept every
link and file identity intact, so trusted bytes could be hashed while the
recorded, altered files were what the loader later opened. In symlink mode
each file is now hashed through its open handle, and that handle's device,
inode, size and times must match the identity snapshot before and after
reading. The hashed bytes are therefore the recorded file's bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:48:38 -04:00
Joseph MaglyandClaude Opus 5.5 2d42fdd1ee Record symlink identities so a link swapped during hashing is refused
Codex r4 (P2): source and overlay entries kept only their target's identity,
so a link replaced and restored while inputs were hashed went unnoticed.
Each source link, overlay file link and snapshot-directory link now records
its own text, device, inode and times alongside the validated target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:37:10 -04:00
Joseph MaglyandClaude Opus 5.5 4dfd1a4a01 Check the symlink-inputs path as given and bind the loader overlay
Address review r3 of the symlinked-inputs option:
- Check --symlink-inputs component by component as given, relative or
  absolute, before recording it, instead of resolving links away first.
- Bind every loader-facing overlay link in models/<label> to the identity
  of the validated source file it must point at, require snapshot
  subdirectories to point at their source directory, and record the
  generated config.json; the source, overlay and their parent directories
  must be real directories.
- Capture overlay identities before hashing at fetch and resume, and
  re-check them in workers and probe children.
- Add the change time to every identity so a same-size rewrite that
  restores the modification time is caught.
- Document that multistep children rely on their parent worker's check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:33:34 -04:00
Joseph MaglyandClaude Opus 5.5 52f4597589 Close the remaining symlinked-input gaps from review r2
- Re-check input identities inside every loadpath and pain-axis probe
  child before it imports torch or loads a model.
- Require the allowed inputs directory and every directory above it to be
  real directories, so a same-device link cannot replace the root.
- Walk each input path component by component as written, applying '..'
  only after the directory before it is checked, so a symlinked directory
  followed by '..' cannot be collapsed away; relative Hugging Face
  snapshot links still work.
- Capture identities before hashing at fetch and resume and require them
  unchanged afterwards, so the stored snapshot describes the hashed bytes.
- Narrow the documentation to exactly what is checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:46:42 -04:00
Joseph MaglyandClaude Opus 5.5 337df82298 Pin symlinked campaign inputs to one device and re-check them in workers
Address review r1 of the symlinked-inputs option:
- Lock the allowed directory's device and require every input component
  to sit on it, so a mount under the directory cannot stand in for it.
- Walk each input path with lstat and reject any symlinked directory,
  even one inside the allowed directory; only the final snapshot-to-blob
  link is followed.
- Record each validated input's path, device, inode, size and mtime, and
  have every model-loading worker re-check them before it starts. The
  window between that check and the load is documented as accepted for a
  single-owner input cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:00:37 -04:00
Joseph MaglyandClaude Opus 5.5 7e23830236 Confine symlinked campaign inputs to one allowed directory
--symlink-inputs now takes the directory the cached inputs must live in.
Fetch refuses a cached file that resolves outside it and refuses a cache
miss rather than downloading. Fetch and every resume fail closed when an
input link is broken, leaves the allowed directory, has been replaced by a
regular file, or no longer matches its recorded hash. validate_fetch reads
the policy from the run manifest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:15:21 -04:00
Joseph MaglyandClaude Opus 5.5 be28ff900e Let the Qwen3.8 campaign symlink cached inputs from another filesystem
Add an opt-in --symlink-inputs option. Fetch then links each cached pinned
snapshot file into the run root with a symlink to its resolved cache path,
instead of a hard link, so the inputs can sit on a different filesystem from
the root without a full copy. Fetch still records every file's hash through
the link and each resume re-verifies them. The option is locked in the
manifest only when set, so existing roots resume unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:08:49 -04:00
Joseph MaglyandClaude Opus 5.5 fee11f5dab Fail closed on cache misses and link failures under a lowered disk floor
Codex r1 on #381: a lowered --min-free-disk-gb did not enforce its
cached-input premise. A cache miss still downloaded and a failed hard
link silently fell back to a full copy, so a root admitted at 70-140 GB
could pull or copy ~108 GB. Below the 250 GB default, fetch now refuses
a snapshot that is not completely cached or cannot be hard-linked; the
same guard applies when an incomplete fetch is resumed. The default and
unlowered floors keep the download and copy fallbacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:55:29 -04:00
Joseph MaglyandClaude Opus 5.5 cce21520e8 Add a locked --min-free-disk-gb admission for cached campaign inputs
The Qwen3.8 campaign refuses a new root below 250 GB free. That floor
assumes both pinned snapshots (~108 GB) are downloaded; when they are
already in the local Hugging Face cache on the root's filesystem, fetch
hard-links them and that share is not needed. An operator can now lower
the initial admission explicitly (at least the 70 GB resume reserve).
The value is locked in the manifest only when set, so existing roots
resume unchanged, and must be repeated on resume.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:48:21 -04:00
Joseph MaglyandClaude Opus 5.5 5da7ec7bb4 fix(verify): require a corroborated global extent for sharded heads
Review of 5a4835e: with no manifest global shape, a sharded head fell back
to mutable config.vocab_size, so 16-row shards with config vocab 16 passed
on both ranks. A vocab-sharded head now needs the manifest global row
extent corroborated by the live local weight shape and a complete even
shard layout (local rows x world size, per-rank start/end and rank
shards); config alone never establishes it, and anything else fails closed
with LMS_VERIFY_FORWARD_CONTRACT in baseline and post-edit revalidation.
Docs state the exact rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:11:28 -04:00
Joseph MaglyandClaude Opus 5.5 5a4835eb96 fix(verify): trust only the global head extent and keep decisions tokenizer-valid
Review of 579125a:
- For a vocab-sharded head the observed logits width was accepted as the
  vocabulary, so identical shard-width outputs passed. The width must now
  match the manifest global row extent (config as fallback); without a
  trusted extent VERIFY fails closed with LMS_VERIFY_FORWARD_CONTRACT.
- Refusal decisions took argmax over the full padded width, so a model-only
  column could win and hide a refusal. Selection is restricted to tokenizer
  ids; full-width log_softmax and finiteness checks are unchanged.
- Adds real 2-process gloo cases (padded vocab, shard-width mismatch, rank
  width disagreement) asserting identical exact codes and rollback, and
  tightens the gloo code-agreement test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 15:50:17 -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 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 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 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 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 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 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 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 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 MaglyandClaude Opus 5.5 08d0930b05 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:41:33 -04:00
Joseph MaglyandClaude Opus 5.5 5974a89a39 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:27:35 -04:00
Joseph MaglyandClaude Opus 5.5 ea894b9bd1 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:08:53 -04:00
Joseph MaglyandClaude Opus 5.5 5d12d2ae9d fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:53:13 -04:00
Joseph MaglyandClaude Opus 5.5 8ac8817223 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:39:32 -04:00
Joseph MaglyandClaude Opus 5.5 aa4e7b9734 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:22:17 -04:00
Joseph MaglyandClaude Opus 5.5 6dbded149d Merge upstream/main into fix/concept-multidevice
Resolves the ci/test-risk-map.json conflict with #356 by taking the union
of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:14:47 -04:00
Joseph MaglyandClaude Opus 5.5 1148b8310c fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:05:16 -04:00
Joseph MaglyandClaude Opus 5.5 6dc719ff05 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:52:50 -04:00
Joseph MaglyandClaude Opus 5.5 8828610a98 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:39:39 -04:00
Joseph MaglyandClaude Opus 5.5 c9a40af719 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:29:39 -04:00
Joseph MaglyandClaude Opus 5.5 97d042c71c feat(gpu): 72B capacity planner and bounded export for split runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:17:47 -04:00
Joseph MaglyandClaude Opus 5.5 66db232f7b fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 18:37:46 -04:00
Joseph MaglyandClaude Opus 5.5 ae3ca4f900 fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 16:53:23 -04:00