nemo_rl.models.generation#

Subpackages#

Submodules#

Package Contents#

Functions#

resolve_generation_class

Map generation_config to its GenerationInterface class.

configure_generation_config

Apply specific configurations to generation config.

Data#

API#

nemo_rl.models.generation.TokenizerType#

None

nemo_rl.models.generation.resolve_generation_class(
generation_config: nemo_rl.models.generation.interfaces.GenerationConfig,
) type[nemo_rl.models.generation.interfaces.GenerationInterface]#

Map generation_config to its GenerationInterface class.

nemo_rl.models.generation.configure_generation_config(
config: nemo_rl.models.generation.interfaces.GenerationConfig,
tokenizer: nemo_rl.models.generation.TokenizerType,
is_eval: bool = False,
has_refit_draft_weights: bool = False,
trains_mtp: bool = False,
) nemo_rl.models.generation.interfaces.GenerationConfig#

Apply specific configurations to generation config.