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
rms_norm_cpu
def rms_norm_cpu[dtype: DType, InputFnType: def[width: Int](Int, Int) -> SIMD[dtype, width], OutputFnType: def[width: SIMDLength, alignment: Int](Int, Int, SIMD[dtype, width]) -> None, //, epsilon: Float32, weight_offset: Float32, multiply_before_cast: Bool](input_fn: InputFnType, output_fn: OutputFnType, gamma: TileTensor[dtype, Engine=gamma.Engine, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type], out_shape: Coord)
def rms_norm_cpu[dtype: DType, InputFnType: def[width: Int](Coord[*?]) -> SIMD[dtype, width], OutputFnType: def[width: SIMDLength, alignment: Int](Coord[*?], SIMD[dtype, width]) -> None, //, epsilon: Float32, weight_offset: Float32, multiply_before_cast: Bool](input_fn: InputFnType, output_fn: OutputFnType, shape: Coord, gamma: TileTensor[dtype, Engine=gamma.Engine, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type], ctx: Optional[DeviceContextBase[CompilationTarget()]] = None)
def rms_norm_cpu[dtype: DType, //, input_fn: def[width: Int](Coord[*?]) capturing thin -> SIMD[dtype, width], output_fn: def[width: SIMDLength, alignment: Int](Coord[*?], SIMD[dtype, width]) capturing thin -> None, epsilon: Float32, weight_offset: Float32, multiply_before_cast: Bool](shape: Coord, gamma: TileTensor[dtype, Engine=gamma.Engine, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type], ctx: Optional[DeviceContextBase[CompilationTarget()]] = None)