Crate kalosm_sample

source ·
Expand description

§kalosm-sample

This is a sampling library for Kalosm.

It handles choosing a token from a probability distribution. Samplers can be used to constrain the generation of text for example you can use a sampler to prevent the model from generating the same word twice in a row. Or you could only allow the model to generate a list of single digit numbers.

Macros§

  • Bail out with the given error.

Structs§

Enums§

Traits§

Type Aliases§

Derive Macros§

  • Derive a default JSON parser for a unit value, struct or enum.