Skip to content

[benchmark] Correct input_tokens accumulation in backend_request_func - #8104

Merged
EmmonsCurse merged 2 commits into
developfrom
ZhangYulongg-patch-2
Aug 3, 2026
Merged

[benchmark] Correct input_tokens accumulation in backend_request_func#8104
EmmonsCurse merged 2 commits into
developfrom
ZhangYulongg-patch-2

Conversation

@ZhangYulongg

@ZhangYulongg ZhangYulongg commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Motivation

session级输入token不累加

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.

Fix token accumulation by replacing '+=' with assignment.
@ZhangYulongg ZhangYulongg changed the title Correct input_tokens accumulation in backend_request_func [benchmark] Correct input_tokens accumulation in backend_request_func Aug 3, 2026
@EmmonsCurse
EmmonsCurse merged commit 2a1d495 into develop Aug 3, 2026
40 of 42 checks passed
@EmmonsCurse
EmmonsCurse deleted the ZhangYulongg-patch-2 branch August 3, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants