Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0c4d2ad5
"docs/source/usage/engine_args.rst" did not exist on "138485a82de50f90536ea0a650dd2f6bba1927e9"
Unverified
Commit
0c4d2ad5
authored
Sep 26, 2024
by
DefTruth
Committed by
GitHub
Sep 25, 2024
Browse files
[VLM][Bugfix] internvl with num_scheduler_steps > 1 (#8614)
parent
c6f2485c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vllm/model_executor/models/internvl.py
vllm/model_executor/models/internvl.py
+6
-1
No files found.
vllm/model_executor/models/internvl.py
View file @
0c4d2ad5
...
...
@@ -19,7 +19,7 @@ from vllm.config import CacheConfig, MultiModalConfig
from
vllm.distributed
import
get_pp_group
from
vllm.inputs
import
INPUT_REGISTRY
,
InputContext
,
LLMInputs
from
vllm.model_executor.layers.quantization
import
QuantizationConfig
from
vllm.model_executor.layers.sampler
import
SamplerOutput
from
vllm.model_executor.layers.sampler
import
Sampler
,
SamplerOutput
from
vllm.model_executor.model_loader.weight_utils
import
default_weight_loader
from
vllm.model_executor.models.intern_vit
import
InternVisionModel
from
vllm.model_executor.sampling_metadata
import
SamplingMetadata
...
...
@@ -379,6 +379,11 @@ class InternVLChatModel(nn.Module, SupportsMultiModal):
self
.
make_empty_intermediate_tensors
=
(
self
.
language_model
.
make_empty_intermediate_tensors
)
if
hasattr
(
self
.
language_model
,
"sampler"
):
self
.
sampler
=
self
.
language_model
.
sampler
else
:
self
.
sampler
=
Sampler
()
def
pixel_shuffle
(
self
,
x
,
scale_factor
=
0.5
):
n
,
w
,
h
,
c
=
x
.
size
()
# N, W, H, C --> N, W, H * scale, C // scale
...
...
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