MCPcopy Create free account

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

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

Functionto_be_compiled
(q, k, cos, sin, unsqueeze_dim=1)
python/triton_dist/test/nvidia/test_patch_torch_compile.py:37
Functionto_hashable
(t: torch.Tensor)
python/triton_dist/tune.py:137
Methodtorch_ag_gemm
Reference PyTorch forward pass using AllGather-GEMM.
python/triton_dist/layers/nvidia/tp_mlp.py:228
Functiontorch_forward
()
python/triton_dist/test/nvidia/test_pp_block.py:288
Methodtorch_fwd
Reference PyTorch forward pass for attention with Tensor Parallelism. Activations related to head dimensions are sharded. Final outpu
python/triton_dist/layers/amd/tp_attn.py:239
Methodtorch_fwd
Reference PyTorch forward pass for attention with Tensor Parallelism. Activations related to head dimensions are sharded. Final outpu
python/triton_dist/layers/nvidia/tp_attn.py:178
Methodtorch_fwd
Reference PyTorch forward pass using Tensor Parallelism. Final output is AllReduced. x: input tensor, shape [batch_size * seq
python/triton_dist/layers/nvidia/tp_mlp.py:129
Methodtorch_fwd
(self, hidden_states: torch.Tensor)
python/triton_dist/layers/nvidia/ep_moe.py:143
Methodtorch_fwd
Reference PyTorch forward pass using Tensor Parallelism. modified from https://github.com/huggingface/transformers/blob/main/src/tran
python/triton_dist/layers/nvidia/tp_moe.py:171
Functiontorch_gemm_rs
( input: torch.Tensor, # [M, local_k] weight: torch.Tensor, # [N, local_K] TP_GROUP, )
tutorials/08-overlapping-gemm-reduce-scatter.py:446
Methodtorch_gemm_rs
Reference PyTorch forward pass using GEMM-ReduceScatter.
python/triton_dist/layers/nvidia/tp_mlp.py:251
Functiontorch_op
(rank_is_row_in)
python/triton_dist/test/nvidia/test_all_to_all_vdev_2d_offset.py:498
Functiontransposed_moe_grouped_gemm_kernel_nk_const
( grad_output_ptr, orig_input_ptr, grad_weight_ptr, split_size_ptr, split_size_cum_per_exp
python/triton_dist/kernels/nvidia/group_gemm.py:503
Functiontransposed_moe_grouped_gemm_kernel_nk_const_persistent
( grad_output_ptr, orig_input_ptr, grad_weight_ptr, split_size_ptr, split_size_cum_per_exp
python/triton_dist/kernels/nvidia/group_gemm.py:576
Functiontransposed_moe_grouped_gemm_kernel_nk_const_persistent_dynamic
( dynamic_schedule_ptr, grad_output_ptr, orig_input_ptr, grad_weight_ptr, split_size_ptr,
python/triton_dist/kernels/nvidia/group_gemm.py:651
Functiontriton_ag_func
()
python/triton_dist/test/metax/test_ag_gemm_inter_node.py:203
Functiontriton_dist_fwd
()
python/triton_dist/test/nvidia/test_ep_moe_fused.py:275
Functiontriton_dist_fwd_bwd
()
python/triton_dist/test/nvidia/test_ep_moe_fused.py:290
Functiontriton_dist_sp_barrier_all
()
python/triton_dist/test/nvidia/test_llm_ulysess_gemm_all2all_intra_node.py:70
Functiontriton_dist_sp_barrier_all
()
python/triton_dist/test/nvidia/test_llm_ulysess_all2all_gemm_intra_node.py:70
Functiontriton_dist_sp_barrier_all
()
python/triton_dist/test/nvidia/test_llm_ulysess_pre_attn_all2all_intra_node.py:71
Functiontriton_forward
()
python/triton_dist/test/nvidia/test_pp_block.py:302
Functiontriton_gemm_func
()
python/triton_dist/test/metax/test_ag_gemm_inter_node.py:211
Functiontriton_op
(rank_is_row_in)
python/triton_dist/test/nvidia/test_all_to_all_vdev_2d_offset.py:482
Functiontypeof
Get the type of value. This is interpreted by const_fold pass
python/little_kernel/language/intrin/dtype.py:61
Functionuchar_p
Put single unsigned char value. Args: dest: Symmetric address on target PE value: Unsigned char value to write pe: Ta
python/triton_dist/language/extra/hip/libmori_shmem_device.py:792
Functionuint32_p
Put single uint32_t value. Args: dest: Symmetric address on target PE value: Uint32 value to write pe: Target PE numb
python/triton_dist/language/extra/hip/libmori_shmem_device.py:892
Functionuint32_wait_until_equals
Wait until uint32 value equals specified value.
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1195
Functionuint32_wait_until_greater_than
Wait until uint32 value is greater than specified value.
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1179
Functionuint64_p
Put single uint64_t value. Args: dest: Symmetric address on target PE value: Uint64 value to write pe: Target PE numb
python/triton_dist/language/extra/hip/libmori_shmem_device.py:917
Functionuint64_wait_until_equals
(addr, val, _semantic=None)
python/triton_dist/language/extra/libshmem_device.py:341
Functionuint_as_float
Bitcast uint32 to float32 (__uint_as_float).
python/little_kernel/language/intrin/umma.py:467
Functionuint_p
Put single unsigned int value. Args: dest: Symmetric address on target PE value: Unsigned int value to write pe: Targ
python/triton_dist/language/extra/hip/libmori_shmem_device.py:717
Functionulong_p
Put single unsigned long value. Args: dest: Symmetric address on target PE value: Unsigned long value to write pe: Ta
python/triton_dist/language/extra/hip/libmori_shmem_device.py:742
Functionulong_put_signal
(dest, source, nelems, sig_addr, signal, sig_op, pe, _semantic=None)
python/triton_dist/language/extra/libshmem_device.py:346
Functionulong_put_signal
(dest, source, nelems, sig_addr, signal, sig_op, pe, _semantic=None)
python/triton_dist/language/extra/hip/librocshmem_device.py:385
Functionulonglong_p
Put single unsigned long long value. Args: dest: Symmetric address on target PE value: Unsigned long long value to write
python/triton_dist/language/extra/hip/libmori_shmem_device.py:767
Functionumma_commit_2sm
UMMA commit with cta_group::2 multicast barrier arrive.
python/little_kernel/language/intrin/umma.py:237
Functionumma_f16_cg2
SM100 UMMA instruction: cta_group::2, kind::f16 (BF16×BF16→FP32). accum=0 clears accumulator, accum=1 accumulates.
python/little_kernel/language/intrin/umma.py:211
Functionunfused_fla
()
python/triton_dist/test/nvidia/test_gdn.py:67
Functionunfused_fla
( k: torch.Tensor, v: torch.Tensor, beta: torch.Tensor, g: torch.Tensor,
python/triton_dist/kernels/nvidia/gdn.py:992
Functionunpack
(src, dst_type, _semantic=None)
python/triton_dist/language/extra/cuda/language_extra.py:1031
FunctionunrealizedCastMaterialization
lib/Conversion/TritonDistributedToTritonGPU/TritonDistributedToTritonGPU.cpp:921
Functionunroll
Unroll the loop over the inner range.
python/little_kernel/language/intrin/loop.py:35
Methodunwrap
(arg)
python/triton_dist/utils.py:1283
Methodupdate_phase
(self)
python/triton_dist/kernels/amd/low_latency_all_to_all_v2.py:570
Methodupdate_phase
(self)
python/triton_dist/kernels/amd/low_latency_all_to_all_v2.py:626
Methodupdate_phase
(self)
python/triton_dist/kernels/nvidia/low_latency_all_to_all_v2.py:551
Methodupdate_phase
(self)
python/triton_dist/kernels/nvidia/low_latency_all_to_all_v2.py:607
FunctionuseROCSHMEMLibrary
lib/Conversion/TritonDistributedToLLVM/AMD/DistributedOpToLLVM.cpp:42
Functionushort_p
Put single unsigned short value. Args: dest: Symmetric address on target PE value: Unsigned short value to write pe:
python/triton_dist/language/extra/hip/libmori_shmem_device.py:817
Methodverify
-- BlockYieldOp --
lib/Dialect/SIMT/IR/Ops.cpp:44
Methodvisit_AnnAssign
(self, node: ast.AnnAssign)
python/little_kernel/core/passes/pass_base.py:163
Methodvisit_AnnAssign
Process annotated assignments (e.g., "x: const = 5" or "x: int32 = 5").
python/little_kernel/core/passes/constfold.py:269
Methodvisit_AnnAssign
(self, node)
python/little_kernel/core/passes/utils/scope_manager.py:58
Methodvisit_AnnAssign
Process annotated assignments
python/little_kernel/core/passes/utils/type_inference/infer_type.py:188
Methodvisit_AnnAssign
Process annotated assignments (e.g., "x: const = 5" or "x: int32 = 5")
python/little_kernel/core/passes/utils/type_inference/type_inference_statements.py:87
Methodvisit_AnnAssign
Generate C++ annotated assignment (e.g., "x: uint32_t = 5").
python/little_kernel/codegen/special_struct/translator.py:373
Methodvisit_AnnAssign
Process annotated assignments (e.g., "x: const = 5" or "x: int32 = 5").
python/little_kernel/codegen/visitors/statement_codegen.py:118
Methodvisit_Assert
(self, node: ast.Assert)
python/little_kernel/core/passes/pass_base.py:234
Methodvisit_Assert
(self, node)
python/little_kernel/core/passes/constfold.py:565
Methodvisit_Assert
Process Python assert statements → C++ assert.
python/little_kernel/codegen/visitors/statement_codegen.py:471
Methodvisit_Assign
Handle function calls with return values (e.g., 'x = func2(a, b)')
python/little_kernel/core/passes/inline.py:137
Methodvisit_Assign
Handle assignments that might contain special struct constructor calls.
python/little_kernel/core/passes/special_struct_materialize_pass.py:173
Methodvisit_Assign
(self, node: ast.Assign)
python/little_kernel/core/passes/pass_base.py:150
Methodvisit_Assign
(self, node: ast.Assign)
python/little_kernel/core/passes/flatten_empty.py:186
Methodvisit_Assign
(self, node)
python/little_kernel/core/passes/constfold.py:346
Methodvisit_Assign
(self, node)
python/little_kernel/core/passes/utils/scope_manager.py:53
Methodvisit_Assign
Process assignment statements
python/little_kernel/core/passes/utils/type_inference/infer_type.py:192
Methodvisit_Assign
Process assignment statements
python/little_kernel/core/passes/utils/type_inference/type_inference_statements.py:172
Methodvisit_Assign
Generate C++ assignment.
python/little_kernel/codegen/special_struct/translator.py:462
Methodvisit_Assign
Process assignment (single-target or tuple unpacking).
python/little_kernel/codegen/visitors/statement_codegen.py:204
Methodvisit_AsyncFor
(self, node: ast.AsyncFor)
python/little_kernel/core/passes/pass_base.py:179
Methodvisit_AsyncFor
(self, node)
python/little_kernel/core/passes/utils/scope_manager.py:68
Methodvisit_AsyncFunctionDef
(self, node: ast.AsyncFunctionDef)
python/little_kernel/core/passes/pass_base.py:120
Methodvisit_AsyncFunctionDef
(self, node)
python/little_kernel/core/passes/utils/scope_manager.py:89
Methodvisit_AsyncWith
(self, node: ast.AsyncWith)
python/little_kernel/core/passes/pass_base.py:207
Methodvisit_AsyncWith
(self, node)
python/little_kernel/core/passes/utils/scope_manager.py:78
Methodvisit_Attribute
Handle attribute access on special struct objects and enum values.
python/little_kernel/core/passes/special_struct_materialize_pass.py:230
Methodvisit_Attribute
(self, node: ast.Attribute)
python/little_kernel/core/passes/pass_base.py:395
Methodvisit_Attribute
(self, node)
python/little_kernel/core/passes/constfold.py:409
Methodvisit_Attribute
Infer type of attribute access
python/little_kernel/core/passes/utils/type_inference/type_inference_ast_visitors.py:293
Methodvisit_Attribute
Infer type of attribute access
python/little_kernel/core/passes/utils/type_inference/infer_type.py:180
Methodvisit_Attribute
Process attribute access with special handling for self.xxx and enum values.
python/little_kernel/codegen/special_struct/translator.py:141
Methodvisit_Attribute
Process attribute access (e.g., obj.attr).
python/little_kernel/codegen/visitors/expression_codegen.py:159
Methodvisit_AugAssign
(self, node: ast.AugAssign)
python/little_kernel/core/passes/pass_base.py:156
Methodvisit_AugAssign
(self, node)
python/little_kernel/core/passes/utils/scope_manager.py:61
Methodvisit_AugAssign
Process augmented assignment statements (e.g., x += 1)
python/little_kernel/core/passes/utils/type_inference/infer_type.py:196
Methodvisit_AugAssign
Process augmented assignment (e.g., x += 1, y -= 2). For augmented assignment, we need to: 1. Check that the target variable
python/little_kernel/core/passes/utils/type_inference/type_inference_statements.py:336
Methodvisit_AugAssign
Generate C++ augmented assignment.
python/little_kernel/codegen/special_struct/translator.py:622
Methodvisit_AugAssign
Process augmented assignment (e.g., x += 1, y -= 2).
python/little_kernel/codegen/visitors/statement_codegen.py:485
Methodvisit_Await
(self, node: ast.Await)
python/little_kernel/core/passes/pass_base.py:347
Methodvisit_BinOp
(self, node: ast.BinOp)
python/little_kernel/core/passes/pass_base.py:285
Methodvisit_BinOp
Fold BinOp nodes into Constants if both operands are Constants. Example: 2 + 3 → Constant(value=5) Example: (4 * 5) - 6 → Con
python/little_kernel/core/passes/constfold.py:164
Methodvisit_BinOp
Infer type of binary operations (e.g., x + y)
python/little_kernel/core/passes/utils/type_inference/type_inference_ast_visitors.py:137
Methodvisit_BinOp
Infer type of binary operations
python/little_kernel/core/passes/utils/type_inference/infer_type.py:136
Methodvisit_BinOp
Process binary operations (map to C++ operators).
python/little_kernel/codegen/visitors/expression_codegen.py:204
Methodvisit_BoolOp
(self, node: ast.BoolOp)
python/little_kernel/core/passes/pass_base.py:279
Methodvisit_BoolOp
Fold BoolOp nodes into Constants if both operands are Constants. Example: True and False → Constant(value=False)
python/little_kernel/core/passes/constfold.py:209
Methodvisit_BoolOp
Infer type of boolean operations (and/or) always returns bool
python/little_kernel/core/passes/utils/type_inference/type_inference_ast_visitors.py:154
← previousnext →4,801–4,900 of 5,103, ranked by callers