fb8e22ec00aef2b2d42a5f2d3ae7267848ec5016
11
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
77b43492ae |
improve the ttft when use mooncake (#6125)
### What this PR does / why we need it? improve performance of mooncake by change the log level from info to debug ### ENV 2P + 4D, EP 1. benchmark script ``` evalscope perf \ --parallel 512 \ --number 1024 \ --model deepseek \ --url http://localhost:9000/v1/chat/completions \ --api openai \ --dataset random \ --max-tokens 2 \ --min-tokens 2 \ --prefix-length 0 \ --min-prompt-length 512 \ --max-prompt-length 512 \ --tokenizer-path /tmp/DeepSeek-v3-0324-w8a8-0814 \ --extra-args '{"ignore_eos": true}' \ --rate 2 ``` 2. before patch ``` +-----------------------------------+-----------+ | Key | Value | +===================================+===========+ | Time taken for tests (s) | 209.484 | +-----------------------------------+-----------+ | Number of concurrency | 512 | +-----------------------------------+-----------+ | Request rate (req/s) | 6 | +-----------------------------------+-----------+ | Total requests | 1024 | +-----------------------------------+-----------+ | Succeed requests | 1022 | +-----------------------------------+-----------+ | Failed requests | 2 | +-----------------------------------+-----------+ | Output token throughput (tok/s) | 9.7573 | +-----------------------------------+-----------+ | Total token throughput (tok/s) | 2507.62 | +-----------------------------------+-----------+ | Request throughput (req/s) | 4.8786 | +-----------------------------------+-----------+ | Average latency (s) | 7.0561 | +-----------------------------------+-----------+ | Average time to first token (s) | 5.7444 | +-----------------------------------+-----------+ | Average time per output token (s) | 1.3117 | +-----------------------------------+-----------+ | Average inter-token latency (s) | 1.3117 | +-----------------------------------+-----------+ | Average input tokens per request | 512 | +-----------------------------------+-----------+ | Average output tokens per request | 2 | +-----------------------------------+-----------+ 2026-01-22 14:56:32 - evalscope - INFO: Percentile results: +-------------+----------+---------+----------+-------------+--------------+---------------+----------------+---------------+ | Percentiles | TTFT (s) | ITL (s) | TPOT (s) | Latency (s) | Input tokens | Output tokens | Output (tok/s) | Total (tok/s) | +-------------+----------+---------+----------+-------------+--------------+---------------+----------------+---------------+ | 10% | 0.6062 | 0.5113 | 0.5113 | 1.234 | 512 | 2 | 0.0888 | 22.8338 | | 25% | 0.7248 | 0.5639 | 0.5639 | 1.4114 | 512 | 2 | 0.2 | 51.3919 | | 50% | 0.9092 | 0.7748 | 0.7748 | 1.6767 | 512 | 2 | 1.1935 | 306.7171 | | 66% | 1.0745 | 1.0345 | 1.0345 | 3.1308 | 512 | 2 | 1.3395 | 344.2495 | | 75% | 7.0812 | 1.5389 | 1.5389 | 10.0016 | 512 | 2 | 1.417 | 364.1808 | | 80% | 10.6944 | 1.8552 | 1.8552 | 13.3717 | 512 | 2 | 1.4778 | 379.7911 | | 90% | 19.2342 | 2.4325 | 2.4326 | 22.5105 | 512 | 2 | 1.6208 | 416.5381 | | 95% | 24.4399 | 2.8289 | 2.8289 | 26.0329 | 512 | 2 | 1.7548 | 450.9942 | | 98% | 45.0941 | 3.4098 | 3.4098 | 45.6287 | 512 | 2 | 1.8193 | 467.5476 | | 99% | 46.2786 | 3.8492 | 3.8492 | 46.9282 | 512 | 2 | 1.8576 | 477.4157 | +-------------+----------+---------+----------+-------------+--------------+---------------+----------------+---------------+ ``` 3. after patch ``` Benchmarking summary: +-----------------------------------+-----------+ | Key | Value | +===================================+===========+ | Time taken for tests (s) | 191.613 | +-----------------------------------+-----------+ | Number of concurrency | 512 | +-----------------------------------+-----------+ | Request rate (req/s) | 6 | +-----------------------------------+-----------+ | Total requests | 1024 | +-----------------------------------+-----------+ | Succeed requests | 1024 | +-----------------------------------+-----------+ | Failed requests | 0 | +-----------------------------------+-----------+ | Output token throughput (tok/s) | 10.6882 | +-----------------------------------+-----------+ | Total token throughput (tok/s) | 2746.87 | +-----------------------------------+-----------+ | Request throughput (req/s) | 5.3441 | +-----------------------------------+-----------+ | Average latency (s) | 2.0407 | +-----------------------------------+-----------+ | Average time to first token (s) | 0.7989 | +-----------------------------------+-----------+ | Average time per output token (s) | 1.2419 | +-----------------------------------+-----------+ | Average inter-token latency (s) | 1.2419 | +-----------------------------------+-----------+ | Average input tokens per request | 512 | +-----------------------------------+-----------+ | Average output tokens per request | 2 | +-----------------------------------+-----------+ 2026-01-22 15:10:31 - evalscope - INFO: Percentile results: +-------------+----------+---------+----------+-------------+--------------+---------------+----------------+---------------+ | Percentiles | TTFT (s) | ITL (s) | TPOT (s) | Latency (s) | Input tokens | Output tokens | Output (tok/s) | Total (tok/s) | +-------------+----------+---------+----------+-------------+--------------+---------------+----------------+---------------+ | 10% | 0.5727 | 0.5051 | 0.5051 | 1.1761 | 512 | 2 | 1.0368 | 266.4696 | | 25% | 0.6497 | 0.5324 | 0.5324 | 1.3159 | 512 | 2 | 1.1763 | 302.3184 | | 50% | 0.7767 | 0.6908 | 0.6908 | 1.4793 | 512 | 2 | 1.3521 | 347.4944 | | 66% | 0.8711 | 0.7912 | 0.7912 | 1.5916 | 512 | 2 | 1.4518 | 373.1092 | | 75% | 0.9125 | 0.8797 | 0.8797 | 1.7008 | 512 | 2 | 1.521 | 390.9018 | | 80% | 0.9381 | 0.9442 | 0.9442 | 1.7657 | 512 | 2 | 1.5749 | 404.7606 | | 90% | 0.994 | 1.0818 | 1.0818 | 1.9289 | 512 | 2 | 1.7006 | 437.0518 | | 95% | 1.0369 | 1.2454 | 1.2454 | 2.2154 | 512 | 2 | 1.7937 | 460.9731 | | 98% | 1.1237 | 18.8814 | 18.8814 | 19.4607 | 512 | 2 | 1.8755 | 482.0097 | | 99% | 1.6752 | 24.4406 | 24.4406 | 25.4734 | 512 | 2 | 1.907 | 490.0993 | +-------------+----------+---------+----------+-------------+--------------+---------------+----------------+---------------+ ``` --------- Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
146b9d2a83 |
[BugFix] fix metadata execute error: integer modulo by zero (#6521)
### What this PR does / why we need it? fix metadata execute error: integer modulo by zero - vLLM version: v0.15.0 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.15.0 Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
747484cb64 |
[Bugfix] Fix wrong computed_tokens when meet exception. (#6522)
<!-- Thanks for sending a pull request! BEFORE SUBMITTING, PLEASE READ https://docs.vllm.ai/en/latest/contributing/overview.html --> ### What this PR does / why we need it? <!-- - Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. If possible, please consider writing useful notes for better and faster reviews in your PR. - Please clarify why the changes are needed. For instance, the use case and bug description. - Fixes # --> Fix wrong computed_tokens when meet exception. This pull request addresses a bug in the KV transfer mechanism where an exception during token lookup operations could lead to an incorrect count of computed_tokens. By modifying the exception handling in both the lookup and lookup_scheduler functions to return 0 instead of the start index, the system now correctly indicates that no tokens were successfully processed when a remote connection failure occurs. This enhancement improves the robustness and accuracy of token management within the vllm_ascend distributed KV pool. ### Does this PR introduce _any_ user-facing change? <!-- Note that it means *any* user-facing change including all aspects such as API, interface or other behavior changes. Documentation-only updates are not considered user-facing changes. --> NO. ### How was this patch tested? <!-- CI passed with new added/existing test. If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future. If tests were not added, please describe why they were not added and/or why it was difficult to add. --> Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
d91c6daf89 |
[improve] Remove redundant parentheses in pangu_moe.py (#2081)
### What this PR does / why we need it? Remove redundant parentheses in pangu_moe.py. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local. - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/099c0464637f330f8ea38b07fe0694717c16d815 Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
2a763b8326 |
[Bug] Fix bug in test_chunked.py (#1992)
### What this PR does / why we need it? 1. Remove the return statement, it will always skip following logic. 2. Update `deepseek` to `Qwen2.5-Instruct` for OOM in github e2e test env. 3. Fix the comparison logic ### Does this PR introduce _any_ user-facing change? NO. ### How was this patch tested? Local Test. - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/0933f9d518ecb18e8427bf42731d2a3d00276883 Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
27c2b5c145 |
[Doc] Update pytorch version in README_zh doc (#2202)
### What this PR does / why we need it? Update pytorch version in README_zh doc. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local Test. - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/bd3db7f46965bfc979734a6d4b50cf96184c10d8 Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
bea3d5bbb4 |
[Bug] Fix run bug in run_dp_server.sh (#2139)
### What this PR does / why we need it? For `Qwen2.5-0.5B-Instruct` model - the model's total number of attention heads (14) must be divisible by tensor parallel size. (4 -> 2) - the model does not support enable-expert-parallel ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local Test. - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/ad57f23f6a528ab01066998b41796a44340fd43d Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
b824525be3 |
Move deepseek_v3 from deepseek_v2.py (#1793)
### What this PR does / why we need it? Before patch, we can see `vllm_ascend.models.deepseek_v2:CustomDeepseekV3ForCausalLM`, it seems not friendly format. ``` WARNING 07-14 23:57:34 [registry.py:413] Model architecture DeepseekV2ForCausalLM is already registered, and will be overwritten by the new model class vllm_ascend.models.deepseek_v2:CustomDeepseekV2ForCausalLM. WARNING 07-14 23:57:34 [registry.py:413] Model architecture DeepseekV3ForCausalLM is already registered, and will be overwritten by the new model class vllm_ascend.models.deepseek_v2:CustomDeepseekV3ForCausalLM. WARNING 07-14 23:57:34 [registry.py:413] Model architecture Qwen3MoeForCausalLM is already registered, and will be overwritten by the new model class vllm_ascend.models.qwen3_moe:CustomQwen3MoeForCausalLM. ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local Test. - vLLM version: v0.9.2 - vLLM main: https://github.com/vllm-project/vllm/commit/bcdfb2a3308e14fbf46da6d6d41747f289af9300 Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
3ef45d0cc2 |
feat: Improve the offline_inference npu v0/v1 scripts (#1669)
### What this PR does / why we need it? Improve - Keep the same file name format as v1, `offline_inference_npu_v0.py`, `offline_inference_npu_v1.py` - Use `VLLM_USE_V1` = 0/1 clearly in py scripts - Fix some run errors in `offline_inference_npu_v1.py`, e.g. `deepseekv3-lite-base-latest` not exists in modescope or hf. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - vLLM version: v0.9.2 - vLLM main: https://github.com/vllm-project/vllm/commit/baed180aa00314897b37b4b0af65adeba06f3d77 Signed-off-by: xleoken <xleoken@163.com> |
||
|
|
e511ddd67d |
[Bug] Fix wrong modescope env set order (#1611)
### What this PR does / why we need it?
The `os.environ["VLLM_USE_MODELSCOPE"] = "True"` should be placed before
module imports
if not
```
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/xleoken/projects/vllm-ascend/examples/offline_embed.py", line 48, in <module>
model = LLM(model="Qwen/Qwen3-Embedding-0.6B", task="embed")
File "/usr/local/python3.10.17/lib/python3.10/site-packages/vllm/entrypoints/llm.py", line 243, in __init__
self.llm_engine = LLMEngine.from_engine_args(
File "/usr/local/python3.10.17/lib/python3.10/site-packages/vllm/engine/llm_engine.py", line 494, in from_engine_args
vllm_config = engine_args.create_engine_config(usage_context)
File "/usr/local/python3.10.17/lib/python3.10/site-packages/vllm/engine/arg_utils.py", line 1018, in create_engine_config
model_config = self.create_model_config()
File "/usr/local/python3.10.17/lib/python3.10/site-packages/vllm/engine/arg_utils.py", line 910, in create_model_config
return ModelConfig(
File "/usr/local/python3.10.17/lib/python3.10/site-packages/pydantic/_internal/_dataclasses.py", line 120, in __init__
s.__pydantic_validator__.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
File "/usr/local/python3.10.17/lib/python3.10/site-packages/vllm/config.py", line 528, in __post_init__
hf_config = get_config(self.hf_config_path or self.model,
File "/usr/local/python3.10.17/lib/python3.10/site-packages/vllm/transformers_utils/config.py", line 321, in get_config
config_dict, _ = PretrainedConfig.get_config_dict(
File "/usr/local/python3.10.17/lib/python3.10/site-packages/transformers/configuration_utils.py", line 590, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/usr/local/python3.10.17/lib/python3.10/site-packages/transformers/configuration_utils.py", line 649, in _get_config_dict
resolved_config_file = cached_file(
File "/usr/local/python3.10.17/lib/python3.10/site-packages/transformers/utils/hub.py", line 266, in cached_file
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
File "/usr/local/python3.10.17/lib/python3.10/site-packages/transformers/utils/hub.py", line 491, in cached_files
raise OSError(
OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
[ERROR] 2025-07-03-15:27:10 (PID:333665, Device:-1, RankID:-1) ERR99999 UNKNOWN applicaiton exception
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Local.
Signed-off-by: xleoken <xleoken@163.com>
|
||
|
|
4447e53d7a |
[Doc] Change not to no in faqs.md (#1357)
### What this PR does / why we need it? Change not to no in faqs.md. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Local Test Signed-off-by: xleoken <xleoken@163.com> |