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
cc74b2b2
Unverified
Commit
cc74b2b2
authored
Apr 20, 2024
by
Noam Gat
Committed by
GitHub
Apr 20, 2024
Browse files
Updating lm-format-enforcer version and adding links to decoding libraries in docs (#4222)
parent
91528575
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
requirements-common.txt
requirements-common.txt
+1
-1
vllm/engine/arg_utils.py
vllm/engine/arg_utils.py
+5
-1
vllm/model_executor/layers/quantization/fp8.py
vllm/model_executor/layers/quantization/fp8.py
+2
-2
No files found.
requirements-common.txt
View file @
cc74b2b2
...
...
@@ -12,7 +12,7 @@ uvicorn[standard]
pydantic >= 2.0 # Required for OpenAI server.
prometheus_client >= 0.18.0
tiktoken == 0.6.0 # Required for DBRX tokenizer
lm-format-enforcer == 0.9.
3
lm-format-enforcer == 0.9.
8
outlines == 0.0.34 # Requires torch >= 2.1.0
typing_extensions
filelock >= 3.10.4 # filelock starts to support `mode` argument from 3.10.4
vllm/engine/arg_utils.py
View file @
cc74b2b2
...
...
@@ -197,7 +197,11 @@ class EngineArgs:
default
=
'outlines'
,
choices
=
[
'outlines'
,
'lm-format-enforcer'
],
help
=
'Which engine will be used for guided decoding'
' (JSON schema / regex etc).'
)
' (JSON schema / regex etc) by default. Currently support '
'https://github.com/outlines-dev/outlines and '
'https://github.com/noamgat/lm-format-enforcer.'
' Can be overridden per request via guided_decoding_backend'
' parameter.'
)
# Parallel arguments
parser
.
add_argument
(
'--worker-use-ray'
,
action
=
'store_true'
,
...
...
vllm/model_executor/layers/quantization/fp8.py
View file @
cc74b2b2
from
typing
import
Any
,
Dict
,
List
,
Optional
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
import
torch
from
torch.nn
import
Module
...
...
@@ -114,7 +114,7 @@ class Fp8LinearMethod(LinearMethodBase):
return
output
def
per_tensor_quantize
(
tensor
:
torch
.
Tensor
)
->
t
uple
[
torch
.
Tensor
,
float
]:
def
per_tensor_quantize
(
tensor
:
torch
.
Tensor
)
->
T
uple
[
torch
.
Tensor
,
float
]:
"""Quantize a tensor using per-tensor static scaling factor.
Args:
...
...
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