Skip to content

The size of num_samples greatly affects the inference speed of the model #114

Answered by abdulfatir
sudongwang-upc asked this question in Q&A
Discussion options

You must be logged in to vote

You're right. More samples will typically improve performance but will require more GPU memory/inference time. As this is autoregressive generation, I am afraid I am not aware of a way to draw more samples without incurring this cost.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lostella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants