[watermark] compatibility validation (#56801)
Signed-off-by: Raphael Rialland <raphael.rialland@mistral.ai> Signed-off-by: Simon Veitner <sveitner@redhat.com> Co-authored-by: Simon Veitner <sveitner@redhat.com>
This commit is contained in:
co-authored by
Simon Veitner
parent
88f3c601b3
commit
c32495d58f
@@ -254,6 +254,13 @@ class LLMEngine:
|
||||
"does not match the EngineCoreRequest.request_id attribute. The "
|
||||
"latter will be used, and the former will be ignored."
|
||||
)
|
||||
request_params = request.params
|
||||
if isinstance(request_params, SamplingParams):
|
||||
# This request object is owned by the engine from here on.
|
||||
self.input_processor.apply_watermarking(
|
||||
request_params,
|
||||
self.input_processor.resolve_watermarking(request_params),
|
||||
)
|
||||
else:
|
||||
request = self.input_processor.process_inputs(
|
||||
request_id,
|
||||
|
||||
Reference in New Issue
Block a user