Skip to content

Pin HuggingFaceDataset and HarborDataset to specific versions - #529

Open
anli5005 wants to merge 11 commits into
mainfrom
anthony/pin-hugging-face-datasets
Open

Pin HuggingFaceDataset and HarborDataset to specific versions#529
anli5005 wants to merge 11 commits into
mainfrom
anthony/pin-hugging-face-datasets

Conversation

@anli5005

@anli5005 anli5005 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

In #483, Devin pointed out that Hugging Face datasets remain cached even if a new revision is pushed. This PR fixes that pinning all HuggingFaceDataset instances to a specific hf_revision tag and taking it into account during caching. If no hf_revision is passed, the initializer will automatically fetch the latest commit hash.

This PR also pins HarborDataset instances by default; if no version is specified in the dataset_name, HarborDataset will use the CLI to fetch the latest hash of the dataset and pin itself to that.

This will give users finer-grained control over the lifetime of their Hugging Face datasets. Accordingly, support for HuggingFaceDataset.always_download (formerly always_prepare) has been removed from HuggingFaceDataset, as the default behavior will now just repeatedly re-download the same dataset revision. I kept HarborDataset.always_fetch around for now to support path-based datasets.


Devin Review

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

devin-ai-integration[bot]

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants