[Feature] Add fixed-token prefill scoring (#54335)
Signed-off-by: aoshen02 <aoshen@inferact.ai> Signed-off-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
aoshen02
Claude Opus 5
parent
a7ff44355c
commit
b721a4c709
@@ -131,6 +131,19 @@ class InputProcessor:
|
||||
self.structured_outputs_config,
|
||||
self.tokenizer,
|
||||
)
|
||||
if params.prompt_logprob_token_ids is not None:
|
||||
if not self.vllm_config.use_v2_model_runner:
|
||||
raise VLLMValidationError(
|
||||
"prompt_logprob_token_ids requires the V2 model runner "
|
||||
"(VLLM_USE_V2_MODEL_RUNNER=1).",
|
||||
parameter="prompt_logprob_token_ids",
|
||||
)
|
||||
if self.vllm_config.cache_config.kv_sharing_fast_prefill:
|
||||
raise VLLMValidationError(
|
||||
"prompt_logprob_token_ids is incorrect with "
|
||||
"--kv-sharing-fast-prefill; disable it for scoring.",
|
||||
parameter="prompt_logprob_token_ids",
|
||||
)
|
||||
|
||||
self.validate_logits_processors_params(params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user