Skip to content

[TRTLLM-15078][test] Remove all DeepSeek-R1-Distill-* tests - #17351

Open
xinhe-nv wants to merge 8 commits into
NVIDIA:mainfrom
xinhe-nv:prune2
Open

[TRTLLM-15078][test] Remove all DeepSeek-R1-Distill-* tests#17351
xinhe-nv wants to merge 8 commits into
NVIDIA:mainfrom
xinhe-nv:prune2

Conversation

@xinhe-nv

@xinhe-nv xinhe-nv commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Remove test functions, parametrize entries, model path registrations, accuracy references, perf configs, and test list entries for all DeepSeek-R1-Distill-* model variants across unittest and integration tests.

Dev Engineer Review

  • Removed DeepSeek-R1-Distill accuracy, performance, model-path, configuration, test-matrix, and waiver entries.
  • Removed related unit and integration test functions, parameterizations, and fixtures.
  • Updated scaffolding tests to use trtllm_model_path with gpt_oss/gpt-oss-20b.
  • Configuration and test-list changes are consistent. No format or scope issues are apparent.
  • No production-code or API changes are required.

QA Engineer Review

Removed test code includes:

  • TestDeepSeekR1DistillLlama70B.test_auto_dtype_tp2
  • test_qwen_e2e_cpprunner_large_new_tokens
  • test_ptp_scaffolding
  • DeepSeek-R1 reasoning-parser parameter combinations
  • deepseek_distill_7b_path

Updated scaffolding helpers and tests now use trtllm_model_path. The retained TRT-LLM worker generation test remains covered by the unit test module.

Removed integration test-list entries from:

  • tests/integration/test_lists/qa/llm_function_core.txt
  • tests/integration/test_lists/qa/llm_spark_func.yml
  • tests/integration/test_lists/qa/llm_spark_perf.yml
  • tests/integration/test_lists/test-db/l0_l40s.yml
  • tests/integration/test_lists/waives.txt

The removed integration tests had corresponding QA or CI test-list entries. The unit tests had no integration test-list entries.

Verdict: needs follow-up

CI remains failing, and no CBTS coverage data is available.

Description

The background is https://docs.google.com/spreadsheets/d/17qLRr5oQESqn1rT9LrIUnpjvhH8wcC59273YEPT9k44/edit?gid=177162358#gid=177162358

Test Coverage

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

Remove test functions, parametrize entries, model path registrations,
accuracy references, perf configs, and test list entries for all
DeepSeek-R1-Distill-* model variants across unittest and integration tests.

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The change removes DeepSeek-R1 accuracy, performance, quickstart, scaffolding, waiver, and end-to-end test coverage. Scaffolding tests now use gpt_oss/gpt-oss-20b.

Changes

DeepSeek test coverage retirement

