readme: add initial version
Browse files
README.md
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
---
|
6 |
+
|
7 |
+
# hmByT5 - Preliminary Language Models
|
8 |
+
|
9 |
+
Preliminary Historic Multilingual and Monolingual ByT5 Models. Following languages are currently covered:
|
10 |
+
|
11 |
+
* English (British Library Corpus - Books)
|
12 |
+
|
13 |
+
More details can be found in [our GitHub repository](https://github.com/stefan-it/hmByT5).
|
14 |
+
|
15 |
+
# Pretraining
|
16 |
+
|
17 |
+
We use the official JAX/FLAX example in Hugging Face Transformers to pretrain a ByT5 model on a single v3-8 TPU.
|
18 |
+
Details about the training can be found [here](https://github.com/stefan-it/hmByT5/tree/main/hmbyt5-flax).
|
19 |
+
|
20 |
+
# Evaluation on Downstream Tasks (NER)
|
21 |
+
|
22 |
+
We evaluated the hmByT5 Base model on English AjMC dataset:
|
23 |
+
|
24 |
+
| Configuration | Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | Avg. |
|
25 |
+
|------------------------------------------|---------|---------|---------|---------|---------|--------------|
|
26 |
+
| `wsFalse-bs4-e10-lr0.00015-poolingfirst` | 86.78 | 87.46 | 85.75 | 88.41 | 86.6 | 87.0 ± 0.89 |
|
27 |
+
| `wsFalse-bs8-e10-lr0.00016-poolingfirst` | 86.79 | 86.29 | 86.67 | 87.14 | 85.82 | 86.54 ± 0.45 |
|
28 |
+
| `wsFalse-bs4-e10-lr0.00016-poolingfirst` | 87.04 | 87.34 | 86.63 | 84.09 | 87.04 | 86.43 ± 1.19 |
|
29 |
+
| `wsFalse-bs8-e10-lr0.00015-poolingfirst` | 86.87 | 86.43 | 86.88 | 85.15 | 85.25 | 86.12 ± 0.77 |
|
30 |
+
|
31 |
+
The ByT5 Small [model](https://huggingface.co/hmbyt5/byt5-small-english) achieves 85.65 ± 1.21 on this dataset.
|
32 |
+
|
33 |
+
# Acknowledgements
|
34 |
+
|
35 |
+
Research supported with Cloud TPUs from Google's [TPU Research Cloud](https://sites.research.google/trc/about/) (TRC).
|
36 |
+
Many Thanks for providing access to the TPUs ❤️
|