Mojo function
topp_minp_sampling_kernel
topp_minp_sampling_kernel[type: DType, out_idx_type: DType, is_top_p: Bool](p_thresholds_: UnsafePointer[Scalar[type]], sorted_probs_: UnsafePointer[Scalar[type]], sorted_ids_: UnsafePointer[Scalar[out_idx_type]], out_token_ids: UnsafePointer[Scalar[out_idx_type]], skip_sort: UnsafePointer[Scalar[DType.bool]], 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!