WARNING: CPU IP/backtrace sampling not supported, disabling. Try the 'nsys status --environment' command to learn more. WARNING: CPU context switch tracing not supported, disabling. Try the 'nsys status --environment' command to learn more. INFO 08-13 21:32:20 [__init__.py:235] Automatically detected platform cuda. CUDA_VISIBLE_DEVICES = 3 --- vLLM V1 基准测试(含 NVTX 标记)--- 模型: Qwen/Qwen2-1.5B 批量大小: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024] 场景: ['prefill1_decode512'] ------------------------------------------------------------ 加载分词器/模型中... INFO 08-13 21:32:29 [config.py:1604] Using max model len 4096 INFO 08-13 21:32:30 [config.py:2434] Chunked prefill is enabled with max_num_batched_tokens=8192. INFO 08-13 21:32:35 [__init__.py:235] Automatically detected platform cuda. INFO 08-13 21:32:36 [core.py:572] Waiting for init message from front-end. INFO 08-13 21:32:36 [core.py:71] Initializing a V1 LLM engine (v0.10.0) with config: model='Qwen/Qwen2-1.5B', speculative_config=None, tokenizer='Qwen/Qwen2-1.5B', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, override_neuron_config={}, tokenizer_revision=None, trust_remote_code=True, dtype=torch.bfloat16, max_seq_len=4096, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=1, pipeline_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, device_config=cuda, decoding_config=DecodingConfig(backend='auto', disable_fallback=False, disable_any_whitespace=False, disable_additional_properties=False, reasoning_backend=''), observability_config=ObservabilityConfig(show_hidden_metrics_for_version=None, otlp_traces_endpoint=None, collect_detailed_traces=None), seed=0, served_model_name=Qwen/Qwen2-1.5B, num_scheduler_steps=1, multi_step_stream_outputs=True, enable_prefix_caching=True, chunked_prefill_enabled=True, use_async_output_proc=True, pooler_config=None, compilation_config={"level":3,"debug_dump_path":"","cache_dir":"","backend":"","custom_ops":[],"splitting_ops":["vllm.unified_attention","vllm.unified_attention_with_output","vllm.mamba_mixer2"],"use_inductor":true,"compile_sizes":[],"inductor_compile_config":{"enable_auto_functionalized_v2":false},"inductor_passes":{},"use_cudagraph":true,"cudagraph_num_of_warmups":1,"cudagraph_capture_sizes":[512,504,496,488,480,472,464,456,448,440,432,424,416,408,400,392,384,376,368,360,352,344,336,328,320,312,304,296,288,280,272,264,256,248,240,232,224,216,208,200,192,184,176,168,160,152,144,136,128,120,112,104,96,88,80,72,64,56,48,40,32,24,16,8,4,2,1],"cudagraph_copy_inputs":false,"full_cuda_graph":false,"max_capture_size":512,"local_cache_dir":null} INFO 08-13 21:32:38 [parallel_state.py:1102] rank 0 in world size 1 is assigned as DP rank 0, PP rank 0, TP rank 0, EP rank 0 WARNING 08-13 21:32:38 [topk_topp_sampler.py:59] FlashInfer is not available. Falling back to the PyTorch-native implementation of top-p & top-k sampling. For the best performance, please install FlashInfer. INFO 08-13 21:32:38 [gpu_model_runner.py:1843] Starting to load model Qwen/Qwen2-1.5B... INFO 08-13 21:32:38 [gpu_model_runner.py:1875] Loading model from scratch... INFO 08-13 21:32:38 [cuda.py:290] Using Flash Attention backend on V1 engine. INFO 08-13 21:32:39 [weight_utils.py:296] Using model weights format ['*.safetensors'] INFO 08-13 21:32:39 [weight_utils.py:349] No model.safetensors.index.json found in remote. Loading safetensors checkpoint shards: 0% Completed | 0/1 [00:00(T1::Par… 7.1 1,364,722,257 2,113 645,869.5 573,543.0 186,818 763,722 119,005.8 ampere_bf16_s1688gemm_bf16_64x128_sliced1x2_ldg8_f2f_tn 6.7 1,288,109,699 5,868 219,514.3 86,640.5 7,584 548,071 233,154.4 void cutlass::Kernel2(T1::Param… 4.7 899,528,528 458,577 1,961.6 1,888.0 1,632 3,583 325.8 void at::native::elementwise_kernel<(int)128, (int)4, void at::native::gpu_kernel_impl_nocast(T1::Par… 2.6 505,946,595 1,117 452,951.3 488,004.0 7,071 488,933 122,330.3 std::enable_if::type internal::gemvx::kernel, std::a… 0.1 13,279,798 142 93,519.7 51,680.0 50,400 3,040,379 351,298.3 ampere_bf16_s1688gemm_bf16_128x128_ldg8_f2f_stages_32x1_tn 0.1 10,969,719 9,223 1,189.4 1,152.0 1,023 1,760 134.6 void at::native::unrolled_elementwise_kernel, std::array::cunn_SoftMaxForward<(int)4, float, float, float, at::native:::… 0.0 9,151,987 28 326,856.7 327,058.5 324,132 331,139 1,248.5 ampere_bf16_s1688gemm_bf16_128x128_ldg8_relu_f2f_stages_32x1_tn 0.0 8,406,218 224 37,527.8 37,536.0 36,608 38,752 441.5 void cutlass::Kernel2(T1::Para… 0.0 8,365,002 9,222 907.1 896.0 895 993 15.6 void at::native::unrolled_elementwise_kernel, std::array, std::array, std::array::masked_fill_kernel(at… 0.0 4,385,449 140 31,324.6 27,232.0 26,080 50,113 8,339.5 ampere_bf16_s1688gemm_bf16_128x64_sliced1x2_ldg8_relu_f2f_tn 0.0 4,015,431 1,863 2,155.4 1,823.0 1,375 22,753 2,300.3 triton_poi_fused_cat_3 0.0 3,999,332 2 1,999,666.0 1,999,666.0 1,997,394 2,001,938 3,213.1 void at::native::vectorized_elementwise_kernel<(int)4, at::native::BinaryFunctor(T1::Para… 0.0 3,434,878 4 858,719.5 857,975.5 856,167 862,760 3,016.9 void at::native::elementwise_kernel<(int)128, (int)4, void at::native::gpu_kernel_impl_nocast>(T1 *, const T1 *, unsign… 0.0 2,856,853 1,512 1,889.5 1,712.0 1,311 2,944 453.7 void cublasLt::splitKreduce_kernel<(int)32, (int)16, int, __nv_bfloat16, __nv_bfloat16, float, (boo… 0.0 2,644,615 1,863 1,419.5 1,151.0 863 16,640 1,781.0 triton_poi_fused_view_5 0.0 2,613,678 1,863 1,402.9 1,344.0 1,215 6,624 562.0 triton_poi_fused_cat_4 0.0 2,581,335 2 1,290,667.5 1,290,667.5 1,290,379 1,290,956 408.0 at::native::::fill_reverse_indices_kernel(long *, int, at::cuda::detail::IntDivider(T1::Par… 0.0 1,840,620 2,069 889.6 896.0 863 960 16.1 void at::native::vectorized_elementwise_kernel<(int)2, at::native::FillFunctor, std::array::distribution_elementwise_grid_stride_kernel, std::array::type internal::gemvx::kernel::CatArrayBatchedCopy_aligned16_contig::OpaqueType<… 0.0 99,648 69 1,444.2 1,344.0 1,216 8,704 890.0 triton_poi_fused_cat_2 0.0 97,824 69 1,417.7 1,184.0 864 14,337 1,605.4 triton_poi_fused_view_3 0.0 79,521 1 79,521.0 79,521.0 79,521 79,521 0.0 void at::native::vectorized_elementwise_kernel<(int)4, at::native::bfloat16_copy_kernel_cuda(at::Te… 0.0 64,605 58 1,113.9 896.0 895 11,328 1,368.2 void at::native::vectorized_elementwise_kernel<(int)4, at::native::FillFunctor, std:… 0.0 44,704 1 44,704.0 44,704.0 44,704 44,704 0.0 void at::native::vectorized_elementwise_kernel<(int)4, at::native::sin_kernel_cuda(at::TensorIterat… 0.0 36,892 28 1,317.6 1,312.0 1,280 1,375 23.0 void cublasLt::splitKreduce_kernel<(int)32, (int)16, int, float, __nv_bfloat16, float, (bool)0, __n… 0.0 26,657 1 26,657.0 26,657.0 26,657 26,657 0.0 void at::native::vectorized_elementwise_kernel<(int)4, at::native::cos_kernel_cuda(at::TensorIterat… 0.0 19,520 1 19,520.0 19,520.0 19,520 19,520 0.0 void at::native::elementwise_kernel<(int)128, (int)2, void at::native::gpu_kernel_impl_nocast, std::array::distribution_elementwise_grid_stride_kernel, st… 0.0 3,616 2 1,808.0 1,808.0 1,600 2,016 294.2 void at::native::elementwise_kernel<(int)128, (int)4, void at::native::gpu_kernel_impl_nocast::where_kernel_impl(at:… 0.0 3,103 2 1,551.5 1,551.5 1,120 1,983 610.2 void ::elementwise_kernel_with_index, s… 0.0 2,304 1 2,304.0 2,304.0 2,304 2,304 0.0 void at::native::elementwise_kernel<(int)128, (int)4, void at::native::gpu_kernel_impl, std::array<… [7/8] Executing 'cuda_gpu_mem_time_sum' stats report Time (%) Total Time (ns) Count Avg (ns) Med (ns) Min (ns) Max (ns) StdDev (ns) Operation -------- --------------- ------ -------- -------- -------- ----------- ----------- ------------------------------ 91.9 532,693,904 65,321 8,155.0 352.0 287 106,336,118 441,449.3 [CUDA memcpy Host-to-Device] 5.5 31,855,936 28,928 1,101.2 897.0 864 1,362,988 15,981.0 [CUDA memcpy Device-to-Device] 1.8 10,196,329 9,221 1,105.8 1,120.0 863 1,696 90.0 [CUDA memcpy Device-to-Host] 0.8 4,628,573 11,573 399.9 352.0 288 2,240 166.8 [CUDA memset] [8/8] Executing 'cuda_gpu_mem_size_sum' stats report Total (MB) Count Avg (MB) Med (MB) Min (MB) Max (MB) StdDev (MB) Operation ---------- ------ -------- -------- -------- -------- ----------- ------------------------------ 3,634.332 65,321 0.056 0.000 0.000 466.747 2.080 [CUDA memcpy Host-to-Device] 2,578.174 28,928 0.089 0.003 0.003 622.330 7.318 [CUDA memcpy Device-to-Device] 4.048 11,573 0.000 0.000 0.000 0.006 0.001 [CUDA memset] 2.077 9,221 0.000 0.000 0.000 0.001 0.000 [CUDA memcpy Device-to-Host] Generated: /data/cy/kv_cache_vs_util/sim_traverse_bs/traverse_bs_util_sim_decoding_1024.nsys-rep /data/cy/kv_cache_vs_util/sim_traverse_bs/traverse_bs_util_sim_decoding_1024.sqlite