Commit Graph
2 Commits
Author SHA1 Message Date
EthanfelandClaude Opus 4.7 fb8d9b2e67 fix(estimator): check index version and harden meta/per_prefix parsing
- ensure_index_fresh now rebuilds on ESTIMATOR_INDEX_VERSION mismatch,
  so a schema bump actually invalidates the cached pickle.
- Corrupt meta.json rebuilds instead of crashing.
- Index builder no longer falls back to the whole cache dict when
  per_prefix is missing — that previously treated top-level keys
  (algo_version, created_at) as prefix stats.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 14:20:22 +02:00
EthanfelandClaude Opus 4.7 023923ed90 feat: index builder script for estimator k-NN
Offline pipeline: snapshot_download the HF community dataset, parse
config/pair/lora JSONs into a phase1 dict per combo, featurize via
EstimatorFeatureExtractor, z-score-normalize, fit NearestNeighbors
(cosine), pickle to disk with meta.json sidecar recording the
hf_commit_sha, index version, feature dim, and build timestamp.

Compound arch filenames like `sd_unet` are parsed as a two-token
suffix so the leading token isn't mistakenly captured as a hash.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 14:06:33 +02:00