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
52b5f264
Commit
52b5f264
authored
Nov 27, 2025
by
luopl
Browse files
将qfeat添加到test2的server服务
parent
643c0d59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
vllm/entrypoints/openai/protocol.py
vllm/entrypoints/openai/protocol.py
+3
-1
vllm/entrypoints/openai/serving_engine.py
vllm/entrypoints/openai/serving_engine.py
+5
-4
No files found.
vllm/entrypoints/openai/protocol.py
View file @
52b5f264
...
...
@@ -1766,13 +1766,15 @@ class ClassificationRequest(OpenAIBaseModel):
)
activation
:
Optional
[
bool
]
=
None
qfeat
:
Optional
[
list
]
=
None
# --8<-- [end:classification-extra-params]
def
to_pooling_params
(
self
):
return
PoolingParams
(
truncate_prompt_tokens
=
self
.
truncate_prompt_tokens
,
activation
=
self
.
activation
)
activation
=
self
.
activation
,
qfeat
=
self
.
qfeat
)
class
ClassificationData
(
OpenAIBaseModel
):
...
...
vllm/entrypoints/openai/serving_engine.py
View file @
52b5f264
...
...
@@ -380,7 +380,8 @@ class OpenAIServing:
for
i
,
engine_prompt
in
enumerate
(
ctx
.
engine_prompts
):
request_id_item
=
f
"
{
ctx
.
request_id
}
-
{
i
}
"
if
pooling_params
.
qfeat
is
not
None
:
engine_prompt
[
"qfeat"
]
=
pooling_params
.
qfeat
self
.
_log_inputs
(
request_id_item
,
engine_prompt
,
...
...
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