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
c7af9f73
Commit
c7af9f73
authored
Jan 31, 2024
by
Lianmin Zheng
Browse files
Fix a bug in llava-hd
parent
876db8dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/managers/router/model_rpc.py
python/sglang/srt/managers/router/model_rpc.py
+1
-1
No files found.
python/sglang/srt/managers/router/model_rpc.py
View file @
c7af9f73
...
@@ -238,10 +238,10 @@ class ModelRpcServer(rpyc.Service):
...
@@ -238,10 +238,10 @@ class ModelRpcServer(rpyc.Service):
(
recv_req
.
image_hash
>>
32
)
%
self
.
model_config
.
vocab_size
,
(
recv_req
.
image_hash
>>
32
)
%
self
.
model_config
.
vocab_size
,
(
recv_req
.
image_hash
>>
64
)
%
self
.
model_config
.
vocab_size
,
(
recv_req
.
image_hash
>>
64
)
%
self
.
model_config
.
vocab_size
,
]
]
req
.
image_size
=
recv_req
.
image_size
req
.
input_ids
,
req
.
image_offset
=
self
.
model_runner
.
model
.
pad_input_ids
(
req
.
input_ids
,
req
.
image_offset
=
self
.
model_runner
.
model
.
pad_input_ids
(
req
.
input_ids
,
pad_value
,
req
.
pixel_values
.
shape
,
req
.
image_size
req
.
input_ids
,
pad_value
,
req
.
pixel_values
.
shape
,
req
.
image_size
)
)
req
.
image_size
=
recv_req
.
image_size
req
.
sampling_params
=
recv_req
.
sampling_params
req
.
sampling_params
=
recv_req
.
sampling_params
req
.
return_logprob
=
recv_req
.
return_logprob
req
.
return_logprob
=
recv_req
.
return_logprob
req
.
logprob_start_len
=
recv_req
.
logprob_start_len
req
.
logprob_start_len
=
recv_req
.
logprob_start_len
...
...
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