File size: 921 Bytes
403d381 a756a0e 403d381 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
To use git lfs and huggingface hub:
DO NOT USE VS CODE, INSTEAD USE CLI
Do once:
(1) install git lfs on machine
(2) pip install --upgrade huggingface_hub
Then:
(1) huggingface-cli login
Then:
(1) git lfs install
(2) git clone "https://huggingface.co/datasets/refugee-law-lab/canadian-legal-data"
(3) cd into repo
For specific new big files tracking using lfs (i.e. new / moved files)
(1) git lfs track "d:/xxx/xxx/bigfile.parquet"
(2) if over 5gb: huggingface-cli lfs-enable-largefiles .
When ready to push:
(1) git add .
(2) git commit -m "commit message here"
(3) git push
Notes:
- If making a new dataset, easiest to make first on huggingface (make sure to make dataset not model)
- If you add files in parquet, json, etc, huggingface will do everything automatically (make sure to include "train" in the file names)
- Note that the url includes /datasets/ (forgot that and it was confusing)
-
|