Commit Graph
8 Commits
Author SHA1 Message Date
Joseph Magly 2a0abae1f8 fix(viewer,evaluator,presets): close #661/#663 review follow-ups
The results viewer formats -0 and non-finite values like Python, survives
engines without toFixed(100), and shows an error when readAsText throws. CSV
export writes an empty metric name as `metric:` and orders columns by name
across all rows. StudyConfig rejects `metrics: []` at parse. The evaluator logs
the position_ids fallback and matches more rejection wordings, runs in eval
mode (restoring module modes afterwards), and handles left padding in
classification. Preset getters return deep copies.

Fixes #666
2026-11-25 09:59:06 -05:00
Joseph Magly 6df8ef411d fix(config): let --preset override YAML presets, resolve task metrics on construction, copy preset data
Codex review r1 for #620: the CLI --preset now replaces whichever preset key
the YAML uses and an unknown preset is a clear error; directly constructed
studies resolve omitted metrics from the model task in __post_init__ (explicit
lists unchanged); preset strategies and metrics are copied on apply so parsed
studies don't share mutable state. README narrowed; loader behaviour for a
checkpoint without label metadata is pinned by tests.
2026-11-24 17:12:22 -05:00
Joseph Magly 64837993b0 fix: apply run presets before parsing, task-aware metrics, padding-safe perplexity, checkpoint label counts
Apply `run --preset` before StudyConfig requires `strategies`, and default
omitted classification metrics to accuracy/F1, also on the preset path.
Causal perplexity no longer scores targets preceded by padding and passes
mask-derived position_ids for left-padded batches, so batch size no longer
changes results. Classifier loading keeps the checkpoint's label count unless
num_labels is given.

Fixes #608
Fixes #610
Fixes #609
Fixes #614
2026-11-24 14:45:50 -05:00
Joseph MaglyandClaude Opus 5.5 f28f0a15f1 fix(snapshot): derive default staging budget from available host memory
DiskSnapshot admitted six largest-tensor copies against a fixed 1 GiB
default, so any model with a tensor over ~179 MB (e.g. a large-vocabulary
embedding) could not create a restore point regardless of free memory.

staging_bytes now defaults to None, which admits half of currently
available host memory (DEFAULT_STAGING_HOST_FRACTION). Explicit values keep
their existing hard-cap semantics, min(staging_bytes, available). Rejection
stays fail-closed and names required bytes, admitted bytes, the budget
source and the snapshot.staging_bytes / staging_bytes= knob.

Closes #269

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 13:58:57 -04:00
Joseph Magly 30d9647779 fix(checkpoint): restore lazy disk backing within current host budgets
(cherry picked from commit d96054f91219cf866f77c3aedd4268768ee922e5)
2026-10-05 17:54:30 -04:00
Joseph Magly 62a480fd6a Harden remote execution contracts and tests 2026-08-15 00:13:26 -04:00
Joseph Magly 340173e203 test: harden quantized model loading 2026-08-14 20:31:50 -04:00
pliny 66ea4a6f86 Add files via upload 2026-03-05 00:50:44 -08:00