Skip to content

[serge] Fix 10 integration tests for model glm_ocr failing with output_mismatch (list output differs (10))#46986

Open
sergereview[bot] wants to merge 2 commits into
mainfrom
serge/fix/itf-aa4efdb4f52e-1fea3b0c
Open

[serge] Fix 10 integration tests for model glm_ocr failing with output_mismatch (list output differs (10))#46986
sergereview[bot] wants to merge 2 commits into
mainfrom
serge/fix/itf-aa4efdb4f52e-1fea3b0c

Conversation

@sergereview

@sergereview sergereview Bot commented Jul 1, 2026

Copy link
Copy Markdown

CI

Original CI failure

  • Failure group: 1/1: 10 integration tests for model glm_ocrfailing withoutput_mismatch (list output differs (10))
  • tests/models/glm_ocr/test_modeling_glm_ocr.py::GlmOcrIntegrationTest::test_small_model_integration_test_batch [multi-gpu] (output_mismatch, seen 7/7)

Relates to #46985

The GLM-OCR integration tests generate outputs consisting of repeated <|image|> tokens instead of coherent text, indicating image features are not being processed. GlmOcrModel in modular_glm_ocr.py currently inherits Glm4vModel.__init__ unchanged, which instantiates Glm4vVisionModel and Glm4vTextModel rather than the OCR-specific subclasses. This patch overrides GlmOcrModel.__init__ to build GlmOcrVisionModel and GlmOcrTextModel so the correct vision/text architectures are used during generation.


This change was produced automatically by serge from a CI failure report. The patch was generated by an LLM and applied by serge; review before merging.

serge v0.1.0 · model: moonshotai/Kimi-K2.7-Code · 27 LLM turns · 30 tool calls · 109.5s · 601838 in / 6474 out tokens

…tput_mismatch` (list output differs (10))
@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.

…tput_mismatch` (list output differs (10))
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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

run-slow: glm_ocr

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 28547186945:1
Result: success | Jobs: 4 | Tests: 225 | Failures: 0 | Duration: 3m 54s

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.

1 participant