Skip to content

Conversation

@DrRyanHuang
Copy link
Collaborator

@DrRyanHuang DrRyanHuang commented Dec 26, 2025

Motivation

修复 #5762 导致的ERNIE系列模型启动BUG,这也太坑了,只抛一个🤬🤬:

FileNotFoundError: [Errno 2] No such file or directory: '/cache_ready_signal.8978'

Modifications

函数声明处已经修改返回值为 std::vector<paddle::Tensor>

std::vector<paddle::Tensor> count_tokens_per_expert_func(

所以 C++ extension 的声明也要改:
paddle::Tensor count_tokens_per_expert_func(const paddle::Tensor& topk_ids,

Usage or Command

NULL

Accuracy Tests

NULL

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.

@paddle-bot
Copy link

paddle-bot bot commented Dec 26, 2025

Thanks for your contribution!

@SigureMo SigureMo changed the title [BugFix] Change count_tokens_per_expert_func declaration(Tensor -> Vector<Tensor>) [BugFix] Change count_tokens_per_expert_func declaration(Tensor -> vector<Tensor>) Dec 26, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@724045c). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5794   +/-   ##
==========================================
  Coverage           ?   65.49%           
==========================================
  Files              ?      337           
  Lines              ?    43074           
  Branches           ?     6637           
==========================================
  Hits               ?    28212           
  Misses             ?    12758           
  Partials           ?     2104           
Flag Coverage Δ
GPU 65.49% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 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.

@DrRyanHuang DrRyanHuang merged commit 09229d8 into PaddlePaddle:develop Dec 26, 2025
16 of 20 checks passed
@DrRyanHuang DrRyanHuang deleted the sot/update_declaration_of_count_tokens_per_expert_func branch December 26, 2025 11:02
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