Spaces:
Sleeping
Sleeping
victormiller
commited on
Update results.py
Browse files- results.py +12 -8
results.py
CHANGED
@@ -1,12 +1,21 @@
|
|
1 |
from fasthtml.common import *
|
2 |
from fasthtml.components import *
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
perp1_div = Div(
|
|
|
5 |
perp_v_buckets = P("For each bucket, we aggregated all the chunks that belong to a single year and calculated the average perplexity for each (bucket, year) data point."),
|
6 |
perp_v_buckets_img = Img(src="images/prep-diff-buckets-global.png"),
|
7 |
)
|
8 |
-
|
9 |
-
|
|
|
10 |
|
11 |
perp_v_years = P("Taking the same data, we can convert it into a graph indicating the yearly trend. For most buckets, the average perplexity of dumps from more recent years seem to be lower than that of former years.")
|
12 |
perp_v_years_img = Img(src="images/prep-across-diff-year-global-dup-buckets.png")
|
@@ -29,12 +38,7 @@ llama_perp_v_localdump_img = Img(src="images/prep-vs-dump-dup-global.png")
|
|
29 |
def results():
|
30 |
return Div(
|
31 |
Section(
|
32 |
-
|
33 |
-
H3("Model based Quality Estimation"),
|
34 |
-
quality_est,
|
35 |
-
H3("Sampling Strategy"),
|
36 |
-
sampling_strat,
|
37 |
-
H3("Perplexity vs Buckets"),
|
38 |
perp1_div,
|
39 |
H3("Perplexity vs Years"),
|
40 |
perp_v_years,
|
|
|
1 |
from fasthtml.common import *
|
2 |
from fasthtml.components import *
|
3 |
|
4 |
+
intro_div = Div(
|
5 |
+
H2("Perplexity Evaluation on Duplicate Data"),
|
6 |
+
H3("Model based Quality Estimation"),
|
7 |
+
quality_est = P("We took one of the model-based data quality evaluation strategies adopted by [DataComp-LM](https://arxiv.org/abs/2406.11794), which used perplexity filtering as a candidate for quality filtering. DataComp-LM followed [CCNet’s](https://arxiv.org/abs/1911.00359) practice to use a 5-gram Kneser-Ney model as implemented in the [KenLM](https://github.com/kpu/kenlm) library for efficient perplexity calculation. Following this practice, we estimated data quality by taking a KenLM model (from [edugp/kenlm](https://huggingface.co/edugp/kenlm)) trained on English Wikipedia data to compute perplexity on data with different duplication patterns. Lower perplexity is regarded as a signal of higher quality."),
|
8 |
+
H3("Sampling Strategy"),
|
9 |
+
sampling_strat = P("We started from a processed Common Crawl (CC) ablation dataset divided by the number of duplicates of each document. For each CC dump, we have different buckets each holding chunks of document with different duplicate count ranges (1-1, 2-5, 6-10, 11-100, 101-1000, 1001-30000000). We sampled the first 10k documents from each chunk with their meta data."),
|
10 |
+
)
|
11 |
perp1_div = Div(
|
12 |
+
H3("Perplexity vs Buckets"),
|
13 |
perp_v_buckets = P("For each bucket, we aggregated all the chunks that belong to a single year and calculated the average perplexity for each (bucket, year) data point."),
|
14 |
perp_v_buckets_img = Img(src="images/prep-diff-buckets-global.png"),
|
15 |
)
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
|
20 |
perp_v_years = P("Taking the same data, we can convert it into a graph indicating the yearly trend. For most buckets, the average perplexity of dumps from more recent years seem to be lower than that of former years.")
|
21 |
perp_v_years_img = Img(src="images/prep-across-diff-year-global-dup-buckets.png")
|
|
|
38 |
def results():
|
39 |
return Div(
|
40 |
Section(
|
41 |
+
intro_div,
|
|
|
|
|
|
|
|
|
|
|
42 |
perp1_div,
|
43 |
H3("Perplexity vs Years"),
|
44 |
perp_v_years,
|