Skip to content

Migrate testers for 20 popular models to static small-config defaults - #50916

Merged
tarekziade merged 2 commits into
mainfrom
tarek-static-defaults-top20
Nov 19, 2026
Merged

tarekziade merged 2 commits into
mainfrom
tarek-static-defaults-top20

Conversation

@tarekziade

@tarekziade tarekziade commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

🤗 Transformers CI

Follow-up to #50462: constructor-only tester settings are invisible to get_small_config_defaults() and tools that read test source. Move 25 testers across 20 popular model families to literal small_config_overrides, with dependent dimensions computed in get_small_config_defaults().

This removes 21 entries from the static/runtime parity exception list. BERT, RoBERTa, GPT-NeoX, and OPT retain their standalone tester behavior through ModelTesterConfigMixin and join the parity check. Default constructor values and generated configs are preserved; migrated fields now accept caller overrides through the shared API.

Selected from the top 50 model types by downloads in MIC coverage, using its data.json ranking on November 18, 2026:

Rank Model type Downloads
1 bert 527,874,026
2 qwen3 108,746,675
6 qwen3_5 92,274,452
9 gemma4 47,591,452
10 roberta 46,597,117
12 qwen3_5_moe 34,351,908
13 gpt2 30,545,353
21 qwen3_vl 19,337,885
30 glm5_next 7,619,607
32 glm_moe_dsa 7,133,417
34 gpt_neox 7,013,890
36 gemma3 6,276,380
37 deepseek_v4 6,213,673
38 deepseek_v32 6,161,743
39 qwen4_exp 5,763,811
40 opt 5,616,003
43 gemma4_unified 4,749,964
45 qwen3_asr 4,105,092
49 unlimited_ocr 3,535,621
50 laguna 3,313,579

Validation on CPU (macOS):

  • Defaults/parity suite: 12 passed.
  • Model/config smoke tests for the migrated tester classes: 40 passed.
  • Determinism tests for all 25 migrated tester classes: 25 passed.
  • Before/after comparison against 56fd5419aa: identical constructor values and generated configs in 42 default/batch-size cases.
  • All 25 override dictionaries parse with ast.literal_eval.
  • make style and git diff --check pass.

@tarekziade tarekziade self-assigned this Nov 18, 2026
@tarekziade

Copy link
Copy Markdown
Collaborator Author

run-slow: bert, deepseek_v32, deepseek_v4, gemma3, gemma4, gemma4_unified, glm5_next, glm_moe_dsa, gpt2, gpt_neox, laguna, opt, qwen3, qwen3_5, qwen3_5_moe, qwen3_asr

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@github-actions

Copy link
Copy Markdown
Contributor

CI (Nvidia + AMD)

Nvidia · ✅ No new failures 🎉👏 · ⚙️ Workflow · 📊 Dashboard

Failures (12 pre-existing)

    Pre-existing failures (still failing) — 12 total:

        Same error (12):

show all 12

 
    - deepseek_v32:
        tests/models/deepseek_v32/test_modeling_deepseek_v32.py::DeepseekV32IntegrationTest::test_batched_generation_padding
        tests/models/deepseek_v32/test_modeling_deepseek_v32.py::DeepseekV32IntegrationTest::test_deepseek_v32
        tests/models/deepseek_v32/test_modeling_deepseek_v32.py::DeepseekV32IntegrationTest::test_logits_eager
        tests/models/deepseek_v32/test_modeling_deepseek_v32.py::DeepseekV32IntegrationTest::test_logits_long_context

    - deepseek_v4:
        tests/models/deepseek_v4/test_modeling_deepseek_v4.py::DeepseekV4IntegrationTest::test_v4_flash_dequantized_chat_seven_prompts
        tests/models/deepseek_v4/test_modeling_deepseek_v4.py::DeepseekV4IntegrationTest::test_v4_flash_dequantized_generation

    - glm_moe_dsa:
        tests/models/glm_moe_dsa/test_modeling_glm_moe_dsa.py::GlmMoeDsaModelTest::test_sdpa_can_dispatch_on_flash

    - opt:
        tests/models/opt/test_modeling_opt.py::OPTEmbeddingsTest::test_logits

    - qwen3:
        tests/models/qwen3/test_modeling_qwen3.py::Qwen3IntegrationTest::test_model_600m_logits
        tests/models/qwen3/test_modeling_qwen3.py::Qwen3IntegrationTest::test_speculative_generation

    - qwen3_5:
        tests/models/qwen3_5/test_modeling_qwen3_5.py::Qwen3_5IntegrationTest::test_model_video_generation
        tests/models/qwen3_5/test_modeling_qwen3_5.py::Qwen3_5IntegrationTest::test_model_video_generation_batch

AMD · ✅ No new failures 🎉👏 · ⚙️ Workflow · 📊 Dashboard

Failures (23 pre-existing)

    Pre-existing failures (still failing) — 23 total:

        Same error (23):

show all 23

 
    - deepseek_v4:
        tests/models/deepseek_v4/test_modeling_deepseek_v4.py::DeepseekV4IntegrationTest::test_v4_flash_dequantized_chat_seven_prompts
        tests/models/deepseek_v4/test_modeling_deepseek_v4.py::DeepseekV4IntegrationTest::test_v4_flash_dequantized_generation

    - gemma4:
        tests/models/gemma4/test_modeling_gemma4.py::Gemma4IntegrationTest::test_model_with_image
        tests/models/gemma4/test_modeling_gemma4.py::Gemma4IntegrationTest::test_model_with_image_batch

    - glm_moe_dsa:
        tests/models/glm_moe_dsa/test_modeling_glm_moe_dsa.py::GlmMoeDsaModelTest::test_sdpa_can_dispatch_on_flash

    - opt:
        tests/models/opt/test_modeling_opt.py::OPTEmbeddingsTest::test_logits

    - qwen3:
        tests/models/qwen3/test_modeling_qwen3.py::Qwen3IntegrationTest::test_model_600m_logits
        tests/models/qwen3/test_modeling_qwen3.py::Qwen3IntegrationTest::test_speculative_generation

    - qwen3_5:
        tests/models/qwen3_5/test_modeling_qwen3_5.py::Qwen3_5IntegrationTest::test_model_video_generation
        tests/models/qwen3_5/test_modeling_qwen3_5.py::Qwen3_5IntegrationTest::test_model_video_generation_batch

    - qwen3_5_moe:
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeTextModelTest::test_onnx_export_dynamic
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeTextModelTest::test_onnx_export_generate_dynamic
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeTextModelTest::test_onnx_export_generate_dynamic_static_cache
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeTextModelTest::test_onnx_export_generate_static
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeTextModelTest::test_onnx_export_generate_static_static_cache
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeTextModelTest::test_onnx_export_static
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeModelTest::test_onnx_export_dynamic
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeModelTest::test_onnx_export_generate_dynamic
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeModelTest::test_onnx_export_generate_dynamic_static_cache
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeModelTest::test_onnx_export_generate_static
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeModelTest::test_onnx_export_generate_static_static_cache
        tests/models/qwen3_5_moe/test_modeling_qwen3_5_moe.py::Qwen3_5MoeModelTest::test_onnx_export_static

    - qwen3_asr:
        tests/models/qwen3_asr/test_modeling_qwen3_asr.py::Qwen3ForcedAlignerIntegrationTest::test_fixture_timestamps_batched

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: bert, deepseek_v32, deepseek_v4, gemma3, gemma4, gemma4_unified, glm5_next, glm_moe_dsa, gpt2, gpt_neox, laguna, opt, qwen3, qwen3_5, qwen3_5_moe, qwen3_asr

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.

3 participants