[V1][Core] min_p sampling support (#13191)

Signed-off-by: Aoyu <aoyuzhan@amazon.com>
Co-authored-by: Aoyu <aoyuzhan@amazon.com>
This commit is contained in:
Aoyu
2025-02-15 07:50:05 +08:00
committed by GitHub
parent 3bcb8c75da
commit a12934d3ec
4 changed files with 96 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ class SamplingMetadata:
top_k: torch.Tensor
no_top_p: bool
no_top_k: bool
min_p: torch.Tensor
no_min_p: bool
generators: Dict[int, torch.Generator]