Repository navigation
Move older-style testers of 129 more models onto static small-config defaults - #50976
Conversation
d21159a to
e7d84a1
Compare
|
run-slow: aimv2, albert, altclip, aya_vision, bamba, bart, beit, big_bird, bigbird_pegasus, biogpt, bitnet, blenderbot, blip, bridgetower, canary, canine |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
CI (Nvidia + AMD)Nvidia · ✅ No new failures 🎉👏 · ⚙️ Workflow · 📊 Dashboard Failures (8 pre-existing)Pre-existing failures (still failing) — 8 total: Same error (8): - bamba: - big_bird: - bitnet: - bridgetower: AMD · ✅ No new failures 🎉👏 · ⚙️ Workflow · 📊 Dashboard Failures (9 pre-existing)Pre-existing failures (still failing) — 9 total: Same error (9): - aya_vision: - bamba: - big_bird: - bitnet: - bridgetower: |
e7d84a1 to
53ed6a3
Compare
53ed6a3 to
1d44d04
Compare
|
[For maintainers] Suggested jobs to run (before merge) run-slow: aimv2, altclip, aya_vision, bamba, biogpt, bitnet, bridgetower, chameleon, cohere2_vision, colpali, colqwen2, conditional_detr, cosmos3_edge, cpmant, ctrl, cvt |
Stacked on #50972 — the first two commits here are #50972; review only the last one (diff). It is stacked because several testers here are
Copied fromtesters migrated there.Continues #50972: moves 159 more older-style testers, across 129 models (layoutlmv3, vjepa2, vitpose, glm4v, mimi, encodec, xlnet, moonshine, pix2struct, mpt, deit, vit_mae, …), onto
ModelTesterConfigMixin, plusGraniteMoeHybridModelTester, which #50972 left out because it subclasses Bamba's tester (migrated here).The pattern (as in #50916 and #50972)
small_config_overrides(defaults = {}); values__init__computed move toget_small_config_defaults(), keeping the old precedence. Sub-testers and objects stay in__init__; composites keeptext_kwargs/vision_kwargs.setUpbuilds the tester setsmodel_tester_class.defaults = {**Parent.defaults, **Parent.small_config_overrides}(a subclass'ssmall_config_overridesreplaces the parent's, it doesn't merge).UniSpeechRobustModelTester,FunnelBaseModelTester,SeamlessM4TTextInputModelTester,NeoMMEForRetrievalModelTester, Chameleon's Vision2Seq tester, VideoPrism's classification tester. setUp arguments equal to the defaults are dropped (PP-OCR testers).is_training=Falseon standalone decoders,batch_size=1on slanext/SLANet), it is now the default. Parameters that were accepted but never stored are dropped. XLNet's__init__ignored its arguments and hardcoded its values; the literal holds the values that took effect (num_hidden_layers: 3).Left unchanged: the two
nemotron_asr_streamingtesters (they subclass Parakeet's testers, not migrated yet).Proof
96227f0fd5and on this branch: 158/161 identical and on the mixin with no static/runtime mismatch. The 3 others: the 2 unchanged Nemotron testers, andUniSpeechModelTester, whose only TestCase now buildsUniSpeechRobustModelTester, identical to what it built before.GraniteMoeHybridModelTester: identical to main.tests/utils/test_model_tester_defaults.py: 12 passed. Building every TestCase with amodel_tester_classacrosstests/models(527) gives no static/runtime mismatch.-k "config or common_attributes or test_model"excluding tensor/expert-parallel tests: all pass, except failures identical on main (test_bc_cache_name_forwardfor the MultipleChoice heads of xlm and flaubert,test_training_gradient_accumulationfor pocket_tts and gradium_phonon_tts, videoprism integration tests needingtorchcodec). higgs_audio_v2_tokenizer's tests skip locally (notorchaudio).utils/check_copies.py,ruff checkandruff format --checkpass;git diff --checkis clean.🤖 Generated with Claude Code