Change the Download Command to account for duplicate filenames

#9
by jurassicpark - opened
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -15,10 +15,17 @@ ds = load_dataset("togethercomputer/RedPajama-Data-1T")
15
  ```
16
 
17
  Or you can directly download the files using the following command:
 
18
  ```
19
- wget -i https://data.together.xyz/redpajama-data-1T/v1.0.0/urls.txt
 
 
 
 
 
20
  ```
21
 
 
22
  A smaller 1B-token sample of the dataset can be found [here](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T-Sample).
23
 
24
  A full set of scripts to recreate the dataset from scratch can be found [here](https://github.com/togethercomputer/RedPajama-Data).
 
15
  ```
16
 
17
  Or you can directly download the files using the following command:
18
+
19
  ```
20
+ wget 'https://data.together.xyz/redpajama-data-1T/v1.0.0/urls.txt'
21
+ while read line; do
22
+ dload_loc=${line#https://data.together.xyz/redpajama-data-1T/v1.0.0/}
23
+ mkdir -p $(dirname $dload_loc)
24
+ wget "$line" -O "$dload_loc"
25
+ done < urls.txt
26
  ```
27
 
28
+
29
  A smaller 1B-token sample of the dataset can be found [here](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T-Sample).
30
 
31
  A full set of scripts to recreate the dataset from scratch can be found [here](https://github.com/togethercomputer/RedPajama-Data).