hf-transformers-bot HF Staff commited on
Commit
5b8142b
·
verified ·
1 Parent(s): 79c0d2e

Update tiny models for CanaryModel

Browse files
chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {{- '<|startofcontext|><|startoftranscript|><|emo:undefined|>' -}}{%- for message in messages -%}{%- if message['role'] == 'user' -%}{%- for content in message['content'] if content['type'] == 'text' -%}{{- '<|' ~ content['source_language'] ~ '|>' -}}{{- '<|' ~ content['target_language'] ~ '|>' -}}{{- '<|pnc|>' if content['punctuation'] else '<|nopnc|>' -}}{{- '<|noitn|><|notimestamp|><|nodiarize|>' -}}{%- endfor -%}{%- elif message['role'] == 'assistant' -%}{{- message['content'] ~ '<|endoftext|>' -}}{%- endif -%}{%- endfor -%}
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CanaryModel"
4
+ ],
5
+ "bos_token_id": 4,
6
+ "decoder_config": {
7
+ "attention_bias": true,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 4,
10
+ "eos_token_id": 3,
11
+ "head_dim": 8,
12
+ "hidden_act": "relu",
13
+ "hidden_size": 16,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 32,
16
+ "max_position_embeddings": 40,
17
+ "model_type": "canary_decoder",
18
+ "num_attention_heads": 2,
19
+ "num_hidden_layers": 2,
20
+ "num_key_value_heads": 2,
21
+ "pad_token_id": 2,
22
+ "use_cache": true,
23
+ "vocab_size": 16384
24
+ },
25
+ "decoder_start_token_id": 7,
26
+ "dtype": "float32",
27
+ "encoder_config": {
28
+ "activation_dropout": 0.1,
29
+ "attention_bias": true,
30
+ "attention_dropout": 0.1,
31
+ "conv_kernel_size": 9,
32
+ "convolution_bias": true,
33
+ "dropout": 0.1,
34
+ "dropout_positions": 0.0,
35
+ "hidden_act": "silu",
36
+ "hidden_size": 16,
37
+ "initializer_range": 0.02,
38
+ "intermediate_size": 32,
39
+ "layerdrop": 0.1,
40
+ "max_position_embeddings": 5000,
41
+ "model_type": "parakeet_encoder",
42
+ "num_attention_heads": 2,
43
+ "num_hidden_layers": 2,
44
+ "num_key_value_heads": 2,
45
+ "num_mel_bins": 80,
46
+ "scale_input": false,
47
+ "subsampling_conv_channels": 16,
48
+ "subsampling_conv_kernel_size": 3,
49
+ "subsampling_conv_stride": 2,
50
+ "subsampling_factor": 8
51
+ },
52
+ "eos_token_id": 3,
53
+ "initializer_range": 0.02,
54
+ "is_encoder_decoder": true,
55
+ "model_type": "canary",
56
+ "pad_token_id": 2,
57
+ "tie_word_embeddings": true,
58
+ "transformers_version": "5.19.0.dev0",
59
+ "use_cache": true,
60
+ "vocab_size": 16384
61
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7136cd32a946c25d3fb23fde2925619b879fe15e597a2f2966e92d8963a40d7c
3
+ size 1143376
preprocessor_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "feature_extractor_type": "ParakeetFeatureExtractor",
3
+ "feature_size": 128,
4
+ "hop_length": 160,
5
+ "n_fft": 512,
6
+ "padding_side": "right",
7
+ "padding_value": 0.0,
8
+ "preemphasis": 0.97,
9
+ "return_attention_mask": true,
10
+ "sampling_rate": 16000,
11
+ "win_length": 400
12
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|startoftranscript|>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "<|endoftext|>",
6
+ "is_local": true,
7
+ "local_files_only": false,
8
+ "model_max_length": 1000000000000000019884624838656,
9
+ "pad_token": "<pad>",
10
+ "processor_class": "CanaryProcessor",
11
+ "tokenizer_class": "TokenizersBackend",
12
+ "unk_token": "<unk>"
13
+ }