Skip to content
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

[DRAFT] export dataset to Hub UI + Backend testing branch #5725

Closed
wants to merge 55 commits into from

Conversation

jfcalvo
Copy link
Member

@jfcalvo jfcalvo commented Dec 2, 2024

Only a branch that we will use to join UI + Backend changes associated with dataset export to hub.

jfcalvo and others added 28 commits November 20, 2024 12:18
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 51.56951% with 108 lines in your changes missing coverage. Please review.

Project coverage is 90.68%. Comparing base (e66d001) to head (b8e79c1).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
argilla-server/src/argilla_server/contexts/hub.py 35.86% 93 Missing ⚠️
...gilla-server/src/argilla_server/models/database.py 76.47% 8 Missing ⚠️
argilla-server/src/argilla_server/database.py 73.33% 4 Missing ⚠️
argilla-server/src/argilla_server/jobs/hub_jobs.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5725      +/-   ##
===========================================
- Coverage    92.00%   90.68%   -1.32%     
===========================================
  Files          161      161              
  Lines         6778     6977     +199     
===========================================
+ Hits          6236     6327      +91     
- Misses         542      650     +108     
Flag Coverage Δ
argilla-server 90.68% <51.56%> (-1.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@frascuchon frascuchon modified the milestone: v2.6.0 Dec 3, 2024
damianpumar and others added 23 commits December 3, 2024 15:36
# Description

This PR adds a new endpoint to support exporting an Argilla dataset to
HuggingFace Hub.

Being the endpoint `POST /api/v1/datasets/:dataset_id/export` with the
following expected body:
- `name`: the name of the dataset to be created on HF Hub. i.e.
`username/my-new-dataset`.
- `subset` (optional, default: `default`): the subset of the dataset to
be created.
- `split` (optional, default: `train`): the split of the dataset to be
created.
- `private` (optional, default: `false`): whether the dataset should be
private or not.
- `token`: the HF Hub API access token to create the dataset, it should
have WRITE access.

**Type of change**

- New feature (non-breaking change which adds functionality)

**How Has This Been Tested**

- [x] Testing manually exporting some datasets.

**Checklist**

- I added relevant documentation
- I followed the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
@jfcalvo jfcalvo closed this Dec 11, 2024
@jfcalvo jfcalvo deleted the feat/export-dataset-to-hub-testing-merge branch December 11, 2024 10:17
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.

4 participants