bowphs commited on
Commit
d58c9e9
1 Parent(s): 34b88f7

Add LaTa files

Browse files
Files changed (6) hide show
  1. README.md +47 -0
  2. config.json +28 -0
  3. flax_model.msgpack +3 -0
  4. pytorch_model.bin +3 -0
  5. tf_model.h5 +3 -0
  6. tokenizer.json +0 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: la
3
+ license: apache-2.0
4
+ inference: false
5
+ ---
6
+ # LaTa
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. LaTa is a T5-base sized, monolingual, encoder-decoder variant.
9
+
10
+ This model was trained on the [Corpus Corporum](https://mlat.uzh.ch/).
11
+
12
+ Further information can be found in our paper or in our [GitHub repository](https://github.com/Heidelberg-NLP/ancient-language-models).
13
+
14
+ ## Usage
15
+ ```python
16
+ from transformers import AutoTokenizer, AutoModelForConditionalGeneration
17
+
18
+ tokenizer = AutoTokenizer.from_pretrained('bowphs/LaTa')
19
+ model = AutoModelForConditionalGeneration.from_pretrained('bowphs/LaTa')
20
+ ```
21
+ Please check out the awesome Hugging Face tutorials on how to fine-tune our models.
22
+
23
+ ## Evaluation Results
24
+ When fine-tuned on lemmatization data from [EvaLatin 2022](https://universaldependencies.org/), LaTa achieves the following results:
25
+
26
+ | Task | Classical | Cross-genre | Cross-time |
27
+ |:--:|:--:|:--:|:--:|
28
+ | |97.30|93.95|92.26|
29
+
30
+ ## Contact
31
+ If you have any questions or problems, feel free to [reach out](mailto:riemenschneider@cl.uni-heidelberg.de).
32
+
33
+ ## Citation
34
+ ```bibtex
35
+ @incollection{riemenschneiderfrank:2023,
36
+ address = "Toronto, Canada",
37
+ author = "Riemenschneider, Frederick and Frank, Anette",
38
+ booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL’23)",
39
+ note = "to appear",
40
+ pubType = "incollection",
41
+ publisher = "Association for Computational Linguistics",
42
+ title = "Exploring Large Language Models for Classical Philology",
43
+ url = "https://arxiv.org/abs/2305.13698",
44
+ year = "2023",
45
+ key = "riemenschneiderfrank:2023"
46
+ }
47
+ ```
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bowphs/LaTa",
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
+ "transformers_version": "4.10.0",
26
+ "use_cache": true,
27
+ "vocab_size": 52103
28
+ }
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc78634ed2ab333eb54f9b429fc9c5a71dac9f5515fae97be5a9995e34ed3014
3
+ size 1113050015
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f47245357c65a6b6dfd9aa5ebdd84a1bccb458ebeb488bd4826a896c2f8a80c6
3
+ size 1113160781
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4830bfa8e7bd06f9a5f21269549dd8916a18e60132e7bdf2bc92ab4a9e7b483
3
+ size 1113611600
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff