KEMBAR78
fix: remove CHAT_TEMPLATE import in tests for deepseek-vl by geetu040 · Pull Request #40003 · huggingface/transformers · GitHub
Skip to content

Conversation

@geetu040
Copy link
Contributor

@geetu040 geetu040 commented Aug 7, 2025

What does this PR do?

Fixes #39966

This PR removes the CHAT_TEMPLATE imports from test_processing_deepseek_vl.py and test_processing_deepseek_vl_hybrid.py. These imports were referencing weight conversion scripts that are not included in the PyPI distribution, which causes the tests to fail in the v4.55.0 release.

The fix aligns with the approach used in test_processing_emu3.py

Before submitting

  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you write any new necessary tests?

Who can review?

@rasmi @zucchini-nlp @ArthurZucker

@geetu040 geetu040 changed the title remove CHAT_TEMPLATE import in tests fix: remove CHAT_TEMPLATE import in tests for deepseek-vl Aug 7, 2025
@geetu040
Copy link
Contributor Author

geetu040 commented Aug 7, 2025

@zucchini-nlp, this is ready for review. I've checked there is no other leaking import.

Copy link
Member

@zucchini-nlp zucchini-nlp left a comment

Choose a reason for hiding this comment

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

Thanks!

image_processor=image_processor,
tokenizer=tokenizer,
chat_template=CHAT_TEMPLATE,
chat_template="dummy_template",
Copy link
Member

Choose a reason for hiding this comment

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

can we propagate the kwargs from cls.prepare_processor_dict() here, so it saves the cprrect chat template in tmpDir?

Copy link
Contributor Author

@geetu040 geetu040 Aug 7, 2025

Choose a reason for hiding this comment

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

@zucchini-nlp
yes we can, updated in 8443e89

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

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

run-slow: deepseek_vl, deepseek_vl_hybrid

@zucchini-nlp zucchini-nlp enabled auto-merge (squash) August 7, 2025 16:06
@zucchini-nlp zucchini-nlp merged commit 0659214 into huggingface:main Aug 7, 2025
15 checks passed
@HuggingFaceDocBuilderDev

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.

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.

convert_deepseek_vl_weights_to_hf.py not included in v4.55.0 release.

3 participants