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).

Python class

MinPSampler

MinPSampler

class max.nn.MinPSampler(dtype, shape, temperature=1)

source

Bases: Module

A min_p sampler.

Parameters:

dtype

dtype: DType

source

min_p

min_p: float

source

shape

shape: Shape

source

temperature

temperature: float

source