Python module
sampling
rejection_sampler()
max.pipelines.lib.sampling.rejection_sampler(top_k, device)
token_sampler()
max.pipelines.lib.sampling.token_sampler(sampling_config, device, return_logits=False)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!