MCPcopy Create free account

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

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

Methodfinalize
(self)
python/triton_dist/kernels/nvidia/ulysses_sp_dispatch.py:503
Methodfinalize
(self)
python/triton_dist/kernels/nvidia/reduce_scatter.py:141
Methodfinalize
(self)
python/triton_dist/kernels/nvidia/sp_ag_attention_intra_node.py:55
Methodfinalize
(self)
python/triton_dist/kernels/nvidia/gemm_reduce_scatter.py:68
Methodfinalize
(self)
python/triton_dist/kernels/nvidia/ulysses_sp_infer_gemm_a2a.py:127
Methodfinalize
(self)
python/triton_dist/kernels/nvidia/allreduce.py:104
Methodfinalize
(self)
python/triton_dist/models/qwen_moe.py:204
Methodfinalize_options
(self)
python/setup.py:551
Methodfinalize_options
(self)
python/setup.py:567
Functionfind_best_topk
(df, topk=1, policy="greedy")
python/triton_dist/tools/tune/find_topk.py:161
Functionflash_attn_config_factory
(**kwargs)
python/triton_dist/mega_triton_kernel/tasks/flash_attn.py:61
Functionflash_attn_task_compute
( task_base_info: TaskBaseInfo, scoreboard: Scoreboard, SM_SCALE: tl.constexpr, SOFT_CAP: tl.c
python/triton_dist/mega_triton_kernel/kernels/flash_attn.py:328
Functionflatten_empty
Flatten list comprehensions of ll.empty calls into explicit tensor array initializations.
python/little_kernel/core/passes/flatten_empty.py:205
Functionfloat_p
Put single float value. Args: dest: Symmetric address on target PE value: Float value to write pe: Target PE number
python/triton_dist/language/extra/hip/libmori_shmem_device.py:617
Functionfloat_to_bf16
Convert float32 value to bfloat16.
python/little_kernel/language/intrin/arith.py:128
Functionfma_f32
Fused multiply-add: a * b + c.
python/little_kernel/language/intrin/cuda_asm.py:122
Functionformat_latency
Format latency in cycles for display.
python/little_kernel/benchmark/utils.py:242
Methodforward
( ctx, num_experts: int, routing_weights: torch.Tensor, selected_experts: torc
python/triton_dist/function/nvidia/ep_moe_fused.py:46
Methodforward
( self, input: torch.Tensor, output: torch.Tensor, input_splits: torch.Tensor,
python/triton_dist/test/nvidia/test_all_to_all_single_2d.py:49
Methodforward
(self, q_shard, k_shard, v_shard, cu_seqlens_q, cu_seqlens_k)
python/triton_dist/test/nvidia/test_sp_ag_attention_intra_node.py:95
Methodforward
(self, q_shard, k_shard, v_shard, cu_seqlens_q, cu_seqlens_k)
python/triton_dist/test/nvidia/test_sp_ag_attention_intra_node.py:174
Methodforward
(self, q_shard, k_shard, v_shard, cu_seqlens_q, cu_seqlens_k)
python/triton_dist/test/nvidia/test_sp_ag_attention_inter_node.py:99
Methodforward
(self, q_shard, k_shard, v_shard, cu_seqlens_q, cu_seqlens_k)
python/triton_dist/test/nvidia/test_sp_ag_attention_inter_node.py:180
Methodforward
Convenience full MoE forward: preprocess -> dispatch+gemm1 -> act -> gemm2+combine.
python/triton_dist/layers/amd/ep_a2a_fused_layer.py:235
Methodforward
q: each rank has the same q k_cache: each rank's shard of k_cache v_cache: each rank's shard of v_cache global_kv_len
python/triton_dist/layers/nvidia/sp_flash_decode_layer.py:83
Methodforward
( self, attention_input, weight, seq_lens_cpu=None, bias=None,
python/triton_dist/kernels/nvidia/sp_ulysess_qkv_gemm_all2all.py:704
Methodforward
(self, inputs: torch.Tensor, weight: torch.Tensor, seq_lens_cpu: Optional[torch.Tensor] = None,
python/triton_dist/kernels/nvidia/sp_ulysess_o_all2all_gemm.py:645
Methodforward_ar
(self, input_tensor: torch.Tensor)
python/triton_dist/layers/nvidia/gemm_allreduce_layer.py:134
Methodforward_gemm
(self, input: torch.Tensor, # [M, local_K] weight: torch.Tensor, # [N, local_K]
python/triton_dist/layers/nvidia/gemm_allreduce_layer.py:126
Functionfrom_json
(obj)
python/triton_dist/tune.py:166
Methodfrom_pretrained
(model_config)
python/triton_dist/models/__init__.py:68
Methodfrom_torch
Copy from a PyTorch tensor to this buffer.
python/little_kernel/design/test_flashcomm_multi_gpu.py:142
Methodfunc
Lazy load function.
python/little_kernel/runtime/cuda_runtime.py:704
Functionfused_build_block_row_idx_info_copy_tensor_kernel
( rows_splits_ptr, rows_splits_cum_per_expert_ptr, block_row_idx_to_expert_idx_ptr, block_row_
python/triton_dist/kernels/nvidia/group_gemm.py:80
Functionfused_triton
()
python/triton_dist/test/nvidia/test_gdn.py:63
Functionfwd
()
python/triton_dist/test/amd/test_ep_moe_fused.py:287
Methodfwd
(self, x: torch.Tensor, position_ids: torch.Tensor, cos_sin_cache: torch.Tensor, kv_cache, layer_idx: int)
python/triton_dist/layers/amd/tp_attn.py:305
Methodfwd
(self, x: torch.Tensor)
python/triton_dist/layers/amd/tp_mlp.py:148
Methodfwd
(self, x: torch.Tensor, position_ids: torch.Tensor, cos_sin_cache: torch.Tensor, kv_cache, layer_idx: int)
python/triton_dist/layers/nvidia/tp_attn.py:320
Methodfwd
(self, x: torch.Tensor)
python/triton_dist/layers/nvidia/tp_mlp.py:195
Methodfwd
(self, hidden_states: torch.Tensor)
python/triton_dist/layers/nvidia/ep_moe.py:247
Methodfwd
(self, x: torch.Tensor)
python/triton_dist/layers/nvidia/tp_moe.py:278
Functiongemm
(a, b, BLOCK_M=128, BLOCK_N=128, BLOCK_K=128, stages=4, pipeline="cpasync", autotune=False)
python/triton_dist/kernels/metax/allgather_gemm.py:1340
Functiongemm_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/design/sm90_bf16_gemm.py:70
Functiongemm_level1_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level1.py:72
Functiongemm_level2_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level2.py:72
Functiongemm_level3_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level3.py:69
Functiongemm_level4_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level4.py:66
Functiongemm_level5_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level5.py:67
Functiongemm_level6_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level6.py:80
Functiongemm_level7_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level7.py:80
Functiongemm_level8_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level8.py:84
Functiongemm_level9_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm100/gemm_level9.py:92
Methodgemm_only
(self, A: torch.Tensor, weight: torch.Tensor, NUM_SMS: int)
python/triton_dist/test/amd/test_ag_gemm_intra_node.py:123
Functiongemm_rs_multi_node
GEMM Reduce-Scatter for Multi-Node computes local GEMM (a x b) to generate partial results, followed by `reduce_scatter` to produce c Args:
tutorials/08-overlapping-gemm-reduce-scatter.py:429
Functiongemm_v10_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v10.py:73
Functiongemm_v1_kernel
( A: ll.Tensor[ll.bfloat16], B: ll.Tensor[ll.bfloat16], C: ll.Tensor[ll.float32], M: ll.int32,
python/little_kernel/benchmark/gemm_sm90/gemm_v1.py:65
Functiongemm_v2_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v2.py:60
Functiongemm_v3_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v3.py:63
Functiongemm_v4_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v4.py:50
Functiongemm_v5_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v5.py:51
Functiongemm_v6_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v6.py:71
Functiongemm_v7_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v7.py:66
Functiongemm_v8_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v8.py:69
Functiongemm_v9_kernel
( dA: ll.const[ll.grid_constant[ll.TmaDescriptor]], dB: ll.const[ll.grid_constant[ll.TmaDescriptor]],
python/little_kernel/benchmark/gemm_sm90/gemm_v9.py:69
Functiongenerate_cpp_struct_from_python_class
Generate C++ struct definition from Python class. Args: class_name: Name of the Python class to convert module_path: Pat
python/little_kernel/codegen/special_struct/utils.py:88
Methodgenerate_task_dispatch_code
(self, condition: CodeGenKey, code: str, is_first_branch=True)
python/triton_dist/mega_triton_kernel/core/code_generator.py:193
Functiongeneric_special_struct_declaration_codegen
Generic code generator for special struct declarations. Extracts template parameters and constructor arguments from special_struct_info
python/little_kernel/codegen/special_struct/generic_codegen.py:40
Functiongeneric_special_struct_method_codegen
Generic code generator for special struct method calls.
python/little_kernel/codegen/special_struct/generic_codegen.py:158
Functiongeneric_special_struct_tuple_unpack_codegen
Generic code generator for tuple unpacking from special struct method calls. Uses type inference to determine return structure and gener
python/little_kernel/codegen/special_struct/generic_codegen.py:266
MethodgetEffects
-- LoadSharedOp --
lib/Dialect/SIMT/IR/Ops.cpp:66
MethodgetEffects
-- WaitOp --
lib/Dialect/Distributed/IR/Ops.cpp:44
MethodgetSpeculatability
lib/Dialect/Distributed/IR/Ops.cpp:88
MethodgetTypeName
lib/Conversion/TritonDistributedToHIVM/ASCEND/DistributedOpToHIVM.cpp:84
Functionget_ag_splits_and_recv_offset_for_dispatch_intra_node
(topk_indices, local_splits, full_splits_buf, splits
python/triton_dist/kernels/nvidia/ep_a2a_intra_node.py:423
Methodget_all_local_names
Get all locally defined names across all active scopes. Useful for debugging and for passes that need to know all local name
python/little_kernel/core/passes/utils/scope_manager.py:320
Functionget_autotune_config
()
python/triton_dist/test/amd/test_matmul_amd.py:210
Methodget_config_factory
(self, task_cls: Type['TaskBase'])
python/triton_dist/mega_triton_kernel/core/registry.py:70
Functionget_config_space_ada
()
python/triton_dist/kernels/nvidia/gemm.py:76
Functionget_config_space_nn_h800
(persistent=False)
python/triton_dist/kernels/nvidia/gemm.py:280
Functionget_config_space_persistent
()
python/triton_dist/kernels/amd/gemm.py:570
Functionget_current_gpu_clock_rate_in_khz
(device_id=None)
python/triton_dist/amd_utils.py:100
Methodget_custom_handler
Get custom handler for a LLType class.
python/little_kernel/codegen/registries/type_mapping_registry.py:98
Functionget_device_name
(device_id)
python/triton_dist/nv_utils.py:321
Functionget_dispatch_send_reqs_for_target_node
(token_node_idx, traget_node_id, index_type=torch.int32)
python/triton_dist/kernels/nvidia/ep_a2a.py:710
Functionget_dram_gbps
(device_id: int)
python/triton_dist/kernels/amd/perf_model.py:96
Functionget_ep_capacity
(ep_implementation: str = "mega")
python/triton_dist/function/nvidia/common.py:354
Functionget_gemm_rs_config_space
()
python/triton_dist/kernels/nvidia/gemm_reduce_scatter.py:736
Functionget_git_info
(pkg_name="triton_dist")
python/triton_dist/tune.py:102
Methodget_global_idx
Get global index for a block. Translated from C++ template method get_global_idx.
python/little_kernel/atom/scheduler.py:211
Functionget_hip_autotune_config
()
python/triton_dist/kernels/amd/gemm_allreduce.py:208
Methodget_inferred_scopes
Get all scopes with inferred variable types (for debugging/validation)
python/little_kernel/core/passes/utils/type_inference/infer_type.py:225
Functionget_intranode_max_speed_gbps
suppose the node is symmetric
python/triton_dist/amd_utils.py:439
Functionget_lane_idx
Get the lane index of the current thread.
python/little_kernel/language/intrin/simt.py:145
Functionget_max_chunk_nbytes
(workspace_nbytes, world_size, method: AllReduceMethod)
python/triton_dist/kernels/nvidia/allreduce.py:63
Functionget_max_tensorcore_tflops
(dtype: torch.dtype, device_id: int)
python/triton_dist/kernels/amd/perf_model.py:82
Methodget_memory_size
(self)
python/triton_dist/mega_triton_kernel/models/model_builder.py:149
Functionget_mori_home
()
python/triton_dist/utils.py:687
Methodget_next
(self)
python/little_kernel/tests/unit/test_struct_stub.py:172
Methodget_next_block
Get next block to process. Translated from C++ get_next_block method.
python/little_kernel/atom/scheduler.py:253
← previousnext →3,501–3,600 of 5,103, ranked by callers