MCPcopy Create free account

hub / github.com/deepseek-ai/FlashMLA / functions

Functions363 in github.com/deepseek-ai/FlashMLA

↓ 42 callersFunctionprint
csrc/sm100/prefill/dense/common/pow_2.hpp:81
↓ 27 callersFunctionint64_stride_to_int
Convert int64_t stride to int32_t, with overflow check.
csrc/api/common.h:44
↓ 23 callersFunctiongemm
csrc/sm90/helpers.h:61
↓ 21 callersMethodinit_masks
csrc/sm100/prefill/dense/common/pipeline_mla.hpp:110
↓ 18 callersFunctionceil_div
csrc/kerutils/include/kerutils/host/host.h:72
↓ 10 callersFunctiongemm_zero_acc
csrc/sm100/prefill/dense/collective/fmha_common.hpp:56
↓ 10 callersFunctionwarp_uniform
csrc/sm100/prefill/dense/collective/fmha_common.hpp:67
↓ 9 callersMethodload
csrc/sm100/prefill/dense/collective/sm100_fmha_load_tma_warpspecialized.hpp:149
↓ 7 callersFunctiongemm_reset_zero_acc
csrc/sm100/prefill/dense/collective/fmha_common.hpp:42
↓ 7 callersMethodget_trip_count
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:43
↓ 7 callersFunctionreport_err
(*args, **kwargs)
tests/kernelkit/compare.py:42
↓ 7 callersMethodrun
csrc/api/common.h:226
↓ 6 callersFunctioncheck_is_allclose
Check if two tensors are close enough Return a bool if avoid_sync is False, else return a tensor
tests/kernelkit/compare.py:31
↓ 6 callersFunctionunstageSmemLayout
csrc/sm100/prefill/dense/collective/fmha_common.hpp:62
↓ 5 callersMethodget_block_coord
csrc/sm100/prefill/dense/kernel/fmha_tile_scheduler.hpp:73
↓ 5 callersMethodis_valid
csrc/sm100/prefill/dense/kernel/fmha_tile_scheduler.hpp:68
↓ 4 callersMethodapply_mask
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:73
↓ 4 callersMethodsoftmax
csrc/sm100/prefill/dense/collective/sm100_fmha_fwd_mainloop_tma_warpspecialized.hpp:714
↓ 4 callersMethodstore
csrc/sm100/prefill/dense/kernel/sm100_fmha_bwd_kernel_tma_warpspecialized.hpp:946
↓ 3 callersMethod_get_matched_kernel_name
(self, name_substr: str, allow_no_match: bool = False, allow_multiple_match: bool = False)
tests/kernelkit/bench.py:33
↓ 3 callersMethodbackward
( ctx, do: torch.Tensor, dlse: torch.Tensor, )
flash_mla/flash_mla_interface.py:356
↓ 3 callersFunctiondeal_with_anomalies
(val: float)
tests/kernelkit/compare.py:47
↓ 3 callersFunctionget_dynamic_enum_name
csrc/api/common.h:133
↓ 3 callersMethodget_kernel_time
(self, kernel_name_substr: str)
tests/kernelkit/bench.py:74
↓ 3 callersMethodget_masked_trip_count
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:53
↓ 3 callersMethodinitialize
Initializes state from arguments.
csrc/sm100/prefill/dense/device/fmha_device_bwd.hpp:266
↓ 3 callersMethodint
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:321
↓ 3 callersFunctionis_flag_set
(flag: str)
setup.py:16
↓ 3 callersMethodis_sm90a
csrc/api/common.h:34
↓ 3 callersFunctionis_using_profiling_tools
Return whether we are running under profiling tools like nsys or ncu NOTE cuda-gdb will also cause conflict with CUPTI (bench_kineto) but cu
tests/kernelkit/utils.py:22
↓ 2 callersFunction_cast_scale_inv_to_ue8m0
(scales_inv: torch.Tensor, out_dtype = torch.float32)
tests/quant.py:17
↓ 2 callersFunction_get_new_non_contiguous_tensor_shape
Get the expanded shape for a non-contiguous tensor. The last dimension is increased by 128 (for alignment), and all other dimensions are incr
tests/kernelkit/generate.py:3
↓ 2 callersFunction_randperm_batch
Generate random permutations in batch The return tensor, denoted as `res`, has a shape of [batch_size, perm_size]. `0 <= res[i, :] < perm_ran
tests/lib.py:100
↓ 2 callersFunctionapply_variable_length_offset
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:361
↓ 2 callersMethodcheck_if_all_features_are_supported
csrc/api/common.h:176
↓ 2 callersFunctioncompare_a
(target, b, s_q, cache_seqlens, h_q, h_kv, d, dv, causal, dtype)
benchmark/bench_flash_mla.py:450
↓ 2 callersFunctionflash_attn
()
tests/test_fmha_sm100.py:88
↓ 2 callersFunctiongenerate_one_k_scope
(s_k: int, block_size: int, topk: int, is_varlen: bool, have_zero_seqlen: bool, is_all_indices_invalid: bool,
tests/lib.py:242
↓ 2 callersFunctionget_attn_bias
(s_q, s_k, causal, window)
tests/test_fmha_sm100.py:18
↓ 2 callersFunctionget_features_args
()
setup.py:19
↓ 2 callersMethodget_kvcache_for_flash_mla
Return the quantized blocked_k for Flash MLA
tests/lib.py:195
↓ 2 callersMethodget_meta
(self)
tests/quant.py:10
↓ 2 callersFunctionget_num_attended_tokens
(kv_scope: KVScope)
tests/lib.py:371
↓ 2 callersFunctionget_num_retrieved_tokens
(kv_scope: KVScope)
tests/lib.py:378
↓ 2 callersFunctionget_pos_in_tensor
(t: torch.Tensor, pos: int)
tests/kernelkit/compare.py:76
↓ 2 callersFunctionhave_kernel
(name: str)
tests/test_flash_mla_sparse_decoding.py:191
↓ 2 callersMethodis_sm100f
csrc/api/common.h:38
↓ 2 callersMethodnext
(self)
tests/kernelkit/utils.py:48
↓ 2 callersFunctionpick_kernel_time_usage
(kernel_name: str)
tests/test_flash_mla_sparse_decoding.py:180
↓ 2 callersFunctionprint_kernel_time_usage
(name: str, short_name: str)
tests/test_flash_mla_sparse_decoding.py:210
↓ 2 callersFunctionprocess_kv_scope
(kv_scope: KVScope)
tests/ref.py:66
↓ 2 callersMethodquant_and_dequant_
For FP8 cases, we need to quantize the KV cache for Flash MLA. Besides, the quantization error may be too large to be distinguished f
tests/lib.py:178
↓ 2 callersFunctiontimer
(func, name)
tests/test_fmha_sm100.py:151
↓ 1 callersFunction_flash_attn_varlen_backward
( do: torch.Tensor, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, out: torch.Tensor,
flash_mla/flash_mla_interface.py:261
↓ 1 callersFunction_flash_attn_varlen_forward
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, cu_seqlens_qo: torch.Tensor, cu_seqle
flash_mla/flash_mla_interface.py:214
↓ 1 callersFunction_merge_two_lse
(lse0: torch.Tensor, lse1: Optional[torch.Tensor], s_q: int, h_q: int)
tests/ref.py:7
↓ 1 callersFunction_mla_attn
( q_nope, q_pe, kv_c_cache, k_pe_cache, attn_logits, req_to_tokens, b_seq_len,
benchmark/bench_flash_mla.py:222
↓ 1 callersFunction_mla_softmax_reducev
( logits, o, b_seq_len, num_kv_splits, )
benchmark/bench_flash_mla.py:323
↓ 1 callersFunction_run_profiler_range_start_marker_kernel
()
tests/kernelkit/bench.py:20
↓ 1 callersFunctionapply_variable_length
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:331
↓ 1 callersFunctionbackward
()
tests/test_fmha_sm100.py:137
↓ 1 callersFunctioncompare_ab
(baseline, target, b, s_q, cache_seqlens, h_q, h_kv, d, dv, causal, dtype)
benchmark/bench_flash_mla.py:410
↓ 1 callersMethodcorrection
csrc/sm100/prefill/dense/collective/sm100_fmha_fwd_mainloop_tma_warpspecialized.hpp:954
↓ 1 callersMethodcorrection_empty
csrc/sm100/prefill/dense/collective/sm100_fmha_fwd_mainloop_tma_warpspecialized.hpp:1142
↓ 1 callersFunctionflash_attn_varlen_func
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, cu_seqlens_qo: torch.Tensor, cu_seqle
flash_mla/flash_mla_interface.py:372
↓ 1 callersFunctionflash_infer
()
benchmark/bench_flash_mla.py:126
↓ 1 callersFunctionflash_mla
()
benchmark/bench_flash_mla.py:70
↓ 1 callersFunctionflash_mla_triton
()
benchmark/bench_flash_mla.py:391
↓ 1 callersFunctionflash_mla_with_kvcache
Arguments: q: (batch_size, seq_len_q, num_heads_q, head_dim). k_cache: (num_blocks, page_block_size, num_heads_k, head_dim).
flash_mla/flash_mla_interface.py:53
↓ 1 callersFunctionforward
()
tests/test_fmha_sm100.py:134
↓ 1 callersFunctiongen_non_contiguous_tensor
(shape, *args, **kwargs)
tests/kernelkit/generate.py:16
↓ 1 callersFunctiongen_testcase
()
tests/test_flash_mla_sparse_decoding.py:23
↓ 1 callersFunctiongenerate_test_data
Generate test data from a given configuration Return: [cache_seqlens, q, block_table, blocked_k] Pay attention: This function changes the
tests/test_flash_mla_dense_decoding.py:29
↓ 1 callersFunctiongeomean
(l)
tests/test_flash_mla_sparse_decoding.py:299
↓ 1 callersFunctionget_arch_flags
()
setup.py:25
↓ 1 callersFunctionget_args
()
benchmark/bench_flash_mla.py:493
↓ 1 callersFunctionget_cos_diff
Calculate the cosine diff between two tensors Return a float if avoid_sync is False, else return a tensor
tests/kernelkit/compare.py:19
↓ 1 callersMethodget_e2e_time
Get the end-to-end time usage for a sequence of kernels defined as "last kernel end time" - "first kernel start time" If is_u
tests/kernelkit/bench.py:77
↓ 1 callersMethodget_kernel_names
(self)
tests/kernelkit/bench.py:42
↓ 1 callersMethodget_kernel_times
Get the average each-run time usage of each kernel provided in `kernel_names` If return_avg_individual_run is False, return sum(time
tests/kernelkit/bench.py:45
↓ 1 callersMethodget_meta
csrc/api/sparse_decode.h:59
↓ 1 callersFunctionget_mla_metadata
Returns an empty instance of FlashMLASchedMeta. The actual scheduling metadata will be generated during the first invocation of flash_mla_with_kv
flash_mla/flash_mla_interface.py:37
↓ 1 callersFunctionget_nvcc_thread_args
()
setup.py:48
↓ 1 callersMethodget_unmasked_trip_count
csrc/sm100/prefill/dense/collective/fmha_fusion.hpp:63
↓ 1 callersFunctionget_window_size
(causal, window)
tests/test_fmha_sm100.py:10
↓ 1 callersFunctionis_low_precision_mode
()
tests/kernelkit/precision.py:17
↓ 1 callersMethodload
csrc/sm100/prefill/dense/kernel/sm100_fmha_bwd_kernel_tma_warpspecialized.hpp:432
↓ 1 callersFunctionmain
()
tests/test_flash_mla_sparse_decoding.py:236
↓ 1 callersFunctionmain
(torch_dtype)
tests/test_flash_mla_dense_decoding.py:195
↓ 1 callersFunctionmake_custom_stride_layout
csrc/sm100/prefill/dense/common/gather_tensor.hpp:142
↓ 1 callersFunctionmla_decode_triton
( q_nope, q_pe, kv_c_cache, k_pe_cache, o, req_to_tokens, b_seq_len, attn_logi
benchmark/bench_flash_mla.py:346
↓ 1 callersMethodmma
csrc/sm100/prefill/dense/kernel/sm100_fmha_bwd_kernel_tma_warpspecialized.hpp:661
↓ 1 callersFunctionparse_args
()
benchmark/visualize.py:7
↓ 1 callersMethodprint
csrc/sm100/prefill/dense/common/gather_tensor.hpp:111
↓ 1 callersFunctionref_mla
()
benchmark/bench_flash_mla.py:41
↓ 1 callersFunctionreference_torch
A reference implementation in PyTorch
tests/test_flash_mla_dense_decoding.py:73
↓ 1 callersFunctionrun_decode
()
tests/test_flash_mla_sparse_decoding.py:155
↓ 1 callersFunctionrun_flash_mla
()
tests/test_flash_mla_dense_decoding.py:155
↓ 1 callersFunctionrun_prefill
()
tests/test_flash_mla_sparse_prefill.py:26
↓ 1 callersFunctionrun_test
(p: TestParam)
tests/test_flash_mla_sparse_prefill.py:14
next →1–100 of 363, ranked by callers