Repository navigation
Conversation
Check the configured max_model_len even when no expected token counts are supplied. Cover empty expectations and the inclusive limit in CPU tests. Signed-off-by: NICKO <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the validate_response function in tools/send_request.py to ensure that max_model_len checks are still enforced even when the expected parameter is empty or None. It also introduces a comprehensive suite of unit tests in tests/ut/tools/test_send_request.py to verify this behavior and other token validation logic. There are no review comments, and I have no feedback to provide.
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. 🤖 How to trigger CI
Note Until the CI gate has run on a commit, the required Tip 💡 Consider Linking a Related Issue or RFCYour PR title contains the [BugFix] tag, indicating a bug fix or new feature. Linking a related issue or RFC in the PR description is strongly encouraged — it gives reviewers helpful context and speeds up the review. You can use any of these keywords:
🙏 Thanks for helping us keep the project well-organized! |
|
Last updated: 2026-12-02 21:47 UTC+8 for commit ci-gate failed. Reason:
See the workflow run for full logs. This comment is updated in place on each new failure and marked as passed once the gate passes (it is kept for history, not deleted). |
Use the tools test suite's pytest parameter style for empty and missing expectations so all supported mypy targets can infer the input type. Signed-off-by: NICKO <[email protected]>
|
/run |
What this PR does / why we need it?
The single-node chat test passes the server's
--max-model-lentovalidate_response. Empty token expectations currently skip that check. Normalize empty expectations so the existing total-token bound still applies.Fixes #24357
Project collaborator iamustcfw.
Does this PR introduce any user-facing change?
This change applies to E2E response validation.
How was this patch tested?
python -m pytest --noconftest -q tests/ut/tools/test_send_request.pyon CPU passed both parameter cases. Both fail against the original helper.git diff --checkpassed.Checklist
Regression reproduces the missing upper-bound check.
Tests cover an exceeded limit, the inclusive boundary and calls without a limit.
vLLM main: vllm-project/vllm@c410543