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

fp8_p_rescale_threshold

def fp8_p_rescale_threshold[fp8_p: Bool](threshold: Float32) -> Float32

Returns the lazy-rescale threshold the softmax uses.

Parameters:

  • ​fp8_p (Bool): Whether P is converted to fp8 before the P@V MMA.

Args:

  • ​threshold (Float32): The configured threshold, in the log2 domain.

Returns:

Float32: The threshold, capped at -2 when fp8_p is True.

Was this page helpful?