Support min-p sampling (#1167)
This commit is contained in:
1 parent
d6aeb9fa15
commit
068e9eae55
7 files changed
+58
-9
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user