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
1b7adbb5
Unverified
Commit
1b7adbb5
authored
Jul 19, 2024
by
shrirajh
Committed by
GitHub
Jul 18, 2024
Browse files
`TokenizerManager.context_len` should inherit from `server_args.conte… (#654)
parent
a9ef49c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/managers/tokenizer_manager.py
python/sglang/srt/managers/tokenizer_manager.py
+4
-1
No files found.
python/sglang/srt/managers/tokenizer_manager.py
View file @
1b7adbb5
...
@@ -69,7 +69,10 @@ class TokenizerManager:
...
@@ -69,7 +69,10 @@ class TokenizerManager:
trust_remote_code
=
server_args
.
trust_remote_code
,
trust_remote_code
=
server_args
.
trust_remote_code
,
model_overide_args
=
model_overide_args
,
model_overide_args
=
model_overide_args
,
)
)
self
.
context_len
=
get_context_length
(
self
.
hf_config
)
if
server_args
.
context_length
is
not
None
:
self
.
context_len
=
server_args
.
context_length
else
:
self
.
context_len
=
get_context_length
(
self
.
hf_config
)
if
is_multimodal_model
(
self
.
model_path
):
if
is_multimodal_model
(
self
.
model_path
):
self
.
processor
=
get_processor
(
self
.
processor
=
get_processor
(
...
...
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