Support min-p sampling (#1167)

This commit is contained in:
intervitens authored and GitHub committed 2024-08-21 22:49:32 +00:00
1 parent d6aeb9fa15
commit 068e9eae55
7 files changed
+58 -9

No files matched your search

+2
View File
@@ -45,6 +45,8 @@ temperature: float = 1.0,
top_p: float = 1.0,
# Top-k sampling
top_k: int = -1,
# Min-p sampling
min_p: float = 0.0,
# Whether to ignore EOS token.
ignore_eos: bool = False,
# Whether to skip the special tokens during detokenization.