Adding ONNX file of this model

#1
README.md CHANGED
@@ -12,8 +12,13 @@ tags:
12
  - armenian
13
  - compact-model
14
  - generated_from_trainer
 
15
  datasets:
16
  - Chillarmo/common_voice_20_armenian
 
 
 
 
17
  model-index:
18
  - name: ATOM (Armenian Tiny Optimized Model)
19
  results:
@@ -32,10 +37,6 @@ model-index:
32
  - type: exact_match
33
  value: 10.06
34
  name: Exact Match
35
- license: mit
36
- metrics:
37
- - wer
38
- pipeline_tag: automatic-speech-recognition
39
  ---
40
 
41
  # ATOM: Armenian Tiny Optimized Model
 
12
  - armenian
13
  - compact-model
14
  - generated_from_trainer
15
+ - onnx
16
  datasets:
17
  - Chillarmo/common_voice_20_armenian
18
+ license: mit
19
+ metrics:
20
+ - wer
21
+ pipeline_tag: automatic-speech-recognition
22
  model-index:
23
  - name: ATOM (Armenian Tiny Optimized Model)
24
  results:
 
37
  - type: exact_match
38
  value: 10.06
39
  name: Exact Match
 
 
 
 
40
  ---
41
 
42
  # ATOM: Armenian Tiny Optimized Model
onnx/config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu",
5
+ "apply_spec_augment": false,
6
+ "architectures": [
7
+ "WhisperForConditionalGeneration"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "begin_suppress_tokens": null,
11
+ "bos_token_id": 1,
12
+ "classifier_proj_size": 256,
13
+ "d_model": 384,
14
+ "decoder_attention_heads": 6,
15
+ "decoder_ffn_dim": 1024,
16
+ "decoder_layerdrop": 0.0,
17
+ "decoder_layers": 2,
18
+ "decoder_start_token_id": 1,
19
+ "dropout": 0.0,
20
+ "dtype": "float16",
21
+ "encoder_attention_heads": 6,
22
+ "encoder_ffn_dim": 1536,
23
+ "encoder_layerdrop": 0.0,
24
+ "encoder_layers": 4,
25
+ "eos_token_id": 2,
26
+ "forced_decoder_ids": null,
27
+ "init_std": 0.02,
28
+ "is_encoder_decoder": true,
29
+ "mask_feature_length": 10,
30
+ "mask_feature_min_masks": 0,
31
+ "mask_feature_prob": 0.0,
32
+ "mask_time_length": 10,
33
+ "mask_time_min_masks": 2,
34
+ "mask_time_prob": 0.05,
35
+ "max_length": null,
36
+ "max_source_positions": 1500,
37
+ "max_target_positions": 448,
38
+ "median_filter_width": 7,
39
+ "model_type": "whisper",
40
+ "num_hidden_layers": 4,
41
+ "num_mel_bins": 80,
42
+ "pad_token_id": 0,
43
+ "scale_embedding": false,
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.51.3",
46
+ "use_cache": true,
47
+ "use_weighted_layer_sum": false,
48
+ "vocab_size": 5000
49
+ }
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca32bce955613ecc749d3069d7defc2a57185b57ceeb52d0b72fbd5b47edd90b
3
+ size 31903743
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c06f0c0c87c402cc15586542239981e3345f711ab3a6ad5066e617b6049b5822
3
+ size 31974461
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95fcf0ed8eabf2d95e3a01245f646fc5623f1f3c766b790c188b687d72aea765
3
+ size 29535463
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:300bfe68ebfd4e03ed4defc074b026c4c96a3ab9ce83a740f2e908725342c674
3
+ size 32888634
onnx/generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "begin_suppress_tokens": [],
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 1,
5
+ "eos_token_id": 2,
6
+ "max_length": 448,
7
+ "pad_token_id": 0,
8
+ "suppress_tokens": [],
9
+ "transformers_version": "4.51.3",
10
+ "vocab_size": 5000
11
+ }
onnx/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
onnx/preprocessor_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 80,
6
+ "hop_length": 160,
7
+ "n_fft": 400,
8
+ "n_samples": 480000,
9
+ "nb_max_frames": 3000,
10
+ "padding_side": "right",
11
+ "padding_value": 0.0,
12
+ "processor_class": "WhisperProcessor",
13
+ "return_attention_mask": false,
14
+ "sampling_rate": 16000
15
+ }
onnx/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
onnx/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
onnx/tokenizer_config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<pad>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ }
36
+ },
37
+ "bos_token": "<s>",
38
+ "clean_up_tokenization_spaces": false,
39
+ "eos_token": "</s>",
40
+ "errors": "replace",
41
+ "extra_special_tokens": {},
42
+ "model_max_length": 448,
43
+ "pad_token": "<pad>",
44
+ "processor_class": "WhisperProcessor",
45
+ "tokenizer_class": "WhisperTokenizer",
46
+ "unk_token": "<unk>"
47
+ }
onnx/vocab.json ADDED
The diff for this file is too large to render. See raw diff