readme: add initial version
Browse files
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- de
|
| 6 |
+
- fr
|
| 7 |
+
- fi
|
| 8 |
+
- sv
|
| 9 |
+
- nl
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# hmByT5 - Preliminary Language Models
|
| 13 |
+
|
| 14 |
+
Preliminary Historic Multilingual and Monolingual ByT5 Models. Following languages are currently covered:
|
| 15 |
+
|
| 16 |
+
* English (British Library Corpus - Books)
|
| 17 |
+
* German (Europeana Newspaper)
|
| 18 |
+
* French (Europeana Newspaper)
|
| 19 |
+
* Finnish (Europeana Newspaper)
|
| 20 |
+
* Swedish (Europeana Newspaper)
|
| 21 |
+
* Dutch (Delpher Corpus)
|
| 22 |
+
|
| 23 |
+
More details can be found in [our GitHub repository](https://github.com/stefan-it/hmByT5).
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# Pretraining
|
| 27 |
+
|
| 28 |
+
We use the official JAX/FLAX example in Hugging Face Transformers to pretrain a ByT5 model on a single v3-8 TPU.
|
| 29 |
+
Details about the training can be found [here](https://github.com/stefan-it/hmByT5/tree/main/hmbyt5-flax).
|
| 30 |
+
|
| 31 |
+
# Evaluation on Downstream Tasks (NER)
|
| 32 |
+
|
| 33 |
+
We evaluated the hmByT5 model on downstream tasks:
|
| 34 |
+
|
| 35 |
+
| Model | English AjMC | German AjMC | French AjMC | Finnish NewsEye | Swedish NewsEye | Dutch ICDAR | French ICDAR | Avg. |
|
| 36 |
+
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|--------------|--------------|-----------------|-----------------|--------------|--------------|------|
|
| 37 |
+
| [`hmbyt5-preliminary/byt5-small-historic-multilingual-flax`](https://huggingface.co/hmbyt5-preliminary/byt5-small-historic-multilingual-flax) | 83.28 ± 1.67 | 86.98 ± 0.71 | 83.49 ± 1.06 | 76.96 ± 1.58 | 78.80 ± 1.89 | 86.47 ± 0.79 | 77.43 ± 0.51 | |
|
| 38 |
+
|
| 39 |
+
# Acknowledgements
|
| 40 |
+
|
| 41 |
+
Research supported with Cloud TPUs from Google's [TPU Research Cloud](https://sites.research.google/trc/about/) (TRC).
|
| 42 |
+
Many Thanks for providing access to the TPUs ❤️
|