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

[pack_dataset] don't sort before packing, only pack train #5954

Merged
merged 9 commits into from
Jul 27, 2020

Conversation

sshleifer
Copy link
Contributor

@sshleifer sshleifer commented Jul 21, 2020

this is better than sorting.
But for best metrics, don't pack.

@sshleifer sshleifer requested a review from sgugger July 21, 2020 21:03
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

from pathlib import Path
import fire

def minify(src_dir: Path, dest_dir: Path, n: int):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: type-hint should be Union[Path, str] since you wrap src_dir and dest_dir in a Path after.

@codecov
Copy link

codecov bot commented Jul 27, 2020

Codecov Report

Merging #5954 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5954      +/-   ##
==========================================
+ Coverage   78.52%   78.56%   +0.03%     
==========================================
  Files         146      146              
  Lines       26314    26314              
==========================================
+ Hits        20664    20674      +10     
+ Misses       5650     5640      -10     
Impacted Files Coverage Δ
src/transformers/file_utils.py 82.48% <0.00%> (+0.28%) ⬆️
src/transformers/generation_tf_utils.py 86.21% <0.00%> (+2.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1d15d6...97c473a. Read the comment docs.

@sshleifer sshleifer merged commit 4302ace into huggingface:master Jul 27, 2020
@sshleifer sshleifer deleted the pack-random branch July 27, 2020 16:14
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