[Bug] Fixed the issue where an error occurred when the request included a seed.
This commit is contained in:
@@ -42,7 +42,7 @@ class TopKTopPSampler(nn.Module):
|
|||||||
"""
|
"""
|
||||||
logits = apply_top_k_top_p(logits, k, p)
|
logits = apply_top_k_top_p(logits, k, p)
|
||||||
probs = logits.softmax(dim=-1, dtype=torch.float32)
|
probs = logits.softmax(dim=-1, dtype=torch.float32)
|
||||||
return random_sample(probs, generators)
|
return random_sample(probs, generators), None
|
||||||
|
|
||||||
def forward_kunlun(
|
def forward_kunlun(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user