Skip to content

[Echo] Support more types of prompt echo#4022

Merged
LiqinruiG merged 13 commits intoPaddlePaddle:developfrom
AuferGachet:echo_patch
Sep 11, 2025
Merged

[Echo] Support more types of prompt echo#4022
LiqinruiG merged 13 commits intoPaddlePaddle:developfrom
AuferGachet:echo_patch

Conversation

@AuferGachet
Copy link
Copy Markdown
Contributor

  • When the prompt type is list[int] or list[list[int]], it needs to support echo after decoding.

…, it needs to support echoing after decoding.
@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Sep 9, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Sep 9, 2025
request_prompts = [self.engine_client.data_processor.tokenizer.decode(item) for item in request.prompt]
else:
request_prompts = request_prompt_ids
request.prompt = request_prompts
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不去直接改 request.prompt。 在echo = true 的时候,再去编码。

@LiqinruiG LiqinruiG merged commit a47976e into PaddlePaddle:develop Sep 11, 2025
24 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants