File size: 2,928 Bytes
876a92e
b9337f0
768df84
b9337f0
 
 
 
 
b5e16d8
b9337f0
876a92e
 
768df84
 
876a92e
b5e16d8
876a92e
15b8eb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
768df84
 
 
 
 
 
876a92e
768df84
876a92e
768df84
1845bd4
768df84
876a92e
768df84
876a92e
b9337f0
876a92e
b9337f0
876a92e
b9337f0
 
 
 
 
 
 
 
 
 
 
 
876a92e
b9337f0
876a92e
b9337f0
 
768df84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
876a92e
 
b9337f0
876a92e
768df84
b9337f0
 
768df84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
license: mit
base_model: facebook/w2v-bert-2.0
tags:
- generated_from_trainer
metrics:
- wer
model-index:
- name: CiceroASR
  results: []
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# CiceroASR

This model is a fine-tuned version of [facebook/w2v-bert-2.0](https://huggingface.co/facebook/w2v-bert-2.0) 
for the transcription of Classical Latin!

Example from the Aeneid:
<video controls src="https://cdn-uploads.huggingface.co/production/uploads/5fc7944e8a82cc0bcf7cc51d/hYNFr2od1EKDlRRdzJmzR.webm"></video>
Transcription:
**arma virumque cano** (Of arms and men I sing)

Example from Genesis:
<video controls src="https://cdn-uploads.huggingface.co/production/uploads/5fc7944e8a82cc0bcf7cc51d/9Q6DfG2h8FkABnl55DLBH.webm"></video>
Transcription (little error there):
**creavit deus chaelum et terram** (In the beggining God created the heaven and the earth)


It achieves the following results on the evaluation set of my dataset [Latin Youtube](https://huggingface.co/datasets/thiagolira/LatinYoutube):
- Loss: 0.5395
- Wer: 0.2220

## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 300
- num_epochs: 15
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss | Wer    |
|:-------------:|:-----:|:----:|:---------------:|:------:|
| 3.6548        | 0.94  | 50   | 2.8634          | 0.9990 |
| 2.2055        | 1.89  | 100  | 1.0921          | 0.9727 |
| 1.667         | 2.83  | 150  | 0.7201          | 0.4615 |
| 1.3148        | 3.77  | 200  | 0.6431          | 0.3866 |
| 0.9899        | 4.72  | 250  | 0.5561          | 0.3116 |
| 0.9629        | 5.66  | 300  | 0.6027          | 0.3817 |
| 0.7557        | 6.6   | 350  | 0.7145          | 0.3145 |
| 0.9143        | 7.55  | 400  | 0.4926          | 0.2610 |
| 0.5837        | 8.49  | 450  | 0.5396          | 0.2619 |
| 0.7037        | 9.43  | 500  | 0.5076          | 0.2746 |
| 0.5986        | 10.38 | 550  | 0.5224          | 0.2415 |
| 0.5288        | 11.32 | 600  | 0.5332          | 0.2259 |
| 0.5034        | 12.26 | 650  | 0.5436          | 0.2249 |
| 0.4897        | 13.21 | 700  | 0.5171          | 0.2162 |
| 0.4738        | 14.15 | 750  | 0.5395          | 0.2220 |


### Framework versions

- Transformers 4.38.1
- Pytorch 2.1.0+cu121
- Datasets 2.17.1
- Tokenizers 0.15.2