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
aa39a8e1
Unverified
Commit
aa39a8e1
authored
Dec 05, 2024
by
Cyrus Leung
Committed by
GitHub
Dec 05, 2024
Browse files
[Doc] Create a new "Usage" section (#10827)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
8d370e91
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
vllm/platforms/cpu.py
vllm/platforms/cpu.py
+1
-1
vllm/spec_decode/spec_decode_worker.py
vllm/spec_decode/spec_decode_worker.py
+1
-1
vllm/utils.py
vllm/utils.py
+1
-1
vllm/worker/multi_step_model_runner.py
vllm/worker/multi_step_model_runner.py
+1
-1
vllm/worker/utils.py
vllm/worker/utils.py
+1
-1
No files found.
vllm/platforms/cpu.py
View file @
aa39a8e1
...
@@ -46,7 +46,7 @@ class CpuPlatform(Platform):
...
@@ -46,7 +46,7 @@ class CpuPlatform(Platform):
import
vllm.envs
as
envs
import
vllm.envs
as
envs
from
vllm.utils
import
GiB_bytes
from
vllm.utils
import
GiB_bytes
model_config
=
vllm_config
.
model_config
model_config
=
vllm_config
.
model_config
# Reminder: Please update docs/source/
serving
/compatibility_matrix.rst
# Reminder: Please update docs/source/
usage
/compatibility_matrix.rst
# If the feature combo become valid
# If the feature combo become valid
if
not
model_config
.
enforce_eager
:
if
not
model_config
.
enforce_eager
:
logger
.
warning
(
logger
.
warning
(
...
...
vllm/spec_decode/spec_decode_worker.py
View file @
aa39a8e1
...
@@ -104,7 +104,7 @@ def create_spec_worker(*args, **kwargs) -> "SpecDecodeWorker":
...
@@ -104,7 +104,7 @@ def create_spec_worker(*args, **kwargs) -> "SpecDecodeWorker":
return
spec_decode_worker
return
spec_decode_worker
# Reminder: Please update docs/source/
serving
/compatibility_matrix.rst
# Reminder: Please update docs/source/
usage
/compatibility_matrix.rst
# If the feature combo become valid
# If the feature combo become valid
class
SpecDecodeWorker
(
LoraNotSupportedWorkerBase
):
class
SpecDecodeWorker
(
LoraNotSupportedWorkerBase
):
"""Worker which implements speculative decoding.
"""Worker which implements speculative decoding.
...
...
vllm/utils.py
View file @
aa39a8e1
...
@@ -47,7 +47,7 @@ logger = init_logger(__name__)
...
@@ -47,7 +47,7 @@ logger = init_logger(__name__)
# Exception strings for non-implemented encoder/decoder scenarios
# Exception strings for non-implemented encoder/decoder scenarios
# Reminder: Please update docs/source/
serving
/compatibility_matrix.rst
# Reminder: Please update docs/source/
usage
/compatibility_matrix.rst
# If the feature combo become valid
# If the feature combo become valid
STR_NOT_IMPL_ENC_DEC_SWA
=
\
STR_NOT_IMPL_ENC_DEC_SWA
=
\
...
...
vllm/worker/multi_step_model_runner.py
View file @
aa39a8e1
...
@@ -817,7 +817,7 @@ def _pythonize_sampler_output(
...
@@ -817,7 +817,7 @@ def _pythonize_sampler_output(
for
sgdx
,
(
seq_group
,
for
sgdx
,
(
seq_group
,
sample_result
)
in
enumerate
(
zip
(
seq_groups
,
samples_list
)):
sample_result
)
in
enumerate
(
zip
(
seq_groups
,
samples_list
)):
# Reminder: Please update docs/source/
serving
/compatibility_matrix.rst
# Reminder: Please update docs/source/
usage
/compatibility_matrix.rst
# If the feature combo become valid
# If the feature combo become valid
# (Check for Guided Decoding)
# (Check for Guided Decoding)
if
seq_group
.
sampling_params
.
logits_processors
:
if
seq_group
.
sampling_params
.
logits_processors
:
...
...
vllm/worker/utils.py
View file @
aa39a8e1
...
@@ -13,7 +13,7 @@ def assert_enc_dec_mr_supported_scenario(
...
@@ -13,7 +13,7 @@ def assert_enc_dec_mr_supported_scenario(
a supported scenario.
a supported scenario.
'''
'''
# Reminder: Please update docs/source/
serving
/compatibility_matrix.rst
# Reminder: Please update docs/source/
usage
/compatibility_matrix.rst
# If the feature combo become valid
# If the feature combo become valid
if
enc_dec_mr
.
cache_config
.
enable_prefix_caching
:
if
enc_dec_mr
.
cache_config
.
enable_prefix_caching
:
...
...
Prev
1
2
Next
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