Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
92c35abb
Unverified
Commit
92c35abb
authored
Dec 06, 2025
by
Ye (Charlotte) Qi
Committed by
GitHub
Dec 06, 2025
Browse files
[Misc] Fix circular import in vllm.transformers_utils.config (#30179)
Signed-off-by:
Ye (Charlotte) Qi
<
yeq@meta.com
>
parent
43e75930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/transformers_utils/config.py
vllm/transformers_utils/config.py
+2
-1
No files found.
vllm/transformers_utils/config.py
View file @
92c35abb
...
...
@@ -25,7 +25,6 @@ from transformers.models.auto.tokenization_auto import get_tokenizer_config
from
transformers.utils
import
CONFIG_NAME
as
HF_CONFIG_NAME
from
vllm
import
envs
from
vllm.config.utils
import
getattr_iter
from
vllm.logger
import
init_logger
from
vllm.transformers_utils.utils
import
parse_safetensors_file_metadata
...
...
@@ -305,6 +304,8 @@ def set_default_rope_theta(config: PretrainedConfig, default_theta: float) -> No
def
patch_rope_parameters
(
config
:
PretrainedConfig
)
->
None
:
"""Provide backwards compatibility for RoPE."""
from
vllm.config.utils
import
getattr_iter
rope_theta_names
=
(
"rope_theta"
,
"rotary_emb_base"
)
rope_theta
=
getattr_iter
(
config
,
rope_theta_names
,
None
)
if
Version
(
version
(
"transformers"
))
<
Version
(
"5.0.0.dev0"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment