seq uint64 1 6.71k ⌀ | start_ns int64 1,794,389,371B 1,794,389,457B | dur_ns int64 896 427k | call stringlengths 5 19 ⌀ | op stringclasses 32
values | kernel stringclasses 144
values |
|---|---|---|---|---|---|
null | 1,794,389,370,940,547,300 | 2,048 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIiEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,370,974,329,000 | 1,120 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIiEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,370,975,541,000 | 1,248 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIiEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,370,976,610,300 | 1,152 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIiEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,373,013,054,700 | 1,664 | null | null | _ZN50_GLOBAL__N__2fa45684_17_RangeFactories_cu_38772b0829elementwise_kernel_with_indexIiZZZN2at6native15arange_cuda_outERKN3c106ScalarES6_S6_RNS1_6TensorEENKUlvE_clEvENKUlvE1_clEvEUllE_EEvT_T0_PN15function_traitsISD_E11result_typeE |
null | 1,794,389,373,895,676,000 | 3,008 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi2EZNS0_27converting_copy_kernel_cudaIilEEvRNS_18TensorIteratorBaseEEUliE_St5arrayIPcLm2EELb0EEEviT0_T1_ |
null | 1,794,389,373,895,775,500 | 1,504 | null | null | _ZN2at6native27unrolled_elementwise_kernelIZNS0_27converting_copy_kernel_cudaIilEEvRNS_18TensorIteratorBaseEEUliE_St5arrayIPcLm2EELi4E23TrivialOffsetCalculatorILi1EjESA_NS0_6memory15LoadWithoutCastENSB_16StoreWithoutCastEEEviT_T0_T2_T3_T4_T5_ |
null | 1,794,389,374,606,567,400 | 20,801 | null | null | _fused_slot_copy_kernel |
null | 1,794,389,374,606,888,400 | 1,313 | null | null | _ZN50_GLOBAL__N__2fa45684_17_RangeFactories_cu_38772b0829elementwise_kernel_with_indexIiZZZN2at6native15arange_cuda_outERKN3c106ScalarES6_S6_RNS1_6TensorEENKUlvE_clEvENKUlvE2_clEvEUllE_EEvT_T0_PN15function_traitsISD_E11result_typeE |
null | 1,794,389,374,628,929,500 | 1,632 | null | null | _ZN50_GLOBAL__N__2fa45684_17_RangeFactories_cu_38772b0829elementwise_kernel_with_indexIiZZZN2at6native15arange_cuda_outERKN3c106ScalarES6_S6_RNS1_6TensorEENKUlvE_clEvENKUlvE2_clEvEUllE_EEvT_T0_PN15function_traitsISD_E11result_typeE |
null | 1,794,389,374,629,515,000 | 1,760 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi8ENS0_11FillFunctorIN3c104HalfEEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,374,629,545,500 | 1,344 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi8ENS0_11FillFunctorIN3c104HalfEEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,374,681,893,400 | 2,880 | null | null | _ZN7cutlass7Kernel2I65cutlass_80_wmma_tensorop_f16_s161616gemm_f16_32x32_32x1_nn_align2EEvNT_6ParamsE |
null | 1,794,389,374,682,948,400 | 1,888 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIiEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,374,686,228,200 | 1,568 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIfEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
null | 1,794,389,374,797,944,000 | 1,184 | null | null | _ZN50_GLOBAL__N__2fa45684_17_RangeFactories_cu_38772b0829elementwise_kernel_with_indexIiZZZN2at6native15arange_cuda_outERKN3c106ScalarES6_S6_RNS1_6TensorEENKUlvE_clEvENKUlvE1_clEvEUllE_EEvT_T0_PN15function_traitsISD_E11result_typeE |
null | 1,794,389,374,799,325,700 | 1,408 | null | null | _ZN2at6native29vectorized_elementwise_kernelILi2ENS0_11FillFunctorIlEESt5arrayIPcLm1EELb0EEEviT0_T1_ |
1 | 1,794,389,374,803,394,600 | 3,136 | load.weight_p1.0 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,407,600 | 185,409 | load.rope_table.1 | rope_table | kern_rope_table_bf16 |
1 | 1,794,389,374,803,593,500 | 1,376 | load.fill_i32.2 | fill_i32 | kern_fill_i32 |
1 | 1,794,389,374,803,595,000 | 1,312 | load.iota_i32.3 | iota_i32 | kern_iota_i32 |
1 | 1,794,389,374,803,596,500 | 1,312 | load.fill_i64.4 | fill_i64 | kern_fill_i64 |
1 | 1,794,389,374,803,598,000 | 1,504 | load.fill_u8.5 | fill_u8 | kern_fill_u8 |
1 | 1,794,389,374,803,600,000 | 2,624 | load.weight_p1.6 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,602,700 | 2,368 | load.weight_p1.7 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,605,200 | 1,408 | load.cast_f32.8 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,607,000 | 1,792 | load.weight_p1.9 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,609,000 | 2,048 | load.weight_p1.10 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,611,400 | 1,376 | load.cast_f32.11 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,613,000 | 2,400 | load.weight_p1.12 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,615,500 | 2,272 | load.weight_p1.13 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,618,000 | 1,536 | load.cast_f32.14 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,619,800 | 2,624 | load.weight_p1.15 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,622,700 | 2,144 | load.weight_p1.16 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,625,200 | 1,888 | load.weight_p1.17 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,627,300 | 1,632 | load.weight_p1.18 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,629,000 | 2,368 | load.weight_p1.19 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,631,900 | 2,112 | load.weight_p1.20 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,634,200 | 1,600 | load.cast_f32.21 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,636,000 | 2,400 | load.weight_p1.22 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,638,500 | 2,176 | load.weight_p1.23 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,641,000 | 1,344 | load.cast_f32.24 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,642,600 | 2,592 | load.weight_p1.25 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,645,400 | 2,176 | load.weight_p1.26 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,648,000 | 1,408 | load.cast_f32.27 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,649,500 | 1,984 | load.weight_p1.28 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,651,800 | 2,112 | load.weight_p1.29 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,654,100 | 2,144 | load.weight_p1.30 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,656,700 | 1,568 | load.weight_p1.31 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,658,500 | 2,112 | load.weight_p1.32 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,660,800 | 2,272 | load.weight_p1.33 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,663,400 | 1,856 | load.cast_f32.34 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,665,400 | 1,920 | load.weight_p1.35 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,667,700 | 1,760 | load.weight_p1.36 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,669,500 | 1,248 | load.cast_f32.37 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,671,000 | 1,600 | load.weight_p1.38 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,673,000 | 1,984 | load.weight_p1.39 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,675,100 | 1,344 | load.cast_f32.40 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,677,000 | 1,824 | load.weight_p1.41 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,679,000 | 2,144 | load.weight_p1.42 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,681,300 | 1,952 | load.weight_p1.43 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,683,600 | 1,568 | load.weight_p1.44 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,685,400 | 1,984 | load.weight_p1.45 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,687,400 | 2,112 | load.weight_p1.46 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,690,000 | 1,568 | load.cast_f32.47 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,691,800 | 1,792 | load.weight_p1.48 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,693,800 | 2,112 | load.weight_p1.49 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,696,000 | 1,344 | load.cast_f32.50 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,697,700 | 1,792 | load.weight_p1.51 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,699,700 | 1,984 | load.weight_p1.52 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,702,000 | 1,536 | load.cast_f32.53 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,703,800 | 1,856 | load.weight_p1.54 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,705,900 | 2,112 | load.weight_p1.55 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,708,200 | 2,464 | load.weight_p1.56 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,711,000 | 1,440 | load.weight_p1.57 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,712,800 | 2,112 | load.weight_p1.58 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,715,000 | 2,048 | load.weight_p1.59 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,717,400 | 1,536 | load.cast_f32.60 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,719,200 | 1,600 | load.weight_p1.61 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,721,000 | 2,144 | load.weight_p1.62 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,723,300 | 1,248 | load.cast_f32.63 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,724,800 | 2,016 | load.weight_p1.64 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,727,000 | 2,016 | load.weight_p1.65 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,729,400 | 1,728 | load.cast_f32.66 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,731,500 | 1,856 | load.weight_p1.67 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,733,500 | 1,984 | load.weight_p1.68 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,735,600 | 1,760 | load.weight_p1.69 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,737,600 | 1,600 | load.weight_p1.70 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,739,400 | 1,632 | load.weight_p1.71 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,741,400 | 2,016 | load.weight_p1.72 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,743,700 | 1,792 | load.cast_f32.73 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,745,800 | 1,824 | load.weight_p1.74 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,747,800 | 2,112 | load.weight_p1.75 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,750,100 | 1,600 | load.cast_f32.76 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,752,000 | 1,568 | load.weight_p1.77 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,753,700 | 2,080 | load.weight_p1.78 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,756,000 | 1,568 | load.cast_f32.79 | cast_f32 | kern_cast_bf16_f32 |
1 | 1,794,389,374,803,758,000 | 1,792 | load.weight_p1.80 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,760,000 | 2,112 | load.weight_p1.81 | weight_p1 | kern_weight_p1_bf16_f32 |
1 | 1,794,389,374,803,762,400 | 2,112 | load.weight_p1.82 | weight_p1 | kern_weight_p1_bf16_f32 |
kern-traces
Sample traces recorded by kern, a model-agnostic GPU runtime: every GPU kernel a serving process ran, when it started and how long it took, stamped by the GPU itself (CUPTI's hardware event system), and the call of the model's manifest that launched it.
A trace holds GPU timing and manifest identifiers only. Prompts, token ids, completions and request identifiers are never written.
- How to record one: Trace an SGLang server
- Every column and the files' metadata: Trace format
qwen3.8-27b-sglang
Qwen3.8-27B served by an unmodified SGLang
(lmsysorg/sglang:dev-kimi-k31-pro-cu134) with kern as its model, on one
GB300: kern-llm 0.5.0 from PyPI, the manifest
qwen3.8-27b-rsi-sglang.json of
Pegainfer/kern-qwen38-sm103,
and the server command of the guide with KERN_TRACE_DIR set.
The load is 384 requests of 2048 prompt tokens and 256 output tokens, greedy, 32 at a time, 83 seconds from the first step to the last.
| kernels | 2,610,686 rows in 11.3 MB (4.3 bytes a kernel), none dropped, kern.hes true |
| steps | 6,712: 386 prefill, and 3,067 replays of SGLang's decode graph, each one decode_batch step and one head step |
| in a step | 99.4% of the kernel time; the rest is SGLang's own kernels (seq null) |
The server crossed a quarter hour while it ran, so the trace is two pairs of files.
-- DuckDB
CREATE VIEW steps AS SELECT * FROM read_parquet('hf://datasets/Pegainfer/kern-traces/qwen3.8-27b-sglang/date=*/rank=*/*.steps.parquet');
CREATE VIEW kernels AS SELECT * FROM read_parquet('hf://datasets/Pegainfer/kern-traces/qwen3.8-27b-sglang/date=*/rank=*/*.kernels.parquet');
SELECT s.program, k.op, count(*) AS kernels, round(sum(k.dur_ns) / 1e6, 1) AS gpu_ms
FROM steps s JOIN kernels k USING (rank, seq)
GROUP BY ALL ORDER BY gpu_ms DESC LIMIT 6;
| program | op | kernels | gpu_ms |
|---|---|---|---|
| prefill | gemm | 117,696 | 22,259.1 |
| decode_batch | gemm_gate_up_silu | 396,544 | 13,464.9 |
| decode_batch | gemm_n5120_norm | 1,187,328 | 12,925.9 |
| decode_batch | gdn_step | 149,184 | 5,306.5 |
| decode_batch | gemm_in_proj | 149,184 | 4,476.9 |
| decode_batch | attn_batch | 49,728 | 3,438.9 |
- Downloads last month
- 83