We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5993fc commit 6acb319Copy full SHA for 6acb319
vllm/transformers_utils/config.py
@@ -691,11 +691,10 @@ def recurse_elems(elem: Any):
691
max_position_embeddings = 128_000
692
try:
693
trust_remote_code_val = kwargs.get("trust_remote_code", False)
694
- hf_config = get_config(
695
- model=model,
696
- trust_remote_code=trust_remote_code_val,
697
- revision=revision,
698
- config_format=ConfigFormat.HF)
+ hf_config = get_config(model=model,
+ trust_remote_code=trust_remote_code_val,
+ revision=revision,
+ config_format=ConfigFormat.HF)
699
if hf_value := hf_config.get_text_config().max_position_embeddings:
700
max_position_embeddings = hf_value
701
except Exception as e:
0 commit comments