neuralfetch.download.Huggingface¶
- pydantic model neuralfetch.download.Huggingface[source][source]¶
Download a dataset repository from Hugging Face Hub.
Uses
huggingface_hub.snapshot_download()for a full repository snapshot. Set theHUGGING_FACE_HUB_TOKENenvironment variable for private or gated repositories.- Parameters:
study (str) – Dataset repository name (e.g.
"allen-bold"). The full repo ID used will beorg/study.org (str) – Hugging Face organisation or user that owns the dataset (e.g.
"BrainAI"or"openai"). Combined with study to formrepo_id.include (list of str) – Dataset-relative globs, forwarded natively to
snapshot_downloadasallow_patterns/ignore_patterns. SeeBaseDownload.exclude (list of str) – Dataset-relative globs, forwarded natively to
snapshot_downloadasallow_patterns/ignore_patterns. SeeBaseDownload.
- Fields: