Skip to content

[Bug]: PD demo example failed to run benchmark #20477

@gaowayne

Description

@gaowayne

Your current environment

The output of python collect_env.py
Your output of `python collect_env.py` here

(vast) root@salab-hpedl380g11-02:/mnt/nvme2n1/wayne/vast/perf/VUA# python collect_env.py
INFO 07-04 07:47:23 [init.py:244] Automatically detected platform cuda.
Collecting environment information...

BIOS Vendor ID: Intel(R) Corporation
Model name: INTEL(R) XEON(R) GOLD 6548Y+
BIOS Model name: INTEL(R) XEON(R) GOLD 6548Y+ CPU @ 2.5GHz
BIOS CPU family: 179
CPU family: 6
Model: 207
Thread(s) per core: 2
Core(s) per socket: 32
Socket(s): 2
Stepping: 2
CPU(s) scaling MHz: 20%
CPU max MHz: 4100.0000
CPU min MHz: 800.0000
BogoMIPS: 5000.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect user_shstk avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_pkg_req hfi vnmi avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr ibt amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Virtualization: VT-x
L1d cache: 3 MiB (64 instances)
L1i cache: 2 MiB (64 instances)
L2 cache: 128 MiB (64 instances)
L3 cache: 120 MiB (2 instances)
NUMA node(s): 2

GPU0 X NODE SYS SYS 32-63,96-127 1 N/A
GPU1 NODE X SYS SYS 32-63,96-127 1 N/A
NIC0 SYS SYS X PIX
NIC1 SYS SYS PIX X

Legend:

X = Self
SYS = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
PHB = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
PXB = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
PIX = Connection traversing at most a single PCIe bridge
NV# = Connection traversing a bonded set of # NVLinks

NIC Legend:

NIC0: mlx5_0
NIC1: mlx5_1

==============================
Environment Variables

NCCL_CUMEM_ENABLE=0
PYTORCH_NVML_BASED_CUDA_CHECK=1
TORCHINDUCTOR_COMPILE_THREADS=1
CUDA_MODULE_LOADING=LAZY

🐛 Describe the bug

run PD example application, then run benchmark, I suffer crashed. everything works fine without PD separation.

steps

  1. start P
CUDA_VISIBLE_DEVICES=0 VLLM_LOGGING_LEVEL=INFO VLLM_USE_V1=1  bin/vua-vllm serve  mistralai/Mistral-7B-Instruct-v0.2  --gpu-memory-utilization 0.80   --kv-transfer-config '{"kv_connector":"VUAStorageConnector_V1","kv_role":"kv_producer","kv_connector_extra_config": {"shared_storage_path": "/mnt/nvme1n1/nfsrdma/test10"}}' --port 8001
  1. start D
CUDA_VISIBLE_DEVICES=1 VLLM_LOGGING_LEVEL=INFO VLLM_USE_V1=1  bin/vua-vllm serve  mistralai/Mistral-7B-Instruct-v0.2  --gpu-memory-utilization 0.80   --kv-transfer-config '{"kv_connector":"VUAStorageConnector_V1","kv_role":"kv_consumer","kv_connector_extra_config": {"shared_storage_path": "/mnt/nvme1n1/nfsrdma/test10"}}' --port 8002
  1. start example proxy server
python3 examples/online_serving/disaggregated_serving/disagg_proxy_demo.py  --model mistralai/Mistral-7B-Instruct-v0.2  --prefill localhost:8001   --decode localhost:8002  --port 8000
  1. start bench on proxy server it hangs because P process dead
VLLM_LOGGING_LEVEL=INFO bin/vua-vllm bench serve --model mistralai/Mistral-7B-Instruct-v0.2 --random-input-len 20000 --random-output-len 4000 --port 8000
INFO 07-04 08:07:30 [__init__.py:244] Automatically detected platform cuda.
Namespace(subparser='bench', bench_type='serve', dispatch_function=<function BenchmarkServingSubcommand.cmd at 0x789d06771d00>, seed=0, num_prompts=1000, dataset_name='random', dataset_path=None, custom_output_len=256, custom_skip_chat_template=False, sonnet_input_len=550, sonnet_output_len=150, sonnet_prefix_len=200, sharegpt_output_len=None, random_input_len=20000, random_output_len=4000, random_range_ratio=0.0, random_prefix_len=0, hf_subset=None, hf_split=None, hf_output_len=None, endpoint_type='openai', label=None, base_url=None, host='127.0.0.1', port=8000, endpoint='/v1/completions', max_concurrency=None, model='mistralai/Mistral-7B-Instruct-v0.2', tokenizer=None, use_beam_search=False, logprobs=None, request_rate=inf, burstiness=1.0, trust_remote_code=False, disable_tqdm=False, profile=False, save_result=False, save_detailed=False, append_result=False, metadata=None, result_dir=None, result_filename=None, ignore_eos=False, percentile_metrics='ttft,tpot,itl', metric_percentiles='99', goodput=None, top_p=None, top_k=None, min_p=None, temperature=None, tokenizer_mode='auto', served_model_name=None, lora_modules=None)
/mnt/nvme2n1/wayne/vast/perf/vllm/vllm/benchmarks/serve.py:793: FutureWarning: It is strongly recommended to run mistral models with `--tokenizer-mode "mistral"` to ensure correct encoding and decoding.
  tokenizer = get_tokenizer(tokenizer_id,
INFO 07-04 08:07:34 [datasets.py:353] Sampling input_len from [19999, 19999] and output_len from [4000, 4000]
Starting initial single prompt test run...
Initial test run completed. Starting main benchmark run...
Traffic request rate: inf
Burstiness factor: 1.0 (Poisson process)
Maximum request concurrency: None
 46%|████████████████████████████████████████████████████████▌                                                                  | 460/1000 [00:20<00:01, 368.53it/s]
  1. P process is dead
8113, 18114, 18115, 18116, 18117, 18118, 18119, 18120, 18121, ַ18122, 18123, 1ั8124, 18125, 18126, 18127, 18128, 18129, 18130, 18131, 18132, 18133, 1ִ8134, ِ18135, 18136, 181்37, 18138, 18139, 18140, 18141, 18142, 18143, 18144, 18145, 18146, 18147, 18148, 18149, 18150, 18151, 18152, 18153ু, 18154, 18155, 18156, 18157, 18158, 18159, 18160, 18161, 18162, 18163, 18164, 18165, 18166, 18167, 18168, 181็್ু69, ี18170, 18171ิ, 18172, 18173, 18174, 18175, 1ेُ8176, 18177, 18178, 18179, 18180, 18181, 18182, 18183ֹ̯, 18184, 18185, 18186, 18187, 18188, 18189, 18190, 18191, 18192,্ْ́ 18193, 18194, 786, 444, 546, 18197, 18198, 4537, 2037, 270, 293, 4455, 1074, 18202, 18203, 18204, 28256, 28727, 377, 18207, 18208, 5927, 81្9, 903, 18211, 18212, 18213, 18214, 1ّ8215, 18216, 18217, 18218, 18͡219, 18220, 18221, 5461, 28721, 17773, 517, 8176, 18224, 18225, 1്8226, 18227, 18228, 18229, 18230, 18️231, 18232,َ 18233, 18234, 18235, 18236, 18237, 18238, 18239, 18240, 18241, 18242, 18243, 18244, 18245, 18246, 18247, 18̄248, 18249, 18250ּ, 18251, 18252, 18253, 18254, 18255, 18256, 18257, 18258, 18259̂, 18260, 18261, 18262, 18263,್ ু18264, 18265, 18266, 18267, 18268, 18269, 18270, 182712, 18272, 18273, 18274്, 18275, 18276, 18277, 18278, 18279, 18280,ु 3582, 1150, 10906,่ 1828्3, 18284, 18285, 18ְ286, 18287,้ 18288, 18289, 18290, 18291, 18292, 12808, 7752, 313, 160̄9, 4197, 1̯774, 18297, 18298, ֵ18299, 18300, 1830ั1, 18302, 18303, 183్04, 18305, 18306, 18307, 18308, 18309, 18310, 18311, 18312,ַ 183ֹ13, 18314, 18315, 183162, 18317, 18318, 18319, 18320, 18321, 1់83̂22, 18323, 18324, 18325, 18326, 18327, 18328, 18329, 28790, 1841, 2728, 18332, 183ू33, 18334, 18335, 18336, 183്37, 18338, 183239], prompt_embeds shape: None, lora_request: Nonีe, prompt_adapter_request: None.INFO:ֵ     127.0.0.1:46316 - ̥"POST /v1/̈completions HTTP/1.1" 200 OKិ్INFO ់07-04 08:10:38 [async_llṃ.py:345] Request cmpl-464ু667714f6a4f63affa7bfc4a3daeee-0 failed (engine dead).INFO:     127.0.0.1ု:463়22 - "POST /v1/compl්etions HTTP/1.1" 200ី OKINFO 07-04 ์08:10:38 [async_llmٰ.py:345] Request ̶cmpl-fdbab1865f5a44ֹོืe5a8ce03692a2e7f4f-0 failed (engine dead).INFO:     127.0.0.1:46336 - "POST /v1/completions HTTP/1.1" 200 OKINFO 07-04 08:10:38 [asًync_llm.py:345] Request ాcmpl-d9212ಿcf33ea64cb29c11532d1ffc8724-0 failed (engine dead).INFO:     127.0.0.1:46338 - "POST /v1/completions HTTP/1.1" 200 OKINFOි 07-04 08:10:38 [async_llm.py:345] Rིequest cmpl-bbै0f59b4b0424d98889e404d1f771e03-0 failed (engine dead).INFO:     Waiting for application shutdown.્INFO:     Applicationུ shutdown complete.़̇INFO:     Finished server process [560828]

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleOver 90 days of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions