Repository navigation
[fix] Update stale expected strings in HunYuanVL integration tests - #48646
Merged
Merged
Conversation
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]>
Contributor
|
[For maintainers] Suggested jobs to run (before merge) run-slow: hunyuan_vl |
Collaborator
Author
|
run-slow: hunyuan_vl |
Contributor
|
This comment contains models: ["models/hunyuan_vl"] |
Contributor
|
This comment contains models: ["models/hunyuan_vl"] |
Contributor
CI recapDashboard: View test results in Grafana |
|
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. |
Contributor
CI Results (AMD)Commit Info
Model CI Report❌ 2 new failed tests from this PR 😭
|
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]>
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.
Summary
All 6
HunYuanVLForConditionalGenerationIntegrationTestintegration 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/HunyuanOCRwas upgraded from v1.0 to v1.5 on 2026-07-06 (HF Hub commit01b3ec86: "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 underv1.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 touchedmasking_utils.py,deepseek_v32, andglm_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:AssertionError: stale expected strings (HunyuanOCR v1.5 pushed to Hub)OSError:tencent/HunyuanOCRtemporarily unavailable on HF HubAssertionError(persistent, unfixed)PIL.UnidentifiedImageError: external4.img-dpreview.comURL returned an invalid imageAssertionError(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 descriptiontest_small_model_integration_test_batch: updated radar + candy stringstest_small_model_integration_test_batch_different_resolutions: fixed STEALTH CAM format (spaces →\n) and candy/turtle descriptiontest_small_model_integration_test_batch_matches_single: same STEALTH CAM + candy fixestest_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 textAll 6 tests verified passing on a single-GPU runner.
🤖 Generated with Claude Code