Repository navigation
[TRTLLM-18378][fix] Import TransformersTokenizer from tensorrt_llm.tokenizer in kimi_k3_processor_utils - #23279
Conversation
…kenizer in kimi_k3_processor_utils Signed-off-by: Yihui Lu <269394165+YihuiLu512@users.noreply.github.com>
|
/bot run --disable-fail-fast |
|
No actionable comments were generated in the recent review. WalkthroughThe Kimi K3 processor utility now imports ChangesTokenizer Import Path
Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
|
PR_Github #88778 [ run ] triggered by Bot. Commit: |
|
Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements. |
|
PR_Github #88778 [ run ] completed with state Resource maintenance in LLM/main/L0_Test-x86_64-Single-GPU #10910: AWS-PDX-SLURM-1 is unavailable for maintenance on 2026-12-02 17:00-23:00 UTC; H100_PCIe-PyTorch-Perf-1 was retired from main. |
Description
Fix a merge-window layering contract failure on
mainbetween #23084 and #23145:3b9cc67dcf) addedtensorrt_llm/_torch/models/kimi_k3_processor_utils.py, which importedTransformersTokenizerfrom the legacy compatibility shimtensorrt_llm.llmapi.tokenizer.26bf6759d6) added the AST layering contract testtests/unittest/executor/test_layering.py::test_contracts_hold(running inl0_cpu.yml), which enforces that engine modules undertensorrt_llm._torchdo not import from thetensorrt_llm.llmapifrontend.test_contracts_holdnow fails onmainfortensorrt_llm._torch.models.kimi_k3_processor_utils:26.Change the import in
tensorrt_llm/_torch/models/kimi_k3_processor_utils.pyto the canonicaltensorrt_llm.tokenizermodule (whichtensorrt_llm.llmapi.tokenizerdirectly re-exports), keeping runtime behavior identical without expanding the_ENGINE_USES_FRONTENDallowlist.Test Coverage
main(ed9650f212):pytest --noconftest tests/unittest/executor/test_layering.py tests/unittest/serve/test_layering.py -k "test_contracts_hold or test_no_stale_allowances"failed onkimi_k3_processor_utils.py:26(1 failed, 3 passed).pre-commithooks passed (ruff,ruff-format,codespell,verify legacy lint configs, DCO).l0_cpu.yml(unittest/executor/test_layering.py).PR Checklist
Dev Engineer Review
tensorrt_llm/_torch/models/kimi_k3_processor_utils.py.TransformersTokenizernow comes fromtensorrt_llm.tokenizerinstead oftensorrt_llm.llmapi.tokenizer.QA Engineer Review
No test changes.
Per-File QA Perspective
tensorrt_llm/_torch/models/kimi_k3_processor_utils.py: Import path only. QA should confirm that the Kimi K3 processor still loads and tokenizes as before. The author reports thattests/unittest/executor/test_layering.pyandtests/unittest/serve/test_layering.pynow pass.