hf-hub-datasets

Download and upload HuggingFace Hub models and datasets with authentication.

17|3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/jayll1303/AIEKit --skill hf-hub-datasets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf-hub-datasets
Source: https://github.com/jayll1303/AIEKit/tree/main/.kiro/skills/hf-hub-datasets
Command: npx skills add https://github.com/jayll1303/AIEKit --skill hf-hub-datasets

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Eliminates friction when transferring, accessing, and managing models and datasets on the HuggingFace Hub by providing clear patterns for authentication, partial downloads, uploads, and large-dataset workflows so teams can move artifacts reliably between local, CI, and Hub storage.

Core Features & Use Cases

  • Authentication & Access Management: Login patterns, HF_TOKEN usage, gated model access, and org/private repo handling.
  • Download Patterns: Full snapshots, partial downloads using allow_patterns/ignore_patterns, revision selection, and single-file retrieval.
  • Upload & Repo Management: Create repos, upload_folder/upload_file/push_to_hub, model card generation, and visibility settings.
  • Large Dataset Handling: Streaming, memory-mapped loading, iterable datasets, filtering/mapping at scale, caching, and Git LFS guidance.
  • Use Case: Download a specific model revision with snapshot_download, stream a multi-gigabyte dataset for single-pass preprocessing, then push a processed dataset back to the Hub with push_to_hub.

Quick Start

Use the hf-hub-datasets skill to download a model snapshot and stream a large dataset for on-the-fly processing.

Frequently Asked Questions about hf-hub-datasets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download a specific model revision from HuggingFace Hub?

You can download a specific model revision from HuggingFace Hub using snapshot_download with the revision parameter. This fetches exact repository states, ensuring reproducible CI or training workflows by targeting specific commits or tags.

Can I stream large HuggingFace datasets for single-pass preprocessing?

Yes, you can stream large HuggingFace datasets for single-pass preprocessing using iterable datasets. This memory-mapped loading approach prevents out-of-memory errors by processing data on-the-fly without downloading the entire dataset to local storage.

What is the best way to upload a processed dataset back to HuggingFace Hub?

The best way to upload a processed dataset to HuggingFace Hub is using push_to_hub or upload_folder. These methods manage repository creation, handle Git LFS tracking for large files, and configure visibility settings for publishing artifacts.

How do I download only specific files from a HuggingFace model repository?

To download only specific files from a HuggingFace model repository, use snapshot_download or hf_hub_download with allow_patterns and ignore_patterns. This partial download mechanism saves bandwidth by excluding unneeded weights or assets.

Does accessing gated or private HuggingFace repositories require a token?

Yes, accessing gated or private HuggingFace repositories requires an HF_TOKEN for authentication. You must configure login patterns and ensure your token has the appropriate organization or private repository permissions before downloading assets.

Why does Git LFS matter when pushing large datasets to HuggingFace Hub?

Git LFS matters when pushing large datasets to HuggingFace Hub because it manages binary file storage outside standard Git limits. Handling LFS correctly during push_to_hub prevents upload failures and ensures repository integrity for multi-gigabyte artifacts.