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_sampler_apply_penalties
struct Struct_sampler_apply_penalties
Registers the sampler.apply_penalties graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[_trace_name: StaticString](logits: T, compressed_frequency_data: T, frequency_offsets: T, frequency_penalty: T, presence_penalty: T, repetition_penalty: T, ctx: DeviceContext)