mauriceweber
commited on
Commit
·
968c26b
1
Parent(s):
659c3c7
Update README.md
Browse files
README.md
CHANGED
@@ -50,8 +50,10 @@ LANG="en"
|
|
50 |
PARTITION="head_middle"
|
51 |
BASE_URL="https://data.together.xyz/redpajama-data-v2/v1.0.0"
|
52 |
|
53 |
-
|
54 |
-
|
|
|
|
|
55 |
|
56 |
# download documents
|
57 |
while read line; do
|
@@ -61,17 +63,25 @@ while read line; do
|
|
61 |
wget "$url" -O "$dest"
|
62 |
done <"$listings_file"
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
# download other components
|
65 |
-
COMPS=("
|
66 |
for comp in "${COMPS[@]}"; do
|
67 |
while read line; do
|
68 |
-
url="${BASE_URL}/${comp}/${line}.${comp}.
|
69 |
-
dest="${comp}/${line}.${comp}.
|
70 |
mkdir -p $(dirname $dest)
|
71 |
wget "$url" -O "$dest"
|
72 |
done <"$listings_file"
|
73 |
done
|
74 |
-
|
75 |
```
|
76 |
|
77 |
A full set of scripts to recreate the dataset, including the quality signals, can be
|
|
|
50 |
PARTITION="head_middle"
|
51 |
BASE_URL="https://data.together.xyz/redpajama-data-v2/v1.0.0"
|
52 |
|
53 |
+
listings_tag="${LANG}-${CC_SNAPSHOT}-${PARTITION}"
|
54 |
+
mkdir listings
|
55 |
+
wget "${BASE_URL}/listings/${listings_tag}.txt" -O "listings/${listings_tag}.txt"
|
56 |
+
listings_file="listings/${listings_tag}.txt"
|
57 |
|
58 |
# download documents
|
59 |
while read line; do
|
|
|
63 |
wget "$url" -O "$dest"
|
64 |
done <"$listings_file"
|
65 |
|
66 |
+
# download quality signals
|
67 |
+
while read line; do
|
68 |
+
url="${BASE_URL}/quality_signals/${line}.signals.json.gz"
|
69 |
+
dest="quality_signals/${line}.signals.json.gz"
|
70 |
+
mkdir -p $(dirname $dest)
|
71 |
+
wget "$url" -O "$dest"
|
72 |
+
done <"$listings_file"
|
73 |
+
|
74 |
+
|
75 |
# download other components
|
76 |
+
COMPS=("minhash" "duplicates")
|
77 |
for comp in "${COMPS[@]}"; do
|
78 |
while read line; do
|
79 |
+
url="${BASE_URL}/${comp}/${line}.${comp}.parquet"
|
80 |
+
dest="${comp}/${line}.${comp}.parquet"
|
81 |
mkdir -p $(dirname $dest)
|
82 |
wget "$url" -O "$dest"
|
83 |
done <"$listings_file"
|
84 |
done
|
|
|
85 |
```
|
86 |
|
87 |
A full set of scripts to recreate the dataset, including the quality signals, can be
|