Skip to content

Fix failing tests for zaya - #47268

Merged
ydshieh merged 1 commit into
huggingface:mainfrom
kaixuanliu:fix-model-tests-zaya-20260712
Jul 23, 2026
Merged

ydshieh merged 1 commit into
huggingface:mainfrom
kaixuanliu:fix-model-tests-zaya-20260712

Conversation

@kaixuanliu

@kaixuanliu kaixuanliu commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes 3 failed test cases. 1 common and 2 for XPU:

FAILED tests/models/zaya/test_modeling_zaya.py::ZayaModelTest::test_generate_with_quant_cache - ValueError: `QuantizedCache` is only supported for models with only full attention layers. We found the following invalid layer types: {'hybrid', 'hybrid_sliding'}
FAILED tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_generation - AssertionError: Lists differ: [107,[23 chars]888, 2088, 740, 564, 6361, 611, 3124, 236881, [15 chars] 735] != [107,[23 chars]888, 1030, 5724, 1133, 611, 236789, 500, 7467,[18 chars]5213]
FAILED tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_logits - AssertionError: Tensor-likes are not close!

@ydshieh pls help review, thx!

Fixed 3 test(s):
- tests/models/zaya/test_modeling_zaya.py::ZayaModelTest::test_generate_with_quant_cache
- tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_generation
- tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_logits
@github-actions

Copy link
Copy Markdown
Contributor

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

run-slow: zaya

@github-actions

Copy link
Copy Markdown
Contributor

CI recap

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

@kaixuanliu kaixuanliu changed the title [Auto-Fix] Fix failing tests for zaya Fix failing tests for zaya Jul 13, 2026
@kaixuanliu
kaixuanliu marked this pull request as ready for review July 13, 2026 02:07
@github-actions
github-actions Bot requested a review from ydshieh July 13, 2026 02:08
@@ -322,13 +326,23 @@ def test_model_logits(self):
[-1.4297, -1.4297, -1.4297],
[-3.0469, -3.0469, -3.0469],
],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this test case on cuda and CPU, they both failed. Seems we need to update the expected output for (None, None) as well.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it pass on our A10 CI runner. So I will leave as it is.

@ydshieh
ydshieh merged commit 56af69c into huggingface:main Jul 23, 2026
34 checks passed
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jul 30, 2026
fix(zaya): auto-fix failing tests

Fixed 3 test(s):
- tests/models/zaya/test_modeling_zaya.py::ZayaModelTest::test_generate_with_quant_cache
- tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_generation
- tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_logits
Sainava pushed a commit to Sainava/Sai-transformers that referenced this pull request Aug 3, 2026
fix(zaya): auto-fix failing tests

Fixed 3 test(s):
- tests/models/zaya/test_modeling_zaya.py::ZayaModelTest::test_generate_with_quant_cache
- tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_generation
- tests/models/zaya/test_modeling_zaya.py::ZayaIntegrationTest::test_model_logits
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