An open API service indexing awesome lists of open source software.

https://github.com/ericlbuehler/candle-sampling

Sampling techniques for Candle.
https://github.com/ericlbuehler/candle-sampling

Last synced: 3 months ago
JSON representation

Sampling techniques for Candle.

Awesome Lists containing this project

README

          

# candle-sampling
[![Continuous integration](https://github.com/EricLBuehler/candle-sampling/actions/workflows/ci.yml/badge.svg)](https://github.com/EricLBuehler/candle-sampling/actions/workflows/ci.yml)
[![Documentation](https://github.com/EricLBuehler/candle-sampling/actions/workflows/docs.yml/badge.svg)](https://ericlbuehler.github.io/candle-sampling/candle_sampling/)

Sampling techniques for Candle.

Currently implemented methods are:
- multinomial (ancestral)
- top-k
- top-p (nucleus)
- top-n logprobs
- repeat penalty (frequency penalty)
- presence penalty
- logit bias