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 function
layer_norm_rope_ragged
def layer_norm_rope_ragged[input_dtype: DType, output_dtype: DType, freq_dtype: DType, rank: Int, InputFn: def[width: Int, alignment: Int, coord_rank: Int](IndexList[coord_rank]) -> SIMD[input_dtype, width] & RegisterPassable & ImplicitlyCopyable, OutputFn: def[width: SIMDLength, rank: Int, alignment: Int](IndexList[rank], SIMD[output_dtype, width]) -> None & RegisterPassable & ImplicitlyCopyable, AxisSizeT: CoordLike, /, target: StringSpan[ImmStaticOrigin], interleaved: Bool, reduce_dim: Int = (rank - Int(1))](input_fn: InputFn, output_fn: OutputFn, shape: Coord, axis_size: AxisSizeT, gamma: TileTensor[input_dtype, Storage=gamma.Storage, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type], beta: TileTensor[input_dtype, Storage=beta.Storage, address_space=beta.address_space, linear_idx_type=beta.linear_idx_type], epsilon: Scalar[input_dtype], input_row_offsets: TileTensor[DType.uint32, Storage=input_row_offsets.Storage, address_space=input_row_offsets.address_space, linear_idx_type=input_row_offsets.linear_idx_type], start_pos: TileTensor[DType.uint32, Storage=start_pos.Storage, address_space=start_pos.address_space, linear_idx_type=start_pos.linear_idx_type], freqs_cis: TileTensor[freq_dtype, Storage=freqs_cis.Storage, address_space=freqs_cis.address_space, linear_idx_type=freqs_cis.linear_idx_type], context: Optional[DeviceContext] = None) where (eq InputFn.input_dtype, input_dtype) where (eq OutputFn.output_dtype, output_dtype)