Repository navigation
Preflight: take max of calibrated and ridge_large_feature formula - #2411
Merged
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a benchmark has a calibrated
fixed_costAND falls in theridge_large_featureregime (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 withn_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.