Skip to content

[BugFix] fix decode_preallocated_req_num increase call - #8028

Merged
Jiang-Jia-Jun merged 1 commit into
PaddlePaddle:release/2.6from
liyonghua0910:release/2.6+20260609_fix_metrics
Jun 10, 2026
Merged

[BugFix] fix decode_preallocated_req_num increase call#8028
Jiang-Jia-Jun merged 1 commit into
PaddlePaddle:release/2.6from
liyonghua0910:release/2.6+20260609_fix_metrics

Conversation

@liyonghua0910

@liyonghua0910 liyonghua0910 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Motivation

修复 a869a06 中的语法错误,该语法错误可能导致 decode 节点重复分配 kv blocks 。

Modifications

main_process_metrics.inc_value("decode_preallocated_req_num")
main_process_metrics.decode_preallocated_req_num.inc()

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.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/2.6@bb122aa). Learn more about missing BASE report.

Files with missing lines Patch % Lines
fastdeploy/engine/common_engine.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##             release/2.6    #8028   +/-   ##
==============================================
  Coverage               ?   71.56%           
==============================================
  Files                  ?      386           
  Lines                  ?    55740           
  Branches               ?     8753           
==============================================
  Hits                   ?    39888           
  Misses                 ?    13031           
  Partials               ?     2821           
Flag Coverage Δ
GPU 71.56% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Jiang-Jia-Jun
Jiang-Jia-Jun merged commit 21941f5 into PaddlePaddle:release/2.6 Jun 10, 2026
38 of 44 checks passed
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.

3 participants