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 struct
Struct_min_p_sampling
struct Struct_min_p_sampling
Registers the min_p_sampling graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[dtype: DType, rank: Int, out_idx_type: DType, target: StringSlice[ImmStaticOrigin], _trace_name: StringSlice[ImmStaticOrigin]](out_token_ids: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=out_token_ids.static_spec], min_ps: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=min_ps.static_spec], input: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=input.static_spec], temperature: Scalar[dtype], ctx: DeviceContext)