bowphs commited on
Commit
7b45677
1 Parent(s): b246269

Add GreTa files

Browse files
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: grc
3
+ license: apache-2.0
4
+ inference: false
5
+ ---
6
+ # GrεTa
7
+
8
+ The paper [Exploring Language Models for Classical Philology](https://todo.com) is the first effort to systematically provide state-of-the-art language models for Classical Philology. GrεTa is a T5-base sized, monolingual, encoder-decoder variant.
9
+
10
+ This model was trained in two stages. Initially, it was pre-trained on a recently acquired corpus that leverages OCR scans obtained from the [Internet Archive](https://archive.org/). Subsequently, the model was further trained using data from the [Open Greek & Latin Project](https://opengreekandlatin.org/), the CLARIN corpus [Greek Medieval Texts](https://inventory.clarin.gr/corpus/890), and the [Patrologia Graeca](https://patristica.net/graeca/).
11
+
12
+
13
+ Further information can be found in our paper or in our [GitHub repository](https://github.com/Heidelberg-NLP/ancient-language-models).
14
+
15
+ ## Usage
16
+ ```python
17
+ from transformers import AutoTokenizer, AutoModelForConditionalGeneration
18
+
19
+ tokenizer = AutoTokenizer.from_pretrained('bowphs/GreTa')
20
+ model = AutoModelForConditionalGeneration.from_pretrained('bowphs/GreTa')
21
+ ```
22
+ Please check out the awesome Hugging Face tutorials on how to fine-tune our models.
23
+
24
+ ## Evaluation Results
25
+ When fine-tuned on data from [Universal Dependencies 2.10](https://universaldependencies.org/), GrεTa achieves the following results on the Ancient Greek Perseus dataset:
26
+
27
+ | Task | XPoS | UPoS | UAS | LAS | Lemma |
28
+ |:--:|:--:|:--:|:--:|:--:|:--:|
29
+ | |94.44|89.03|87.32|83.06|91.14|
30
+
31
+ Please note that the PoS tagging and dependency parsing results are obtained using _only_ the encoder component of the model.
32
+
33
+ ## Contact
34
+ If you have any questions or problems, feel free to [reach out](mailto:riemenschneider@cl.uni-heidelberg.de).
35
+
36
+ ## Citation
37
+ ```bibtex
38
+ @incollection{riemenschneiderfrank:2023,
39
+ address = "Toronto, Canada",
40
+ author = "Riemenschneider, Frederick and Frank, Anette",
41
+ booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL’23)",
42
+ note = "to appear",
43
+ pubType = "incollection",
44
+ publisher = "Association for Computational Linguistics",
45
+ title = "Exploring Large Language Models for Classical Philology",
46
+ url = "https://arxiv.org/abs/2305.13698",
47
+ year = "2023",
48
+ key = "riemenschneiderfrank:2023"
49
+ }
50
+ ```
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bowphs/GreTa",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "d_ff": 2048,
7
+ "d_kv": 64,
8
+ "d_model": 768,
9
+ "decoder_start_token_id": 0,
10
+ "dropout_rate": 0.1,
11
+ "eos_token_id": 1,
12
+ "feed_forward_proj": "gated-gelu",
13
+ "gradient_checkpointing": false,
14
+ "initializer_factor": 1.0,
15
+ "is_encoder_decoder": true,
16
+ "layer_norm_epsilon": 1e-06,
17
+ "model_type": "t5",
18
+ "num_decoder_layers": 12,
19
+ "num_heads": 12,
20
+ "num_layers": 12,
21
+ "output_past": true,
22
+ "pad_token_id": 0,
23
+ "relative_attention_num_buckets": 32,
24
+ "tie_word_embeddings": false,
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.10.0",
27
+ "use_cache": true,
28
+ "vocab_size": 32103
29
+ }
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e83b68b042e448cdb0e6282548340bf4293934e3ccb5132a0083d94396809cdc
3
+ size 990170015
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddd31d8bbc7898741181c94e476f3a6caba3f13835a5e4fc20ac030190affada
3
+ size 990280781
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e4104aa76a73252cf60297b2d9430e0ca5bddbfc06df8b726822cd5778bb8a4
3
+ size 990731600
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"special_tokens_map_file": null, "name_or_path": "data/t5-base-grc-clean", "tokenizer_class": "PreTrainedTokenizerFast"}