Skip to content

Comments

[Others] unitest tests/layers/test_attention_layer.py#5174

Merged
zhoutianzi666 merged 3 commits intoPaddlePaddle:developfrom
zhoutianzi666:clean_code
Nov 23, 2025
Merged

[Others] unitest tests/layers/test_attention_layer.py#5174
zhoutianzi666 merged 3 commits intoPaddlePaddle:developfrom
zhoutianzi666:clean_code

Conversation

@zhoutianzi666
Copy link
Collaborator

@zhoutianzi666 zhoutianzi666 commented Nov 23, 2025

Motivation

增加单测代码强壮性

Modifications

  1. 单测config中增加head_dim=128
  2. max_model_len 固定为128k,分配的block根据输入来分配。

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.

@paddle-bot
Copy link

paddle-bot bot commented Nov 23, 2025

Thanks for your contribution!

@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5174   +/-   ##
==========================================
  Coverage           ?   57.67%           
==========================================
  Files              ?      317           
  Lines              ?    38445           
  Branches           ?     5762           
==========================================
  Hits               ?    22173           
  Misses             ?    14493           
  Partials           ?     1779           
Flag Coverage Δ
diff 57.67% <ø> (?)

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.

@zhoutianzi666 zhoutianzi666 changed the title commit [unitest] Nov 23, 2025
@zhoutianzi666 zhoutianzi666 changed the title [unitest] [unitest] support c8 Nov 23, 2025
@zhoutianzi666 zhoutianzi666 changed the title [unitest] support c8 [unitest] tests/layers/test_attention_layer.py Nov 23, 2025
@zhoutianzi666 zhoutianzi666 changed the title [unitest] tests/layers/test_attention_layer.py [Others] unitest tests/layers/test_attention_layer.py Nov 23, 2025
@zhoutianzi666 zhoutianzi666 merged commit e297406 into PaddlePaddle:develop Nov 23, 2025
15 of 20 checks passed
@zhoutianzi666 zhoutianzi666 deleted the clean_code branch November 23, 2025 14:23
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