diff --git "a/MI300x_llama8b_pp1_tp1/profiling_bs1_pl1024.json" "b/MI300x_llama8b_pp1_tp1/profiling_bs1_pl1024.json" new file mode 100644--- /dev/null +++ "b/MI300x_llama8b_pp1_tp1/profiling_bs1_pl1024.json" @@ -0,0 +1,18162 @@ +{ + "context": { + "python_version": "3.12.10 (main, Apr 9 2025, 08:55:05) [GCC 11.4.0]", + "torch_version": "2.7.0a0+git295f2ed", + "engine_args": { + "model": "deepseek-ai/DeepSeek-R1-Distill-Llama-8B", + "served_model_name": null, + "tokenizer": null, + "hf_config_path": null, + "task": "auto", + "skip_tokenizer_init": false, + "tokenizer_mode": "auto", + "trust_remote_code": false, + "allowed_local_media_path": "", + "download_dir": null, + "load_format": "dummy", + "config_format": "auto", + "dtype": "auto", + "kv_cache_dtype": "auto", + "seed": null, + "max_model_len": null, + "cuda_graph_sizes": [ + 512 + ], + "distributed_executor_backend": null, + "pipeline_parallel_size": 1, + "tensor_parallel_size": 1, + "data_parallel_size": 1, + "enable_expert_parallel": false, + "max_parallel_loading_workers": null, + "block_size": null, + "enable_prefix_caching": null, + "prefix_caching_hash_algo": "builtin", + "disable_sliding_window": false, + "disable_cascade_attn": false, + "use_v2_block_manager": true, + "swap_space": 4, + "cpu_offload_gb": 0, + "gpu_memory_utilization": 0.9, + "max_num_batched_tokens": 8000, + "max_num_partial_prefills": 1, + "max_long_partial_prefills": 1, + "long_prefill_token_threshold": 0, + "max_num_seqs": null, + "max_logprobs": 20, + "disable_log_stats": false, + "revision": null, + "code_revision": null, + "rope_scaling": {}, + "rope_theta": null, + "hf_token": null, + "hf_overrides": {}, + "tokenizer_revision": null, + "quantization": null, + "enforce_eager": true, + "max_seq_len_to_capture": 8192, + "disable_custom_all_reduce": false, + "tokenizer_pool_size": 0, + "tokenizer_pool_type": "ray", + "tokenizer_pool_extra_config": {}, + "limit_mm_per_prompt": {}, + "mm_processor_kwargs": null, + "disable_mm_preprocessor_cache": false, + "enable_lora": null, + "enable_lora_bias": false, + "max_loras": 1, + "max_lora_rank": 16, + "fully_sharded_loras": false, + "max_cpu_loras": null, + "lora_dtype": "auto", + "lora_extra_vocab_size": 256, + "long_lora_scaling_factors": null, + "enable_prompt_adapter": null, + "max_prompt_adapters": 1, + "max_prompt_adapter_token": 0, + "device": "auto", + "num_scheduler_steps": 1, + "multi_step_stream_outputs": true, + "ray_workers_use_nsight": false, + "num_gpu_blocks_override": null, + "num_lookahead_slots": 0, + "model_loader_extra_config": {}, + "ignore_patterns": null, + "preemption_mode": null, + "scheduler_delay_factor": 0.0, + "enable_chunked_prefill": null, + "disable_chunked_mm_input": false, + "guided_decoding_backend": "xgrammar", + "guided_decoding_disable_fallback": false, + "guided_decoding_disable_any_whitespace": false, + "guided_decoding_disable_additional_properties": false, + "logits_processor_pattern": null, + "speculative_config": null, + "qlora_adapter_name_or_path": null, + "show_hidden_metrics_for_version": null, + "otlp_traces_endpoint": null, + "collect_detailed_traces": null, + "disable_async_output_proc": false, + "scheduling_policy": "fcfs", + "scheduler_cls": "vllm.core.scheduler.Scheduler", + "override_neuron_config": {}, + "override_pooler_config": null, + "compilation_config": null, + "worker_cls": "auto", + "worker_extension_cls": "", + "kv_transfer_config": null, + "kv_events_config": null, + "generation_config": "auto", + "enable_sleep_mode": false, + "override_generation_config": {}, + "model_impl": "auto", + "calculate_kv_scales": false, + "additional_config": null, + "enable_reasoning": null, + "reasoning_parser": "", + "use_tqdm_on_load": true, + "pt_load_map_location": "cpu" + }, + "prompt_len": 0, + "batch_size": 1, + "num_steps": 2, + "complete_num_requests_per_step": null, + "save_chrome_traces_folder": null + }, + "prefill": { + "metadata": { + "num_running_seqs": null + }, + "summary_stats": [ + { + "entry": { + "name": "LlamaForCausalLM", + "cuda_time_us": 44966.679999999986, + "pct_cuda_time": 98.92162626665385, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "VocabParallelEmbedding(weight=bfloat16[128256, 4096])", + "cuda_time_us": 49.843, + "pct_cuda_time": 0.10964898048974996, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectLargeIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, unsigned int, long)", + "cuda_time_us": 49.843, + "pct_cuda_time": 0.10964898048974996, + "invocations": 1 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cuda_time_us": 44891.19999999999, + "pct_cuda_time": 98.75557877658771, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cuda_time_us": 1535.9800000000005, + "pct_cuda_time": 3.3789828271301117, + "invocations": 64 + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::rms_norm_kernel(c10::BFloat16*, c10::BFloat16 const*, c10::BFloat16 const*, float, int, unsigned long, unsigned long)", + "cuda_time_us": 9.173, + "pct_cuda_time": 0.0201795657972529, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cuda_time_us": 1526.8070000000005, + "pct_cuda_time": 3.3588032613328584, + "invocations": 63 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cuda_time_us": 16533.114999999998, + "pct_cuda_time": 36.37098898681443, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cuda_time_us": 4194.557999999999, + "pct_cuda_time": 9.22755468782225, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cuda_time_us": 4194.557999999999, + "pct_cuda_time": 9.22755468782225, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cuda_time_us": 1639.5679999999995, + "pct_cuda_time": 3.606864748181656, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 1107.3249999999998, + "pct_cuda_time": 2.435990155504531, + "invocations": 128 + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cuda_time_us": 532.2429999999998, + "pct_cuda_time": 1.1708745926771253, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cuda_time_us": 7278.161000000002, + "pct_cuda_time": 16.011133629401503, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cuda_time_us": 462.0590000000001, + "pct_cuda_time": 1.0164777055175929, + "invocations": 32 + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cuda_time_us": 6816.102000000003, + "pct_cuda_time": 14.994655923883911, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cuda_time_us": 3420.8279999999995, + "pct_cuda_time": 7.525435921409029, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cuda_time_us": 3420.8279999999995, + "pct_cuda_time": 7.525435921409029, + "invocations": 32 + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cuda_time_us": 26822.105, + "pct_cuda_time": 59.005606962643185, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cuda_time_us": 15696.740000000002, + "pct_cuda_time": 34.531058283263, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cuda_time_us": 15696.740000000002, + "pct_cuda_time": 34.531058283263, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cuda_time_us": 1436.8529999999998, + "pct_cuda_time": 3.1609146031265904, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cuda_time_us": 1436.8529999999998, + "pct_cuda_time": 3.1609146031265904, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cuda_time_us": 9688.512, + "pct_cuda_time": 21.313634076253603, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cuda_time_us": 9265.370999999997, + "pct_cuda_time": 20.382771582956373, + "invocations": 32 + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cuda_time_us": 423.141, + "pct_cuda_time": 0.9308624932972189, + "invocations": 32 + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cuda_time_us": 25.637, + "pct_cuda_time": 0.05639850957638423, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cuda_time_us": 25.637, + "pct_cuda_time": 0.05639850957638423, + "invocations": 1 + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "LogitsProcessor", + "cuda_time_us": 238.754, + "pct_cuda_time": 0.5252318818660545, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectSmallIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, long)", + "cuda_time_us": 4.846, + "pct_cuda_time": 0.010660653641500878, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cuda_time_us": 233.908, + "pct_cuda_time": 0.5145712282245536, + "invocations": 1 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Sampler", + "cuda_time_us": 251.44100000000003, + "pct_cuda_time": 0.5531418514801119, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cuda_time_us": 34.605000000000004, + "pct_cuda_time": 0.07612709848620261, + "invocations": 7 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 2.803, + "pct_cuda_time": 0.006166283977946132, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2}>(int, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2})", + "cuda_time_us": 13.98, + "pct_cuda_time": 0.03075442383577843, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::SoftMaxForwardEpilogue>(float*, float const*, int)", + "cuda_time_us": 81.641, + "pct_cuda_time": 0.1796009954489833, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::LogSoftMaxForwardEpilogue>(float*, float const*, int)", + "cuda_time_us": 46.148, + "pct_cuda_time": 0.10152039707964972, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 5.127, + "pct_cuda_time": 0.011278821960374533, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::index_elementwise_kernel<128, 4, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1}>(long, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 7.65, + "pct_cuda_time": 0.01682913750670279, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::reduce_kernel<512, 1, at::native::ReduceOp, unsigned int, long, 4, 4> >(at::native::ReduceOp, unsigned int, long, 4, 4>)", + "cuda_time_us": 53.92, + "pct_cuda_time": 0.11861792083155744, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoH (Device -> Host)", + "cuda_time_us": 5.567, + "pct_cuda_time": 0.01224677235291692, + "invocations": 1 + }, + "children": [] + } + ] + } + ], + "model_stats": [ + { + "entry": { + "name": "LlamaForCausalLM", + "cpu_time_us": 35279.387, + "cuda_time_us": 44966.679999999986, + "pct_cuda_time": 98.92162626665385, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "VocabParallelEmbedding(weight=bfloat16[128256, 4096])", + "cpu_time_us": 57.816, + "cuda_time_us": 49.843, + "pct_cuda_time": 0.10964898048974996, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectLargeIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, unsigned int, long)", + "cpu_time_us": 0, + "cuda_time_us": 49.843, + "pct_cuda_time": 0.10964898048974996, + "trace": "index_select(bfloat16[128256, 4096], 0, int64[1024]) <- embedding(bfloat16[128256, 4096], int64[1024], -1, False, False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1648.201, + "cuda_time_us": 1604.2009999999998, + "pct_cuda_time": 3.529061335606551, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 81.501, + "cuda_time_us": 9.173, + "pct_cuda_time": 0.0201795657972529, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::rms_norm_kernel(c10::BFloat16*, c10::BFloat16 const*, c10::BFloat16 const*, float, int, unsigned long, unsigned long)", + "cpu_time_us": 0, + "cuda_time_us": 9.173, + "pct_cuda_time": 0.0201795657972529, + "trace": "_C::rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 1216.036, + "cuda_time_us": 530.343, + "pct_cuda_time": 1.1666948068911471, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 226.418, + "cuda_time_us": 162.331, + "pct_cuda_time": 0.35710989811772154, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 162.331, + "pct_cuda_time": 0.35710989811772154, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 98.768, + "cuda_time_us": 47.747, + "pct_cuda_time": 0.10503801680163895, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.375, + "pct_cuda_time": 0.022823830278698224, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.247, + "pct_cuda_time": 0.011542808431067912, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 18.106, + "pct_cuda_time": 0.03983115865311904, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 9.613, + "pct_cuda_time": 0.02114751618979528, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 4.406, + "pct_cuda_time": 0.009692703248958493, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 715.338, + "cuda_time_us": 191.925, + "pct_cuda_time": 0.42221336156522, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 13.78, + "pct_cuda_time": 0.030314446384622797, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 178.145, + "pct_cuda_time": 0.39189891518059716, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 115.282, + "cuda_time_us": 128.34, + "pct_cuda_time": 0.2823335304065668, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 128.34, + "pct_cuda_time": 0.2823335304065668, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 46.59, + "cuda_time_us": 26.709, + "pct_cuda_time": 0.058756788714578394, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 26.709, + "pct_cuda_time": 0.058756788714578394, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 277.364, + "cuda_time_us": 1037.9759999999999, + "pct_cuda_time": 2.2834301742035725, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 104.546, + "cuda_time_us": 615.348, + "pct_cuda_time": 1.353696223068568, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 615.348, + "pct_cuda_time": 1.353696223068568, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 36.634, + "cuda_time_us": 51.295, + "pct_cuda_time": 0.11284321678513981, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 51.295, + "pct_cuda_time": 0.11284321678513981, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 110.094, + "cuda_time_us": 371.33299999999997, + "pct_cuda_time": 0.8168907343498647, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 356.972, + "pct_cuda_time": 0.7852981534696348, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 14.361, + "pct_cuda_time": 0.0315925808802299, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1128.745, + "cuda_time_us": 1513.0840000000003, + "pct_cuda_time": 3.328614208521815, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.3, + "cuda_time_us": 21.711, + "pct_cuda_time": 0.04776175221019924, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 21.711, + "pct_cuda_time": 0.04776175221019924, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 775.137, + "cuda_time_us": 535.791, + "pct_cuda_time": 1.1786797926606265, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 93.029, + "cuda_time_us": 163.263, + "pct_cuda_time": 0.3591601930401068, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 163.263, + "pct_cuda_time": 0.3591601930401068, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 84.185, + "cuda_time_us": 46.94499999999999, + "pct_cuda_time": 0.10327370722250485, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.136, + "pct_cuda_time": 0.02449794448034539, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.206, + "pct_cuda_time": 0.011452613053581008, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.102, + "pct_cuda_time": 0.0332226973367615, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.174, + "pct_cuda_time": 0.022381652940286816, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.327, + "pct_cuda_time": 0.011718799411530163, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 452.646, + "cuda_time_us": 203.662, + "pct_cuda_time": 0.448033438286288, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 13.78, + "pct_cuda_time": 0.030314446384622797, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 189.882, + "pct_cuda_time": 0.4177189919016652, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 107.751, + "cuda_time_us": 121.921, + "pct_cuda_time": 0.2682124541117269, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 121.921, + "pct_cuda_time": 0.2682124541117269, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.881, + "cuda_time_us": 23.594, + "pct_cuda_time": 0.05190413991282949, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.594, + "pct_cuda_time": 0.05190413991282949, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 247.76, + "cuda_time_us": 931.988, + "pct_cuda_time": 2.0502685237381595, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 94.391, + "cuda_time_us": 555.599, + "pct_cuda_time": 1.22225515942308, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 555.599, + "pct_cuda_time": 1.22225515942308, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 30.325, + "cuda_time_us": 45.287, + "pct_cuda_time": 0.09962629415242472, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 45.287, + "pct_cuda_time": 0.09962629415242472, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 103.484, + "cuda_time_us": 331.10200000000003, + "pct_cuda_time": 0.7283870701626545, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 318.324, + "pct_cuda_time": 0.7002769108083213, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.778, + "pct_cuda_time": 0.0281101593543331, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1130.739, + "cuda_time_us": 1446.845, + "pct_cuda_time": 3.182895876586326, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.23, + "cuda_time_us": 26.358, + "pct_cuda_time": 0.057984628287800266, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 26.358, + "pct_cuda_time": 0.057984628287800266, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 783.149, + "cuda_time_us": 529.292, + "pct_cuda_time": 1.1643827253853245, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 93.109, + "cuda_time_us": 147.089, + "pct_cuda_time": 0.32357921656515115, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 147.089, + "pct_cuda_time": 0.32357921656515115, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 88.973, + "cuda_time_us": 48.507, + "pct_cuda_time": 0.10670993111603035, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.416, + "pct_cuda_time": 0.025113912911963274, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.407, + "pct_cuda_time": 0.011894790391992413, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.983, + "pct_cuda_time": 0.035160798009102046, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.575, + "pct_cuda_time": 0.023263807729853852, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.126, + "pct_cuda_time": 0.011276622073118758, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 457.423, + "cuda_time_us": 227.298, + "pct_cuda_time": 0.5000299734638601, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 13.94, + "pct_cuda_time": 0.0306664283455473, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 213.358, + "pct_cuda_time": 0.4693635451183129, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 106.699, + "cuda_time_us": 106.398, + "pct_cuda_time": 0.23406360424028275, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 106.398, + "pct_cuda_time": 0.23406360424028275, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 42.112, + "cuda_time_us": 24.195, + "pct_cuda_time": 0.05322627215355215, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.195, + "pct_cuda_time": 0.05322627215355215, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 239.588, + "cuda_time_us": 867.0, + "pct_cuda_time": 1.907302250759649, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 94.201, + "cuda_time_us": 494.828, + "pct_cuda_time": 1.0885658110021865, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 494.828, + "pct_cuda_time": 1.0885658110021865, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 28.502, + "cuda_time_us": 49.192, + "pct_cuda_time": 0.10821685388623836, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 49.192, + "pct_cuda_time": 0.10821685388623836, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 98.677, + "cuda_time_us": 322.97999999999996, + "pct_cuda_time": 0.7105195858712243, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 310.443, + "pct_cuda_time": 0.6829395993455337, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.537, + "pct_cuda_time": 0.027579986525690568, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1099.411, + "cuda_time_us": 1423.3899999999999, + "pct_cuda_time": 3.1312975210020495, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.125, + "cuda_time_us": 23.314, + "pct_cuda_time": 0.051288171481211606, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.314, + "pct_cuda_time": 0.051288171481211606, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 756.179, + "cuda_time_us": 521.92, + "pct_cuda_time": 1.1481651565357278, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 90.685, + "cuda_time_us": 142.261, + "pct_cuda_time": 0.31295816089425427, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 142.261, + "pct_cuda_time": 0.31295816089425427, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 89.314, + "cuda_time_us": 50.03, + "pct_cuda_time": 0.11006035940658045, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.416, + "pct_cuda_time": 0.025113912911963274, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.608, + "pct_cuda_time": 0.01233696773040382, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.864, + "pct_cuda_time": 0.03709889868144259, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.895, + "pct_cuda_time": 0.023967771651702857, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.247, + "pct_cuda_time": 0.011542808431067912, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 437.944, + "cuda_time_us": 215.83999999999997, + "pct_cuda_time": 0.4748236652871541, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.14, + "pct_cuda_time": 0.03110640579670293, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 201.7, + "pct_cuda_time": 0.44371725949045127, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.742, + "cuda_time_us": 113.789, + "pct_cuda_time": 0.25032297094773903, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 113.789, + "pct_cuda_time": 0.25032297094773903, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 42.313, + "cuda_time_us": 23.674, + "pct_cuda_time": 0.052080130893291735, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.674, + "pct_cuda_time": 0.052080130893291735, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 239.548, + "cuda_time_us": 854.482, + "pct_cuda_time": 1.8797640620918181, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 88.963, + "cuda_time_us": 502.409, + "pct_cuda_time": 1.1052431562882405, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 502.409, + "pct_cuda_time": 1.1052431562882405, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.781, + "cuda_time_us": 43.444, + "pct_cuda_time": 0.09557190194002561, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.444, + "pct_cuda_time": 0.09557190194002561, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 101.692, + "cuda_time_us": 308.629, + "pct_cuda_time": 0.6789490038635523, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 295.611, + "pct_cuda_time": 0.6503108715678324, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.018, + "pct_cuda_time": 0.02863813229571986, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1103.688, + "cuda_time_us": 1513.104, + "pct_cuda_time": 3.32865820626693, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.276, + "cuda_time_us": 23.033, + "pct_cuda_time": 0.05067000316233795, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.033, + "pct_cuda_time": 0.05067000316233795, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 758.863, + "cuda_time_us": 518.165, + "pct_cuda_time": 1.139904579890281, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 87.04, + "cuda_time_us": 146.749, + "pct_cuda_time": 0.3228312548981866, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 146.749, + "pct_cuda_time": 0.3228312548981866, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 87.371, + "cuda_time_us": 47.986000000000004, + "pct_cuda_time": 0.10556378985576993, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.135, + "pct_cuda_time": 0.024495744593089612, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.527, + "pct_cuda_time": 0.012158776862685792, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.663, + "pct_cuda_time": 0.034456834087253044, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.494, + "pct_cuda_time": 0.023085616862135824, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.167, + "pct_cuda_time": 0.01136681745060566, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 442.871, + "cuda_time_us": 208.429, + "pct_cuda_time": 0.45852030083458234, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 13.82, + "pct_cuda_time": 0.03040244187485392, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 194.609, + "pct_cuda_time": 0.42811785895972854, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 104.536, + "cuda_time_us": 115.001, + "pct_cuda_time": 0.2529892343017421, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 115.001, + "pct_cuda_time": 0.2529892343017421, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.3, + "cuda_time_us": 23.715, + "pct_cuda_time": 0.05217032627077864, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.715, + "pct_cuda_time": 0.05217032627077864, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 243.764, + "cuda_time_us": 948.191, + "pct_cuda_time": 2.085913296943532, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 90.455, + "cuda_time_us": 559.484, + "pct_cuda_time": 1.2308017214117781, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 559.484, + "pct_cuda_time": 1.2308017214117781, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 31.217, + "cuda_time_us": 48.882, + "pct_cuda_time": 0.10753488883694713, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 48.882, + "pct_cuda_time": 0.10753488883694713, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 101.581, + "cuda_time_us": 339.825, + "pct_cuda_time": 0.747576686694807, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 326.646, + "pct_cuda_time": 0.718584372550907, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.179, + "pct_cuda_time": 0.028992314143900133, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1108.355, + "cuda_time_us": 1515.348, + "pct_cuda_time": 3.333594753268896, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.367, + "cuda_time_us": 23.634, + "pct_cuda_time": 0.05199213540306061, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.634, + "pct_cuda_time": 0.05199213540306061, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 762.529, + "cuda_time_us": 514.41, + "pct_cuda_time": 1.131644003244834, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 89.693, + "cuda_time_us": 149.332, + "pct_cuda_time": 0.3285135636798615, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 149.332, + "pct_cuda_time": 0.3285135636798615, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 87.52, + "cuda_time_us": 47.626000000000005, + "pct_cuda_time": 0.1047718304436898, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.096, + "pct_cuda_time": 0.024409948990114262, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.487, + "pct_cuda_time": 0.012070781372454665, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.462, + "pct_cuda_time": 0.03401465674884163, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.295, + "pct_cuda_time": 0.02264783929823597, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.286, + "pct_cuda_time": 0.011628604034043259, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 444.864, + "cuda_time_us": 210.232, + "pct_cuda_time": 0.46248669755675037, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.581, + "pct_cuda_time": 0.03207655607650109, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 195.651, + "pct_cuda_time": 0.4304101414802493, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 104.206, + "cuda_time_us": 107.22, + "pct_cuda_time": 0.2358719115645324, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 107.22, + "pct_cuda_time": 0.2358719115645324, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.791, + "cuda_time_us": 22.833, + "pct_cuda_time": 0.05023002571118232, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.833, + "pct_cuda_time": 0.05023002571118232, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 240.82, + "cuda_time_us": 954.471, + "pct_cuda_time": 2.0997285889098194, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 92.789, + "cuda_time_us": 547.296, + "pct_cuda_time": 1.203989495538354, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 547.296, + "pct_cuda_time": 1.203989495538354, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 29.864, + "cuda_time_us": 50.354, + "pct_cuda_time": 0.11077312287745256, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 50.354, + "pct_cuda_time": 0.11077312287745256, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 99.859, + "cuda_time_us": 356.82099999999997, + "pct_cuda_time": 0.7849659704940124, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 342.4, + "pct_cuda_time": 0.7532413963784358, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 14.421, + "pct_cuda_time": 0.03172457411557658, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1079.742, + "cuda_time_us": 1513.004, + "pct_cuda_time": 3.328438217541352, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.403, + "cuda_time_us": 22.192, + "pct_cuda_time": 0.048819897980228524, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.192, + "pct_cuda_time": 0.048819897980228524, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 759.194, + "cuda_time_us": 522.751, + "pct_cuda_time": 1.1499932628452794, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 99.639, + "cuda_time_us": 156.502, + "pct_cuda_time": 0.3442867553037908, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 156.502, + "pct_cuda_time": 0.3442867553037908, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 76.494, + "cuda_time_us": 48.187, + "pct_cuda_time": 0.10600596719418133, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.815, + "pct_cuda_time": 0.023791780671240607, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.928, + "pct_cuda_time": 0.013040931652252827, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.983, + "pct_cuda_time": 0.035160798009102046, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.415, + "pct_cuda_time": 0.022911825768929348, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.046, + "pct_cuda_time": 0.011100631092656505, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 437.122, + "cuda_time_us": 200.21699999999998, + "pct_cuda_time": 0.44045482669013225, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 13.94, + "pct_cuda_time": 0.0306664283455473, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 186.277, + "pct_cuda_time": 0.4097883983445849, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.502, + "cuda_time_us": 117.845, + "pct_cuda_time": 0.25924571365717514, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 117.845, + "pct_cuda_time": 0.25924571365717514, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.448, + "cuda_time_us": 23.314, + "pct_cuda_time": 0.051288171481211606, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.314, + "pct_cuda_time": 0.051288171481211606, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 225.346, + "cuda_time_us": 944.7470000000001, + "pct_cuda_time": 2.0783368852346324, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 89.213, + "cuda_time_us": 558.313, + "pct_cuda_time": 1.2282256534352618, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 558.313, + "pct_cuda_time": 1.2282256534352618, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.07, + "cuda_time_us": 48.321, + "pct_cuda_time": 0.1063007520864556, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 48.321, + "pct_cuda_time": 0.1063007520864556, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.986, + "cuda_time_us": 338.113, + "pct_cuda_time": 0.7438104797129149, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 325.535, + "pct_cuda_time": 0.7161402978097375, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.578, + "pct_cuda_time": 0.027670181903177472, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1055.636, + "cuda_time_us": 1470.208, + "pct_cuda_time": 3.234291842543071, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.622, + "cuda_time_us": 23.674, + "pct_cuda_time": 0.052080130893291735, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.674, + "pct_cuda_time": 0.052080130893291735, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 738.883, + "cuda_time_us": 518.654, + "pct_cuda_time": 1.1409803247583565, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 86.859, + "cuda_time_us": 145.917, + "pct_cuda_time": 0.32100094870137913, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 145.917, + "pct_cuda_time": 0.32100094870137913, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 77.085, + "cuda_time_us": 48.586999999999996, + "pct_cuda_time": 0.10688592209649257, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.336, + "pct_cuda_time": 0.02493792193150102, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.487, + "pct_cuda_time": 0.012070781372454665, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.462, + "pct_cuda_time": 0.03401465674884163, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.975, + "pct_cuda_time": 0.024143762632165108, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.327, + "pct_cuda_time": 0.011718799411530163, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 437.974, + "cuda_time_us": 208.869, + "pct_cuda_time": 0.4594882512271248, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.22, + "pct_cuda_time": 0.03128239677716518, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 194.649, + "pct_cuda_time": 0.42820585444995957, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 100.82, + "cuda_time_us": 115.281, + "pct_cuda_time": 0.25360520273336, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 115.281, + "pct_cuda_time": 0.25360520273336, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.528, + "cuda_time_us": 22.793, + "pct_cuda_time": 0.05014203022095119, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.793, + "pct_cuda_time": 0.05014203022095119, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 223.053, + "cuda_time_us": 905.087, + "pct_cuda_time": 1.9910893566704713, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 85.858, + "cuda_time_us": 537.662, + "pct_cuda_time": 1.1827957817161874, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 537.662, + "pct_cuda_time": 1.1827957817161874, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.641, + "cuda_time_us": 46.668, + "pct_cuda_time": 0.10266433845265432, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 46.668, + "pct_cuda_time": 0.10266433845265432, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 91.857, + "cuda_time_us": 320.757, + "pct_cuda_time": 0.7056292365016296, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 307.819, + "pct_cuda_time": 0.677167095186372, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.938, + "pct_cuda_time": 0.028462141315257605, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1038.921, + "cuda_time_us": 1418.554, + "pct_cuda_time": 3.1206588662331067, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 33.951, + "cuda_time_us": 24.596, + "pct_cuda_time": 0.05410842694311918, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.596, + "pct_cuda_time": 0.05410842694311918, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 724.512, + "cuda_time_us": 516.412, + "pct_cuda_time": 1.1360481775309021, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 80.59, + "cuda_time_us": 139.287, + "pct_cuda_time": 0.3064156961955701, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 139.287, + "pct_cuda_time": 0.3064156961955701, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.121, + "cuda_time_us": 48.948, + "pct_cuda_time": 0.1076800813958285, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.536, + "pct_cuda_time": 0.02537789938265665, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.728, + "pct_cuda_time": 0.012600954201097197, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.382, + "pct_cuda_time": 0.03383866576837938, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.935, + "pct_cuda_time": 0.024055767141933984, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.367, + "pct_cuda_time": 0.01180679490176129, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 429.02, + "cuda_time_us": 223.332, + "pct_cuda_time": 0.49130522060744397, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.18, + "pct_cuda_time": 0.031194401286934056, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 209.152, + "pct_cuda_time": 0.4601108193205099, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.261, + "cuda_time_us": 104.845, + "pct_cuda_time": 0.23064717933205928, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 104.845, + "pct_cuda_time": 0.23064717933205928, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.149, + "cuda_time_us": 22.954, + "pct_cuda_time": 0.05049621206913148, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.954, + "pct_cuda_time": 0.05049621206913148, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 219.748, + "cuda_time_us": 854.5920000000001, + "pct_cuda_time": 1.8800060496899542, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.937, + "cuda_time_us": 515.629, + "pct_cuda_time": 1.1343256658096277, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 515.629, + "pct_cuda_time": 1.1343256658096277, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.971, + "cuda_time_us": 43.533, + "pct_cuda_time": 0.09576769190578986, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.533, + "pct_cuda_time": 0.09576769190578986, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.204, + "cuda_time_us": 295.43, + "pct_cuda_time": 0.6499126919745365, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 282.331, + "pct_cuda_time": 0.6210963688110986, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.099, + "pct_cuda_time": 0.028816323163437886, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1065.801, + "cuda_time_us": 1349.118, + "pct_cuda_time": 2.967907494740895, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.834, + "cuda_time_us": 24.996, + "pct_cuda_time": 0.05498838184543044, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.996, + "pct_cuda_time": 0.05498838184543044, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 733.986, + "cuda_time_us": 503.302, + "pct_cuda_time": 1.1072076556076504, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 84.767, + "cuda_time_us": 120.459, + "pct_cuda_time": 0.2649962189437792, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.459, + "pct_cuda_time": 0.2649962189437792, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 75.432, + "cuda_time_us": 51.832, + "pct_cuda_time": 0.11402455624149267, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.936, + "pct_cuda_time": 0.0262578542849679, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.529, + "pct_cuda_time": 0.01436306389297549, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.063, + "pct_cuda_time": 0.03533678898956429, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.817, + "pct_cuda_time": 0.025996067701530304, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.487, + "pct_cuda_time": 0.012070781372454665, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 438.234, + "cuda_time_us": 230.983, + "pct_cuda_time": 0.5081365580014027, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.14, + "pct_cuda_time": 0.03110640579670293, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 216.843, + "pct_cuda_time": 0.47703015220469963, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 99.578, + "cuda_time_us": 100.028, + "pct_cuda_time": 0.220050322420976, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 100.028, + "pct_cuda_time": 0.220050322420976, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.606, + "cuda_time_us": 24.355, + "pct_cuda_time": 0.053578254114476656, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.355, + "pct_cuda_time": 0.053578254114476656, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 233.719, + "cuda_time_us": 796.4649999999999, + "pct_cuda_time": 1.7521332031733376, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 97.506, + "cuda_time_us": 464.893, + "pct_cuda_time": 1.0227121860004678, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 464.893, + "pct_cuda_time": 1.0227121860004678, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.681, + "cuda_time_us": 43.424, + "pct_cuda_time": 0.09552790419491004, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.424, + "pct_cuda_time": 0.09552790419491004, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.935, + "cuda_time_us": 288.148, + "pct_cuda_time": 0.6338931129779601, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 274.529, + "pct_cuda_time": 0.6039328484415175, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.619, + "pct_cuda_time": 0.029960264536442516, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1081.595, + "cuda_time_us": 1288.4589999999998, + "pct_cuda_time": 2.834464533692649, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 42.454, + "cuda_time_us": 24.396, + "pct_cuda_time": 0.05366844949196356, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.396, + "pct_cuda_time": 0.05366844949196356, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 734.297, + "cuda_time_us": 520.778, + "pct_cuda_time": 1.1456528852896293, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 87.701, + "cuda_time_us": 121.109, + "pct_cuda_time": 0.266426145660035, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 121.109, + "pct_cuda_time": 0.266426145660035, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 76.514, + "cuda_time_us": 53.635999999999996, + "pct_cuda_time": 0.11799315285091641, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.298, + "pct_cuda_time": 0.02705421347155959, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.208, + "pct_cuda_time": 0.013656900083870707, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.505, + "pct_cuda_time": 0.038509026412396376, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.817, + "pct_cuda_time": 0.025996067701530304, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.808, + "pct_cuda_time": 0.012776945181559448, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 435.18, + "cuda_time_us": 244.562, + "pct_cuda_time": 0.5380088270476141, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 15.101, + "pct_cuda_time": 0.033220497449505726, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 229.461, + "pct_cuda_time": 0.5047883295981083, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 99.138, + "cuda_time_us": 101.471, + "pct_cuda_time": 0.22322475973106387, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 101.471, + "pct_cuda_time": 0.22322475973106387, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 53.41, + "cuda_time_us": 24.115, + "pct_cuda_time": 0.053050281173089894, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.115, + "pct_cuda_time": 0.053050281173089894, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 228.38, + "cuda_time_us": 719.17, + "pct_cuda_time": 1.5820929177379663, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 87.611, + "cuda_time_us": 412.575, + "pct_cuda_time": 0.9076184845526669, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 412.575, + "pct_cuda_time": 0.9076184845526669, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.209, + "cuda_time_us": 41.861, + "pct_cuda_time": 0.0920894804141288, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 41.861, + "pct_cuda_time": 0.0920894804141288, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 96.565, + "cuda_time_us": 264.734, + "pct_cuda_time": 0.5823849527711705, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 251.355, + "pct_cuda_time": 0.5529526611761149, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.379, + "pct_cuda_time": 0.02943229159505576, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1054.995, + "cuda_time_us": 1284.523, + "pct_cuda_time": 2.825805777453906, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 33.63, + "cuda_time_us": 24.956, + "pct_cuda_time": 0.05490038635519931, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.956, + "pct_cuda_time": 0.05490038635519931, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 736.98, + "cuda_time_us": 535.03, + "pct_cuda_time": 1.1770056784589793, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 84.667, + "cuda_time_us": 121.62, + "pct_cuda_time": 0.26755028804773767, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 121.62, + "pct_cuda_time": 0.26755028804773767, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 76.864, + "cuda_time_us": 54.276, + "pct_cuda_time": 0.11940108069461444, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.738, + "pct_cuda_time": 0.028022163864101973, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.369, + "pct_cuda_time": 0.014011081932050987, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.064, + "pct_cuda_time": 0.037538876132598216, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.057, + "pct_cuda_time": 0.026524040642917062, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.048, + "pct_cuda_time": 0.013304918122946204, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 428.139, + "cuda_time_us": 251.654, + "pct_cuda_time": 0.5536104274655925, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.341, + "pct_cuda_time": 0.031548583135114334, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 237.313, + "pct_cuda_time": 0.5220618443304782, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.421, + "cuda_time_us": 107.48, + "pct_cuda_time": 0.23644388225103471, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 107.48, + "pct_cuda_time": 0.23644388225103471, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.647, + "cuda_time_us": 26.238, + "pct_cuda_time": 0.057720641817106885, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 26.238, + "pct_cuda_time": 0.057720641817106885, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 224.755, + "cuda_time_us": 698.299, + "pct_cuda_time": 1.5361790708226206, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.606, + "cuda_time_us": 393.386, + "pct_cuda_time": 0.8654048480015402, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 393.386, + "pct_cuda_time": 0.8654048480015402, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 28.162, + "cuda_time_us": 42.323, + "pct_cuda_time": 0.09310582832629831, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 42.323, + "pct_cuda_time": 0.09310582832629831, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 92.749, + "cuda_time_us": 262.59, + "pct_cuda_time": 0.5776683944947822, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 249.13, + "pct_cuda_time": 0.5480579120320086, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.46, + "pct_cuda_time": 0.029610482462773795, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1041.284, + "cuda_time_us": 1296.98, + "pct_cuda_time": 2.8532097729991346, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.101, + "cuda_time_us": 26.398, + "pct_cuda_time": 0.05807262377803139, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 26.398, + "pct_cuda_time": 0.05807262377803139, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 726.665, + "cuda_time_us": 545.204, + "pct_cuda_time": 1.199387331399266, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 84.706, + "cuda_time_us": 122.101, + "pct_cuda_time": 0.2686084338177669, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 122.101, + "pct_cuda_time": 0.2686084338177669, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 75.312, + "cuda_time_us": 55.037000000000006, + "pct_cuda_time": 0.1210751948962616, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.858, + "pct_cuda_time": 0.02828615033479535, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.449, + "pct_cuda_time": 0.014187072912513239, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.425, + "pct_cuda_time": 0.03833303543193413, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.337, + "pct_cuda_time": 0.027140009074534937, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.968, + "pct_cuda_time": 0.01312892714248395, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 429.601, + "cuda_time_us": 252.815, + "pct_cuda_time": 0.556164496569551, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.741, + "pct_cuda_time": 0.03242853803742559, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 238.074, + "pct_cuda_time": 0.5237359585321255, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 100.28, + "cuda_time_us": 115.251, + "pct_cuda_time": 0.25353920611568664, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 115.251, + "pct_cuda_time": 0.25353920611568664, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.577, + "cuda_time_us": 24.956, + "pct_cuda_time": 0.05490038635519931, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.956, + "pct_cuda_time": 0.05490038635519931, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 220.59, + "cuda_time_us": 700.422, + "pct_cuda_time": 1.5408494314666379, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.305, + "cuda_time_us": 391.824, + "pct_cuda_time": 0.8619686241080147, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 391.824, + "pct_cuda_time": 0.8619686241080147, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.832, + "cuda_time_us": 43.354, + "pct_cuda_time": 0.09537391208700557, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.354, + "pct_cuda_time": 0.09537391208700557, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.615, + "cuda_time_us": 265.244, + "pct_cuda_time": 0.5835068952716176, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 251.104, + "pct_cuda_time": 0.5524004894749146, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 14.14, + "pct_cuda_time": 0.03110640579670293, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1073.703, + "cuda_time_us": 1301.569, + "pct_cuda_time": 2.8633050556159003, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.241, + "cuda_time_us": 24.636, + "pct_cuda_time": 0.05419642243335031, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.636, + "pct_cuda_time": 0.05419642243335031, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 756.329, + "cuda_time_us": 523.854, + "pct_cuda_time": 1.152419738488403, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 86.799, + "cuda_time_us": 120.379, + "pct_cuda_time": 0.26482022796331695, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.379, + "pct_cuda_time": 0.26482022796331695, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.872, + "cuda_time_us": 55.558, + "pct_cuda_time": 0.12222133615652203, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.537, + "pct_cuda_time": 0.027579986525690568, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.329, + "pct_cuda_time": 0.01392308644181986, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 18.106, + "pct_cuda_time": 0.03983115865311904, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.698, + "pct_cuda_time": 0.02793416837387085, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.888, + "pct_cuda_time": 0.0129529361620217, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 447.819, + "cuda_time_us": 245.525, + "pct_cuda_time": 0.5401273184749283, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.821, + "pct_cuda_time": 0.032604529017887844, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 230.704, + "pct_cuda_time": 0.5075227894570405, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 110.435, + "cuda_time_us": 102.392, + "pct_cuda_time": 0.2252508558936355, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 102.392, + "pct_cuda_time": 0.2252508558936355, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.44, + "cuda_time_us": 24.836, + "pct_cuda_time": 0.05463639988450593, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.836, + "pct_cuda_time": 0.05463639988450593, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 221.411, + "cuda_time_us": 728.2429999999999, + "pct_cuda_time": 1.6020524948096415, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 86.268, + "cuda_time_us": 404.893, + "pct_cuda_time": 0.8907189506537792, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 404.893, + "pct_cuda_time": 0.8907189506537792, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.27, + "cuda_time_us": 42.803, + "pct_cuda_time": 0.0941617742090718, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 42.803, + "pct_cuda_time": 0.0941617742090718, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.455, + "cuda_time_us": 280.54699999999997, + "pct_cuda_time": 0.6171717699467903, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 266.888, + "pct_cuda_time": 0.5871235099201167, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.659, + "pct_cuda_time": 0.030048260026673646, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1052.18, + "cuda_time_us": 1415.5990000000002, + "pct_cuda_time": 3.1141581993922824, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.291, + "cuda_time_us": 23.754, + "pct_cuda_time": 0.05225612187375399, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.754, + "pct_cuda_time": 0.05225612187375399, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 740.255, + "cuda_time_us": 518.015, + "pct_cuda_time": 1.1395745968019142, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 83.675, + "cuda_time_us": 120.95, + "pct_cuda_time": 0.26607636358636627, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.95, + "pct_cuda_time": 0.26607636358636627, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 73.8, + "cuda_time_us": 52.63400000000001, + "pct_cuda_time": 0.11578886582062674, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.137, + "pct_cuda_time": 0.02670003162337931, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.168, + "pct_cuda_time": 0.013568904593639582, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.145, + "pct_cuda_time": 0.03771706700031625, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.496, + "pct_cuda_time": 0.02528990389242552, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.688, + "pct_cuda_time": 0.01251295871086607, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 442.751, + "cuda_time_us": 235.87, + "pct_cuda_time": 0.5188874070203904, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.18, + "pct_cuda_time": 0.031194401286934056, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 221.69, + "pct_cuda_time": 0.4876930057334563, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 104.847, + "cuda_time_us": 108.561, + "pct_cuda_time": 0.2388219603745309, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 108.561, + "pct_cuda_time": 0.2388219603745309, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.445, + "cuda_time_us": 27.08, + "pct_cuda_time": 0.059572946886472085, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 27.08, + "pct_cuda_time": 0.059572946886472085, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 219.287, + "cuda_time_us": 846.7500000000001, + "pct_cuda_time": 1.8627545338301421, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.997, + "cuda_time_us": 502.098, + "pct_cuda_time": 1.1045589913516936, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 502.098, + "pct_cuda_time": 1.1045589913516936, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.931, + "cuda_time_us": 43.274, + "pct_cuda_time": 0.09519792110654332, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.274, + "pct_cuda_time": 0.09519792110654332, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 89.844, + "cuda_time_us": 301.37800000000004, + "pct_cuda_time": 0.662997621371905, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 288.119, + "pct_cuda_time": 0.6338293162475426, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.259, + "pct_cuda_time": 0.029168305124362387, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1044.249, + "cuda_time_us": 1425.823, + "pct_cuda_time": 3.136649846695358, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.342, + "cuda_time_us": 26.037, + "pct_cuda_time": 0.05727846447869549, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 26.037, + "pct_cuda_time": 0.05727846447869549, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 727.406, + "cuda_time_us": 494.69000000000005, + "pct_cuda_time": 1.0882622265608892, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 83.515, + "cuda_time_us": 121.421, + "pct_cuda_time": 0.2671125104838378, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 121.421, + "pct_cuda_time": 0.2671125104838378, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 78.226, + "cuda_time_us": 51.912000000000006, + "pct_cuda_time": 0.11420054722195493, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.017, + "pct_cuda_time": 0.02643604515268593, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.928, + "pct_cuda_time": 0.013040931652252827, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.904, + "pct_cuda_time": 0.03718689417167371, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.656, + "pct_cuda_time": 0.025641885853350026, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.407, + "pct_cuda_time": 0.011894790391992413, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 429.26, + "cuda_time_us": 224.493, + "pct_cuda_time": 0.4938592897114024, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.22, + "pct_cuda_time": 0.03128239677716518, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 210.273, + "pct_cuda_time": 0.46257689293423726, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.311, + "cuda_time_us": 96.864, + "pct_cuda_time": 0.21308987914369398, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 96.864, + "pct_cuda_time": 0.21308987914369398, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.255, + "cuda_time_us": 23.394, + "pct_cuda_time": 0.051464162461673846, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.394, + "pct_cuda_time": 0.051464162461673846, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 224.295, + "cuda_time_us": 881.702, + "pct_cuda_time": 1.9396449931940993, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 86.739, + "cuda_time_us": 518.172, + "pct_cuda_time": 1.1399199791010717, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 518.172, + "pct_cuda_time": 1.1399199791010717, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.16, + "cuda_time_us": 44.656, + "pct_cuda_time": 0.09823816529402872, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 44.656, + "pct_cuda_time": 0.09823816529402872, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 91.898, + "cuda_time_us": 318.87399999999997, + "pct_cuda_time": 0.7014868487989991, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 306.417, + "pct_cuda_time": 0.6740828532537709, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.457, + "pct_cuda_time": 0.027403995545228318, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1053.913, + "cuda_time_us": 1459.866, + "pct_cuda_time": 3.211540608543813, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.923, + "cuda_time_us": 24.516, + "pct_cuda_time": 0.05393243596265693, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.516, + "pct_cuda_time": 0.05393243596265693, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 730.41, + "cuda_time_us": 524.695, + "pct_cuda_time": 1.1542698436705123, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 87.12, + "cuda_time_us": 135.611, + "pct_cuda_time": 0.29832891064332956, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 135.611, + "pct_cuda_time": 0.29832891064332956, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 75.753, + "cuda_time_us": 50.11, + "pct_cuda_time": 0.1102363503870427, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.536, + "pct_cuda_time": 0.02537789938265665, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.688, + "pct_cuda_time": 0.01251295871086607, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.624, + "pct_cuda_time": 0.03657092574005583, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.935, + "pct_cuda_time": 0.024055767141933984, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.327, + "pct_cuda_time": 0.011718799411530163, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 430.743, + "cuda_time_us": 221.329, + "pct_cuda_time": 0.4868988464341204, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.501, + "pct_cuda_time": 0.031900565096038835, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 206.828, + "pct_cuda_time": 0.4549982813380816, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.432, + "cuda_time_us": 117.645, + "pct_cuda_time": 0.2588057362060195, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 117.645, + "pct_cuda_time": 0.2588057362060195, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.177, + "cuda_time_us": 22.793, + "pct_cuda_time": 0.05014203022095119, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.793, + "pct_cuda_time": 0.05014203022095119, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 223.975, + "cuda_time_us": 887.8620000000001, + "pct_cuda_time": 1.953196298689693, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 86.699, + "cuda_time_us": 524.652, + "pct_cuda_time": 1.154175248518514, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 524.652, + "pct_cuda_time": 1.154175248518514, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.45, + "cuda_time_us": 46.338, + "pct_cuda_time": 0.10193837565824755, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 46.338, + "pct_cuda_time": 0.10193837565824755, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 92.438, + "cuda_time_us": 316.872, + "pct_cuda_time": 0.6970826745129315, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 304.093, + "pct_cuda_time": 0.6689703152713427, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.779, + "pct_cuda_time": 0.028112359241588877, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1064.74, + "cuda_time_us": 1459.444, + "pct_cuda_time": 3.2106122561218746, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.042, + "cuda_time_us": 22.112, + "pct_cuda_time": 0.04864390699976628, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.112, + "pct_cuda_time": 0.04864390699976628, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 746.955, + "cuda_time_us": 512.8969999999999, + "pct_cuda_time": 1.1283155738268416, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 84.987, + "cuda_time_us": 134.92, + "pct_cuda_time": 0.29680878854958687, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 134.92, + "pct_cuda_time": 0.29680878854958687, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 75.272, + "cuda_time_us": 49.108, + "pct_cuda_time": 0.10803206335675299, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.536, + "pct_cuda_time": 0.02537789938265665, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.928, + "pct_cuda_time": 0.013040931652252827, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.422, + "pct_cuda_time": 0.033926661258610505, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.775, + "pct_cuda_time": 0.023703785181009483, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.447, + "pct_cuda_time": 0.01198278588222354, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 439.777, + "cuda_time_us": 218.244, + "pct_cuda_time": 0.48011219425004487, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 13.82, + "pct_cuda_time": 0.03040244187485392, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 204.424, + "pct_cuda_time": 0.44970975237519095, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.181, + "cuda_time_us": 110.625, + "pct_cuda_time": 0.243362527670457, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 110.625, + "pct_cuda_time": 0.243362527670457, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.289, + "cuda_time_us": 25.276, + "pct_cuda_time": 0.055604350277048326, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 25.276, + "pct_cuda_time": 0.055604350277048326, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 221.901, + "cuda_time_us": 899.1590000000001, + "pct_cuda_time": 1.9780484250182189, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.907, + "cuda_time_us": 530.832, + "pct_cuda_time": 1.1677705517592227, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 530.832, + "pct_cuda_time": 1.1677705517592227, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.44, + "cuda_time_us": 45.417, + "pct_cuda_time": 0.0999122794956759, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 45.417, + "pct_cuda_time": 0.0999122794956759, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 92.197, + "cuda_time_us": 322.91, + "pct_cuda_time": 0.7103655937633199, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 309.851, + "pct_cuda_time": 0.6816372660901131, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.059, + "pct_cuda_time": 0.028728327673206752, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1042.225, + "cuda_time_us": 1447.4360000000001, + "pct_cuda_time": 3.184196009954491, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.592, + "cuda_time_us": 22.232, + "pct_cuda_time": 0.04890789347045965, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.232, + "pct_cuda_time": 0.04890789347045965, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 720.906, + "cuda_time_us": 520.268, + "pct_cuda_time": 1.1445309427891825, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 82.533, + "cuda_time_us": 136.733, + "pct_cuda_time": 0.30079718414431267, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 136.733, + "pct_cuda_time": 0.30079718414431267, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 72.628, + "cuda_time_us": 49.429, + "pct_cuda_time": 0.10873822716585778, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.616, + "pct_cuda_time": 0.025553890363118895, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.487, + "pct_cuda_time": 0.012070781372454665, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.943, + "pct_cuda_time": 0.03507280251887092, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 10.936, + "pct_cuda_time": 0.02405796702918976, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.447, + "pct_cuda_time": 0.01198278588222354, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 429.251, + "cuda_time_us": 223.732, + "pct_cuda_time": 0.49218517550975527, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.18, + "pct_cuda_time": 0.031194401286934056, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 209.552, + "pct_cuda_time": 0.4609907742228212, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 100.971, + "cuda_time_us": 110.374, + "pct_cuda_time": 0.24281035596925665, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 110.374, + "pct_cuda_time": 0.24281035596925665, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.358, + "cuda_time_us": 23.474, + "pct_cuda_time": 0.051640153442136114, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.474, + "pct_cuda_time": 0.051640153442136114, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 224.555, + "cuda_time_us": 881.462, + "pct_cuda_time": 1.9391170202527126, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 86.459, + "cuda_time_us": 523.931, + "pct_cuda_time": 1.1525891298070978, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 523.931, + "pct_cuda_time": 1.1525891298070978, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.86, + "cuda_time_us": 44.535, + "pct_cuda_time": 0.09797197893607955, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 44.535, + "pct_cuda_time": 0.09797197893607955, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 92.658, + "cuda_time_us": 312.996, + "pct_cuda_time": 0.6885559115095353, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 300.137, + "pct_cuda_time": 0.6602675612874842, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.859, + "pct_cuda_time": 0.028288350222051128, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1074.845, + "cuda_time_us": 1403.96, + "pct_cuda_time": 3.0885537116222803, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.962, + "cuda_time_us": 23.273, + "pct_cuda_time": 0.051197976103724695, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.273, + "pct_cuda_time": 0.051197976103724695, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 755.959, + "cuda_time_us": 500.278, + "pct_cuda_time": 1.1005551965461773, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 86.169, + "cuda_time_us": 125.206, + "pct_cuda_time": 0.275439083746958, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 125.206, + "pct_cuda_time": 0.275439083746958, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.972, + "cuda_time_us": 50.911, + "pct_cuda_time": 0.11199846007892099, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.777, + "pct_cuda_time": 0.025908072211299177, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.808, + "pct_cuda_time": 0.012776945181559448, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.383, + "pct_cuda_time": 0.0360407529114133, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.616, + "pct_cuda_time": 0.025553890363118895, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.327, + "pct_cuda_time": 0.011718799411530163, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 453.087, + "cuda_time_us": 224.974, + "pct_cuda_time": 0.49491743548143174, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.701, + "pct_cuda_time": 0.03234054254719447, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 210.273, + "pct_cuda_time": 0.46257689293423726, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 104.496, + "cuda_time_us": 99.187, + "pct_cuda_time": 0.21820021723886657, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 99.187, + "pct_cuda_time": 0.21820021723886657, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.128, + "cuda_time_us": 24.275, + "pct_cuda_time": 0.0534022631340144, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.275, + "pct_cuda_time": 0.0534022631340144, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 223.033, + "cuda_time_us": 856.134, + "pct_cuda_time": 1.883398275838364, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 87.281, + "cuda_time_us": 507.717, + "pct_cuda_time": 1.116920157841911, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 507.717, + "pct_cuda_time": 1.116920157841911, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.279, + "cuda_time_us": 44.406, + "pct_cuda_time": 0.09768819348008417, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 44.406, + "pct_cuda_time": 0.09768819348008417, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.916, + "cuda_time_us": 304.011, + "pct_cuda_time": 0.6687899245163688, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 290.793, + "pct_cuda_time": 0.6397118147694933, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.218, + "pct_cuda_time": 0.02907810974687548, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1049.266, + "cuda_time_us": 1360.3850000000002, + "pct_cuda_time": 2.9926936244517486, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.663, + "cuda_time_us": 23.795, + "pct_cuda_time": 0.05234631725124089, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.795, + "pct_cuda_time": 0.05234631725124089, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 735.068, + "cuda_time_us": 502.42, + "pct_cuda_time": 1.1052673550480543, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 85.718, + "cuda_time_us": 119.778, + "pct_cuda_time": 0.26349809572259436, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 119.778, + "pct_cuda_time": 0.26349809572259436, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 76.314, + "cuda_time_us": 51.792, + "pct_cuda_time": 0.11393656075126153, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.856, + "pct_cuda_time": 0.026081863304505654, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.848, + "pct_cuda_time": 0.012864940671790575, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.265, + "pct_cuda_time": 0.03798105347100963, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.376, + "pct_cuda_time": 0.02502591742173214, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.447, + "pct_cuda_time": 0.01198278588222354, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 434.229, + "cuda_time_us": 230.381, + "pct_cuda_time": 0.5068122258734242, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.3, + "pct_cuda_time": 0.03145838775762744, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 216.081, + "pct_cuda_time": 0.4753538381157967, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 102.783, + "cuda_time_us": 100.469, + "pct_cuda_time": 0.22102047270077413, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 100.469, + "pct_cuda_time": 0.22102047270077413, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.057, + "cuda_time_us": 22.994, + "pct_cuda_time": 0.050584207559362604, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 22.994, + "pct_cuda_time": 0.050584207559362604, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 218.867, + "cuda_time_us": 811.176, + "pct_cuda_time": 1.7844957445930902, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.376, + "cuda_time_us": 489.199, + "pct_cuda_time": 1.0761826456394115, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 489.199, + "pct_cuda_time": 1.0761826456394115, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.061, + "cuda_time_us": 43.674, + "pct_cuda_time": 0.09607787600885458, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.674, + "pct_cuda_time": 0.09607787600885458, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 89.483, + "cuda_time_us": 278.303, + "pct_cuda_time": 0.6122352229448242, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 265.165, + "pct_cuda_time": 0.5833331041784111, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.138, + "pct_cuda_time": 0.028902118766413232, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1069.286, + "cuda_time_us": 1343.851, + "pct_cuda_time": 2.956320688564712, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 36.044, + "cuda_time_us": 24.877, + "pct_cuda_time": 0.05472659526199284, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.877, + "pct_cuda_time": 0.05472659526199284, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 748.908, + "cuda_time_us": 511.734, + "pct_cuda_time": 1.1257571049483717, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 97.045, + "cuda_time_us": 120.919, + "pct_cuda_time": 0.26600816708143715, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.919, + "pct_cuda_time": 0.26600816708143715, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 80.43, + "cuda_time_us": 52.754000000000005, + "pct_cuda_time": 0.1160528522913201, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.097, + "pct_cuda_time": 0.026612036133148182, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.248, + "pct_cuda_time": 0.013744895574101832, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.704, + "pct_cuda_time": 0.03674691672051809, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.057, + "pct_cuda_time": 0.026524040642917062, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.648, + "pct_cuda_time": 0.012424963220634947, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 432.916, + "cuda_time_us": 237.392, + "pct_cuda_time": 0.5222356354236848, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.941, + "pct_cuda_time": 0.032868515488581225, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 222.451, + "pct_cuda_time": 0.48936711993510346, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 101.942, + "cuda_time_us": 100.669, + "pct_cuda_time": 0.22146045015192978, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 100.669, + "pct_cuda_time": 0.22146045015192978, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.97, + "cuda_time_us": 24.636, + "pct_cuda_time": 0.05419642243335031, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.636, + "pct_cuda_time": 0.05419642243335031, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 221.281, + "cuda_time_us": 782.604, + "pct_cuda_time": 1.7216405659209972, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.166, + "cuda_time_us": 462.94, + "pct_cuda_time": 1.018415806189933, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 462.94, + "pct_cuda_time": 1.018415806189933, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.131, + "cuda_time_us": 47.76, + "pct_cuda_time": 0.10506661533596405, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 47.76, + "pct_cuda_time": 0.10506661533596405, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 91.567, + "cuda_time_us": 271.904, + "pct_cuda_time": 0.5981581443950998, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 258.565, + "pct_cuda_time": 0.5688138482902753, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.339, + "pct_cuda_time": 0.02934429610482464, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1043.267, + "cuda_time_us": 1284.273, + "pct_cuda_time": 2.8252558056399617, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 33.56, + "cuda_time_us": 24.516, + "pct_cuda_time": 0.05393243596265693, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.516, + "pct_cuda_time": 0.05393243596265693, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 724.562, + "cuda_time_us": 519.4069999999999, + "pct_cuda_time": 1.1426368398619573, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 83.545, + "cuda_time_us": 119.297, + "pct_cuda_time": 0.262439949952565, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 119.297, + "pct_cuda_time": 0.262439949952565, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 75.393, + "cuda_time_us": 54.395999999999994, + "pct_cuda_time": 0.11966506716530781, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.418, + "pct_cuda_time": 0.027318199942252964, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.849, + "pct_cuda_time": 0.015067027814824496, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.465, + "pct_cuda_time": 0.038421030922165256, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.017, + "pct_cuda_time": 0.02643604515268593, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.647, + "pct_cuda_time": 0.01242276333337917, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 426.356, + "cuda_time_us": 241.95999999999998, + "pct_cuda_time": 0.5322847204080793, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 15.022, + "pct_cuda_time": 0.03304670635629925, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 226.938, + "pct_cuda_time": 0.49923801405178, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 102.173, + "cuda_time_us": 103.754, + "pct_cuda_time": 0.22824710233600537, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 103.754, + "pct_cuda_time": 0.22824710233600537, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.656, + "cuda_time_us": 24.836, + "pct_cuda_time": 0.05463639988450593, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.836, + "pct_cuda_time": 0.05463639988450593, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 225.787, + "cuda_time_us": 715.514, + "pct_cuda_time": 1.5740501299308416, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 90.325, + "cuda_time_us": 404.052, + "pct_cuda_time": 0.8888688454716699, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 404.052, + "pct_cuda_time": 0.8888688454716699, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.641, + "cuda_time_us": 42.553, + "pct_cuda_time": 0.09361180239512727, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 42.553, + "pct_cuda_time": 0.09361180239512727, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 89.253, + "cuda_time_us": 268.909, + "pct_cuda_time": 0.5915694820640444, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 255.49, + "pct_cuda_time": 0.5620491949787575, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.419, + "pct_cuda_time": 0.029520287085286888, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1108.575, + "cuda_time_us": 1285.565, + "pct_cuda_time": 2.8280980599744274, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.383, + "cuda_time_us": 27.2, + "pct_cuda_time": 0.059836933357165466, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 27.2, + "pct_cuda_time": 0.059836933357165466, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 779.294, + "cuda_time_us": 526.777, + "pct_cuda_time": 1.1588500089370424, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 86.67, + "cuda_time_us": 121.62, + "pct_cuda_time": 0.26755028804773767, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 121.62, + "pct_cuda_time": 0.26755028804773767, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 75.192, + "cuda_time_us": 53.315000000000005, + "pct_cuda_time": 0.11728698904181166, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.538, + "pct_cuda_time": 0.027582186412946345, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.208, + "pct_cuda_time": 0.013656900083870707, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.784, + "pct_cuda_time": 0.036922907700980334, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.977, + "pct_cuda_time": 0.026348049662454808, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.808, + "pct_cuda_time": 0.012776945181559448, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 481.218, + "cuda_time_us": 248.56900000000002, + "pct_cuda_time": 0.546823775281517, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.741, + "pct_cuda_time": 0.03242853803742559, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 233.828, + "pct_cuda_time": 0.5143952372440914, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 100.13, + "cuda_time_us": 103.273, + "pct_cuda_time": 0.22718895656597604, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 103.273, + "pct_cuda_time": 0.22718895656597604, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.759, + "cuda_time_us": 24.276, + "pct_cuda_time": 0.05340446302127018, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.276, + "pct_cuda_time": 0.05340446302127018, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 232.367, + "cuda_time_us": 707.312, + "pct_cuda_time": 1.5560066546589493, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 88.262, + "cuda_time_us": 394.287, + "pct_cuda_time": 0.8673869464189963, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 394.287, + "pct_cuda_time": 0.8673869464189963, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.401, + "cuda_time_us": 42.963, + "pct_cuda_time": 0.09451375616999633, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 42.963, + "pct_cuda_time": 0.09451375616999633, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 98.347, + "cuda_time_us": 270.062, + "pct_cuda_time": 0.5941059520699566, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 256.723, + "pct_cuda_time": 0.5647616559651321, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.339, + "pct_cuda_time": 0.02934429610482464, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1089.857, + "cuda_time_us": 1297.912, + "pct_cuda_time": 2.85526006792152, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 36.254, + "cuda_time_us": 26.078, + "pct_cuda_time": 0.05736865985618239, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 26.078, + "pct_cuda_time": 0.05736865985618239, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 743.861, + "cuda_time_us": 526.817, + "pct_cuda_time": 1.1589380044272735, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 87.281, + "cuda_time_us": 120.859, + "pct_cuda_time": 0.26587617384609047, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.859, + "pct_cuda_time": 0.26587617384609047, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.531, + "cuda_time_us": 54.637, + "pct_cuda_time": 0.12019523999395035, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.618, + "pct_cuda_time": 0.0277581773934086, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.208, + "pct_cuda_time": 0.013656900083870707, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.986, + "pct_cuda_time": 0.03956717218242567, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.097, + "pct_cuda_time": 0.026612036133148182, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.728, + "pct_cuda_time": 0.012600954201097197, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 439.126, + "cuda_time_us": 245.804, + "pct_cuda_time": 0.5407410870192905, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.981, + "pct_cuda_time": 0.032956510978812345, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 230.823, + "pct_cuda_time": 0.5077845760404781, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 105.668, + "cuda_time_us": 105.517, + "pct_cuda_time": 0.2321255035679422, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 105.517, + "pct_cuda_time": 0.2321255035679422, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 38.157, + "cuda_time_us": 25.837, + "pct_cuda_time": 0.05683848702753985, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 25.837, + "pct_cuda_time": 0.05683848702753985, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 243.414, + "cuda_time_us": 719.1800000000001, + "pct_cuda_time": 1.5821149166105244, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 105.066, + "cuda_time_us": 408.058, + "pct_cuda_time": 0.8976815938183171, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 408.058, + "pct_cuda_time": 0.8976815938183171, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 26.99, + "cuda_time_us": 42.393, + "pct_cuda_time": 0.09325982043420278, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 42.393, + "pct_cuda_time": 0.09325982043420278, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 93.129, + "cuda_time_us": 268.729, + "pct_cuda_time": 0.5911735023580043, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 255.069, + "pct_cuda_time": 0.561123042444075, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.66, + "pct_cuda_time": 0.03005045991392942, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1088.785, + "cuda_time_us": 1376.509, + "pct_cuda_time": 3.0281646065639145, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.068, + "cuda_time_us": 24.235, + "pct_cuda_time": 0.053314267643783275, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.235, + "pct_cuda_time": 0.053314267643783275, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 768.106, + "cuda_time_us": 513.3969999999999, + "pct_cuda_time": 1.1294155174547307, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 88.672, + "cuda_time_us": 119.377, + "pct_cuda_time": 0.26261594093302726, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 119.377, + "pct_cuda_time": 0.26261594093302726, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 79.208, + "cuda_time_us": 54.156, + "pct_cuda_time": 0.11913709422392106, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.458, + "pct_cuda_time": 0.02740619543248409, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.048, + "pct_cuda_time": 0.013304918122946204, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.505, + "pct_cuda_time": 0.038509026412396376, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.337, + "pct_cuda_time": 0.027140009074534937, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.808, + "pct_cuda_time": 0.012776945181559448, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 453.737, + "cuda_time_us": 239.035, + "pct_cuda_time": 0.5258500501849281, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 15.382, + "pct_cuda_time": 0.03383866576837938, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 223.653, + "pct_cuda_time": 0.4920113844165488, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 108.843, + "cuda_time_us": 100.829, + "pct_cuda_time": 0.22181243211285429, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 100.829, + "pct_cuda_time": 0.22181243211285429, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.829, + "cuda_time_us": 23.674, + "pct_cuda_time": 0.052080130893291735, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.674, + "pct_cuda_time": 0.052080130893291735, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 219.518, + "cuda_time_us": 815.203, + "pct_cuda_time": 1.7933546905721087, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 85.477, + "cuda_time_us": 470.432, + "pct_cuda_time": 1.034897361510223, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 470.432, + "pct_cuda_time": 1.034897361510223, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 25.989, + "cuda_time_us": 45.176, + "pct_cuda_time": 0.09938210666703336, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 45.176, + "pct_cuda_time": 0.09938210666703336, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 89.744, + "cuda_time_us": 299.59499999999997, + "pct_cuda_time": 0.6590752223948524, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 286.457, + "pct_cuda_time": 0.6301731036284393, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.138, + "pct_cuda_time": 0.028902118766413232, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1064.809, + "cuda_time_us": 1398.933, + "pct_cuda_time": 3.077494878387484, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 32.869, + "cuda_time_us": 23.795, + "pct_cuda_time": 0.05234631725124089, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.795, + "pct_cuda_time": 0.05234631725124089, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 741.386, + "cuda_time_us": 505.715, + "pct_cuda_time": 1.1125159835558431, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 88.873, + "cuda_time_us": 120.629, + "pct_cuda_time": 0.2653701997772615, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.629, + "pct_cuda_time": 0.2653701997772615, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.561, + "cuda_time_us": 52.193000000000005, + "pct_cuda_time": 0.11481871554082858, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.217, + "pct_cuda_time": 0.026876022603841563, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.888, + "pct_cuda_time": 0.0129529361620217, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.024, + "pct_cuda_time": 0.03745088064236709, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.336, + "pct_cuda_time": 0.02493792193150102, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.728, + "pct_cuda_time": 0.012600954201097197, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 435.47, + "cuda_time_us": 233.746, + "pct_cuda_time": 0.5142148464891176, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.941, + "pct_cuda_time": 0.032868515488581225, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 218.805, + "pct_cuda_time": 0.48134633100053636, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 105.317, + "cuda_time_us": 99.147, + "pct_cuda_time": 0.21811222174863545, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 99.147, + "pct_cuda_time": 0.21811222174863545, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.118, + "cuda_time_us": 24.516, + "pct_cuda_time": 0.05393243596265693, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.516, + "pct_cuda_time": 0.05393243596265693, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 227.96, + "cuda_time_us": 844.9069999999999, + "pct_cuda_time": 1.8587001416177424, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 86.609, + "cuda_time_us": 500.176, + "pct_cuda_time": 1.1003308080460878, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 500.176, + "pct_cuda_time": 1.1003308080460878, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.721, + "cuda_time_us": 44.896, + "pct_cuda_time": 0.09876613823541548, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 44.896, + "pct_cuda_time": 0.09876613823541548, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 95.573, + "cuda_time_us": 299.835, + "pct_cuda_time": 0.6596031953362392, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 287.097, + "pct_cuda_time": 0.6315810314721372, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.738, + "pct_cuda_time": 0.028022163864101973, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1049.167, + "cuda_time_us": 1417.351, + "pct_cuda_time": 3.118012401864406, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.212, + "cuda_time_us": 24.396, + "pct_cuda_time": 0.05366844949196356, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.396, + "pct_cuda_time": 0.05366844949196356, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 737.181, + "cuda_time_us": 504.92500000000007, + "pct_cuda_time": 1.1107780726237784, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 85.477, + "cuda_time_us": 126.497, + "pct_cuda_time": 0.27827913819416766, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 126.497, + "pct_cuda_time": 0.27827913819416766, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 77.175, + "cuda_time_us": 51.072, + "pct_cuda_time": 0.11235264192710127, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.857, + "pct_cuda_time": 0.02608406319176143, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.008, + "pct_cuda_time": 0.013216922632715077, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.823, + "pct_cuda_time": 0.034808816048177545, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.977, + "pct_cuda_time": 0.026348049662454808, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.407, + "pct_cuda_time": 0.011894790391992413, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 437.803, + "cuda_time_us": 226.376, + "pct_cuda_time": 0.4980016774140327, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.701, + "pct_cuda_time": 0.03234054254719447, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 211.675, + "pct_cuda_time": 0.4656611348668382, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 99.959, + "cuda_time_us": 100.98, + "pct_cuda_time": 0.2221446150884768, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 100.98, + "pct_cuda_time": 0.2221446150884768, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 36.905, + "cuda_time_us": 24.636, + "pct_cuda_time": 0.05419642243335031, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.636, + "pct_cuda_time": 0.05419642243335031, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 219.337, + "cuda_time_us": 863.394, + "pct_cuda_time": 1.899369457315313, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.096, + "cuda_time_us": 506.465, + "pct_cuda_time": 1.1141658989976766, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 506.465, + "pct_cuda_time": 1.1141658989976766, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 25.628, + "cuda_time_us": 44.525, + "pct_cuda_time": 0.09794998006352176, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 44.525, + "pct_cuda_time": 0.09794998006352176, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 91.507, + "cuda_time_us": 312.404, + "pct_cuda_time": 0.6872535782541147, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 299.426, + "pct_cuda_time": 0.658703441448626, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.978, + "pct_cuda_time": 0.028550136805488725, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1082.877, + "cuda_time_us": 1414.257, + "pct_cuda_time": 3.111205950695028, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 33.219, + "cuda_time_us": 23.715, + "pct_cuda_time": 0.05217032627077864, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.715, + "pct_cuda_time": 0.05217032627077864, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 740.225, + "cuda_time_us": 503.623, + "pct_cuda_time": 1.1079138194167553, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 82.533, + "cuda_time_us": 124.715, + "pct_cuda_time": 0.274358939104371, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 124.715, + "pct_cuda_time": 0.274358939104371, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 76.254, + "cuda_time_us": 50.991, + "pct_cuda_time": 0.11217445105938324, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.897, + "pct_cuda_time": 0.026172058681992558, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.888, + "pct_cuda_time": 0.0129529361620217, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.503, + "pct_cuda_time": 0.036304739382106675, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.296, + "pct_cuda_time": 0.024849926441269894, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.407, + "pct_cuda_time": 0.011894790391992413, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 446.457, + "cuda_time_us": 223.652, + "pct_cuda_time": 0.492009184529293, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.26, + "pct_cuda_time": 0.0313703922673963, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 209.392, + "pct_cuda_time": 0.46063879226189675, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 100.42, + "cuda_time_us": 104.265, + "pct_cuda_time": 0.22937124472370796, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 104.265, + "pct_cuda_time": 0.22937124472370796, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 37.806, + "cuda_time_us": 24.315, + "pct_cuda_time": 0.05349025862424553, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.315, + "pct_cuda_time": 0.05349025862424553, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 250.394, + "cuda_time_us": 862.604, + "pct_cuda_time": 1.8976315463832487, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 94.741, + "cuda_time_us": 511.372, + "pct_cuda_time": 1.12496074576178, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 511.372, + "pct_cuda_time": 1.12496074576178, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 31.386, + "cuda_time_us": 43.214, + "pct_cuda_time": 0.09506592787119662, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.214, + "pct_cuda_time": 0.09506592787119662, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 99.98, + "cuda_time_us": 308.01800000000003, + "pct_cuda_time": 0.6776048727502718, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 295.36, + "pct_cuda_time": 0.6497586998666322, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.658, + "pct_cuda_time": 0.02784617288363972, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1069.157, + "cuda_time_us": 1404.431, + "pct_cuda_time": 3.089589858519752, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.262, + "cuda_time_us": 23.073, + "pct_cuda_time": 0.050757998652569074, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.073, + "pct_cuda_time": 0.050757998652569074, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 752.443, + "cuda_time_us": 505.08500000000004, + "pct_cuda_time": 1.111130054584703, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 84.897, + "cuda_time_us": 125.807, + "pct_cuda_time": 0.2767612159876807, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 125.807, + "pct_cuda_time": 0.2767612159876807, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 77.415, + "cuda_time_us": 51.312, + "pct_cuda_time": 0.11288061486848802, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.017, + "pct_cuda_time": 0.02643604515268593, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.808, + "pct_cuda_time": 0.012776945181559448, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.864, + "pct_cuda_time": 0.03709889868144259, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.135, + "pct_cuda_time": 0.024495744593089612, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.488, + "pct_cuda_time": 0.012072981259710444, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 436.141, + "cuda_time_us": 224.933, + "pct_cuda_time": 0.49482724010394485, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.54, + "pct_cuda_time": 0.031986360699014185, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 210.393, + "pct_cuda_time": 0.4628408794049307, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 111.306, + "cuda_time_us": 103.033, + "pct_cuda_time": 0.2266609836245893, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 103.033, + "pct_cuda_time": 0.2266609836245893, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.118, + "cuda_time_us": 23.354, + "pct_cuda_time": 0.05137616697144273, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.354, + "pct_cuda_time": 0.05137616697144273, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 221.27, + "cuda_time_us": 852.919, + "pct_cuda_time": 1.8763256383110372, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.396, + "cuda_time_us": 503.591, + "pct_cuda_time": 1.1078434230245704, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 503.591, + "pct_cuda_time": 1.1078434230245704, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 28.031, + "cuda_time_us": 43.824, + "pct_cuda_time": 0.0964078590972213, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 43.824, + "pct_cuda_time": 0.0964078590972213, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 90.836, + "cuda_time_us": 305.504, + "pct_cuda_time": 0.6720743561892456, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 292.526, + "pct_cuda_time": 0.6435242193837568, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 12.978, + "pct_cuda_time": 0.028550136805488725, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1038.05, + "cuda_time_us": 1387.828, + "pct_cuda_time": 3.053065130412067, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.361, + "cuda_time_us": 24.796, + "pct_cuda_time": 0.054548404394274816, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 24.796, + "pct_cuda_time": 0.054548404394274816, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 720.876, + "cuda_time_us": 499.66799999999995, + "pct_cuda_time": 1.0992132653201525, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 83.374, + "cuda_time_us": 121.631, + "pct_cuda_time": 0.2675744868075512, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 121.631, + "pct_cuda_time": 0.2675744868075512, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.231, + "cuda_time_us": 51.351, + "pct_cuda_time": 0.11296641047146337, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 12.017, + "pct_cuda_time": 0.02643604515268593, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.048, + "pct_cuda_time": 0.013304918122946204, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.704, + "pct_cuda_time": 0.03674691672051809, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.135, + "pct_cuda_time": 0.024495744593089612, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.447, + "pct_cuda_time": 0.01198278588222354, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 427.548, + "cuda_time_us": 228.26, + "pct_cuda_time": 0.5021462650039187, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.141, + "pct_cuda_time": 0.03110860568395871, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 214.119, + "pct_cuda_time": 0.47103765931996, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 99.648, + "cuda_time_us": 98.426, + "pct_cuda_time": 0.21652610303721942, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 98.426, + "pct_cuda_time": 0.21652610303721942, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 36.435, + "cuda_time_us": 25.517, + "pct_cuda_time": 0.05613452310569085, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 25.517, + "pct_cuda_time": 0.05613452310569085, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 225.607, + "cuda_time_us": 837.847, + "pct_cuda_time": 1.843168937591949, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 84.115, + "cuda_time_us": 497.812, + "pct_cuda_time": 1.0951302745734284, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 497.812, + "pct_cuda_time": 1.0951302745734284, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.02, + "cuda_time_us": 44.135, + "pct_cuda_time": 0.09709202403376829, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 44.135, + "pct_cuda_time": 0.09709202403376829, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 91.436, + "cuda_time_us": 295.9, + "pct_cuda_time": 0.6509466389847521, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 282.0, + "pct_cuda_time": 0.620368206129436, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.9, + "pct_cuda_time": 0.030578432855316175, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 1049.707, + "cuda_time_us": 1369.3899999999999, + "pct_cuda_time": 3.0125036091900297, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 35.523, + "cuda_time_us": 23.554, + "pct_cuda_time": 0.051816144422598354, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.554, + "pct_cuda_time": 0.051816144422598354, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 728.637, + "cuda_time_us": 506.798, + "pct_cuda_time": 1.1148984614538509, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 84.736, + "cuda_time_us": 120.189, + "pct_cuda_time": 0.2644022493847191, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT128x192x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA1024_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT8_3_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW8_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA8_VWB1_WSGRA0_WSGRB0_WS64_WG16_16_1", + "cpu_time_us": 0, + "cuda_time_us": 120.189, + "pct_cuda_time": 0.2644022493847191, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 6144]) <- linear(bfloat16[1024, 4096], bfloat16[6144, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 74.351, + "cuda_time_us": 52.593, + "pct_cuda_time": 0.11569867044313982, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.936, + "pct_cuda_time": 0.0262578542849679, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False) <- clone(bfloat16[1024, 4096], 0) <- contiguous(bfloat16[1024, 4096], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 6.609, + "pct_cuda_time": 0.01453905487343774, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False) <- clone(bfloat16[1024, 1024], 0) <- contiguous(bfloat16[1024, 1024], 0)" + }, + "children": [] + }, + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.025, + "pct_cuda_time": 0.037453080529622866, + "trace": "_C::rotary_embedding(int64[1024], bfloat16[1024, 4096], bfloat16[1024, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 11.576, + "pct_cuda_time": 0.025465894872887775, + "trace": "copy_(bfloat16[1024, 4096], bfloat16[1024, 4096], False)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl_nocast(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#12}::operator()() const::{lambda(c10::BFloat16)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.447, + "pct_cuda_time": 0.01198278588222354, + "trace": "copy_(bfloat16[1024, 1024], bfloat16[1024, 1024], False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 432.095, + "cuda_time_us": 234.068, + "pct_cuda_time": 0.5149232101854782, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 14.982, + "pct_cuda_time": 0.03295871086606812, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1024], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "attn_fwd", + "cpu_time_us": 0, + "cuda_time_us": 219.086, + "pct_cuda_time": 0.48196449931941004, + "trace": "_attention(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], int32[2], int32[2], 1024, 1024, True, 0.08838834764831845, None, None, None) <- vllm::unified_attention_with_output(bfloat16[1024, 32, 128], bfloat16[1024, 8, 128], bfloat16[1024, 8, 128], bfloat16[1024, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 100.67, + "cuda_time_us": 99.948, + "pct_cuda_time": 0.21987433144051374, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT96x160x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB128_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT3_5_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB1_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 99.948, + "pct_cuda_time": 0.21987433144051374, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 4096]) <- linear(bfloat16[1024, 4096], bfloat16[4096, 4096], None)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 39.639, + "cuda_time_us": 23.795, + "pct_cuda_time": 0.05234631725124089, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 23.795, + "pct_cuda_time": 0.05234631725124089, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 224.124, + "cuda_time_us": 815.2429999999999, + "pct_cuda_time": 1.7934426860623398, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 88.091, + "cuda_time_us": 486.815, + "pct_cuda_time": 1.0709381144216361, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT192x256x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA256_LBSPPB1024_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT6_8_MO40_NTn1_NTA0_NTB0_NTC0_NTD4_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW2_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA2_VWB8_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 486.815, + "pct_cuda_time": 1.0709381144216361, + "trace": "mm(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- matmul(bfloat16[1024, 4096], bfloat16[4096, 28672]) <- linear(bfloat16[1024, 4096], bfloat16[28672, 4096], None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 25.778, + "cuda_time_us": 42.373, + "pct_cuda_time": 0.09321582268908721, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 42.373, + "pct_cuda_time": 0.09321582268908721, + "trace": "_C::silu_and_mul(bfloat16[1024, 14336], bfloat16[1024, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 91.777, + "cuda_time_us": 286.055, + "pct_cuda_time": 0.6292887489516165, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Cijk_Alik_Bljk_BBS_BH_Bias_HAS_SAV_UserArgs_MT224x128x64_MI16x16x1_SN_LDSB1_AFC1_AFEM1_AFEM1_ASEM1_CLR1_CADS0_DTVA0_DTVB0_EPS0_FDSI0_GRPM1_GRVWA8_GRVWB8_GSUAMB_GLS0_ISA942_IU1_K1_LBSPPA128_LBSPPB512_LBSPPM0_LPA16_LPB16_LPM0_LRVW8_LWPMn1_MIAV0_MIWT7_4_MO40_NTn1_NTA0_NTB0_NTC0_NTD0_NTM0_NEPBS16_NLCA1_NLCB1_ONLL1_PGR2_PLR1_PKA1_SIA3_SS1_SPO0_SRVW0_SSO0_SVW1_SK0_SKXCCM0_TLDS1_ULSGRO0_USL1_UIOFGRO0_USFGROn1_VSn1_VWA1_VWB4_WSGRA0_WSGRB0_WS64_WG32_8_1", + "cpu_time_us": 0, + "cuda_time_us": 272.996, + "pct_cuda_time": 0.6005604212784096, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + }, + { + "entry": { + "name": "Cijk_SB_BiasS_HAS_ScaleAlphaVec_PostGSU2_VW4", + "cpu_time_us": 0, + "cuda_time_us": 13.059, + "pct_cuda_time": 0.028728327673206752, + "trace": "mm(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- matmul(bfloat16[1024, 14336], bfloat16[14336, 4096]) <- linear(bfloat16[1024, 14336], bfloat16[4096, 14336], None)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 34.982, + "cuda_time_us": 25.637, + "pct_cuda_time": 0.05639850957638423, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 25.637, + "pct_cuda_time": 0.05639850957638423, + "trace": "_C::fused_add_rms_norm(bfloat16[1024, 4096], bfloat16[1024, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "LogitsProcessor", + "cpu_time_us": 148.392, + "cuda_time_us": 238.754, + "pct_cuda_time": 0.5252318818660545, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectSmallIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, long)", + "cpu_time_us": 0, + "cuda_time_us": 4.846, + "pct_cuda_time": 0.010660653641500878, + "trace": "index_select(bfloat16[1024, 4096], 0, int64[1])" + }, + "children": [] + }, + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 233.908, + "pct_cuda_time": 0.5145712282245536, + "trace": "_rocm_C::wvSplitK(bfloat16[128256, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Sampler", + "cpu_time_us": 18662.701, + "cuda_time_us": 251.44100000000003, + "pct_cuda_time": 0.5531418514801119, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 5.047, + "pct_cuda_time": 0.011102830979912283, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 5.087, + "pct_cuda_time": 0.011190826470143408, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 5.126, + "pct_cuda_time": 0.011276622073118758, + "trace": "copy_(int32[1], int32[1], True) <- _to_copy(int32[1], 3, 0, None, None, True, None) <- to(int32[1], 3, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 4.967, + "pct_cuda_time": 0.010926839999450032, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 5.006, + "pct_cuda_time": 0.01101263560242538, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 5.087, + "pct_cuda_time": 0.011190826470143408, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 4.285, + "pct_cuda_time": 0.00942651689100934, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 2.803, + "pct_cuda_time": 0.006166283977946132, + "trace": "copy_(float32[1, 128256], bfloat16[1, 128256], False) <- _to_copy(bfloat16[1, 128256], 6, None, None, None, False, None) <- to(bfloat16[1, 128256], 6, False, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2}>(int, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2})", + "cpu_time_us": 0, + "cuda_time_us": 13.98, + "pct_cuda_time": 0.03075442383577843, + "trace": "div_(float32[1, 128256], bfloat16[1, 1])" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::SoftMaxForwardEpilogue>(float*, float const*, int)", + "cpu_time_us": 0, + "cuda_time_us": 81.641, + "pct_cuda_time": 0.1796009954489833, + "trace": "_softmax(float32[1, 128256], -1, False) <- softmax(float32[1, 128256], -1, 6)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::LogSoftMaxForwardEpilogue>(float*, float const*, int)", + "cpu_time_us": 0, + "cuda_time_us": 46.148, + "pct_cuda_time": 0.10152039707964972, + "trace": "_log_softmax(float32[1, 128256], -1, False) <- log_softmax(float32[1, 128256], -1, 6)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.127, + "pct_cuda_time": 0.011278821960374533, + "trace": "copy_(int64[1], int32[1], False) <- _to_copy(int32[1], 4, None, None, None, False, None) <- to(int32[1], 4, False, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::index_elementwise_kernel<128, 4, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1}>(long, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 7.65, + "pct_cuda_time": 0.01682913750670279, + "trace": "index(float32[1, 128256], None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::reduce_kernel<512, 1, at::native::ReduceOp, unsigned int, long, 4, 4> >(at::native::ReduceOp, unsigned int, long, 4, 4>)", + "cpu_time_us": 0, + "cuda_time_us": 53.92, + "pct_cuda_time": 0.11861792083155744, + "trace": "argmax(float32[1, 128256], -1, False)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoH (Device -> Host)", + "cpu_time_us": 0, + "cuda_time_us": 5.567, + "pct_cuda_time": 0.01224677235291692, + "trace": "copy_(int64[1], int64[1], False) <- _to_copy(int64[1], 4, 0, None, None, False, None) <- to(int64[1], 4, 0, None, None, False, False, None)" + }, + "children": [] + } + ] + } + ] + }, + "decode_1": { + "metadata": { + "num_running_seqs": 1 + }, + "summary_stats": [ + { + "entry": { + "name": "LlamaForCausalLM", + "cuda_time_us": 5379.240999999999, + "pct_cuda_time": 92.27486901295187, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "VocabParallelEmbedding(weight=bfloat16[128256, 4096])", + "cuda_time_us": 4.246, + "pct_cuda_time": 0.07283538585257543, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectSmallIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, long)", + "cuda_time_us": 4.246, + "pct_cuda_time": 0.07283538585257543, + "invocations": 1 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cuda_time_us": 5370.548999999999, + "pct_cuda_time": 92.12576746471103, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cuda_time_us": 301.70599999999973, + "pct_cuda_time": 5.175429327375672, + "invocations": 64 + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::rms_norm_kernel(c10::BFloat16*, c10::BFloat16 const*, c10::BFloat16 const*, float, int, unsigned long, unsigned long)", + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cuda_time_us": 297.25999999999976, + "pct_cuda_time": 5.099163164987413, + "invocations": 63 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cuda_time_us": 1587.3950000000002, + "pct_cuda_time": 27.229987594312057, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cuda_time_us": 596.1880000000002, + "pct_cuda_time": 10.226939006282445, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cuda_time_us": 596.1880000000002, + "pct_cuda_time": 10.226939006282445, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cuda_time_us": 122.67600000000003, + "pct_cuda_time": 2.104369711457971, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cuda_time_us": 122.67600000000003, + "pct_cuda_time": 2.104369711457971, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cuda_time_us": 424.216, + "pct_cuda_time": 7.27695149430903, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cuda_time_us": 91.26399999999998, + "pct_cuda_time": 1.5655319487634107, + "invocations": 32 + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cuda_time_us": 205.26899999999998, + "pct_cuda_time": 3.521160343516793, + "invocations": 32 + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cuda_time_us": 127.683, + "pct_cuda_time": 2.1902592020288245, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cuda_time_us": 444.315, + "pct_cuda_time": 7.621727382262613, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cuda_time_us": 444.315, + "pct_cuda_time": 7.621727382262613, + "invocations": 32 + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cuda_time_us": 3481.448, + "pct_cuda_time": 59.720350543023315, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cuda_time_us": 2067.6659999999997, + "pct_cuda_time": 35.46849998215996, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cuda_time_us": 2067.6659999999997, + "pct_cuda_time": 35.46849998215996, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cuda_time_us": 279.1050000000001, + "pct_cuda_time": 4.787734424960685, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cuda_time_us": 279.1050000000001, + "pct_cuda_time": 4.787734424960685, + "invocations": 32 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cuda_time_us": 1134.677, + "pct_cuda_time": 19.464116135902668, + "invocations": 32 + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cuda_time_us": 1134.677, + "pct_cuda_time": 19.464116135902668, + "invocations": 32 + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "invocations": 1 + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "LogitsProcessor", + "cuda_time_us": 263.2, + "pct_cuda_time": 4.514901920960399, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectSmallIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, long)", + "cuda_time_us": 2.723, + "pct_cuda_time": 0.04671002253334029, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cuda_time_us": 260.477, + "pct_cuda_time": 4.468191898427058, + "invocations": 1 + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Sampler", + "cuda_time_us": 187.143, + "pct_cuda_time": 3.2102290660877353, + "invocations": 1 + }, + "children": [ + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cuda_time_us": 16.898, + "pct_cuda_time": 0.2898663094999575, + "invocations": 7 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 3.604, + "pct_cuda_time": 0.06182259317302917, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2}>(int, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2})", + "cuda_time_us": 9.493, + "pct_cuda_time": 0.16284180826625025, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::SoftMaxForwardEpilogue>(float*, float const*, int)", + "cuda_time_us": 64.575, + "pct_cuda_time": 1.107711973959034, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::LogSoftMaxForwardEpilogue>(float*, float const*, int)", + "cuda_time_us": 36.093, + "pct_cuda_time": 0.6191350875122481, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 3.925, + "pct_cuda_time": 0.06732898951280229, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::index_elementwise_kernel<128, 4, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1}>(long, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1})", + "cuda_time_us": 5.367, + "pct_cuda_time": 0.09206488833508533, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::reduce_kernel<512, 1, at::native::ReduceOp, unsigned int, long, 4, 4> >(at::native::ReduceOp, unsigned int, long, 4, 4>)", + "cuda_time_us": 42.622, + "pct_cuda_time": 0.7311327875196585, + "invocations": 1 + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoH (Device -> Host)", + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "invocations": 1 + }, + "children": [] + } + ] + } + ], + "model_stats": [ + { + "entry": { + "name": "LlamaForCausalLM", + "cpu_time_us": 16856.524, + "cuda_time_us": 5379.240999999999, + "pct_cuda_time": 92.27486901295187, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "VocabParallelEmbedding(weight=bfloat16[128256, 4096])", + "cpu_time_us": 104.175, + "cuda_time_us": 4.246, + "pct_cuda_time": 0.07283538585257543, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectSmallIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, long)", + "cpu_time_us": 0, + "cuda_time_us": 4.246, + "pct_cuda_time": 0.07283538585257543, + "trace": "index_select(bfloat16[128256, 4096], 0, int64[1]) <- embedding(bfloat16[128256, 4096], int64[1], -1, False, False)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 953.213, + "cuda_time_us": 185.185, + "pct_cuda_time": 3.176641763803387, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 121.05, + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::rms_norm_kernel(c10::BFloat16*, c10::BFloat16 const*, c10::BFloat16 const*, float, int, unsigned long, unsigned long)", + "cpu_time_us": 0, + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "trace": "_C::rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 595.789, + "cuda_time_us": 56.117999999999995, + "pct_cuda_time": 0.9626415881476278, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 149.634, + "cuda_time_us": 19.028, + "pct_cuda_time": 0.3264040796049941, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 19.028, + "pct_cuda_time": 0.3264040796049941, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 54.03, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 248.541, + "cuda_time_us": 17.663, + "pct_cuda_time": 0.3029890297489496, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.125, + "pct_cuda_time": 0.0707597660484865, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 8.571, + "pct_cuda_time": 0.1470259284367461, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.967, + "pct_cuda_time": 0.08520333526371694, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 76.314, + "cuda_time_us": 14.741, + "pct_cuda_time": 0.2528653845626035, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.741, + "pct_cuda_time": 0.2528653845626035, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 40.751, + "cuda_time_us": 4.926, + "pct_cuda_time": 0.0845000260739017, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.926, + "pct_cuda_time": 0.0845000260739017, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 163.434, + "cuda_time_us": 119.69500000000001, + "pct_cuda_time": 2.0532339871935976, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 57.816, + "cuda_time_us": 73.468, + "pct_cuda_time": 1.2602614526182316, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 73.468, + "pct_cuda_time": 1.2602614526182316, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 27.901, + "cuda_time_us": 8.893, + "pct_cuda_time": 0.15254947865919768, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.893, + "pct_cuda_time": 0.15254947865919768, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 53.66, + "cuda_time_us": 37.334, + "pct_cuda_time": 0.6404230559161684, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.334, + "pct_cuda_time": 0.6404230559161684, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 547.968, + "cuda_time_us": 182.823, + "pct_cuda_time": 3.1361242929169566, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 28.583, + "cuda_time_us": 5.207, + "pct_cuda_time": 0.08932026710653798, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 5.207, + "pct_cuda_time": 0.08932026710653798, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 328.29, + "cuda_time_us": 51.512, + "pct_cuda_time": 0.883630804530821, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 54.862, + "cuda_time_us": 19.067, + "pct_cuda_time": 0.3270730810294526, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 19.067, + "pct_cuda_time": 0.3270730810294526, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 27.12, + "cuda_time_us": 4.166, + "pct_cuda_time": 0.07146307523830175, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.166, + "pct_cuda_time": 0.07146307523830175, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 149.343, + "cuda_time_us": 14.139000000000001, + "pct_cuda_time": 0.24253874719019408, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.164, + "pct_cuda_time": 0.05427488479452394, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.809, + "pct_cuda_time": 0.11680078715736837, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.166, + "pct_cuda_time": 0.07146307523830175, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 65.367, + "cuda_time_us": 14.14, + "pct_cuda_time": 0.2425559010728725, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.14, + "pct_cuda_time": 0.2425559010728725, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 29.724, + "cuda_time_us": 5.807, + "pct_cuda_time": 0.09961259671359057, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 5.807, + "pct_cuda_time": 0.09961259671359057, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 139.288, + "cuda_time_us": 120.297, + "pct_cuda_time": 2.0635606245660068, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 54.05, + "cuda_time_us": 74.591, + "pct_cuda_time": 1.2795252628660982, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 74.591, + "pct_cuda_time": 1.2795252628660982, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 19.049, + "cuda_time_us": 8.692, + "pct_cuda_time": 0.14910154824083505, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.692, + "pct_cuda_time": 0.14910154824083505, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 50.085, + "cuda_time_us": 37.014, + "pct_cuda_time": 0.6349338134590737, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.014, + "pct_cuda_time": 0.6349338134590737, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 512.925, + "cuda_time_us": 180.77800000000002, + "pct_cuda_time": 3.1010446028395857, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.199, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 308.12, + "cuda_time_us": 50.83, + "pct_cuda_time": 0.8719318565441379, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 52.568, + "cuda_time_us": 18.787, + "pct_cuda_time": 0.32226999387949473, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 18.787, + "pct_cuda_time": 0.32226999387949473, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 24.357, + "cuda_time_us": 4.285, + "pct_cuda_time": 0.07350438727703386, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.285, + "pct_cuda_time": 0.07350438727703386, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 143.804, + "cuda_time_us": 13.978000000000002, + "pct_cuda_time": 0.23977697207896834, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.084, + "pct_cuda_time": 0.05290257418025027, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.729, + "pct_cuda_time": 0.1154284765430947, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.165, + "pct_cuda_time": 0.07144592135562333, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 57.065, + "cuda_time_us": 13.78, + "pct_cuda_time": 0.2363805033086409, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.78, + "pct_cuda_time": 0.2363805033086409, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 27.041, + "cuda_time_us": 5.327, + "pct_cuda_time": 0.0913787330279485, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 5.327, + "pct_cuda_time": 0.0913787330279485, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 131.286, + "cuda_time_us": 119.81500000000001, + "pct_cuda_time": 2.0552924531150087, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 49.134, + "cuda_time_us": 73.028, + "pct_cuda_time": 1.2527137442397265, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 73.028, + "pct_cuda_time": 1.2527137442397265, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 18.347, + "cuda_time_us": 9.052, + "pct_cuda_time": 0.1552769460050666, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 9.052, + "pct_cuda_time": 0.1552769460050666, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 48.392, + "cuda_time_us": 37.735, + "pct_cuda_time": 0.6473017628702152, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.735, + "pct_cuda_time": 0.6473017628702152, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 487.547, + "cuda_time_us": 179.93800000000002, + "pct_cuda_time": 3.0866353413897123, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.278, + "cuda_time_us": 4.807, + "pct_cuda_time": 0.08245871403516959, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.807, + "pct_cuda_time": 0.08245871403516959, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 291.465, + "cuda_time_us": 50.349000000000004, + "pct_cuda_time": 0.8636808389758173, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.829, + "cuda_time_us": 18.747, + "pct_cuda_time": 0.3215838385723579, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 18.747, + "pct_cuda_time": 0.3215838385723579, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.644, + "cuda_time_us": 4.286, + "pct_cuda_time": 0.07352154115971225, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.286, + "pct_cuda_time": 0.07352154115971225, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 137.315, + "cuda_time_us": 13.857, + "pct_cuda_time": 0.23770135227487935, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.364, + "pct_cuda_time": 0.05770566133020814, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.408, + "pct_cuda_time": 0.10992208020332156, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.085, + "pct_cuda_time": 0.07007361074134964, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 56.895, + "cuda_time_us": 13.459, + "pct_cuda_time": 0.2308741069688678, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.459, + "pct_cuda_time": 0.2308741069688678, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 27.511, + "cuda_time_us": 5.007, + "pct_cuda_time": 0.08588949057085378, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 5.007, + "pct_cuda_time": 0.08588949057085378, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 126.739, + "cuda_time_us": 119.775, + "pct_cuda_time": 2.0546062978078714, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 47.13, + "cuda_time_us": 74.029, + "pct_cuda_time": 1.2698847808008256, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 74.029, + "pct_cuda_time": 1.2698847808008256, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.416, + "cuda_time_us": 8.732, + "pct_cuda_time": 0.14978770354797188, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.732, + "pct_cuda_time": 0.14978770354797188, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 47.491, + "cuda_time_us": 37.014, + "pct_cuda_time": 0.6349338134590737, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.014, + "pct_cuda_time": 0.6349338134590737, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 494.258, + "cuda_time_us": 181.661, + "pct_cuda_time": 3.1161914812446314, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.226, + "cuda_time_us": 4.727, + "pct_cuda_time": 0.08108640342089593, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.727, + "pct_cuda_time": 0.08108640342089593, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 292.137, + "cuda_time_us": 52.393, + "pct_cuda_time": 0.8987433751705097, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 49.083, + "cuda_time_us": 19.428, + "pct_cuda_time": 0.3332656326763626, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 19.428, + "pct_cuda_time": 0.3332656326763626, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.995, + "cuda_time_us": 4.045, + "pct_cuda_time": 0.0693874554342128, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.045, + "pct_cuda_time": 0.0693874554342128, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 136.504, + "cuda_time_us": 13.858, + "pct_cuda_time": 0.2377185061575578, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.883, + "pct_cuda_time": 0.04945464376188765, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.729, + "pct_cuda_time": 0.1154284765430947, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.246, + "pct_cuda_time": 0.07283538585257543, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 55.513, + "cuda_time_us": 15.062, + "pct_cuda_time": 0.2583717809023766, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.062, + "pct_cuda_time": 0.2583717809023766, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.768, + "cuda_time_us": 5.086, + "pct_cuda_time": 0.08724464730244905, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 5.086, + "pct_cuda_time": 0.08724464730244905, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 134.802, + "cuda_time_us": 119.455, + "pct_cuda_time": 2.0491170553507767, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 53.32, + "cuda_time_us": 72.987, + "pct_cuda_time": 1.252010435049911, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 72.987, + "pct_cuda_time": 1.252010435049911, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.576, + "cuda_time_us": 8.813, + "pct_cuda_time": 0.151177168044924, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.813, + "pct_cuda_time": 0.151177168044924, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 48.182, + "cuda_time_us": 37.655, + "pct_cuda_time": 0.6459294522559416, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.655, + "pct_cuda_time": 0.6459294522559416, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 505.775, + "cuda_time_us": 180.738, + "pct_cuda_time": 3.100358447532449, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.757, + "cuda_time_us": 4.726, + "pct_cuda_time": 0.0810692495382175, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.726, + "pct_cuda_time": 0.0810692495382175, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 305.597, + "cuda_time_us": 50.349000000000004, + "pct_cuda_time": 0.8636808389758173, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.739, + "cuda_time_us": 18.306, + "pct_cuda_time": 0.31401897631117426, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 18.306, + "pct_cuda_time": 0.31401897631117426, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.802, + "cuda_time_us": 3.965, + "pct_cuda_time": 0.06801514481993914, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.965, + "pct_cuda_time": 0.06801514481993914, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 154.561, + "cuda_time_us": 13.658, + "pct_cuda_time": 0.23428772962187358, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.884, + "pct_cuda_time": 0.049471797644566065, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.969, + "pct_cuda_time": 0.11954540838591574, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 54.291, + "cuda_time_us": 14.42, + "pct_cuda_time": 0.24735898822283034, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.42, + "pct_cuda_time": 0.24735898822283034, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.96, + "cuda_time_us": 4.886, + "pct_cuda_time": 0.08381387076676486, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.886, + "pct_cuda_time": 0.08381387076676486, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 126.409, + "cuda_time_us": 120.77699999999999, + "pct_cuda_time": 2.071794488251649, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.539, + "cuda_time_us": 73.469, + "pct_cuda_time": 1.26027860650091, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 73.469, + "pct_cuda_time": 1.26027860650091, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.817, + "cuda_time_us": 8.972, + "pct_cuda_time": 0.1539046353907929, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.972, + "pct_cuda_time": 0.1539046353907929, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 46.519, + "cuda_time_us": 38.336, + "pct_cuda_time": 0.6576112463599462, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 38.336, + "pct_cuda_time": 0.6576112463599462, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 525.063, + "cuda_time_us": 160.90800000000002, + "pct_cuda_time": 2.7601969540193614, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.695, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 333.127, + "cuda_time_us": 48.74600000000001, + "pct_cuda_time": 0.8361831650423087, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 56.053, + "cuda_time_us": 19.228, + "pct_cuda_time": 0.32983485614067837, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 19.228, + "pct_cuda_time": 0.32983485614067837, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 57.907, + "cuda_time_us": 3.844, + "pct_cuda_time": 0.0659395250158502, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.844, + "pct_cuda_time": 0.0659395250158502, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 136.423, + "cuda_time_us": 13.337, + "pct_cuda_time": 0.22878133328210043, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.804, + "pct_cuda_time": 0.04809948703029239, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.528, + "pct_cuda_time": 0.11198054612473207, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.005, + "pct_cuda_time": 0.06870130012707598, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 54.612, + "cuda_time_us": 12.337, + "pct_cuda_time": 0.2116274506036795, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 12.337, + "pct_cuda_time": 0.2116274506036795, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.61, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 125.438, + "cuda_time_us": 102.59, + "pct_cuda_time": 1.7598168239792074, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 47.33, + "cuda_time_us": 61.972, + "pct_cuda_time": 1.0630604173471043, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.972, + "pct_cuda_time": 1.0630604173471043, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.025, + "cuda_time_us": 9.733, + "pct_cuda_time": 0.1669587401090713, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 9.733, + "pct_cuda_time": 0.1669587401090713, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 46.89, + "cuda_time_us": 30.885, + "pct_cuda_time": 0.5297976665230316, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 30.885, + "pct_cuda_time": 0.5297976665230316, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 484.043, + "cuda_time_us": 157.543, + "pct_cuda_time": 2.7024741388064744, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.825, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 289.962, + "cuda_time_us": 46.663, + "pct_cuda_time": 0.8004516274231577, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 49.674, + "cuda_time_us": 17.905, + "pct_cuda_time": 0.30714026935712746, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.905, + "pct_cuda_time": 0.30714026935712746, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.544, + "cuda_time_us": 3.925, + "pct_cuda_time": 0.06732898951280229, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.925, + "pct_cuda_time": 0.06732898951280229, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 132.488, + "cuda_time_us": 12.616, + "pct_cuda_time": 0.2164133838709589, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.923, + "pct_cuda_time": 0.050140799069024494, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 5.808, + "pct_cuda_time": 0.09962975059626898, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.885, + "pct_cuda_time": 0.06664283420566545, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 56.835, + "cuda_time_us": 12.217, + "pct_cuda_time": 0.20956898468226898, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 12.217, + "pct_cuda_time": 0.20956898468226898, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.098, + "cuda_time_us": 4.886, + "pct_cuda_time": 0.08381387076676486, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.886, + "pct_cuda_time": 0.08381387076676486, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 127.02, + "cuda_time_us": 101.30799999999999, + "pct_cuda_time": 1.7378255463854715, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.67, + "cuda_time_us": 61.771, + "pct_cuda_time": 1.0596124869287415, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.771, + "pct_cuda_time": 1.0596124869287415, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.326, + "cuda_time_us": 8.452, + "pct_cuda_time": 0.14498461639801402, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.452, + "pct_cuda_time": 0.14498461639801402, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 49.024, + "cuda_time_us": 31.085, + "pct_cuda_time": 0.5332284430587158, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 31.085, + "pct_cuda_time": 0.5332284430587158, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 510.862, + "cuda_time_us": 197.534, + "pct_cuda_time": 3.3884750609992076, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.926, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 311.696, + "cuda_time_us": 84.53099999999999, + "pct_cuda_time": 1.4500348566896026, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 46.369, + "cuda_time_us": 52.388, + "pct_cuda_time": 0.8986576057571176, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 52.388, + "pct_cuda_time": 0.8986576057571176, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 32.718, + "cuda_time_us": 4.085, + "pct_cuda_time": 0.07007361074134964, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.085, + "pct_cuda_time": 0.07007361074134964, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 142.793, + "cuda_time_us": 14.178, + "pct_cuda_time": 0.2432077486146525, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.803, + "pct_cuda_time": 0.048082333147613975, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 7.209, + "pct_cuda_time": 0.12366234022873676, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.166, + "pct_cuda_time": 0.07146307523830175, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 61.402, + "cuda_time_us": 13.88, + "pct_cuda_time": 0.23809589157648306, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.88, + "pct_cuda_time": 0.23809589157648306, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.509, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 131.907, + "cuda_time_us": 103.43100000000001, + "pct_cuda_time": 1.7742432393117593, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 52.107, + "cuda_time_us": 61.851, + "pct_cuda_time": 1.0609847975430151, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.851, + "pct_cuda_time": 1.0609847975430151, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.547, + "cuda_time_us": 8.251, + "pct_cuda_time": 0.14153668597965138, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.251, + "pct_cuda_time": 0.14153668597965138, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 47.951, + "cuda_time_us": 33.329, + "pct_cuda_time": 0.5717217557890925, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 33.329, + "pct_cuda_time": 0.5717217557890925, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 482.12, + "cuda_time_us": 162.672, + "pct_cuda_time": 2.7904564030640957, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.797, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 289.593, + "cuda_time_us": 45.943000000000005, + "pct_cuda_time": 0.7881008318946945, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 47.17, + "cuda_time_us": 16.824, + "pct_cuda_time": 0.28859692218175437, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.824, + "pct_cuda_time": 0.28859692218175437, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.624, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 135.302, + "cuda_time_us": 13.016, + "pct_cuda_time": 0.22327493694232733, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.883, + "pct_cuda_time": 0.04945464376188765, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.248, + "pct_cuda_time": 0.10717745897477421, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.885, + "pct_cuda_time": 0.06664283420566545, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 53.69, + "cuda_time_us": 12.298, + "pct_cuda_time": 0.21095844917922105, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 12.298, + "pct_cuda_time": 0.21095844917922105, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.057, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 125.237, + "cuda_time_us": 107.39699999999999, + "pct_cuda_time": 1.8422755380143767, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.479, + "cuda_time_us": 62.943, + "pct_cuda_time": 1.079716837427851, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.943, + "pct_cuda_time": 1.079716837427851, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 18.178, + "cuda_time_us": 9.733, + "pct_cuda_time": 0.1669587401090713, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 9.733, + "pct_cuda_time": 0.1669587401090713, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 47.0, + "cuda_time_us": 34.721, + "pct_cuda_time": 0.5955999604774543, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 34.721, + "pct_cuda_time": 0.5955999604774543, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 494.998, + "cuda_time_us": 164.312, + "pct_cuda_time": 2.818588770656706, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.095, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 302.592, + "cuda_time_us": 47.403999999999996, + "pct_cuda_time": 0.8131626544878675, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 44.787, + "cuda_time_us": 16.534, + "pct_cuda_time": 0.2836222962050122, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.534, + "pct_cuda_time": 0.2836222962050122, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.251, + "cuda_time_us": 3.565, + "pct_cuda_time": 0.06115359174857075, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.565, + "pct_cuda_time": 0.06115359174857075, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 154.761, + "cuda_time_us": 13.055, + "pct_cuda_time": 0.22394393836678572, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.562, + "pct_cuda_time": 0.04394824742211451, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.448, + "pct_cuda_time": 0.1106082355104584, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.045, + "pct_cuda_time": 0.0693874554342128, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 54.792, + "cuda_time_us": 14.25, + "pct_cuda_time": 0.2444428281674988, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.25, + "pct_cuda_time": 0.2444428281674988, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.227, + "cuda_time_us": 4.645, + "pct_cuda_time": 0.07967978504126538, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.645, + "pct_cuda_time": 0.07967978504126538, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 126.008, + "cuda_time_us": 107.697, + "pct_cuda_time": 1.847421702817903, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 47.091, + "cuda_time_us": 63.564, + "pct_cuda_time": 1.0903693985711504, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 63.564, + "pct_cuda_time": 1.0903693985711504, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.056, + "cuda_time_us": 8.812, + "pct_cuda_time": 0.15116001416224556, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.812, + "pct_cuda_time": 0.15116001416224556, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 47.321, + "cuda_time_us": 35.321, + "pct_cuda_time": 0.605892290084507, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.321, + "pct_cuda_time": 0.605892290084507, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 495.44, + "cuda_time_us": 161.41, + "pct_cuda_time": 2.7688082031239283, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.216, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 303.924, + "cuda_time_us": 45.963, + "pct_cuda_time": 0.7884439095482629, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.088, + "cuda_time_us": 16.764, + "pct_cuda_time": 0.2875676892210491, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.764, + "pct_cuda_time": 0.2875676892210491, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.073, + "cuda_time_us": 3.765, + "pct_cuda_time": 0.06458436828425494, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.765, + "pct_cuda_time": 0.06458436828425494, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 135.382, + "cuda_time_us": 12.656, + "pct_cuda_time": 0.21709953917809577, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.803, + "pct_cuda_time": 0.048082333147613975, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.008, + "pct_cuda_time": 0.10306052713195317, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 56.875, + "cuda_time_us": 12.778, + "pct_cuda_time": 0.21919231286486313, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 12.778, + "pct_cuda_time": 0.21919231286486313, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.179, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 124.706, + "cuda_time_us": 106.155, + "pct_cuda_time": 1.8209704157277777, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.7, + "cuda_time_us": 62.072, + "pct_cuda_time": 1.0647758056149463, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.072, + "pct_cuda_time": 1.0647758056149463, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 16.885, + "cuda_time_us": 8.892, + "pct_cuda_time": 0.15253232477651923, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.892, + "pct_cuda_time": 0.15253232477651923, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.468, + "cuda_time_us": 35.191, + "pct_cuda_time": 0.6036622853363124, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.191, + "pct_cuda_time": 0.6036622853363124, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 468.679, + "cuda_time_us": 166.467, + "pct_cuda_time": 2.855555387828703, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.245, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 279.818, + "cuda_time_us": 47.715, + "pct_cuda_time": 0.8184975120008566, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.258, + "cuda_time_us": 17.114, + "pct_cuda_time": 0.29357154815849645, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.114, + "pct_cuda_time": 0.29357154815849645, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.762, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 132.238, + "cuda_time_us": 12.535, + "pct_cuda_time": 0.21502391937400683, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.763, + "pct_cuda_time": 0.04739617784047713, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 5.767, + "pct_cuda_time": 0.09892644140645374, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.005, + "pct_cuda_time": 0.06870130012707598, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 53.61, + "cuda_time_us": 14.381, + "pct_cuda_time": 0.24668998679837195, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.381, + "pct_cuda_time": 0.24668998679837195, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.997, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 124.136, + "cuda_time_us": 109.34, + "pct_cuda_time": 1.8756055320585485, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 45.849, + "cuda_time_us": 62.021, + "pct_cuda_time": 1.063900957598347, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.021, + "pct_cuda_time": 1.063900957598347, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.245, + "cuda_time_us": 9.454, + "pct_cuda_time": 0.16217280684179186, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 9.454, + "pct_cuda_time": 0.16217280684179186, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 46.95, + "cuda_time_us": 37.865, + "pct_cuda_time": 0.6495317676184099, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.865, + "pct_cuda_time": 0.6495317676184099, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 492.035, + "cuda_time_us": 166.058, + "pct_cuda_time": 2.848539449813229, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 22.924, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 302.832, + "cuda_time_us": 48.977999999999994, + "pct_cuda_time": 0.840162865823702, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.338, + "cuda_time_us": 17.996, + "pct_cuda_time": 0.3087012726808637, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.996, + "pct_cuda_time": 0.3087012726808637, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.023, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 152.568, + "cuda_time_us": 13.097, + "pct_cuda_time": 0.2246644014392794, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.924, + "pct_cuda_time": 0.05015795295170291, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.368, + "pct_cuda_time": 0.10923592489618472, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 55.573, + "cuda_time_us": 14.08, + "pct_cuda_time": 0.24152666811216722, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.08, + "pct_cuda_time": 0.24152666811216722, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.097, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 124.957, + "cuda_time_us": 107.94800000000001, + "pct_cuda_time": 1.8517273273701869, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.77, + "cuda_time_us": 63.965, + "pct_cuda_time": 1.0972481055251972, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 63.965, + "pct_cuda_time": 1.0972481055251972, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 16.495, + "cuda_time_us": 8.692, + "pct_cuda_time": 0.14910154824083505, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.692, + "pct_cuda_time": 0.14910154824083505, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 47.04, + "cuda_time_us": 35.291, + "pct_cuda_time": 0.6053776736041543, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.291, + "pct_cuda_time": 0.6053776736041543, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 556.842, + "cuda_time_us": 162.903, + "pct_cuda_time": 2.794418949962811, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.315, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 368.36, + "cuda_time_us": 47.986, + "pct_cuda_time": 0.8231462142067085, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.408, + "cuda_time_us": 17.775, + "pct_cuda_time": 0.30491026460893267, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.775, + "pct_cuda_time": 0.30491026460893267, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.273, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 213.569, + "cuda_time_us": 12.376000000000001, + "pct_cuda_time": 0.21229645202813793, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.603, + "pct_cuda_time": 0.04465155661192979, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 5.768, + "pct_cuda_time": 0.09894359528913213, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.005, + "pct_cuda_time": 0.06870130012707598, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 58.227, + "cuda_time_us": 14.15, + "pct_cuda_time": 0.24272743989965667, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.15, + "pct_cuda_time": 0.24272743989965667, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.869, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 122.293, + "cuda_time_us": 105.625, + "pct_cuda_time": 1.8118788579082148, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 45.397, + "cuda_time_us": 62.242, + "pct_cuda_time": 1.067691965670278, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.242, + "pct_cuda_time": 1.067691965670278, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.977, + "cuda_time_us": 8.412, + "pct_cuda_time": 0.14429846109087718, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.412, + "pct_cuda_time": 0.14429846109087718, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.438, + "cuda_time_us": 34.971, + "pct_cuda_time": 0.5998884311470596, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 34.971, + "pct_cuda_time": 0.5998884311470596, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 470.192, + "cuda_time_us": 164.015, + "pct_cuda_time": 2.813494067501215, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.276, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 280.548, + "cuda_time_us": 47.666, + "pct_cuda_time": 0.8176569717496138, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 47.001, + "cuda_time_us": 16.684, + "pct_cuda_time": 0.2861953786067754, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.684, + "pct_cuda_time": 0.2861953786067754, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.653, + "cuda_time_us": 3.645, + "pct_cuda_time": 0.06252590236284442, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.645, + "pct_cuda_time": 0.06252590236284442, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 132.107, + "cuda_time_us": 12.936000000000002, + "pct_cuda_time": 0.22190262632805366, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.643, + "pct_cuda_time": 0.04533771191906662, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.448, + "pct_cuda_time": 0.1106082355104584, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 53.55, + "cuda_time_us": 14.401, + "pct_cuda_time": 0.24703306445194034, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.401, + "pct_cuda_time": 0.24703306445194034, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.076, + "cuda_time_us": 4.526, + "pct_cuda_time": 0.0776384730025333, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.526, + "pct_cuda_time": 0.0776384730025333, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 121.762, + "cuda_time_us": 107.217, + "pct_cuda_time": 1.839187839132261, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 45.017, + "cuda_time_us": 62.122, + "pct_cuda_time": 1.0656334997488672, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.122, + "pct_cuda_time": 1.0656334997488672, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.746, + "cuda_time_us": 8.211, + "pct_cuda_time": 0.14085053067251457, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.211, + "pct_cuda_time": 0.14085053067251457, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 44.677, + "cuda_time_us": 36.884, + "pct_cuda_time": 0.632703808710879, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.884, + "pct_cuda_time": 0.632703808710879, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 473.226, + "cuda_time_us": 162.44400000000002, + "pct_cuda_time": 2.786545317813416, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 22.804, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 282.551, + "cuda_time_us": 47.527, + "pct_cuda_time": 0.8152725820573133, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 47.14, + "cuda_time_us": 16.865, + "pct_cuda_time": 0.28930023137156957, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.865, + "pct_cuda_time": 0.28930023137156957, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 23.906, + "cuda_time_us": 3.684, + "pct_cuda_time": 0.06319490378730286, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.684, + "pct_cuda_time": 0.06319490378730286, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 129.433, + "cuda_time_us": 12.857, + "pct_cuda_time": 0.22054746959645835, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.563, + "pct_cuda_time": 0.04396540130479294, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.209, + "pct_cuda_time": 0.10650845755031577, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.085, + "pct_cuda_time": 0.07007361074134964, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 54.651, + "cuda_time_us": 14.121, + "pct_cuda_time": 0.2422299773019825, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.121, + "pct_cuda_time": 0.2422299773019825, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.617, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 127.54, + "cuda_time_us": 105.745, + "pct_cuda_time": 1.8139373238296255, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 45.819, + "cuda_time_us": 62.042, + "pct_cuda_time": 1.0642611891345939, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.042, + "pct_cuda_time": 1.0642611891345939, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.766, + "cuda_time_us": 8.211, + "pct_cuda_time": 0.14085053067251457, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.211, + "pct_cuda_time": 0.14085053067251457, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 48.733, + "cuda_time_us": 35.492, + "pct_cuda_time": 0.608825604022517, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.492, + "pct_cuda_time": 0.608825604022517, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 487.618, + "cuda_time_us": 159.05700000000002, + "pct_cuda_time": 2.728445117181604, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.675, + "cuda_time_us": 4.565, + "pct_cuda_time": 0.07830747442699172, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.565, + "pct_cuda_time": 0.07830747442699172, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 294.369, + "cuda_time_us": 46.585, + "pct_cuda_time": 0.7991136245742408, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 52.909, + "cuda_time_us": 16.694, + "pct_cuda_time": 0.2863669174335596, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.694, + "pct_cuda_time": 0.2863669174335596, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.444, + "cuda_time_us": 3.725, + "pct_cuda_time": 0.0638982129771181, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.725, + "pct_cuda_time": 0.0638982129771181, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 134.001, + "cuda_time_us": 13.017, + "pct_cuda_time": 0.22329209082500573, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.044, + "pct_cuda_time": 0.05221641887311342, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.048, + "pct_cuda_time": 0.10374668243909001, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.925, + "pct_cuda_time": 0.06732898951280229, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 57.716, + "cuda_time_us": 13.149, + "pct_cuda_time": 0.22555640333855728, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.149, + "pct_cuda_time": 0.22555640333855728, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.258, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 128.642, + "cuda_time_us": 103.141, + "pct_cuda_time": 1.769268613335017, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 48.142, + "cuda_time_us": 61.471, + "pct_cuda_time": 1.0544663221252153, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.471, + "pct_cuda_time": 1.0544663221252153, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.616, + "cuda_time_us": 8.211, + "pct_cuda_time": 0.14085053067251457, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.211, + "pct_cuda_time": 0.14085053067251457, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 47.801, + "cuda_time_us": 33.459, + "pct_cuda_time": 0.5739517605372872, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 33.459, + "pct_cuda_time": 0.5739517605372872, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 468.87, + "cuda_time_us": 164.83599999999998, + "pct_cuda_time": 2.8275774051801985, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.235, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 280.439, + "cuda_time_us": 48.377, + "pct_cuda_time": 0.8298533823339713, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 46.129, + "cuda_time_us": 17.756, + "pct_cuda_time": 0.3045843408380427, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.756, + "pct_cuda_time": 0.3045843408380427, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.093, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 129.544, + "cuda_time_us": 13.096, + "pct_cuda_time": 0.224647247556601, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.883, + "pct_cuda_time": 0.04945464376188765, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.208, + "pct_cuda_time": 0.10649130366763737, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.005, + "pct_cuda_time": 0.06870130012707598, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 55.202, + "cuda_time_us": 13.68, + "pct_cuda_time": 0.23466511504079884, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.68, + "pct_cuda_time": 0.23466511504079884, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.266, + "cuda_time_us": 4.726, + "pct_cuda_time": 0.0810692495382175, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.726, + "pct_cuda_time": 0.0810692495382175, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 124.696, + "cuda_time_us": 107.08699999999999, + "pct_cuda_time": 1.8369578343840658, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.71, + "cuda_time_us": 62.673, + "pct_cuda_time": 1.0750852891046774, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.673, + "pct_cuda_time": 1.0750852891046774, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.275, + "cuda_time_us": 8.812, + "pct_cuda_time": 0.15116001416224556, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.812, + "pct_cuda_time": 0.15116001416224556, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.678, + "cuda_time_us": 35.602, + "pct_cuda_time": 0.6107125311171432, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.602, + "pct_cuda_time": 0.6107125311171432, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 470.653, + "cuda_time_us": 163.322, + "pct_cuda_time": 2.801606426805069, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.254, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 283.333, + "cuda_time_us": 46.683, + "pct_cuda_time": 0.800794705076726, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 46.219, + "cuda_time_us": 16.874, + "pct_cuda_time": 0.2894546163156754, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.874, + "pct_cuda_time": 0.2894546163156754, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.732, + "cuda_time_us": 3.724, + "pct_cuda_time": 0.0638810590944397, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.724, + "pct_cuda_time": 0.0638810590944397, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 133.85, + "cuda_time_us": 12.656, + "pct_cuda_time": 0.21709953917809577, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.843, + "pct_cuda_time": 0.04876848845475081, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 5.968, + "pct_cuda_time": 0.10237437182481633, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 53.65, + "cuda_time_us": 13.429, + "pct_cuda_time": 0.2303594904885152, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.429, + "pct_cuda_time": 0.2303594904885152, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.797, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 123.624, + "cuda_time_us": 107.387, + "pct_cuda_time": 1.8421039991875925, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 45.818, + "cuda_time_us": 63.013, + "pct_cuda_time": 1.0809176092153405, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 63.013, + "pct_cuda_time": 1.0809176092153405, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.926, + "cuda_time_us": 8.291, + "pct_cuda_time": 0.14222284128678825, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.291, + "pct_cuda_time": 0.14222284128678825, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.057, + "cuda_time_us": 36.083, + "pct_cuda_time": 0.6189635486854637, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.083, + "pct_cuda_time": 0.6189635486854637, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 462.861, + "cuda_time_us": 162.30200000000002, + "pct_cuda_time": 2.78410946647308, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 22.043, + "cuda_time_us": 4.406, + "pct_cuda_time": 0.07558000708112278, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.406, + "pct_cuda_time": 0.07558000708112278, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 274.45, + "cuda_time_us": 46.854, + "pct_cuda_time": 0.803728019014736, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 44.276, + "cuda_time_us": 16.544, + "pct_cuda_time": 0.2837938350317965, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.544, + "pct_cuda_time": 0.2837938350317965, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 20.601, + "cuda_time_us": 3.524, + "pct_cuda_time": 0.060450282558755494, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.524, + "pct_cuda_time": 0.060450282558755494, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 130.445, + "cuda_time_us": 13.216999999999999, + "pct_cuda_time": 0.22672286736068992, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.523, + "pct_cuda_time": 0.043279245997656104, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.689, + "pct_cuda_time": 0.11474232123595786, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.005, + "pct_cuda_time": 0.06870130012707598, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 52.709, + "cuda_time_us": 13.569, + "pct_cuda_time": 0.23276103406349413, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.569, + "pct_cuda_time": 0.23276103406349413, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.957, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 126.069, + "cuda_time_us": 106.27600000000001, + "pct_cuda_time": 1.8230460355318672, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 48.362, + "cuda_time_us": 62.142, + "pct_cuda_time": 1.065976577402436, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.142, + "pct_cuda_time": 1.065976577402436, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.897, + "cuda_time_us": 8.972, + "pct_cuda_time": 0.1539046353907929, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.972, + "pct_cuda_time": 0.1539046353907929, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.128, + "cuda_time_us": 35.162, + "pct_cuda_time": 0.603164822738638, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.162, + "pct_cuda_time": 0.603164822738638, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 483.912, + "cuda_time_us": 163.76299999999998, + "pct_cuda_time": 2.8091712890662524, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.195, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 290.233, + "cuda_time_us": 46.924, + "pct_cuda_time": 0.8049287908022255, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 44.416, + "cuda_time_us": 16.434, + "pct_cuda_time": 0.2819069079371702, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.434, + "pct_cuda_time": 0.2819069079371702, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.612, + "cuda_time_us": 3.724, + "pct_cuda_time": 0.0638810590944397, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.724, + "pct_cuda_time": 0.0638810590944397, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 139.868, + "cuda_time_us": 12.735999999999999, + "pct_cuda_time": 0.21847184979236944, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.883, + "pct_cuda_time": 0.04945464376188765, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 5.968, + "pct_cuda_time": 0.10237437182481633, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.885, + "pct_cuda_time": 0.06664283420566545, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 56.384, + "cuda_time_us": 14.03, + "pct_cuda_time": 0.24066897397824616, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.03, + "pct_cuda_time": 0.24066897397824616, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 31.888, + "cuda_time_us": 4.846, + "pct_cuda_time": 0.08312771545962801, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.846, + "pct_cuda_time": 0.08312771545962801, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 122.914, + "cuda_time_us": 107.347, + "pct_cuda_time": 1.8414178438804556, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.059, + "cuda_time_us": 61.761, + "pct_cuda_time": 1.0594409481019573, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.761, + "pct_cuda_time": 1.0594409481019573, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.326, + "cuda_time_us": 8.652, + "pct_cuda_time": 0.14841539293369818, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.652, + "pct_cuda_time": 0.14841539293369818, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 44.887, + "cuda_time_us": 36.934, + "pct_cuda_time": 0.6335615028448001, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.934, + "pct_cuda_time": 0.6335615028448001, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 587.537, + "cuda_time_us": 160.839, + "pct_cuda_time": 2.75901333611455, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 22.744, + "cuda_time_us": 4.526, + "pct_cuda_time": 0.0776384730025333, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.526, + "pct_cuda_time": 0.0776384730025333, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 319.176, + "cuda_time_us": 45.902, + "pct_cuda_time": 0.7873975227048793, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 49.854, + "cuda_time_us": 15.933, + "pct_cuda_time": 0.27331281271528124, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.933, + "pct_cuda_time": 0.27331281271528124, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.855, + "cuda_time_us": 3.765, + "pct_cuda_time": 0.06458436828425494, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.765, + "pct_cuda_time": 0.06458436828425494, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 159.748, + "cuda_time_us": 12.375, + "pct_cuda_time": 0.21227929814545948, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.803, + "pct_cuda_time": 0.048082333147613975, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 5.648, + "pct_cuda_time": 0.09688512936772162, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.924, + "pct_cuda_time": 0.06731183563012387, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 59.739, + "cuda_time_us": 13.829, + "pct_cuda_time": 0.23722104355988358, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.829, + "pct_cuda_time": 0.23722104355988358, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 88.962, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.806, + "pct_cuda_time": 0.08244156015249117, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 140.559, + "cuda_time_us": 105.605, + "pct_cuda_time": 1.8115357802546461, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 57.976, + "cuda_time_us": 62.773, + "pct_cuda_time": 1.0768006773725196, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.773, + "pct_cuda_time": 1.0768006773725196, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 19.179, + "cuda_time_us": 8.251, + "pct_cuda_time": 0.14153668597965138, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.251, + "pct_cuda_time": 0.14153668597965138, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 46.539, + "cuda_time_us": 34.581, + "pct_cuda_time": 0.5931984169024755, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 34.581, + "pct_cuda_time": 0.5931984169024755, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 500.247, + "cuda_time_us": 165.917, + "pct_cuda_time": 2.846120752355572, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 29.594, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 302.281, + "cuda_time_us": 47.787, + "pct_cuda_time": 0.8197325915537028, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 52.949, + "cuda_time_us": 17.285, + "pct_cuda_time": 0.2965048620965064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.285, + "pct_cuda_time": 0.2965048620965064, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 24.316, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 140.65, + "cuda_time_us": 12.737, + "pct_cuda_time": 0.21848900367504787, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.884, + "pct_cuda_time": 0.049471797644566065, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.128, + "pct_cuda_time": 0.1051189930533637, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.725, + "pct_cuda_time": 0.0638982129771181, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 55.814, + "cuda_time_us": 13.96, + "pct_cuda_time": 0.23946820219075673, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.96, + "pct_cuda_time": 0.23946820219075673, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.728, + "cuda_time_us": 4.605, + "pct_cuda_time": 0.07899362973412857, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.605, + "pct_cuda_time": 0.07899362973412857, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 124.997, + "cuda_time_us": 108.759, + "pct_cuda_time": 1.8656391262223861, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 47.15, + "cuda_time_us": 61.461, + "pct_cuda_time": 1.054294783298431, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.461, + "pct_cuda_time": 1.054294783298431, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.215, + "cuda_time_us": 9.533, + "pct_cuda_time": 0.1635279635733871, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 9.533, + "pct_cuda_time": 0.1635279635733871, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.729, + "cuda_time_us": 37.765, + "pct_cuda_time": 0.6478163793505678, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 37.765, + "pct_cuda_time": 0.6478163793505678, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 471.283, + "cuda_time_us": 164.414, + "pct_cuda_time": 2.820338466689905, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.626, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 282.662, + "cuda_time_us": 47.373000000000005, + "pct_cuda_time": 0.8126308841248366, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 44.907, + "cuda_time_us": 16.994, + "pct_cuda_time": 0.2915130822370859, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.994, + "pct_cuda_time": 0.2915130822370859, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.662, + "cuda_time_us": 3.684, + "pct_cuda_time": 0.06319490378730286, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.684, + "pct_cuda_time": 0.06319490378730286, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 136.103, + "cuda_time_us": 12.735000000000001, + "pct_cuda_time": 0.21845469590969102, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.482, + "pct_cuda_time": 0.042575936807840845, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.368, + "pct_cuda_time": 0.10923592489618472, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.885, + "pct_cuda_time": 0.06664283420566545, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 53.19, + "cuda_time_us": 13.96, + "pct_cuda_time": 0.23946820219075673, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.96, + "pct_cuda_time": 0.23946820219075673, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.038, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 123.655, + "cuda_time_us": 107.949, + "pct_cuda_time": 1.851744481252865, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 46.72, + "cuda_time_us": 62.623, + "pct_cuda_time": 1.0742275949707563, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.623, + "pct_cuda_time": 1.0742275949707563, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 16.765, + "cuda_time_us": 8.412, + "pct_cuda_time": 0.14429846109087718, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.412, + "pct_cuda_time": 0.14429846109087718, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.809, + "cuda_time_us": 36.914, + "pct_cuda_time": 0.6332184251912316, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.914, + "pct_cuda_time": 0.6332184251912316, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 480.157, + "cuda_time_us": 166.588, + "pct_cuda_time": 2.857631007632792, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.094, + "cuda_time_us": 4.525, + "pct_cuda_time": 0.07762131911985488, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.525, + "pct_cuda_time": 0.07762131911985488, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 286.267, + "cuda_time_us": 48.958, + "pct_cuda_time": 0.8398197881701337, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 44.987, + "cuda_time_us": 17.435, + "pct_cuda_time": 0.2990779444982695, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.435, + "pct_cuda_time": 0.2990779444982695, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 27.802, + "cuda_time_us": 3.605, + "pct_cuda_time": 0.061839747055707585, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.605, + "pct_cuda_time": 0.061839747055707585, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 134.651, + "cuda_time_us": 12.856, + "pct_cuda_time": 0.22053031571377998, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.683, + "pct_cuda_time": 0.046023867226203455, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.449, + "pct_cuda_time": 0.11062538939313682, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.724, + "pct_cuda_time": 0.0638810590944397, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 53.219, + "cuda_time_us": 15.062, + "pct_cuda_time": 0.2583717809023766, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 15.062, + "pct_cuda_time": 0.2583717809023766, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.537, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 130.835, + "cuda_time_us": 108.499, + "pct_cuda_time": 1.8611791167259966, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 53.75, + "cuda_time_us": 62.873, + "pct_cuda_time": 1.0785160656403614, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.873, + "pct_cuda_time": 1.0785160656403614, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 16.886, + "cuda_time_us": 8.732, + "pct_cuda_time": 0.14978770354797188, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.732, + "pct_cuda_time": 0.14978770354797188, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.908, + "cuda_time_us": 36.894, + "pct_cuda_time": 0.6328753475376632, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.894, + "pct_cuda_time": 0.6328753475376632, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 482.921, + "cuda_time_us": 166.63799999999998, + "pct_cuda_time": 2.8584887017667127, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.756, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.486, + "pct_cuda_time": 0.07695231769539645, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 288.932, + "cuda_time_us": 48.376000000000005, + "pct_cuda_time": 0.8298362284512929, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 44.687, + "cuda_time_us": 17.184, + "pct_cuda_time": 0.29477231994598596, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.184, + "pct_cuda_time": 0.29477231994598596, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.392, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 133.95, + "cuda_time_us": 13.457, + "pct_cuda_time": 0.23083979920351097, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.643, + "pct_cuda_time": 0.04533771191906662, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.809, + "pct_cuda_time": 0.11680078715736837, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.005, + "pct_cuda_time": 0.06870130012707598, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 62.063, + "cuda_time_us": 14.05, + "pct_cuda_time": 0.2410120516318146, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.05, + "pct_cuda_time": 0.2410120516318146, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.919, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.766, + "pct_cuda_time": 0.08175540484535433, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 128.752, + "cuda_time_us": 109.00999999999999, + "pct_cuda_time": 1.8699447507746696, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 52.398, + "cuda_time_us": 64.205, + "pct_cuda_time": 1.1013650373680182, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 64.205, + "pct_cuda_time": 1.1013650373680182, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.185, + "cuda_time_us": 8.572, + "pct_cuda_time": 0.1470430823194245, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.572, + "pct_cuda_time": 0.1470430823194245, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.067, + "cuda_time_us": 36.233, + "pct_cuda_time": 0.6215366310872269, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.233, + "pct_cuda_time": 0.6215366310872269, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 485.034, + "cuda_time_us": 164.10299999999998, + "pct_cuda_time": 2.815003609176916, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 22.874, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 284.595, + "cuda_time_us": 49.516999999999996, + "pct_cuda_time": 0.849408808587371, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 42.914, + "cuda_time_us": 17.615, + "pct_cuda_time": 0.3021656433803853, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.615, + "pct_cuda_time": 0.3021656433803853, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 21.933, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.845, + "pct_cuda_time": 0.06595667889852863, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 137.014, + "cuda_time_us": 13.497, + "pct_cuda_time": 0.23152595451064778, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.963, + "pct_cuda_time": 0.05082695437616133, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.569, + "pct_cuda_time": 0.11268385531454735, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.965, + "pct_cuda_time": 0.06801514481993914, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 56.044, + "cuda_time_us": 14.56, + "pct_cuda_time": 0.2497605317978093, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.56, + "pct_cuda_time": 0.2497605317978093, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.236, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 138.336, + "cuda_time_us": 105.25399999999999, + "pct_cuda_time": 1.8055147674345204, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 55.103, + "cuda_time_us": 62.192, + "pct_cuda_time": 1.0668342715363568, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.192, + "pct_cuda_time": 1.0668342715363568, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 18.688, + "cuda_time_us": 8.251, + "pct_cuda_time": 0.14153668597965138, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.251, + "pct_cuda_time": 0.14153668597965138, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 50.105, + "cuda_time_us": 34.811, + "pct_cuda_time": 0.5971438099185122, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 34.811, + "pct_cuda_time": 0.5971438099185122, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 508.008, + "cuda_time_us": 163.82399999999998, + "pct_cuda_time": 2.810217675909636, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.627, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.646, + "pct_cuda_time": 0.0796969389239438, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 288.661, + "cuda_time_us": 48.32599999999999, + "pct_cuda_time": 0.8289785343173716, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 47.751, + "cuda_time_us": 17.325, + "pct_cuda_time": 0.29719101740364323, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.325, + "pct_cuda_time": 0.29719101740364323, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.013, + "cuda_time_us": 3.764, + "pct_cuda_time": 0.06456721440157652, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.764, + "pct_cuda_time": 0.06456721440157652, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 136.043, + "cuda_time_us": 12.975999999999999, + "pct_cuda_time": 0.22258878163519047, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.723, + "pct_cuda_time": 0.04671002253334029, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.288, + "pct_cuda_time": 0.10786361428191105, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.965, + "pct_cuda_time": 0.06801514481993914, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 55.934, + "cuda_time_us": 14.261, + "pct_cuda_time": 0.2446315208769614, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.261, + "pct_cuda_time": 0.2446315208769614, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.158, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 153.85, + "cuda_time_us": 106.166, + "pct_cuda_time": 1.8211591084372405, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 70.986, + "cuda_time_us": 62.622, + "pct_cuda_time": 1.0742104410880777, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.622, + "pct_cuda_time": 1.0742104410880777, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 19.009, + "cuda_time_us": 8.252, + "pct_cuda_time": 0.14155383986232983, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.252, + "pct_cuda_time": 0.14155383986232983, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 48.132, + "cuda_time_us": 35.292, + "pct_cuda_time": 0.6053948274868328, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.292, + "pct_cuda_time": 0.6053948274868328, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 506.305, + "cuda_time_us": 165.567, + "pct_cuda_time": 2.8401168934181245, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.976, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 301.16, + "cuda_time_us": 49.088, + "pct_cuda_time": 0.8420497929183285, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.909, + "cuda_time_us": 18.397, + "pct_cuda_time": 0.3155799796349105, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 18.397, + "pct_cuda_time": 0.3155799796349105, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.724, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 149.373, + "cuda_time_us": 13.096, + "pct_cuda_time": 0.224647247556601, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.923, + "pct_cuda_time": 0.050140799069024494, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.208, + "pct_cuda_time": 0.10649130366763737, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.965, + "pct_cuda_time": 0.06801514481993914, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 55.222, + "cuda_time_us": 13.79, + "pct_cuda_time": 0.23655204213542513, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 13.79, + "pct_cuda_time": 0.23655204213542513, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 26.449, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.606, + "pct_cuda_time": 0.07901078361680698, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 131.537, + "cuda_time_us": 107.187, + "pct_cuda_time": 1.838673222651908, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 52.779, + "cuda_time_us": 62.933, + "pct_cuda_time": 1.0795452986010667, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 62.933, + "pct_cuda_time": 1.0795452986010667, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.746, + "cuda_time_us": 9.373, + "pct_cuda_time": 0.1607833423448397, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 9.373, + "pct_cuda_time": 0.1607833423448397, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.418, + "cuda_time_us": 34.881, + "pct_cuda_time": 0.5983445817060018, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 34.881, + "pct_cuda_time": 0.5983445817060018, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 493.307, + "cuda_time_us": 165.99800000000002, + "pct_cuda_time": 2.847510216852524, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 28.102, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 291.726, + "cuda_time_us": 47.756, + "pct_cuda_time": 0.8192008211906717, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 46.67, + "cuda_time_us": 16.924, + "pct_cuda_time": 0.29031231044959643, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 16.924, + "pct_cuda_time": 0.29031231044959643, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.243, + "cuda_time_us": 3.565, + "pct_cuda_time": 0.06115359174857075, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.565, + "pct_cuda_time": 0.06115359174857075, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 139.759, + "cuda_time_us": 13.217, + "pct_cuda_time": 0.22672286736068994, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.523, + "pct_cuda_time": 0.043279245997656104, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.649, + "pct_cuda_time": 0.11405616592882102, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 4.045, + "pct_cuda_time": 0.0693874554342128, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 54.852, + "cuda_time_us": 14.05, + "pct_cuda_time": 0.2410120516318146, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.05, + "pct_cuda_time": 0.2410120516318146, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.017, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 132.307, + "cuda_time_us": 108.99000000000001, + "pct_cuda_time": 1.8696016731211014, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 52.999, + "cuda_time_us": 64.936, + "pct_cuda_time": 1.113904525605944, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 64.936, + "pct_cuda_time": 1.113904525605944, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 18.808, + "cuda_time_us": 8.492, + "pct_cuda_time": 0.14567077170515086, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.492, + "pct_cuda_time": 0.14567077170515086, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 45.808, + "cuda_time_us": 35.562, + "pct_cuda_time": 0.6100263758100064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 35.562, + "pct_cuda_time": 0.6100263758100064, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "LlamaDecoderLayer", + "cpu_time_us": 572.694, + "cuda_time_us": 155.99200000000002, + "pct_cuda_time": 2.675868466772244, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 23.915, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaAttention", + "cpu_time_us": 370.483, + "cuda_time_us": 48.216, + "pct_cuda_time": 0.8270916072227454, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "QKVParallelLinear(weight=bfloat16[6144, 4096])", + "cpu_time_us": 45.898, + "cuda_time_us": 17.354, + "pct_cuda_time": 0.2976884800013175, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 17.354, + "pct_cuda_time": 0.2976884800013175, + "trace": "_rocm_C::wvSplitK(bfloat16[6144, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Llama3RotaryEmbedding", + "cpu_time_us": 22.133, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::rotary_embedding_kernel(long const*, c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, int, long, long, int, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 3.685, + "pct_cuda_time": 0.06321205766998127, + "trace": "_C::rotary_embedding(int64[1], bfloat16[1, 4096], bfloat16[1, 1024], 128, bfloat16[131072, 128], True)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Attention", + "cpu_time_us": 218.006, + "cuda_time_us": 12.736, + "pct_cuda_time": 0.21847184979236944, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void vllm::reshape_and_cache_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, __hip_bfloat16*, long const*, int, int, int, int, int, int, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 2.683, + "pct_cuda_time": 0.046023867226203455, + "trace": "_C_cache_ops::reshape_and_cache(bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], int64[1], None, float32[], float32[]) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_QKV_mfma4_kernel<__hip_bfloat16, __hip_bfloat16, (vllm::Fp8KVCacheDataType)0, __hip_bfloat16, 16, 128, 256, false, 4>(__hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16 const*, int, float, int const*, int const*, int const*, int, float const*, int, int, int, float*, float*, __hip_bfloat16*, __hip_bfloat16*, int, float const*, float const*, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 6.248, + "pct_cuda_time": 0.10717745897477421, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void paged_attention_ll4mi_reduce_kernel<__hip_bfloat16, __hip_bfloat16, 128, 128, 256, 1>(__hip_bfloat16*, float const*, float const*, __hip_bfloat16 const*, int const*, int const*, int, float const*)", + "cpu_time_us": 0, + "cuda_time_us": 3.805, + "pct_cuda_time": 0.06527052359139178, + "trace": "_rocm_C::paged_attention(bfloat16[1, 32, 128], float32[1, 32, 5], float32[1, 32, 5], bfloat16[1, 32, 5, 128], bfloat16[1, 32, 128], bfloat16[79739, 8, 16, 16, 8], bfloat16[79739, 8, 128, 16], 8, 0.08838834764831845, int32[1, 65], int32[1], None, 16, 1025, None, None, float32[], float32[], None) <- vllm::unified_attention_with_output(bfloat16[1, 32, 128], bfloat16[1, 8, 128], bfloat16[1, 8, 128], bfloat16[1, 32, 128], None, None)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 4096])", + "cpu_time_us": 56.574, + "cuda_time_us": 14.441, + "pct_cuda_time": 0.24771921975907718, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 14.441, + "pct_cuda_time": 0.24771921975907718, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 25.368, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.686, + "pct_cuda_time": 0.08038309423108064, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "LlamaMLP", + "cpu_time_us": 133.459, + "cuda_time_us": 98.524, + "pct_cuda_time": 1.6900691370087473, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "MergedColumnParallelLinear(weight=bfloat16[28672, 4096])", + "cpu_time_us": 54.531, + "cuda_time_us": 61.851, + "pct_cuda_time": 1.0609847975430151, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 61.851, + "pct_cuda_time": 1.0609847975430151, + "trace": "_rocm_C::wvSplitK(bfloat16[28672, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "SiluAndMul", + "cpu_time_us": 17.306, + "cuda_time_us": 8.292, + "pct_cuda_time": 0.14223999516946667, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "_ZN4vllm18act_and_mul_kernelIN3c108BFloat16ETnPFT_RKS3_EXadL_ZNS_11silu_kernelIS2_EES3_S5_EELb1EEEvPS3_PS4_i", + "cpu_time_us": 0, + "cuda_time_us": 8.292, + "pct_cuda_time": 0.14223999516946667, + "trace": "_C::silu_and_mul(bfloat16[1, 14336], bfloat16[1, 28672])" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "RowParallelLinear(weight=bfloat16[4096, 14336])", + "cpu_time_us": 46.97, + "cuda_time_us": 28.381, + "pct_cuda_time": 0.48684434429626544, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 28.381, + "pct_cuda_time": 0.48684434429626544, + "trace": "_rocm_C::wvSplitK(bfloat16[4096, 14336], bfloat16[1, 14336], 304)" + }, + "children": [] + } + ] + } + ] + } + ] + }, + { + "entry": { + "name": "RMSNorm(weight=bfloat16[4096])", + "cpu_time_us": 24.446, + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "std::enable_if<(((8)>(0)))&&_typeConvert::exists, void>::type vllm::fused_add_rms_norm_kernel(c10::BFloat16*, c10::BFloat16*, c10::BFloat16 const*, float, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 4.446, + "pct_cuda_time": 0.07626616238825962, + "trace": "_C::fused_add_rms_norm(bfloat16[1, 4096], bfloat16[1, 4096], bfloat16[4096], 1e-05)" + }, + "children": [] + } + ] + } + ] + }, + { + "entry": { + "name": "LogitsProcessor", + "cpu_time_us": 118.567, + "cuda_time_us": 263.2, + "pct_cuda_time": 4.514901920960399, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "void at::native::(anonymous namespace)::indexSelectSmallIndex(at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, at::cuda::detail::TensorInfo, int, int, unsigned int, long)", + "cpu_time_us": 0, + "cuda_time_us": 2.723, + "pct_cuda_time": 0.04671002253334029, + "trace": "index_select(bfloat16[1, 4096], 0, int64[1])" + }, + "children": [] + }, + { + "entry": { + "name": "void wvSplitK_hf_sml_<__hip_bfloat16, 64, 2, 16, 8, 2, 1>(int, int, __hip_bfloat16 const*, __hip_bfloat16 const*, __hip_bfloat16*, int, int)", + "cpu_time_us": 0, + "cuda_time_us": 260.477, + "pct_cuda_time": 4.468191898427058, + "trace": "_rocm_C::wvSplitK(bfloat16[128256, 4096], bfloat16[1, 4096], 304)" + }, + "children": [] + } + ] + }, + { + "entry": { + "name": "Sampler", + "cpu_time_us": 848.307, + "cuda_time_us": 187.143, + "pct_cuda_time": 3.2102290660877353, + "trace": "" + }, + "children": [ + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.363, + "pct_cuda_time": 0.04053462476910875, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.282, + "pct_cuda_time": 0.03914516027215665, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.603, + "pct_cuda_time": 0.04465155661192979, + "trace": "copy_(int32[1], int32[1], True) <- _to_copy(int32[1], 3, 0, None, None, True, None) <- to(int32[1], 3, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.323, + "pct_cuda_time": 0.0398484694619719, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.402, + "pct_cuda_time": 0.04120362619356717, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.483, + "pct_cuda_time": 0.04259309069051927, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoD (Device -> Device)", + "cpu_time_us": 0, + "cuda_time_us": 2.442, + "pct_cuda_time": 0.04188978150070401, + "trace": "copy_(bfloat16[1], bfloat16[1], True) <- _to_copy(bfloat16[1], 15, 0, None, None, True, None) <- to(bfloat16[1], 15, 0, None, None, True, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#7}::operator()() const::{lambda(float)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 3.604, + "pct_cuda_time": 0.06182259317302917, + "trace": "copy_(float32[1, 128256], bfloat16[1, 128256], False) <- _to_copy(bfloat16[1, 128256], 6, None, None, None, False, None) <- to(bfloat16[1, 128256], 6, False, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<128, 4, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2}>(int, at::native::gpu_kernel_impl > >(at::TensorIteratorBase&, at::native::BinaryFunctor > const&)::{lambda(int)#2})", + "cpu_time_us": 0, + "cuda_time_us": 9.493, + "pct_cuda_time": 0.16284180826625025, + "trace": "div_(float32[1, 128256], bfloat16[1, 1])" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::SoftMaxForwardEpilogue>(float*, float const*, int)", + "cpu_time_us": 0, + "cuda_time_us": 64.575, + "pct_cuda_time": 1.107711973959034, + "trace": "_softmax(float32[1, 128256], -1, False) <- softmax(float32[1, 128256], -1, 6)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::(anonymous namespace)::cunn_SoftMaxForward<4, float, float, float, at::native::(anonymous namespace)::LogSoftMaxForwardEpilogue>(float*, float const*, int)", + "cpu_time_us": 0, + "cuda_time_us": 36.093, + "pct_cuda_time": 0.6191350875122481, + "trace": "_log_softmax(float32[1, 128256], -1, False) <- log_softmax(float32[1, 128256], -1, 6)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::elementwise_kernel<512, 1, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1}>(int, at::native::gpu_kernel_impl(at::TensorIteratorBase&, at::native::direct_copy_kernel_cuda(at::TensorIteratorBase&)::{lambda()#3}::operator()() const::{lambda()#4}::operator()() const::{lambda(long)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 3.925, + "pct_cuda_time": 0.06732898951280229, + "trace": "copy_(int64[1], int32[1], False) <- _to_copy(int32[1], 4, None, None, None, False, None) <- to(int32[1], 4, False, False, None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::index_elementwise_kernel<128, 4, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1}>(long, at::native::gpu_index_kernel >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1}>(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef, at::native::index_kernel_impl >(at::TensorIteratorBase&, c10::ArrayRef, c10::ArrayRef)::{lambda(char*, char const*, long)#1} const&)::{lambda(int)#1})", + "cpu_time_us": 0, + "cuda_time_us": 5.367, + "pct_cuda_time": 0.09206488833508533, + "trace": "index(float32[1, 128256], None)" + }, + "children": [] + }, + { + "entry": { + "name": "void at::native::reduce_kernel<512, 1, at::native::ReduceOp, unsigned int, long, 4, 4> >(at::native::ReduceOp, unsigned int, long, 4, 4>)", + "cpu_time_us": 0, + "cuda_time_us": 42.622, + "pct_cuda_time": 0.7311327875196585, + "trace": "argmax(float32[1, 128256], -1, False)" + }, + "children": [] + }, + { + "entry": { + "name": "Memcpy DtoH (Device -> Host)", + "cpu_time_us": 0, + "cuda_time_us": 4.566, + "pct_cuda_time": 0.07832462830967014, + "trace": "copy_(int64[1], int64[1], False) <- _to_copy(int64[1], 4, 0, None, None, False, None) <- to(int64[1], 4, 0, None, None, False, False, None)" + }, + "children": [] + } + ] + } + ] + } +} \ No newline at end of file