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
db0831e0
Unverified
Commit
db0831e0
authored
Aug 27, 2025
by
yilian49
Committed by
GitHub
Aug 27, 2025
Browse files
Quick fix for loading processor for supporting internvl3_5 series (#9676)
parent
6e4e1c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
python/sglang/srt/hf_transformers_utils.py
python/sglang/srt/hf_transformers_utils.py
+16
-7
No files found.
python/sglang/srt/hf_transformers_utils.py
View file @
db0831e0
...
...
@@ -368,13 +368,22 @@ def get_processor(
if
config
.
model_type
not
in
{
"llava"
,
"clip"
}:
kwargs
[
"use_fast"
]
=
use_fast
try
:
processor
=
AutoProcessor
.
from_pretrained
(
tokenizer_name
,
*
args
,
trust_remote_code
=
trust_remote_code
,
revision
=
revision
,
**
kwargs
,
)
if
"InternVL3_5"
in
tokenizer_name
:
processor
=
AutoTokenizer
.
from_pretrained
(
tokenizer_name
,
*
args
,
trust_remote_code
=
trust_remote_code
,
revision
=
revision
,
**
kwargs
,
)
else
:
processor
=
AutoProcessor
.
from_pretrained
(
tokenizer_name
,
*
args
,
trust_remote_code
=
trust_remote_code
,
revision
=
revision
,
**
kwargs
,
)
except
ValueError
as
e
:
error_message
=
str
(
e
)
...
...
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