Skip to content

Commit

Permalink
By default trust remote code from HF Datasets (#9886) (#9887)
Browse files Browse the repository at this point in the history
Signed-off-by: Nithin Rao Koluguri <nithinraok>
Co-authored-by: Nithin Rao <nithinrao.koluguri@gmail.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
  • Loading branch information
2 people authored and akoumpa committed Jul 25, 2024
1 parent 4e4b945 commit 363fb29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/speech_recognition/convert_hf_dataset_to_nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def main(cfg: HFDatasetConversionConfig):
cache_dir=None,
streaming=cfg.streaming,
token=cfg.use_auth_token,
trust_remote_code=True,
)

except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions tutorials/asr/ASR_CTC_Language_Finetuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
"cell_type": "code",
"source": [
"if not os.path.exists(\"convert_hf_dataset_to_nemo.py\"):\n",
" !wget https://raw.githubusercontent.com/NVIDIA/NeMo/main/scripts/speech_recognition/convert_hf_dataset_to_nemo.py\n",
" !wget https://raw.githubusercontent.com/NVIDIA/NeMo/$BRANCH/scripts/speech_recognition/convert_hf_dataset_to_nemo.py\n",
""
],
"metadata": {
Expand Down Expand Up @@ -2217,4 +2217,4 @@
]
}
]
}
}

0 comments on commit 363fb29

Please sign in to comment.