davidmeikle commited on
Commit
c0958d6
·
verified ·
1 Parent(s): 988e6d7

Upload converted EOLE COMET-KIWI model

Browse files
Files changed (7) hide show
  1. README.md +102 -0
  2. config.json +61 -0
  3. model.00.safetensors +3 -0
  4. sentencepiece.bpe.model +3 -0
  5. tokenizer.json +0 -0
  6. vocab.json +0 -0
  7. vocab.txt +0 -0
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: eole
3
+ tags:
4
+ - eole
5
+ - comet
6
+ - comet-kiwi
7
+ - machine-translation-evaluation
8
+ - quality-estimation
9
+ - converted
10
+ base_model: Unbabel/wmt22-cometkiwi-da
11
+ license: cc-by-nc-sa-4.0
12
+ ---
13
+
14
+ # WMT22 COMET-KIWI DA (EOLE)
15
+
16
+ This is [Unbabel/wmt22-cometkiwi-da](https://huggingface.co/Unbabel/wmt22-cometkiwi-da) converted to [EOLE](https://github.com/eole-nlp/eole) format.
17
+
18
+ No model weights were modified. This repository contains a format conversion for use with EOLE's native `transformer_encoder_scorer` implementation.
19
+
20
+ This is not an upstream `unbabel-comet` checkpoint layout. Use it with EOLE.
21
+
22
+ ## Model Details
23
+
24
+ | | |
25
+ |---|---|
26
+ | Original model | [Unbabel/wmt22-cometkiwi-da](https://huggingface.co/Unbabel/wmt22-cometkiwi-da) |
27
+ | EOLE architecture | `transformer_encoder_scorer` |
28
+ | Scoring type | `comet` |
29
+ | Class identifier | `unified_metric` |
30
+ | EOLE scorer | `EOLE-COMET-KIWI` |
31
+ | Requires reference | No |
32
+ | Encoder | XLM-R large style encoder |
33
+
34
+ ## Usage
35
+
36
+ Requires an EOLE version with native COMET scorer support.
37
+
38
+ ### Validation Metric
39
+
40
+ ```yaml
41
+ valid_metrics: ["EOLE-COMET-KIWI"]
42
+ comet_model: eole-nlp/wmt22-cometkiwi-da-eole
43
+ comet_batch_size: 64
44
+ ```
45
+
46
+ ### Direct Scoring
47
+
48
+ COMET-KIWI is reference-free. Use `--src` for source sentences and `--tgt` for machine translations.
49
+
50
+ ```bash
51
+ eole predict \
52
+ --model_path eole-nlp/wmt22-cometkiwi-da-eole \
53
+ --src /path/to/src.txt \
54
+ --tgt /path/to/mt.txt \
55
+ --output /path/to/scores.txt \
56
+ --with_score
57
+ ```
58
+
59
+ By default, direct scoring writes one segment score per input line. To emit a
60
+ single aggregate system score, add `--score_level system`:
61
+
62
+ ```bash
63
+ eole predict \
64
+ --model_path eole-nlp/wmt22-cometkiwi-da-eole \
65
+ --src /path/to/src.txt \
66
+ --tgt /path/to/mt.txt \
67
+ --output /path/to/system-score.txt \
68
+ --with_score \
69
+ --score_level system
70
+ ```
71
+
72
+ `score_level: system` writes one numeric line containing the arithmetic mean of
73
+ the segment scores, similar to Unbabel COMET's `--only_system` mode but using
74
+ EOLE's score-file format.
75
+
76
+ ## Conversion
77
+
78
+ Converted with:
79
+
80
+ ```bash
81
+ eole convert COMET \
82
+ --model Unbabel/wmt22-cometkiwi-da \
83
+ --output wmt22-cometkiwi-da-eole
84
+ ```
85
+
86
+ ## Parity
87
+
88
+ This conversion was parity-checked against the upstream Unbabel COMET runtime. On a 100-line WMT17 slice, native EOLE scoring matched the upstream baseline within floating point tolerance:
89
+
90
+ | Metric | Value |
91
+ |---|---:|
92
+ | System score delta | `1.01e-08` |
93
+ | Sentence MAE | `1.28e-07` |
94
+ | Sentence max abs | `9.54e-07` |
95
+
96
+ ## Original Model and Attribution
97
+
98
+ This model is a conversion of [Unbabel/wmt22-cometkiwi-da](https://huggingface.co/Unbabel/wmt22-cometkiwi-da). The model weights were converted without modification.
99
+
100
+ This converted repository follows the upstream model license: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC-BY-NC-SA-4.0). Use is subject to the upstream non-commercial, attribution, and share-alike terms. Please refer to the original model card and license for training data, intended use, limitations, and citation details.
101
+
102
+ Unbabel COMET: https://github.com/Unbabel/COMET
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "src_vocab": "dummy",
3
+ "tgt_vocab": "dummy",
4
+ "data": {},
5
+ "share_vocab": true,
6
+ "training": {
7
+ "compute_dtype": "fp32"
8
+ },
9
+ "model": {
10
+ "architecture": "transformer_encoder_scorer",
11
+ "scoring_type": "comet",
12
+ "class_identifier": "unified_metric",
13
+ "requires_reference": false,
14
+ "pretrained_model": "Unbabel/wmt22-cometkiwi-da",
15
+ "pool": "avg",
16
+ "layer": "mix",
17
+ "layer_transformation": "softmax",
18
+ "layer_norm": false,
19
+ "input_segments": [
20
+ "mt",
21
+ "src"
22
+ ],
23
+ "hidden_sizes": [
24
+ 3072,
25
+ 1024
26
+ ],
27
+ "activations": "Tanh",
28
+ "final_activation": null,
29
+ "dropout": 0.1,
30
+ "encoder_architecture": "XLMRobertaForMaskedLM",
31
+ "embeddings": {
32
+ "embedding_type": "roberta",
33
+ "src_word_vec_size": 1024,
34
+ "tgt_word_vec_size": 1024,
35
+ "word_vec_size": 1024,
36
+ "position_encoding_type": "Learned",
37
+ "n_positions": 514,
38
+ "position_shift": 0,
39
+ "embedding_layer_norm": true,
40
+ "token_type_vocab_size": 1
41
+ },
42
+ "encoder": {
43
+ "encoder_type": "transformer",
44
+ "layers": 24,
45
+ "hidden_size": 1024,
46
+ "heads": 16,
47
+ "transformer_ff": 4096,
48
+ "mlp_activation_fn": "gelu",
49
+ "layer_norm": "standard",
50
+ "norm_eps": 1e-05,
51
+ "add_qkvbias": true,
52
+ "add_key_bias": true,
53
+ "add_final_linear_bias": true,
54
+ "add_ffnbias": true,
55
+ "position_encoding_type": "Learned",
56
+ "n_positions": 514,
57
+ "encoder_layer_style": "postnorm",
58
+ "final_encoder_layer_norm": false
59
+ }
60
+ }
61
+ }
model.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:927dd783d3050bd66913babe27fbbe17ce723e2fb354c25b509a246731458aa4
3
+ size 2260603500
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
vocab.txt ADDED
The diff for this file is too large to render. See raw diff