Repository navigation
Model card metadata - #560
Conversation
Resolved conflicts: - benchmarks/models.py: kept both ModelMonthlyAggregate/MonthBenchmarkEdge (this branch) and ResourceUsage (master) -- independent model classes. - benchmarks/tests/test_ag_grid.py: took master's refactor, which replaces brittle hard-coded top-5 rank/model/score expectations with data-refresh-robust invariants (assert_scores_descending). Supersedes the V1/V2/IT case fix from d903207. Renumbered the master-side migration 0023_resourceusage_* to 0025_* and re-pointed its dependency at 0024_modelmonthlyaggregate_coverage_leaves_added_vs_prev so the chain is linear: 0022 -> 0023 (mma+edge) -> 0024 (coverage_leaves) -> 0025 (resourceusage).
The trend tables were numbered 0024/0025 and collided with master's 0024_resourceusage. Renumber to 0025/0026 and depend on master's 0024 so the migration graph resolves to a single leaf.
The compare-page trend endpoint had no auth and returned any model's monthly aggregates by id. Gate mid_a/mid_b to public models in the domain and 404 otherwise, matching the public-only compare page.
Cache the public rank frame instead of rebuilding the model-by-month matrix per model-card load, batch the per-month scored-leaf queries into one, drop the identity rank remap, and keep only the prior month's coverage sets during recompute.
The trend panel showed misleading vision-only copy on language model pages; render it only for vision. Guard the hover script against a missing BrainScoreTrendHover, matching compare-trend.js.
The attribution sidebar grew the row as its content grew on the model card; cap it to the plot height and scroll internally (the compare page already did this). Add a draggable divider so the plot and attribution columns can be resized on both pages -- keyboard-accessible and synced across the Scores/Rankings tabs.
Rewrite the hover/idle sidebar copy to be shorter and more scannable: proper singular/plural, merged value+delta lines, dropped the summary that duplicated the bullets below it, Mon-YYYY dates, 3-dp scores, and plain-word rank moves. Rank movement text now names only model changes; benchmark churn is shown once as bullets. Tests updated to the new strings.
Give the attribution sidebar a readable hierarchy (bold headline, semibold section labels, muted dot bullets, spacing) via per-line classes assigned in renderAttributionList; render the classed default on wire so the idle state matches hover. Default the plot/attribution columns to 2/3 and 1/3.
…month Extract the shared Plotly axis/template/config into helpers used by both the single-model and compare builders; move the duplicated responsive resize into trend-hover.js. Memoize the max-month cache key (was queried on every cache access) and cache the month list.
Convert model-trend.css to model-trend.sass, import it from main.sass so it compiles through django-compressor, and drop the per-page raw <link> tags. Compiled output is unchanged.
Compare content had no max-width, so its width:100% charts stretched with the viewport. Wrap it in a left-aligned 1500px .compare-layout. The D3 and Plotly charts also sized themselves once at load and never recomputed; give them debounced window-resize handlers that redraw at the current width, and drop the Plotly responsive:true that reflowed inconsistently.
|
Model cards now read curated metadata from PostgreSQL, and the CSV importer preserves every catalog field. This update also incorporates the reviewed model-page layout and schema preview.
Validation: 68 Django tests and 59 JavaScript tests passed, with no missing model migrations. Browser checks passed at desktop, tablet, and mobile widths. Fresh migrations and upgrades from both existing Dev rollout is complete: a full backup was taken, migrations Before production: rehearse the migration/import against staging with a backup, verify real pages and scores, and deploy the application after its database schema is ready. The known unmatched public identifier Commits: |
|
Updated in 9852df6: preserve the maintainer-confirmed workbook color provenance during catalog conversion and YAML export. Green means curator verified; yellow means Claude inference from source material; red means Claude inference without source material; gray means undocumented. Exported evidence retains the workbook, sheet, cell address and derivation. Gray cells are excluded from facts while their original content is retained in the evidence ledger. Validation: 73 metadata editing/publication, model metadata and export tests passed. All seven CvT proposals also passed schema and recorded-evidence checks against the approved core SHA. The seven-model publisher rehearsal passed on a disposable dev-database copy: retry created no duplicate revisions, existing legacy metadata was preserved, and all 181,755 score rows and displayed leaderboard ranks remained unchanged. Shared dev was read-only; live publication still needs the protected deployment setup and independent head-specific approval. |
Author: Nathan Teshome
Summary
This PR adds structured model metadata to the vision model detail page, including:
Model cards are backed by a six-table CSV catalog containing 78 curated vision models. A workbook conversion script generates the catalog, and a management command supports importing it into the new metadata database tables. The current model-card implementation reads the CSV catalog directly.
Models present in the catalog display their curated fields. Models without a matching entry fall back to the existing submission metadata, with available values marked as probable and missing values shown as Not documented. Catalog coverage is partial, and even curated models may have undocumented fields.=
Features Implemented
At-a-Glance — Model Detail Page
Intended Use and Evaluation
Metadata Provenance
Model Lineage
Metadata Pipeline
scripts/build_model_metadata_catalog.py.0027migration.Metadata Sources and Fallback Behavior
The model identifier determines whether the card uses curated catalog data or submission metadata. Lookup tolerates casing differences, but distinct checkpoint variants remain separate entries.
Examples with curated metadata include:
resnet-50-robustvit_base_patch16_clip_224:openai_ft_in1kThe variant
vit_base_patch16_clip_224:openai_ft_in12k_in1kis not currently in the catalog and therefore displays the sparser submission fallback.The database importer is preparatory infrastructure: importing records does not currently change what the CSV-backed cards display.
UX Improvements
Next Steps
UI Cleanup
Data and Testing
Known Bugs and Limitations
display: flexrule overrides the default styling of thehiddenattribute. Additional variants remain visible when the control is collapsed.models.csvwithout--wipeleaves an emptyQ()filter that can delete all existing metadata records. Add an empty-catalog guard before relying on the importer.Final Visualization Demo
Screen.Recording.2026-09-29.at.4.42.52.AM.mov