-
Notifications
You must be signed in to change notification settings - Fork 737
[CI] Gate expensive ngram tests behind env vars #7170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
cloudforge1
wants to merge
25
commits into
PaddlePaddle:develop
from
CloudForge-Solutions:task/049-envgate-ngram-tests
+2,050
−318
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
daf20d9
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 6f1e63c
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 4deb7a7
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 676daf6
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 9bcfdca
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 2bfa878
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 262c470
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 171b4d3
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 def0bd2
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 4fad5dc
Merge remote-tracking branch 'upstream/develop' into develop
cloudforge1 3d739a6
Port ngram_match and hybrid_mtp_ngram kernels to CUDA
cloudforge1 477f749
Add correctness + latency test for GPU ngram kernels
cloudforge1 c349b12
Fix test data: step_idx semantics and ngram-matchable patterns
cloudforge1 217e587
fix: add CPU fallback path for ngram_match and hybrid_mtp_ngram ops
cloudforge1 08fe00a
fix(test): wrap imported ops with staticmethod to prevent self-binding
cloudforge1 305868d
fix(test): ensure max_model_len >= input_len to prevent broadcast err…
cloudforge1 1dfaed5
fix: keep input_ids_len on CPU in __init__, move to GPU in _run_impl
cloudforge1 b7f1f38
Extract shared ngram search into __device__ helper (ngram_match_commo…
cloudforge1 3f71877
refactor: parallel CUDA kernels for ngram_match (<<<bsz,256>>> search)
cloudforge1 838d6dc
fix: move __global__ kernel defs from .cuh to .cu files (fix linker m…
cloudforge1 f45e39b
fix: align mixed kernel signatures with host function tensors
cloudforge1 a7f149a
fix: address review — GPU mirror for input_ids_len, device mismatch i…
cloudforge1 65f609b
bench: add 5-group benchmark matching NKNaN methodology
cloudforge1 c6e698f
fix: rename benchmark for CI discovery, bump to 10k iterations
cloudforge1 d5e2e9a
Gate expensive ngram tests behind env vars
cloudforge1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里同样使用
std::stoi(env_var)解析SPEC_TOKENUM_THRESHOLD;一旦环境变量不是纯数字,会抛异常并可能导致进程异常退出。建议使用不抛异常的解析方式(如std::from_chars/strtol)并在失败时回退默认值,同时做阈值范围校验。