davidmeikle commited on
Commit
b19ef76
·
verified ·
1 Parent(s): dcff457

Upload converted EOLE COMET model

Browse files
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: eole
3
+ tags:
4
+ - eole
5
+ - comet
6
+ - machine-translation-evaluation
7
+ - quality-estimation
8
+ - converted
9
+ base_model: Unbabel/wmt22-comet-da
10
+ license: apache-2.0
11
+ pipeline_tag: text-classification
12
+ ---
13
+
14
+ # WMT22 COMET DA (EOLE)
15
+
16
+ This is [Unbabel/wmt22-comet-da](https://huggingface.co/Unbabel/wmt22-comet-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-comet-da](https://huggingface.co/Unbabel/wmt22-comet-da) |
27
+ | EOLE architecture | `transformer_encoder_scorer` |
28
+ | Scoring type | `comet` |
29
+ | Class identifier | `regression_metric` |
30
+ | EOLE scorer | `EOLE-COMET` |
31
+ | Requires reference | Yes |
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"]
42
+ comet_model: eole-nlp/wmt22-comet-da-eole
43
+ comet_batch_size: 64
44
+ ```
45
+
46
+ ### Direct Scoring
47
+
48
+ ```bash
49
+ eole predict \
50
+ --model_path eole-nlp/wmt22-comet-da-eole \
51
+ --src /path/to/src.txt \
52
+ --tgt /path/to/mt.txt \
53
+ --ref /path/to/ref.txt \
54
+ --output /path/to/scores.txt \
55
+ --with_score
56
+ ```
57
+
58
+ By default, direct scoring writes one segment score per input line. To emit a
59
+ single aggregate system score, add `--score_level system`:
60
+
61
+ ```bash
62
+ eole predict \
63
+ --model_path eole-nlp/wmt22-comet-da-eole \
64
+ --src /path/to/src.txt \
65
+ --tgt /path/to/mt.txt \
66
+ --ref /path/to/ref.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-comet-da \
83
+ --output wmt22-comet-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.85e-08` |
93
+ | Sentence MAE | `5.42e-08` |
94
+ | Sentence max abs | `7.15e-07` |
95
+
96
+ ## Original Model and Attribution
97
+
98
+ This model is a conversion of [Unbabel/wmt22-comet-da](https://huggingface.co/Unbabel/wmt22-comet-da). The model weights were converted without modification.
99
+
100
+ This converted repository follows the upstream model license: Apache-2.0. 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,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "regression_metric",
13
+ "requires_reference": true,
14
+ "pretrained_model": "Unbabel/wmt22-comet-da",
15
+ "pool": "avg",
16
+ "layer": "mix",
17
+ "layer_transformation": "sparsemax",
18
+ "layer_norm": false,
19
+ "input_segments": [
20
+ "mt",
21
+ "src",
22
+ "ref"
23
+ ],
24
+ "hidden_sizes": [
25
+ 3072,
26
+ 1024
27
+ ],
28
+ "activations": "Tanh",
29
+ "final_activation": null,
30
+ "dropout": 0.1,
31
+ "encoder_architecture": "XLMRobertaForMaskedLM",
32
+ "embeddings": {
33
+ "embedding_type": "roberta",
34
+ "src_word_vec_size": 1024,
35
+ "tgt_word_vec_size": 1024,
36
+ "word_vec_size": 1024,
37
+ "position_encoding_type": "Learned",
38
+ "n_positions": 514,
39
+ "position_shift": 0,
40
+ "embedding_layer_norm": true,
41
+ "token_type_vocab_size": 1
42
+ },
43
+ "encoder": {
44
+ "encoder_type": "transformer",
45
+ "layers": 24,
46
+ "hidden_size": 1024,
47
+ "heads": 16,
48
+ "transformer_ff": 4096,
49
+ "mlp_activation_fn": "gelu",
50
+ "layer_norm": "standard",
51
+ "norm_eps": 1e-05,
52
+ "add_qkvbias": true,
53
+ "add_key_bias": true,
54
+ "add_final_linear_bias": true,
55
+ "add_ffnbias": true,
56
+ "position_encoding_type": "Learned",
57
+ "n_positions": 514,
58
+ "encoder_layer_style": "postnorm",
59
+ "final_encoder_layer_norm": false
60
+ }
61
+ }
62
+ }
model.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d6d3b5f7503afe02c684f22802c126ad124a836b60e7ed02f7fd6ca51716f3b
3
+ size 2323518060
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
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"model_max_length": 512}
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