Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
750838ad
Unverified
Commit
750838ad
authored
Jul 20, 2025
by
GuoYipin
Committed by
GitHub
Jul 20, 2025
Browse files
fix: fix the bug of loading Internvl3 (#8067)
Co-authored-by:
Xinyuan Tong
<
xinyuantong.cs@gmail.com
>
parent
99aefa03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/sglang/srt/configs/internvl.py
python/sglang/srt/configs/internvl.py
+3
-0
No files found.
python/sglang/srt/configs/internvl.py
View file @
750838ad
...
...
@@ -9,6 +9,7 @@ from transformers import (
LlamaConfig
,
PretrainedConfig
,
PreTrainedTokenizer
,
Qwen2Config
,
)
from
sglang.utils
import
logger
...
...
@@ -311,6 +312,8 @@ class InternVLChatConfig(PretrainedConfig):
self
.
llm_config
=
LlamaConfig
(
**
llm_config
)
elif
llm_config
.
get
(
"architectures"
)[
0
]
==
"InternLM2ForCausalLM"
:
self
.
llm_config
=
InternLM2Config
(
**
llm_config
)
elif
llm_config
.
get
(
"architectures"
)[
0
]
==
"Qwen2ForCausalLM"
:
self
.
llm_config
=
Qwen2Config
(
**
llm_config
)
else
:
raise
ValueError
(
"Unsupported architecture: {}"
.
format
(
...
...
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