MCPcopy Create free account

hub / github.com/ByteDance-Seed/Triton-distributed / functions

Functions5,103 in github.com/ByteDance-Seed/Triton-distributed

↓ 1 callersMethodpre_attn_a2a_no_cpy
( self, inputs: torch.Tensor, seq_lens_cpu: Optional[torch.Tensor] = None, num
python/triton_dist/kernels/nvidia/sp_ulysess_qkv_gemm_all2all.py:874
↓ 1 callersMethodpre_attn_qkv_pack_a2a
(self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, skip_q_a2a=False, retu
python/triton_dist/layers/nvidia/ulysses_sp_a2a_layer.py:39
↓ 1 callersFunctionpre_attn_qkv_pack_a2a_op
(ctx: UlyssesSPPreAttnCommContext, q, k, v, skip_q_a2a=False, return_comm_buf=False)
python/triton_dist/kernels/nvidia/ulysses_sp_dispatch.py:606
↓ 1 callersFunctionpre_copy
(in_splits, in_offsets, tokens)
python/triton_dist/test/nvidia/test_all_to_all_vdev_2d_offset_inter_node.py:316
↓ 1 callersFunctionprefetch_async
(ptr, nbytes, _semantic=None)
python/triton_dist/mega_triton_kernel/kernels/prefetch.py:31
↓ 1 callersFunctionprepare_chunk_offsets
(cu_seqlens: torch.LongTensor, chunk_size: int)
python/triton_dist/kernels/nvidia/gdn.py:63
↓ 1 callersFunctionprepare_cos_sin_cache
(head_dim, max_position_embeddings, rope_theta)
python/triton_dist/mega_triton_kernel/models/utils.py:28
↓ 1 callersFunctionprepare_inputs
Per-rank activations: hidden states, distinct top-k expert ids, routing weights.
python/triton_dist/test/amd/test_ep_moe_fused.py:154
↓ 1 callersFunctionprepare_moe_metadata_using_kernel
(expert_counts, num_experts)
python/triton_dist/layers/nvidia/ep_moe.py:37
↓ 1 callersMethodpreprocess
(self, input: torch.Tensor, exp_indices: torch.Tensor, full_scatter_indices: Union[torch.Tensor,
python/triton_dist/layers/nvidia/ep_a2a_layer.py:307
↓ 1 callersFunctionpretty_time
(duration_ms)
python/triton_dist/tools/tune/tune_gemm.py:96
↓ 1 callersMethodprint_memory_breakdown
Print a human-readable breakdown of memory usage.
python/triton_dist/utils.py:1414
↓ 1 callersMethodprint_nvshmem_breakdown
Print a human-readable breakdown of nvshmem memory usage.
python/triton_dist/layers/nvidia/ep_a2a_fused_layer.py:266
↓ 1 callersFunctionprint_ring_info
(world_size)
python/triton_dist/test/nvidia/test_gemm_ar.py:158
↓ 1 callersFunctionprint_sol_time_estimate
(M, K, N, E, topk, dtype, WORLD_SIZE, LOCAL_WORLD_SIZE)
python/triton_dist/test/nvidia/test_moe_reduce_rs.py:60
↓ 1 callersFunctionprint_tile_info
(M, N, BLOCK_SIZE_M, BLOCK_SIZE_N, GROUP_SIZE, NUM_GEMM_SM, NUM_COMM_SM, world_size)
python/triton_dist/test/nvidia/test_gemm_ar.py:105
↓ 1 callersFunctionprint_vector_2d
python/triton_dist/kernels/nvidia/threadblock_swizzle_ag_moe.cc:297
↓ 1 callersMethodprocess
Process the loop modifier and return the inner iterator. Args: iter_node: The AST Call node representing the mod
python/little_kernel/core/passes/utils/registries/loop_modifier_registry.py:47
↓ 1 callersMethodprocess_modifier
Process loop modifier and generate corresponding C++ code. Args: emitter: CppEmitter instance node:
python/little_kernel/codegen/registries/loop_modifier_codegen.py:81
↓ 1 callersFunctionprocess_trace_json
(json_file)
python/triton_dist/profiler_utils.py:70
↓ 1 callersFunctionproducer_ag_push_mode
( rank, num_ranks, local_tensor: torch.Tensor, remote_tensor_buffers: List[torch.Tensor],
tutorials/09-AMD-overlapping-allgather-gemm.py:273
↓ 1 callersFunctionprune_fn_by_group_size_m
(config, A, B, *args, **kwargs)
python/triton_dist/kernels/nvidia/gemm.py:463
↓ 1 callersFunctionprune_fn_by_shared_memory
(config, A, *args, **kwargs)
python/triton_dist/kernels/nvidia/gemm.py:452
↓ 1 callersMethodpython_method
(self)
python/little_kernel/tests/unit/test_struct_stub.py:408
↓ 1 callersFunctionqkv_bsnd_to_bnsd
(q, k, v, send_q_buf, send_k_buf, send_v_buf, BLOCK_SEQ=256, skip_q_a2a=False, num_sms=0)
python/triton_dist/kernels/nvidia/ulysses_sp_dispatch.py:411
↓ 1 callersMethodqkv_pack_a2a_no_cpy
( self, qkv, seq_lens_cpu: Optional[torch.Tensor] = None, num_comm_sms: int =
python/triton_dist/kernels/nvidia/sp_ulysess_qkv_gemm_all2all.py:950
↓ 1 callersFunctionquant_bf16_fp8
(tensor: torch.Tensor, gsize: int = 128)
python/triton_dist/test/amd/ep_a2a_utils.py:76
↓ 1 callersFunctionquant_bf16_fp8
(tensor: torch.Tensor, gsize: int = 128)
tutorials/04-deepseek-infer-all2all.py:410
↓ 1 callersFunctionrank_print
(s)
python/triton_dist/test/nvidia/test_ep_moe_inference.py:292
↓ 1 callersFunctionrcp_f32
Reciprocal (approximate, SFU).
python/little_kernel/language/intrin/cuda_asm.py:273
↓ 1 callersMethodreallocate_dispatch_output_buf
(self, dispatch_recv_tokens: int)
python/triton_dist/layers/amd/ep_a2a_layer.py:195
↓ 1 callersMethodreallocate_dispatch_output_buf
(self, dispatch_recv_tokens: int)
python/triton_dist/layers/nvidia/ep_a2a_layer.py:205
↓ 1 callersMethodrecv
(self, rank: int, src_rank: int)
python/triton_dist/layers/nvidia/pp_block.py:84
↓ 1 callersFunctionred_release
(barrier_ptr, value, scope: core.constexpr = core.constexpr("gpu"), _semantic=None)
python/triton_dist/language/extra/cuda/language_extra.py:538
↓ 1 callersFunctionreduce_scatter_2d_op
(input, ctx: ReduceScatter2DContext)
tutorials/06-inter-node-reduce-scatter.py:410
↓ 1 callersFunctionreduce_scatter_for_each_node
(input: torch.Tensor, ctx: ReduceScatter2DContext, output: Optional[torch.Ten
python/triton_dist/kernels/nvidia/reduce_scatter.py:583
↓ 1 callersFunctionreduce_scatter_for_each_node
(input, stream, ctx: ReduceScatter2DContext)
tutorials/06-inter-node-reduce-scatter.py:297
↓ 1 callersFunctionreduce_scatter_for_each_node_ring
(input: torch.Tensor, ctx: ReduceScatter2DContext, output: Optional[torc
python/triton_dist/kernels/nvidia/reduce_scatter.py:493
↓ 1 callersFunctionreduce_scatter_intra_node
(input, scatter_bufs, sync_buf, local_rank, local_world_size)
tutorials/05-intra-node-reduce-scatter.py:204
↓ 1 callersFunctionreduce_scatter_multi_node
A hierarchical reduce-scatter implementation that overlaps the intra-node scatter with the local reduce and the inter-node p2p(after reduce).
python/triton_dist/kernels/nvidia/reduce_scatter.py:793
↓ 1 callersFunctionreduce_scatter_multi_node
A hierarchical reduce-scatter implementation that overlaps the intra-node scatter with the local reduce and the inter-node p2p(after reduce).
tutorials/06-inter-node-reduce-scatter.py:382
↓ 1 callersFunctionreduce_scatter_ring_push_1d_intra_node_kernel
( rank, num_ranks, input_ptr, symm_input_flag_ptr, symm_reduce_ptr, symm_reduce_flag_p
python/triton_dist/kernels/nvidia/reduce_scatter.py:285
↓ 1 callersFunctionreduce_scatter_ring_push_1d_intra_node_sm
( rank, num_ranks, input_tensor: torch.Tensor, input_flag: torch.Tensor, symm_reduce_tenso
python/triton_dist/kernels/nvidia/reduce_scatter.py:342
↓ 1 callersFunctionreduce_scatter_ring_push_1d_intra_node_sm_rma
( rank, num_ranks, input_tensor: torch.Tensor, input_flag: torch.Tensor, symm_reduce_tenso
python/triton_dist/kernels/nvidia/reduce_scatter.py:446
↓ 1 callersFunctionreduce_topk_reduce_scatter_intra_node
(grouped_gemm_out: torch.Tensor, ctx: MoEReduceRSContext, ntokens, n
python/triton_dist/kernels/nvidia/moe_reduce_rs.py:788
↓ 1 callersFunctionref_paged_attn
( query: torch.Tensor, key_cache: torch.Tensor, value_cache: torch.Tensor, query_lens: List[in
python/triton_dist/test/nvidia/test_sp_decode_attn.py:80
↓ 1 callersFunctionref_send_mask
Return [num_token, topk] int32 mask where mask[t, j] == 1 iff this is the first occurrence (smallest j) whose expert maps to a given target r
python/little_kernel/design/test_flashcomm_compute.py:257
↓ 1 callersFunctionreference_dispatch
Pure-Python reference for dispatch. Returns expected recv_x, recv_weights, recv_token_count for each rank.
python/little_kernel/design/test_flashcomm_multi_gpu.py:229
↓ 1 callersFunctionreference_expert_counts
(flat_idx: torch.Tensor, num_experts: int)
python/little_kernel/design/test_flashcomm_multi_gpu.py:225
↓ 1 callersFunctionreference_global_rank
Stable within-expert offset.
python/little_kernel/design/test_flashcomm_multi_gpu.py:208
↓ 1 callersMethodregister_bin_op
Register a binary operator handler.
python/little_kernel/core/passes/utils/registries/operator_registry.py:59
↓ 1 callersFunctionregister_default_passes
Register default passes for a backend. Args: backend: Backend name (e.g., "cuda")
python/little_kernel/core/passes/pass_config.py:45
↓ 1 callersMethodreset_all_ids
(cls)
python/triton_dist/mega_triton_kernel/core/task_base.py:106
↓ 1 callersMethodreset_all_signal
(self)
python/triton_dist/kernels/nvidia/ulysses_sp_dispatch.py:541
↓ 1 callersMethodreset_barriers
(self)
python/triton_dist/kernels/nvidia/reduce_scatter.py:105
↓ 1 callersMethodreset_barriers
(self)
tutorials/06-inter-node-reduce-scatter.py:130
↓ 1 callersMethodreset_signal
(self)
python/triton_dist/kernels/nvidia/ulysses_sp_infer_gemm_a2a.py:133
↓ 1 callersMethodresolve_annotation
Evaluate an AST annotation node to LLType.
python/little_kernel/core/passes/utils/type_inference/type_inference_visitors.py:80
↓ 1 callersFunctionring_put
()
shmem/mxshmem_bind/pymxshmem/example/run_ring_put.py:10
↓ 1 callersFunctionring_reduce
( input, # [M_per_node, N] output, # [M_per_rank, N] begin_idx, num_splits, stream,
tutorials/05-intra-node-reduce-scatter.py:120
↓ 1 callersFunctionring_reduce_after_scatter
( rank, num_ranks, scatter_out: torch.Tensor, # [M, N] stream: torch.cuda.Stream, )
python/triton_dist/kernels/amd/gemm_reduce_scatter.py:262
↓ 1 callersFunctionring_reduce_after_scatter
( rank, num_ranks, scatter_out, # [M, N] stream, )
tutorials/10-AMD-overlapping-gemm-reduce-scatter.py:242
↓ 1 callersFunctionring_reduce_non_tma
( input: torch.Tensor, # [M_per_node, N] output: torch.Tensor, # [M_per_rank, N] begin_idx,
python/triton_dist/kernels/nvidia/reduce_scatter.py:710
↓ 1 callersFunctionring_reduce_tma
( input: torch.Tensor, output: torch.Tensor, num_split: int, num_warps: int, num_sms: int,
python/triton_dist/test/nvidia/perf_ring_reduce_tma.py:74
↓ 1 callersFunctionring_reduce_tma
( input: torch.Tensor, # [M_per_node, N] output: torch.Tensor, # [M_per_rank, N] begin_idx,
python/triton_dist/kernels/nvidia/reduce_scatter.py:733
↓ 1 callersFunctionrocshmem_create_tensor
(shape: Sequence[int], dtype: torch.dtype)
shmem/rocshmem_bind/pyrocshmem/python/pyrocshmem/__init__.py:114
↓ 1 callersFunctionrocshmem_deps
()
shmem/rocshmem_bind/pyrocshmem/setup.py:56
↓ 1 callersFunctionround_robin_scheduler
(num_sms, megakernel_tasks)
python/triton_dist/mega_triton_kernel/core/scheduler.py:103
↓ 1 callersFunctionrowise_ag_gemm_dispatcher
( A: torch.Tensor, B: torch.Tensor, C: torch.Tensor, ctx: AllGatherGEMMTensorParallelContext,
python/triton_dist/kernels/nvidia/allgather_gemm.py:622
↓ 1 callersFunctionrowise_ag_scatter_group_gemm_dispatcher
(a, # local tensor b, # local weight
python/triton_dist/kernels/nvidia/allgather_group_gemm.py:415
↓ 1 callersFunctionrsqrt_f32
Reciprocal square root.
python/little_kernel/language/intrin/cuda_asm.py:233
↓ 1 callersFunctionrun_attention_test
Runs a full test (correctness and performance) for a given attention run_type (prefill/decode). The communication strategy is determined by a
python/triton_dist/test/nvidia/test_tp_attn.py:115
↓ 1 callersFunctionrun_bandwidth_benchmark
Run sequential read/write bandwidth measurements.
python/little_kernel/benchmark/memory/bench_global_memory.py:196
↓ 1 callersFunctionrun_benchmark
Encapsulates the benchmarking logic for a given torch and triton function.
python/triton_dist/test/nvidia/test_tp_attn.py:90
↓ 1 callersFunctionrun_benchmark
Run a single benchmark by importing and calling its main().
python/little_kernel/benchmark/run_all.py:69
↓ 1 callersFunctionrun_case
(args, EP_GROUP, rank, world_size, device, *, name, M, H, I, G, topk, capacity, routing, case_seed,
python/triton_dist/test/amd/test_ep_a2a_fused_kernel.py:283
↓ 1 callersFunctionrun_combine_autofollow_regression
Regression: combine with use_device_metadata=None must follow meta['metadata_backend'] (locks the auto-follow branch) and stay numerically correct
python/triton_dist/test/amd/test_ep_a2a_fused_kernel.py:213
↓ 1 callersFunctionrun_command
Execute command with retries, show full output on failure
python/triton_dist/benchmark/bench_tp_mlp.py:138
↓ 1 callersFunctionrun_correctness_check
Encapsulates all correctness checking logic.
python/triton_dist/test/nvidia/test_tp_e2e.py:114
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level1.py:199
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level8.py:330
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level2.py:206
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level7.py:303
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level3.py:212
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level9.py:376
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level4.py:198
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level5.py:226
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm100/gemm_level6.py:312
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v2.py:128
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v8.py:197
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v9.py:226
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v6.py:179
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v7.py:184
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v4.py:141
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v5.py:159
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v3.py:169
↓ 1 callersFunctionrun_gemm
(kernel, A, B, M, N, K)
python/little_kernel/benchmark/gemm_sm90/gemm_v10.py:233
↓ 1 callersFunctionrun_gemm
Run the GEMM kernel: C = A @ B where A(M,K), B(K,N), C(M,N).
python/little_kernel/benchmark/gemm_sm90/gemm_v1.py:174
↓ 1 callersFunctionrun_gemm_roofline
Full GEMM benchmark using cuBLAS for reference roofline.
python/little_kernel/benchmark/compute/bench_wgmma.py:342
↓ 1 callersFunctionrun_hf_baseline
Runs the HuggingFace baseline model to get the golden output, then releases memory.
python/triton_dist/test/nvidia/test_tp_e2e.py:100
← previousnext →2,001–2,100 of 5,103, ranked by callers