-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functionality to push tasks to the HuggingFace hub and download them automatically. #297
Conversation
…feat/serializer
…label into feat/tasks-to-hub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plaguss looking good! Added some small comments?
Shouldn't we also test if we can actually push and pull from the hub.
Also, I think the classes for Test*TaskSerialization
can be generalized a bit w.r.t. having the same base class and different init args.
path_in_repo=TASK_FILE_NAME, | ||
repo_id=repo_id, | ||
repo_type="dataset", | ||
token=kwargs.get("token"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if None will this default to the HF token internally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The HfApi().upload_file
function should take care of that on it's own, this is the same implementation we have in argilla to update the dataset card here.
Description
This PR adds the functionality to push tasks to the hub and download them automatically if available. It will simplify working with
CustomDataset
and keep track of the tasks that come with them out of the box.An example can be seen here.
Closes #290.