IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

next_norm

def next_norm(stream: Piece, inv: Float32, gamma: Piece) -> Piece

The next pre-norm; gamma is 1 + norm_weight, rounded to bf16.

Returns:

Piece

Was this page helpful?