Skip to content

Fix the description of the Tail free sampling (TFS) method. - #2431

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
WeirdConstructor:fix_tfs_description_in_main
Jul 28, 2023
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
WeirdConstructor:fix_tfs_description_in_main

Conversation

@WeirdConstructor

@WeirdConstructor WeirdConstructor commented Jul 28, 2023 •

Copy link
Copy Markdown
Contributor

The current description of the TFS sampling parameter is wildly wrong.
The previously suggested value of 2.0 would disable the sampling completely.
Also, the probabilities are not raised to the power of z. z is just a cut off value.
The new description should reflect the source paper more accurately https://www.trentonbricken.com/Tail-Free-Sampling/

IMHO: The writing style of current/wrong description of TFS looks awkwardly like it was written by an AI. Especially the almost 0 content leading sentence "Tail free sampling (TFS) is a text generation technique that aims to reduce the impact of less likely tokens, which may be less relevant, less coherent, or nonsensical, on the output.". Exactly this is what all sampling methods also try to achieve (Top-K, Top-P, Rep Pen, ...).

@ggerganov ggerganov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The robots are taking over us 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants