Repository navigation
[Chore] Port more vendored configs and processors to upstream Transformers #60823
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
+514
−2,688
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
255002e
[Chore] Port more vendored configs and processors to upstream Transfo…
hmellor 6c3352b
Leave OpenCUA to #47438
hmellor cfeac40
Restore OpenCUA fix, superseding #47438
hmellor a331dd3
Drop DeepSeek-V4 changes, moved to #61392
hmellor 5fa3b87
Drop MiniMax-M3 changes, moved to #61813
hmellor f3aca7f
Drop Inkling changes, moved to a separate PR
hmellor d519f11
Merge branch 'main' into unvendor-followups
hmellor 4a9082c
Merge branch 'main' into unvendor-followups
hmellor fa1628a
Bypass ProcessorMixin dynamic lookup in FireRedASR2 and FunASR proces…
hmellor d6f79e4
Merge remote-tracking branch 'upstream/main' into unvendor-followups
hmellor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | ||
| import pytest | ||
| from transformers import DeepseekV4Config | ||
|
|
||
| from vllm.transformers_utils.deepseek_v4_utils import ( | ||
| get_compress_ratios, | ||
| get_mm_prefix_clamp_sliding_window, | ||
| get_num_hash_layers, | ||
| ) | ||
|
|
||
| # Legacy fields as shipped by deepseek-ai/DeepSeek-V4-Flash-Vision-Exp | ||
| COMPRESS_RATIOS = [0, 0] + [4, 128] * 20 + [4, 0, 0, 0] | ||
|
|
||
|
|
||
| @pytest.mark.parametrize("vision_n_layers", [0, 32]) | ||
| def test_legacy_fields_survive_upstream_config(vision_n_layers): | ||
| """Upstream pops the legacy fields; the helpers must recover them.""" | ||
| config = DeepseekV4Config( | ||
| num_hidden_layers=43, | ||
| num_nextn_predict_layers=3, | ||
| compress_ratios=COMPRESS_RATIOS, | ||
| num_hash_layers=3, | ||
| vision_n_layers=vision_n_layers, | ||
| ) | ||
| assert not hasattr(config, "compress_ratios") | ||
| assert get_compress_ratios(config) == COMPRESS_RATIOS | ||
| assert get_num_hash_layers(config) == 3 | ||
| assert get_mm_prefix_clamp_sliding_window(config) == (vision_n_layers > 0) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.