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
837c1968
Unverified
Commit
837c1968
authored
Sep 16, 2024
by
lewtun
Committed by
GitHub
Sep 16, 2024
Browse files
[Frontend] Expose revision arg in OpenAI server (#8501)
parent
a091e2da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vllm/entrypoints/openai/api_server.py
vllm/entrypoints/openai/api_server.py
+4
-2
No files found.
vllm/entrypoints/openai/api_server.py
View file @
837c1968
...
...
@@ -69,8 +69,10 @@ _running_tasks: Set[asyncio.Task] = set()
def
model_is_embedding
(
model_name
:
str
,
trust_remote_code
:
bool
,
quantization
:
Optional
[
str
])
->
bool
:
quantization
:
Optional
[
str
],
revision
:
Optional
[
str
])
->
bool
:
return
ModelConfig
(
model
=
model_name
,
revision
=
revision
,
tokenizer
=
model_name
,
tokenizer_mode
=
"auto"
,
trust_remote_code
=
trust_remote_code
,
...
...
@@ -130,7 +132,7 @@ async def build_async_engine_client_from_engine_args(
# If manually triggered or embedding model, use AsyncLLMEngine in process.
# TODO: support embedding model via RPC.
if
(
model_is_embedding
(
engine_args
.
model
,
engine_args
.
trust_remote_code
,
engine_args
.
quantization
)
engine_args
.
quantization
,
engine_args
.
revision
)
or
disable_frontend_multiprocessing
):
engine_client
=
AsyncLLMEngine
.
from_engine_args
(
engine_args
,
usage_context
=
UsageContext
.
OPENAI_API_SERVER
)
...
...
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