Method: Anthropic::Models::CompletionCreateParams#top_p
- Defined in:
- lib/anthropic/models/completion_create_params.rb
#top_p ⇒ Float?
Use nucleus sampling.
In nucleus sampling, we compute the cumulative distribution over all the options
for each subsequent token in decreasing probability order and cut it off once it
reaches a particular probability specified by top_p. You should either alter
temperature or top_p, but not both.
Recommended for advanced use cases only. You usually only need to use
temperature.
99 |
# File 'lib/anthropic/models/completion_create_params.rb', line 99 optional :top_p, Float |