Skip to content

[CI/Build] Further decouple HuggingFace implementation from ours during tests #4166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 15, 2024
Merged

[CI/Build] Further decouple HuggingFace implementation from ours during tests #4166

merged 5 commits into from
May 15, 2024

Conversation

DarkLight1337
Copy link
Member

Currently, the HfRunner used for model tests loads the tokenizer using our get_tokenizer method instead of directly through HuggingFace, resulting in possible overlap in the underlying implementation with VllmRunner. This PR uses AutoProcessor (falling back to AutoTokenizer) to load the tokenizer which better decouples the implementation.

Similarly, this PR replaces our _VISION_LANGUAGE_MODELS dictionary with HuggingFace's method to register VLMs so that they can be loaded with AutoModel.

@simon-mo simon-mo requested a review from ywang96 April 18, 2024 08:11
@DarkLight1337 DarkLight1337 changed the title [CI/Build] Test HuggingFace implementation more directly [CI/Build] Further decouple HuggingFace implementation from ours during tests Apr 18, 2024
@DarkLight1337
Copy link
Member Author

OK the tests now pass.

Copy link
Member

@ywang96 ywang96 left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the fix!

@ywang96 ywang96 merged commit e9cdd2b into vllm-project:main May 15, 2024
32 of 48 checks passed
@DarkLight1337 DarkLight1337 deleted the test-auto-tokenizer branch May 15, 2024 06:46
robertgshaw2-redhat pushed a commit to neuralmagic/nm-vllm that referenced this pull request May 19, 2024
dtrifiro pushed a commit to dtrifiro/vllm that referenced this pull request May 21, 2024
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