For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo module
kernels
Registers core tensor graph ops (range, copy, reshape, and related utilities).
comptime values
logger
comptime logger = Logger(stdout, prefix=String(""), source_location=False)
Structs
-
BundledAllReduceAddRMSNormQuantFP8: Registers themo.composite.bundled.allreduce_add_rms_norm_quant_fp8graph op with the graph compiler. -
BundledAllReduceSum: Registers themo.bundled.allreduce.sumgraph op with the graph compiler. -
CausalConv1DVarlenFwd: Varlen causal 1D convolution forward pass. -
Copy: Registers thecopygraph op with the graph compiler. -
EaglePrefillShiftTokens: Registers themo.eagle_prefill_shift_tokensgraph op with the graph compiler. -
Fold: Registers thefoldgraph op with the graph compiler. -
GatedDeltaConv1dFwd: Gated DeltaNet causal conv1d forward pass (Pass 1 of two-pass prefill). -
GatedDeltaRecurrenceFwd: Gated DeltaNet recurrence forward pass (Pass 2 of two-pass prefill). -
GatedGroupRMSNorm: Fused silu-gate + group RMSNorm + weight-scale for the Mamba-2 mixer. -
InplaceMemcpy: Copies the contents ofsrcintodstin place. -
IRFFT: Registers theirfftgraph op with the graph compiler. -
LaunchHostFunc: Enqueues a pre-packed host callback on the device's default stream. -
Learnable2DInterpPosEmb: Registers thelearnable_2d_interp_pos_embgraph op with the graph compiler. -
Mamba2SSDChunkScanVarlenFwd: Varlen Mamba-2 SSD chunked-scan prefill forward. -
Mamba2SSDChunkScanVarlenFwdInplace: Varlen Mamba-2 SSD chunked-scan: in-place SSM-pool write-back. -
MaxPool: Registers themo.max_poolgraph op with the graph compiler. -
MaxPoolCeilModeTrue: Registers themo.max_pool_ceil_mode_truegraph op with the graph compiler. -
NanCheckCountOp: Counts NaN/Inf values in a floating-point tensor. -
NanCheckRaiseOp: Raises an error if NaN or Inf counts are non-zero. -
NonMaximumSuppression: Registers themo.non_maximum_suppressiongraph op with the graph compiler. -
PackConvTransposeFilterShape: Registers thepack_conv_transpose_filter_shapegraph op with the graph compiler. -
RandomNormal: Registers themo.random.normalgraph op with the graph compiler. -
RandomUniform: Registers themo.random.uniformgraph op with the graph compiler. -
Range: Registers themo.rangegraph op with the graph compiler. -
RepeatInterleave: Registers therepeat_interleavegraph op with the graph compiler. -
ROIAlign: Registers themo.roi_aligngraph op with the graph compiler. -
Sleep: Registers themo.sleepgraph op with the graph compiler. -
SpatialMerge: Registers themo.spatial_mergegraph op with the graph compiler. -
Struct_fused_token_sampling: Registers thesampler.fused_token_samplinggraph op with the graph compiler. -
Struct_min_p_sampling: Registers themin_p_samplinggraph op with the graph compiler. -
Struct_moe_create_indices: Registers themo.moe.create.indicesgraph op with the graph compiler. -
Struct_moe_create_indices_with_scales_offset: Registers themo.moe.create.indices.with.scales.offsetgraph op with the graph compiler. -
Struct_moe_eplb_remap: Registers themo.moe.eplb.remapgraph op with the graph compiler. -
Struct_moe_router_group_limited: Registers themo.moe.router.group.limitedgraph op with the graph compiler. -
Struct_moe_single_group_router: Registers themo.moe.single.group.routergraph op with the graph compiler. -
Struct_moe_single_group_router_eplb: Registers themo.moe.single.group.router.eplbgraph op with the graph compiler. -
Struct_rope_ragged_paged: Registers themo.rope.raggedgraph op with the graph compiler. -
Struct_rope_ragged_paged_with_position_id: Registers themo.rope.ragged.with_position_idgraph op with the graph compiler. -
Struct_rope_split_store_ragged_paged: Registers themo.rope_split_store.ragged.pagedgraph op with the graph compiler. -
Struct_rope_split_store_ragged_paged_with_position_id: Registers themo.rope_split_store.ragged.paged.with_position_idgraph op with the graph compiler. -
Struct_sampler_apply_penalties: Registers thesampler.apply_penaltiesgraph op with the graph compiler. -
Struct_sampler_update_frequency_data: Registers thesampler.update_frequency_datagraph op with the graph compiler. -
TPoolPatchMerger: Registers thetpool_patch_mergergraph op with the graph compiler. -
WaitHostValue: Stalls the stream until a host-visible flag reaches a given value. -
WaitHostValueWithDep: Variant ofmo.wait_host_valuethat takes a fake mutable dependency operand.
Functions
-
causal_conv1d_varlen_fwd_shape: Computes the output shape for thecausal_conv1d_varlen_fwdgraph op. -
concat_from_list_shape_impl: Computes the concatenated output shape for a variadic list of input tensors. -
concat_shape_impl: Computes the concatenated output shape from the input tensor shapes. -
export: Keeps the managed-tensor-slice load/store entry points alive for export when this package is linked. -
fold_kernel_shape: Computes the output shape for thefoldgraph op. -
gated_delta_conv1d_fwd_shape: Computes the output shape for thegated_delta_conv1d_fwdgraph op. -
gated_delta_recurrence_fwd_shape: Computes the output shape for thegated_delta_recurrence_fwdgraph op. -
gated_group_rmsnorm_shape: -
generic_fused_qk_rope_bshd_paged_ragged_kernel_api: Applies fused rotary position embedding to Q and K, updating keys in the paged KV cache. -
generic_fused_qkv_matmul_kv_cache_bshd_paged_kernel_api: Implements the fused QKV matmul for BSHD inputs, writing the K and V projections directly into a paged KV cache. -
generic_fused_qkv_matmul_kv_cache_paged_ragged_kernel_api: Implements the fused QKV matmul for ragged inputs, writing the K and V projections directly into a paged KV cache. -
generic_fused_qkv_matmul_kv_cache_paged_ragged_kernel_api_bias: Implements the fused QKV matmul with bias for ragged inputs, writing the K and V projections directly into a paged KV cache. -
layout_transform_conv_filter_common: Packs a convolution filter into the layout expected by the conv kernels. -
layout_transform_conv_transpose_filter_common: Packs a transposed-convolution filter into the layout expected by the conv_transpose kernels. -
mamba2_ssd_chunk_scan_varlen_fwd_inplace_shape: Computes the output shape for themamba2_ssd_chunk_scan_varlen_fwd_inplacegraph op. -
mamba2_ssd_chunk_scan_varlen_fwd_shape: Computes the output shape for themamba2_ssd_chunk_scan_varlen_fwdgraph op. -
max_pool_ceil_mode_true_shape: Computes the output shape for themo.max_pool_ceil_mode_truegraph op. -
max_pool_shape: Computes the output shape for themo.max_poolgraph op. -
non_maximum_suppression_shape: Computes the output shape for themo.non_maximum_suppressiongraph op. -
pack_conv_transpose_filter_shape_shape: Computes the output shape for thepack_conv_transpose_filter_shapegraph op. -
print_kv_cache_paged_generic_kernel_api: Prints the contents of a paged KV cache for debugging. -
random_normal_shape: Computes the output shape for themo.random.normalgraph op. -
random_uniform_shape: Computes the output shape for themo.random.uniformgraph op. -
range_shape: Computes the output shape for themo.rangegraph op. -
reduce_shape: Compute the output shape of areduceoperation, and assert the inputs are compatible. -
repeat_interleave_kernel_shape: Computes the output shape for therepeat_interleavegraph op. -
roi_align_shape: Computes the output shape for themo.roi_aligngraph op. -
tpool_patch_merger_shape: Computes the output shape for thetpool_patch_mergergraph op.