KerasHub samplers are used to control the sampling process when generating text with generative models. See keras_hub.models.CausalLM for the high-level generative API.
keras_hub.models.CausalLM