nemo_gym.hf_utils#
Module Contents#
Functions#
Check for the presence of the expected keys in the dataset |
|
Download a HF dataset and save as JSONL.
If |
|
API#
- nemo_gym.hf_utils.check_jsonl_format(file_path: str) bool[source]#
Check for the presence of the expected keys in the dataset
- nemo_gym.hf_utils.download_hf_dataset_as_jsonl( ) None[source]#
Download a HF dataset and save as JSONL. If
artifact_fpathis provided, downloads that specific file usinghf_hub_download. Otherwise, uses datasets.load_dataset() to handle structured datasets.