Skip to content

Preflight: take max of calibrated and ridge_large_feature formula - #2411

Merged
KartikP merged 1 commit into
masterfrom
kp/preflight-max-calibrated-formula
Jun 14, 2026
Merged

KartikP merged 1 commit into
masterfrom
kp/preflight-max-calibrated-formula

Conversation

@KartikP

@KartikP KartikP commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

When a benchmark has a calibrated fixed_cost AND falls in the ridge_large_feature regime (n_features > n_stimuli), use whichever predicts more memory. The two predictors capture complementary things — calibrated captures benchmark-side overhead (caches, multi-subject pools) measured with alexnet, the ×6 formula captures model-side SVD intermediates that scale with n_features. Build #32 surfaced the gap: deit_large × Zerbe2026_persubject preflight predicted 19 GB (calibrated alone) but the container actually peaked at 29 GB and the kernel OOM-killed it. Taking the max recovers safety in both regimes.

When both predictors apply (a benchmark has a calibrated fixed_cost AND
n_features > n_stimuli), use whichever predicts more memory. Calibrated
captures benchmark-side overhead (caches, multi-subject pools) measured
end-to-end with alexnet, but misses SVD intermediates that scale with the
candidate model's n_features. The ×6 formula captures those intermediates
but misses the benchmark-side overhead. Build #32 surfaced this:
deit_large × Zerbe2026_persubject preflight predicted 19 GB (calibrated)
but the container actually peaked at 29 GB and the kernel OOM-killed it.
@KartikP
KartikP merged commit b6260ad into master Jun 14, 2026
Nishant-codex pushed a commit to Nishant-codex/vision that referenced this pull request Jul 2, 2026
…ain-score#2411)

When both predictors apply (a benchmark has a calibrated fixed_cost AND
n_features > n_stimuli), use whichever predicts more memory. Calibrated
captures benchmark-side overhead (caches, multi-subject pools) measured
end-to-end with alexnet, but misses SVD intermediates that scale with the
candidate model's n_features. The ×6 formula captures those intermediates
but misses the benchmark-side overhead. Build brain-score#32 surfaced this:
deit_large × Zerbe2026_persubject preflight predicted 19 GB (calibrated)
but the container actually peaked at 29 GB and the kernel OOM-killed it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant