Skip to content

[benchmark] update tools#8033

Merged
EmmonsCurse merged 1 commit into
PaddlePaddle:developfrom
ZhangYulongg:update_0610
Jun 10, 2026
Merged

[benchmark] update tools#8033
EmmonsCurse merged 1 commit into
PaddlePaddle:developfrom
ZhangYulongg:update_0610

Conversation

@ZhangYulongg

Copy link
Copy Markdown
Collaborator

按 completion_tokens 平均摊分 chunk gap

机制:

  • output_len 来自 server 返回的 data["meta_info"]["completion_tokens"](bench_serving.py:681),是真实 token 数,不会因 chunk 缓冲而失真;
  • 把"上一 chunk 到这一 chunk 的真实墙钟差 chunk_gap"等分成 num_new_tokens 份;
  • 用 extend([adjust_itl] * num_new_tokens) 一次扩展进 output.itl,所以最终 len(itl) == output_len - 1,与 chunk 数量解耦。

Motivation

💡 If this PR is a Cherry Pick, the PR title needs to follow the format by adding the [Cherry-Pick] label at the very beginning and appending the original PR ID at the end. For example, [Cherry-Pick][CI] Add check trigger and logic(#5191)

💡 如若此PR是Cherry Pick,PR标题需遵循格式,在最开始加上[Cherry-Pick]标签,以及最后面加上原PR ID,例如[Cherry-Pick][CI] Add check trigger and logic(#5191)

Modifications

Usage or Command

Accuracy Tests

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@EmmonsCurse
EmmonsCurse merged commit 9431c4f into PaddlePaddle:develop Jun 10, 2026
41 of 43 checks passed
@paddle-bot

paddle-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers skip-ci: all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants