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
topp_minp_sampling_kernel
def topp_minp_sampling_kernel[dtype: DType, out_idx_type: DType, is_top_p: Bool](p_thresholds_: Pointer[Scalar[dtype], MutUntrackedOrigin, _safe=False], sorted_probs_: Pointer[Scalar[dtype], MutUntrackedOrigin, _safe=False], sorted_ids_: Pointer[Scalar[out_idx_type], MutUntrackedOrigin, _safe=False], out_token_ids: Pointer[Scalar[out_idx_type], MutUntrackedOrigin, _safe=False], skip_sort: Pointer[Scalar[DType.bool], MutUntrackedOrigin, _safe=False], vocab_size: Int)
Top P-Min P sampling kernel.
Parameters:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!