Layer / File(s) Summary
Accuracy coverage removal
tests/integration/defs/accuracy/...
Removes the DeepSeek-R1-Distill-Llama-70B MMLU integration test.
Performance and integration matrix cleanup
tests/integration/defs/perf/..., tests/integration/test_lists/qa/*, tests/integration/test_lists/test-db/l0_l40s.yml, tests/integration/test_lists/waives.txt
Removes DeepSeek-specific performance configuration, Spark and pre-merge entries, end-to-end registrations, and related waivers.
Scaffolding test fixture migration
tests/unittest/scaffolding/test_worker.py, tests/unittest/scaffolding/test_scaffolding.py
Replaces the DeepSeek model fixture with gpt_oss/gpt-oss-20b and updates scaffolding tests to use trtllm_model_path.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: mlefeb01, qijune, mzweilz

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description states the scope but provides only a vague background link and leaves the Test Coverage section empty. Explain the reason for removing these tests and list the relevant validation or CI tests performed.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the removal of all DeepSeek-R1-Distill test coverage and matches the primary changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@xinhe-nv
xinhe-nv enabled auto-merge (squash) August 6, 2026 08:20
@xinhe-nv

xinhe-nv commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64276 [ run ] triggered by Bot. Commit: f23dc6d Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64276 [ run ] completed with state FAILURE. Commit: f23dc6d
/LLM/main/L0_MergeRequest_PR pipeline #52177 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@xinhe-nv

xinhe-nv commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

/bot -help

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental) --high-priority]

Launch build/test pipelines. All previously running jobs will be killed.

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Supports wildcard * for pattern matching (e.g., "*PerfSanity*" matches all stages containing PerfSanity). Examples: "A10-PyTorch-1, xxx", "PerfSanity". The patterns "*", "*Post-Merge*", and "*PerfSanity*", including equivalent escaped or repeated-star forms and their use in comma-separated lists, require the ci: post-merge approved PR label. Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Requires the ci: full pre-merge approved label on the PR (ask a member of NVIDIA/trt-llm-ci-approvers). Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline. Requires the ci: full pre-merge approved label on the PR (ask a member of NVIDIA/trt-llm-ci-approvers).

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline. Requires the ci: post-merge approved PR label applied by an active member of NVIDIA/trt-llm-ci-approvers. The approval label remains in place when new commits are pushed.

--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Supports wildcard * for pattern matching. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx", --extra-stage "Post-Merge". The patterns "*", "*Post-Merge*", and "*PerfSanity*", including equivalent escaped or repeated-star forms and their use in comma-separated lists, require the ci: post-merge approved PR label.

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

--high-priority (OPTIONAL) : Run the pipeline with high priority. This option is restricted to authorized users only and will route the job to a high-priority queue.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@xinhe-nv

xinhe-nv commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64331 [ run ] triggered by Bot. Commit: f23dc6d Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64331 [ run ] completed with state SUCCESS. Commit: f23dc6d
/LLM/main/L0_MergeRequest_PR pipeline #52226 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@brnguyen2 brnguyen2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One real breakage (inline). Otherwise the sweep looks complete — I grepped tests/ for remaining Distill references and only unrelated Cosmos3 hits came back.

Worth confirming the two pytorch_model_config.py and _model_paths.py deletions are load-bearing only for the removed perf ids; a stale entry there is harmless, but a missing one that another label still pattern-matches is not. enable_attention_dp: False was listed under a comment about preventing hangs — make sure no other model label was relying on that pattern block (it matched only deepseek_r1_distill_llama_70b, so it looks safe).

Comment thread tests/unittest/scaffolding/test_worker.py
Comment thread tests/unittest/scaffolding/test_worker.py Outdated
Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
…f entries

- Restore create_trtllm_worker helper and add trtllm_model_path fixture
  pointing at gpt_oss/gpt-oss-20b; rename deepseek_distill_7b_path across
  test_worker.py and test_scaffolding.py so directory collection no longer fails
- Drop empty isort guard block in test_worker.py
- Remove deepseek_r1_distill_qwen_32b rows from base_perf_pytorch.csv

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
…lm_model_path

Signed-off-by: Xin He (SW-GPU) <200704525+xinhe-nv@users.noreply.github.com>
@xinhe-nv

xinhe-nv commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review the test_worker.py

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

file="tests/unittest/scaffolding/test_worker.py"

echo "== File outline =="
ast-grep outline "$file" --items all || true

echo
echo "== PR diff for requested file =="
git diff --find-renames origin/main...HEAD -- "$file" || git diff --find-renames HEAD^...HEAD -- "$file"

echo
echo "== Current file =="
cat -n "$file"

echo
echo "== Model fixture and worker call sites =="
rg -n -C 4 --glob '*.py' \
  '(def trtllm_model_path\b|def model_name\b|TRTLLMWorker|test_trtllm_worker_generation\b|deepseek_distill_7b_path\b|gpt-oss-20b)' \
  tests/unittest/scaffolding

Length of output: 14275


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Candidate resolver files =="
fd -t f 'test_llm\.py|llm_data\.py|_model_paths\.py' tests | sort

echo
echo "== Resolver definitions and gpt-oss path references =="
rg -n -C 8 --glob '*.py' \
  '(def get_model_path\b|def llm_models_root\b|gpt_oss/gpt-oss-20b|gpt-oss-20b|init_with_new_llm\s*\()' \
  tests tensorrt_llm

echo
echo "== Requested-file history at its parent commit =="
git show HEAD^:tests/unittest/scaffolding/test_worker.py | cat -n

Length of output: 45726


@xinhe-nv I found no issue in tests/unittest/scaffolding/test_worker.py.

trtllm_model_path resolves to the established GPT-OSS-20B path: gpt_oss/gpt-oss-20b. The restored TRTLLMWorker test uses that path correctly. The worker shutdown logic remains protected by finally blocks.

The provided CI status does not include test-level failure output. I cannot link the L0 failure to this file from the available information.

You are interacting with an AI system.

Comment thread tests/unittest/scaffolding/test_worker.py
@xinhe-nv

xinhe-nv commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #64506 [ run ] triggered by Bot. Commit: 0f7159b Link to invocation

if model_name.startswith("Qwen3"):
args.extend(["--reasoning_parser", "qwen3"])
else:
args.extend(["--reasoning_parser", "deepseek-r1"])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With both DeepSeek params gone, theelse: --reasoning_parser deepseek-r1branch is now unreachable, and the deepseek-r1 parser loses all server-level coverage (unit coverage in test_reasoning_parser.py remains).

_MEM_FRACTION_95 = 0.95


@pytest.mark.parametrize("model_name,model_path", [

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is an RCCA regression test for nvbugs/5238105 (n>1 must not produce empty completions) — the model is incidental and any small model would exercise the same property. It's already waived on 6 platforms, so the immediate loss is limited, but could we repoint it to e.g. TinyLlama/Qwen3-0.6B rather than delete it, or note on the bug that this regression guard is going away?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to the background, Qwen3-0.6B is an acceptable model.

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.

4 participants