Repository navigation
[None][chore] Remove is_first_draft dead code - #19867
Conversation
|
/bot run |
|
PR_Github #76262 [ run ] triggered by Bot. Commit: |
|
PR_Github #76262 [ run ] completed with state
|
80e0915 to
51f415a
Compare
|
/bot run |
|
PR_Github #76396 [ run ] triggered by Bot. Commit: |
|
PR_Github #76396 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76409 [ run ] triggered by Bot. Commit: |
|
PR_Github #76409 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76559 [ run ] triggered by Bot. Commit: |
|
PR_Github #76559 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76607 [ run ] triggered by Bot. Commit: |
|
PR_Github #76607 [ run ] completed with state
|
Signed-off-by: Mike Iovine <[email protected]>
Signed-off-by: Mike Iovine <[email protected]>
|
/bot run |
|
PR_Github #77817 [ run ] triggered by Bot. Commit: |
|
PR_Github #77817 [ run ] completed with state
|
|
/bot run |
|
PR_Github #77901 [ run ] triggered by Bot. Commit: |
|
PR_Github #77901 [ run ] completed with state
|
|
/bot run |
|
PR_Github #78210 [ run ] triggered by Bot. Commit: |
|
PR_Github #78210 [ run ] completed with state
|
|
/bot run |
|
PR_Github #78511 [ run ] triggered by Bot. Commit: |
|
PR_Github #78511 [ run ] completed with state |
Resolve the runner.py conflict by taking main's removal of the first-draft input path (NVIDIA#19867), and drop the three references this branch added to the removed API: the first_draft_requests term in the previous-batch offset zeroing condition and the is_first_draft KeyType field in two executor tests. Signed-off-by: Vasanth Sabavat <[email protected]>
Resolve the overlap with NVIDIA#19867 and drop draft_model_engine from the Whisper cache-reuse guard added in NVIDIA#19302. Signed-off-by: Lori Ren <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
…d duplicated helpers A cleanup pass over the feature and perf commits; nothing the target computes changes. Dead code: - ops/hc: the Triton qwen4_exp_hc_decode_first / _decode_mix / _decode_mix_fp4 entries and qwen4_exp_hc_gate_mean, with their tests. The forward never reached them: one-row decode sites run the CuTe pair, larger batches the fused up projection. The CuTe entries now own the references and checks they borrowed; their NVFP4 reference is catalog fp4_quantize's. - DecodeTarget: the _HC_FUSED_UP_MIN_ROWS / _HC_TC_FIRST_MIN_ROWS branches that _HC_DECODE_GEMV_MAX_ROWS = 1 left unreachable (with the fp4_quantize fallback), the inputs_embeds branch begin_step already refuses, and the unread `pos` / `qsl_long` fields of the decode step tuples. - qsa_sparse_gqa_rowtile: the Triton bitmap and row-tile passes and their launch knobs. The entry now refuses what the CuTe pass cannot take (non-bf16, non-SM103, head_dim != 256, misaligned rows) instead of falling back; the fp16 / fp8 pool cells and the Triton comparison test go. - gdn_prefill_conv_post: the Triton conv pass the CuTe pass always replaced; an unmet precondition is now an assertion. - catalog/ssm/gated_delta_rule_decode_pretranspose and its test: no forward path launched it. Its fp64 recurrence moved to gdn_decode_gated_norm_pdl._recurrence_reference, and the decode tests compare against FlashInfer's kernel directly. - The decoder runner's first-draft mRoPE refusal and its tests: nothing sets py_is_first_draft since NVIDIA#19867. Reuse: - The local TRTLLM_ENABLE_PDL gates call flashinfer_utils.get_env_enable_pdl. - qsa_paged_sparse_gqa_nvfp4 imports the QSA backend's split-K config and PDL policy instead of copying them. - qsa_topk_expand_decode.supports() replaces the width checks restated at its two call sites. - The CuteDSL FC2 entry uses FC1's unswizzle / dequant reference helpers, and gdn_decode_rows_gated_norm's reference delegates to gdn_decode_gated_norm_pdl's. Less work: - gdn_decode_gated_norm_pdl and gdn_in_proj_conv1d_pdl compile from the call's operands instead of dummies spanning the whole coalesced state pool, a transient of every layer's state for every slot during decode graph capture. - PrefillTarget._gdn_core_generic reads q|k|v as the projection's column view and lets the chunked delta rule write `out` directly: two copies fewer per GDN layer on verify and bf16-state steps. Comments no longer cite campaign scratch files. Signed-off-by: Wanli Jiang <[email protected]>
Description
Remove
is_first_draftattribute and all related code paths (dead code now that 2-model spec dec is removed).Test Coverage
Existing tests.
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-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin 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.Dev Engineer Review
The available working-tree diff reformats imports in
cuda_graph_runner.pyand five test files. It does not removeis_first_draftor change runtime behavior. The diff does not show the stated PR objective, so verify that the intended functional changes are included.QA Engineer Review
Five test files changed:
test_pytorch_model_engine.py,test_modeling_llama.py,test_modeling_llama_min_latency.py,test_modeling_mixtral.py, andtest_modeling_mllama.py. The changes only reformat imports; no test functions, IDs, selectors, or assertions changed. These are unit tests, so integration test-list inclusion does not apply. Test results are not established. Coverage verdict: needs follow-up because the available diff does not cover the stated removal.Per-File QA Perspective
tensorrt_llm/_torch/pyexecutor/cuda_graph_runner.py: Import formatting only. No observable behavior change appears in the diff.tests/unittest/_torch/executor/test_pytorch_model_engine.py: Import formatting only; test behavior is unchanged. Integration test-list inclusion does not apply.tests/unittest/_torch/modeling/test_modeling_llama.py: Import formatting only; test behavior is unchanged. Integration test-list inclusion does not apply.tests/unittest/_torch/modeling/test_modeling_llama_min_latency.py: Import formatting only; test behavior is unchanged. Integration test-list inclusion does not apply.tests/unittest/_torch/modeling/test_modeling_mixtral.py: Import formatting only; test behavior is unchanged. Integration test-list inclusion does not apply.tests/unittest/_torch/modeling/test_modeling_mllama.py: Import formatting only; test behavior is unchanged. Integration test-list inclusion does not apply.