Skip to content

llama : add support for Classifier-Free Guidance (CFG) sampling to stay on topic better #2083

Closed
@lukestanley

Description

@lukestanley

@ggerganov retweeted the "Stay on topic with Classifier-Free Guidance" paper that came out showing that "Classifier-Free Guidance (CFG)"... "can be used broadly as an inference-time technique in pure language modeling. " ... "brings improvements equivalent to a model with twice the parameter-count" (with no retraining needed). - https://arxiv.org/abs/2306.17806

I saw that the Transformers library has one of the paper's author working on an implementation.

I didn't see an issue for it yet here so I figured pointing to it is the least I could do for this awesome library!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions