mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 12:01:39 +00:00
add context_attention_unpadded
This commit is contained in:
committed by
FrankLeeeee
parent
07b5283b6a
commit
02c1bf8b2a
@@ -21,7 +21,6 @@ def multinomial_sample(
|
||||
"""
|
||||
Sample tokens in a random phase.
|
||||
"""
|
||||
# max_best_of = generation_config.best_of
|
||||
random_results = torch.multinomial(probs, num_samples=1, replacement=True).cpu()
|
||||
return random_results
|
||||
|
||||
|
Reference in New Issue
Block a user