Repository navigation
feat(leaderboard): read architecture and parameter count from v2 metadata - #581
Merged
Merged
Conversation
…data mv_final_model_context now takes the architecture family and parameter count from brainscore_model_metadata, falling back to brainscore_modelmeta. Families are mapped to the existing filter labels, so filter options and URL state are unchanged. Runnable, size and layers stay on v1.
Each v2 family expands into the existing filter labels (a hybrid is DCNN, Transformer and Hybrid; a recurrent model also gets RNN), so one curated family keeps the multi-tag filter. Old Recurrent links map to RNN.
KartikP
marked this pull request as ready for review
October 9, 2026 12:01
This was referenced Nov 8, 2026
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.
Leaderboard model filters read v2 metadata records first and fall back to v1
brainscore_modelmeta(HAG-60).Change
mv_final_model_context.model_meta:architecture: a comma-separated tag list derived from the single v2architecture_family, using the existing filter labels:convolutional_neural_network= DCNN;vision_transformer= Transformer;hybrid_convolutional_transformer= DCNN, Transformer, Hybrid;recurrent_convolutional_neural_network= DCNN, RNN;hybrid_biological_convolutional= DCNN;raw_pixels= Pixels; plus RNN whenever v2recurrentis true. Other families, and models without a v2 record, keep the v1 value. The frontend already splits on commas, so no schema or JS filter change. Recurrent models use the existingRNNlabel (14 public models) rather thanRecurrent(1 public model, grcnn, which v2 tags RNN); oldarchitecture=Recurrentlinks are mapped to RNN inurl-state.js.total_parameter_count: v2parameter_count, else v1.runnable(v2 has no runnable field; it only exists in thelegacy:block, which the publisher already writes intobrainscore_modelmeta),model_size_mb,total_layers(no v2 field yet), and every other key.Compare, export and wayback are untouched: they read the same keys.
Migration (NOT run anywhere shared)
0034_final_model_context_reads_v2_metadatadrops and recreates onlymv_final_model_context(no CASCADE), keeping its indexes, grants, comment and owner, the same way 0031 does. The other views are not rebuilt. The reverse direction restores the 0027 definition.mv.sqlis updated to match, andtest_migrationschecks that 0027 + 0034 reproducemv.sql.Rehearsed on a disposable local PostgreSQL: full migrate, then back to 0033, then forward again; the view definition switches as expected each time. Needs explicit approval before running on dev or prod.
Tests
FinalModelContextV2MetadataTests: v2 family wins and is shown as filter tags (hybrid = DCNN, Transformer, Hybrid; recurrent family or recurrent flag = RNN) (case-insensitive name match); an unmapped family and a missing count fall back to v1; runnable, size and layers stay on v1. The first test fails against the old view definition.benchmarks.tests.test_model_metadata+test_migrationson disposable PostgreSQL (web.metadata_test_settings): 43 tests OK.Read-only comparison: prod (vision, mv_final_model_context, 2069 distinct model names, 220 rows with a v2 record)
Architecture tags, public vision models (prod, read-only):
The 59 models with comma-joined or empty v1 architecture need curation separately; they keep their v1 label until then.