KerasHub 取樣器用於在使用生成模型生成文本時控制取樣過程。請參閱 keras_hub.models.CausalLM 以取得高階生成 API。
keras_hub.models.CausalLM