For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
rms_norm
def rms_norm[dtype: DType, rank: Int, input_0_fn: def[width: Int, alignment: Int](Coord[**?]) capturing thin -> SIMD[dtype, width], output_0_fn: def[width: SIMDLength, rank: Int, alignment: Int](idx: IndexList[rank], val: SIMD[dtype, width]) capturing thin -> None, /, target: StringSlice[ImmStaticOrigin] = StringSlice("cpu"), multiply_before_cast: Bool = True](shape: Coord, gamma: TileTensor[dtype, Storage=gamma.Storage, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type], epsilon: Float32, weight_offset: Scalar[dtype], ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!