nemo_rl.data.hf_datasets.prompt_response_dataset
nemo_rl.data.hf_datasets.prompt_response_dataset
This page is for NeMo-RL, version último (default).
For other versions, use one of these documentation indexes:
- último (default): https://es.nvidia-localization.ferndocs.com/es/nemo/rl/latest/llms.txt
- 0.3.0: https://es.nvidia-localization.ferndocs.com/es/nemo/rl/0-3-0/llms.txt
- 0.2.1: https://es.nvidia-localization.ferndocs.com/es/nemo/rl/0-2-1/llms.txt
Contenido del Módulo
Clases
| Nombre | Descripción |
|---|---|
PromptResponseDataset | Ninguno |
API
class nemo_rl.data.hf_datasets.prompt_response_dataset.PromptResponseDataset(train_ds_path: str, val_ds_path: str, input_key: str = 'input', output_key: str = 'output')
add_messages_key(example: dict[str, typing.Any]) -> dict[str, list[dict[str, typing.Any]]]