opus model
Browse files- Helsinki-NLP/opus-mt-de-en/config.json +60 -0
- Helsinki-NLP/opus-mt-de-en/decoder_model.onnx +3 -0
- Helsinki-NLP/opus-mt-de-en/decoder_model_merged.onnx +3 -0
- Helsinki-NLP/opus-mt-de-en/decoder_with_past_model.onnx +3 -0
- Helsinki-NLP/opus-mt-de-en/encoder_model.onnx +3 -0
- Helsinki-NLP/opus-mt-de-en/generation_config.json +16 -0
- Helsinki-NLP/opus-mt-de-en/ort_config.json +33 -0
- Helsinki-NLP/opus-mt-de-en/source.spm +0 -0
- Helsinki-NLP/opus-mt-de-en/special_tokens_map.json +5 -0
- Helsinki-NLP/opus-mt-de-en/target.spm +0 -0
- Helsinki-NLP/opus-mt-de-en/tokenizer_config.json +12 -0
- Helsinki-NLP/opus-mt-de-en/vocab.json +0 -0
Helsinki-NLP/opus-mt-de-en/config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "onnx_models/Helsinki-NLP/opus-mt-de-en",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "swish",
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": false,
|
8 |
+
"architectures": [
|
9 |
+
"MarianMTModel"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.0,
|
12 |
+
"bad_words_ids": [
|
13 |
+
[
|
14 |
+
58100
|
15 |
+
]
|
16 |
+
],
|
17 |
+
"bos_token_id": 0,
|
18 |
+
"classif_dropout": 0.0,
|
19 |
+
"classifier_dropout": 0.0,
|
20 |
+
"d_model": 512,
|
21 |
+
"decoder_attention_heads": 8,
|
22 |
+
"decoder_ffn_dim": 2048,
|
23 |
+
"decoder_layerdrop": 0.0,
|
24 |
+
"decoder_layers": 6,
|
25 |
+
"decoder_start_token_id": 58100,
|
26 |
+
"decoder_vocab_size": 58101,
|
27 |
+
"dropout": 0.1,
|
28 |
+
"encoder_attention_heads": 8,
|
29 |
+
"encoder_ffn_dim": 2048,
|
30 |
+
"encoder_layerdrop": 0.0,
|
31 |
+
"encoder_layers": 6,
|
32 |
+
"eos_token_id": 0,
|
33 |
+
"forced_eos_token_id": 0,
|
34 |
+
"id2label": {
|
35 |
+
"0": "LABEL_0",
|
36 |
+
"1": "LABEL_1",
|
37 |
+
"2": "LABEL_2"
|
38 |
+
},
|
39 |
+
"init_std": 0.02,
|
40 |
+
"is_encoder_decoder": true,
|
41 |
+
"label2id": {
|
42 |
+
"LABEL_0": 0,
|
43 |
+
"LABEL_1": 1,
|
44 |
+
"LABEL_2": 2
|
45 |
+
},
|
46 |
+
"max_length": 512,
|
47 |
+
"max_position_embeddings": 512,
|
48 |
+
"model_type": "marian",
|
49 |
+
"normalize_before": false,
|
50 |
+
"normalize_embedding": false,
|
51 |
+
"num_beams": 4,
|
52 |
+
"num_hidden_layers": 6,
|
53 |
+
"pad_token_id": 58100,
|
54 |
+
"scale_embedding": true,
|
55 |
+
"share_encoder_decoder_embeddings": true,
|
56 |
+
"static_position_embeddings": true,
|
57 |
+
"transformers_version": "4.29.2",
|
58 |
+
"use_cache": true,
|
59 |
+
"vocab_size": 58101
|
60 |
+
}
|
Helsinki-NLP/opus-mt-de-en/decoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:319bb3734678f450cb108cb8c66dab62e453421c27ea25945ad4bd11a0ff91a5
|
3 |
+
size 170271106
|
Helsinki-NLP/opus-mt-de-en/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4928ac8bfd4ef5e9ae9e45bfeedcb462b9c33682b78182696b95342938b0f75
|
3 |
+
size 170367859
|
Helsinki-NLP/opus-mt-de-en/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:239535ccfdc3fcb2f9496a672e836d21c6cce2ed2a73f49957568b4880ec2ef7
|
3 |
+
size 163939513
|
Helsinki-NLP/opus-mt-de-en/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7a419d70dd9922fb80056506ac320b70ee9c6d3cfb673ccf550cb5c7925e951
|
3 |
+
size 97931339
|
Helsinki-NLP/opus-mt-de-en/generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bad_words_ids": [
|
4 |
+
[
|
5 |
+
58100
|
6 |
+
]
|
7 |
+
],
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"decoder_start_token_id": 58100,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"forced_eos_token_id": 0,
|
12 |
+
"max_length": 512,
|
13 |
+
"num_beams": 4,
|
14 |
+
"pad_token_id": 58100,
|
15 |
+
"transformers_version": "4.29.2"
|
16 |
+
}
|
Helsinki-NLP/opus-mt-de-en/ort_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"one_external_file": true,
|
3 |
+
"opset": null,
|
4 |
+
"optimization": {
|
5 |
+
"disable_attention": null,
|
6 |
+
"disable_attention_fusion": false,
|
7 |
+
"disable_bias_gelu": null,
|
8 |
+
"disable_bias_gelu_fusion": false,
|
9 |
+
"disable_bias_skip_layer_norm": null,
|
10 |
+
"disable_bias_skip_layer_norm_fusion": false,
|
11 |
+
"disable_embed_layer_norm": true,
|
12 |
+
"disable_embed_layer_norm_fusion": true,
|
13 |
+
"disable_gelu": null,
|
14 |
+
"disable_gelu_fusion": false,
|
15 |
+
"disable_layer_norm": null,
|
16 |
+
"disable_layer_norm_fusion": false,
|
17 |
+
"disable_shape_inference": true,
|
18 |
+
"disable_skip_layer_norm": null,
|
19 |
+
"disable_skip_layer_norm_fusion": false,
|
20 |
+
"enable_gelu_approximation": true,
|
21 |
+
"enable_transformers_specific_optimizations": true,
|
22 |
+
"fp16": true,
|
23 |
+
"no_attention_mask": false,
|
24 |
+
"optimization_level": 2,
|
25 |
+
"optimize_for_gpu": true,
|
26 |
+
"optimize_with_onnxruntime_only": null,
|
27 |
+
"use_mask_index": false
|
28 |
+
},
|
29 |
+
"optimum_version": "1.8.6",
|
30 |
+
"quantization": {},
|
31 |
+
"transformers_version": "4.29.2",
|
32 |
+
"use_external_data_format": false
|
33 |
+
}
|
Helsinki-NLP/opus-mt-de-en/source.spm
ADDED
Binary file (797 kB). View file
|
|
Helsinki-NLP/opus-mt-de-en/special_tokens_map.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token": "</s>",
|
3 |
+
"pad_token": "<pad>",
|
4 |
+
"unk_token": "<unk>"
|
5 |
+
}
|
Helsinki-NLP/opus-mt-de-en/target.spm
ADDED
Binary file (768 kB). View file
|
|
Helsinki-NLP/opus-mt-de-en/tokenizer_config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"clean_up_tokenization_spaces": true,
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"model_max_length": 512,
|
5 |
+
"pad_token": "<pad>",
|
6 |
+
"separate_vocabs": false,
|
7 |
+
"source_lang": "de",
|
8 |
+
"sp_model_kwargs": {},
|
9 |
+
"target_lang": "en",
|
10 |
+
"tokenizer_class": "MarianTokenizer",
|
11 |
+
"unk_token": "<unk>"
|
12 |
+
}
|
Helsinki-NLP/opus-mt-de-en/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|