Skip to content

[fix] Update stale expected strings in HunYuanVL integration tests - #48646

Merged
ydshieh merged 1 commit into
mainfrom
fix-hunyuan-vl-integration-tests
Sep 9, 2026
Merged

ydshieh merged 1 commit into
mainfrom
fix-hunyuan-vl-integration-tests

Conversation

@ydshieh

@ydshieh ydshieh commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

All 6 HunYuanVLForConditionalGenerationIntegrationTest integration tests were failing due to stale golden strings. This PR updates the expected outputs for the ("cuda", None) device across all test cases, verified on a single-GPU runner.

Root Cause

tencent/HunyuanOCR was upgraded from v1.0 to v1.5 on 2026-07-06 (HF Hub commit 01b3ec86: "Add HunyuanOCR-1.5 (target at root, DFlash under dflash/, archive 1.0 under v1.0/)"). The new v1.5 weights replaced the root of the repo, while v1.0 was archived under v1.0/. This is a model-side change, not a transformers regression.

To confirm, we checked out the two commits surrounding the first failure (b70d02fc = last-good, 5204b4fe = first-failure) and ran the model on both. Both produced identical outputs to current main — the transformers code never changed anything affecting HunYuanVL. The commit that landed between those two (5204b4fe: "fix mask return-type contract regression") only touched masking_utils.py, deepseek_v32, and glm_moe_dsa — nothing related to HunYuanVL.

CI History

Tests first broke on 2026-07-06 (4 tests) and 2026-07-07 (2 more), with 59 consecutive failures by the time this PR was written. The CI system flagged bad_commit: null (flaky) — consistent with a model-side update rather than a code regression. The error timeline:

Date Error type
2026-07-05 Last pass (HunyuanOCR v1.0)
2026-07-06 AssertionError: stale expected strings (HunyuanOCR v1.5 pushed to Hub)
2026-07-07 OSError: tencent/HunyuanOCR temporarily unavailable on HF Hub
2026-07-08 Back to AssertionError (persistent, unfixed)
2026-07-17 PIL.UnidentifiedImageError: external 4.img-dpreview.com URL returned an invalid image
2026-07-18+ Back to AssertionError (59 consecutive failures)

Why not PR #47606?

PR #47606 (opened 2026-07-28 by serge) was the right action at the time — it correctly identified and updated stale expected strings. However it only fixed 2 of the 6 failing tests with 2 line changes, and left the other 4 untouched. Furthermore, the values it wrote in late July had already drifted again by September (the model outputs on the current Hub are different from what serge measured), so even those 2 tests would still fail today with that patch. This PR fixes all 6 tests from a fresh run against the current HunyuanOCR v1.5 weights.

Changes

  • test_small_model_integration_test: updated radar chart description
  • test_small_model_integration_test_batch: updated radar + candy strings
  • test_small_model_integration_test_batch_different_resolutions: fixed STEALTH CAM format (spaces → \n) and candy/turtle description
  • test_small_model_integration_test_batch_matches_single: same STEALTH CAM + candy fixes
  • test_small_model_integration_test_multi_image: updated combined radar+candy string; fixed curly apostrophe U+2019 (let's → let\u2019s)
  • test_small_model_integration_test_multi_image_nested: fixed nested[1] apostrophe + nested[2] standalone radar text

All 6 tests verified passing on a single-GPU runner.

🤖 Generated with Claude Code

All 6 integration tests were failing due to model output drift. Updated
expected strings for the cuda device across all test cases, including
a curly apostrophe (U+2019) fix and corrected nested/batch radar text.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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

run-slow: hunyuan_vl

@ydshieh

ydshieh commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

run-slow: hunyuan_vl

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/hunyuan_vl"]
quantizations: []

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs on AMD:

models: ["models/hunyuan_vl"]

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 34348376595
Result: success | Grafana metrics are not available yet.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 3c1a8796 workflow commit (merge commit)
PR 70fe5cf2 branch commit (from PR)
main e8bcd79c base commit (on main)

✅ No failing test specific to this PR 🎉 👏 !

@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

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI Results (AMD)

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 3c1a8796 workflow commit (merge commit)
PR 70fe5cf2 branch commit (from PR)
main e8bcd79c base commit (on main)

Model CI Report

❌ 2 new failed tests from this PR 😭

  • hunyuan_vl:
    tests/models/hunyuan_vl/test_modeling_hunyuan_vl.py::HunYuanVLForConditionalGenerationIntegrationTest::test_small_model_integration_test_batch (❌ ⟹ ❌)
    tests/models/hunyuan_vl/test_modeling_hunyuan_vl.py::HunYuanVLForConditionalGenerationIntegrationTest::test_small_model_integration_test_multi_image_nested (❌ ⟹ ❌)

@ydshieh
ydshieh merged commit 50bbcc6 into main Sep 9, 2026
38 of 39 checks passed
@ydshieh
ydshieh deleted the fix-hunyuan-vl-integration-tests branch September 9, 2026 12:24
sbucaille pushed a commit to sbucaille/transformers that referenced this pull request Sep 16, 2026
…uggingface#48646)

All 6 integration tests were failing due to model output drift. Updated
expected strings for the cuda device across all test cases, including
a curly apostrophe (U+2019) fix and corrected nested/batch radar text.

Co-authored-by: ydshieh <[email protected]>
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.

2 participants