Update tiny models for PeAudioEncoder
Browse files- config.json +49 -0
- model.safetensors +3 -0
- preprocessor_config.json +9 -0
- tokenizer.json +0 -0
- tokenizer_config.json +19 -0
- video_preprocessor_config.json +27 -0
config.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"PeAudioEncoder"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"dac_config": {
|
| 8 |
+
"codebook_dim": 32,
|
| 9 |
+
"codebook_loss_weight": 1.0,
|
| 10 |
+
"codebook_size": 512,
|
| 11 |
+
"commitment_loss_weight": 0.25,
|
| 12 |
+
"decoder_hidden_size": 16,
|
| 13 |
+
"downsampling_ratios": [
|
| 14 |
+
2,
|
| 15 |
+
4,
|
| 16 |
+
4
|
| 17 |
+
],
|
| 18 |
+
"encoder_hidden_size": 16,
|
| 19 |
+
"hidden_size": 128,
|
| 20 |
+
"hop_length": 32,
|
| 21 |
+
"model_type": "dac",
|
| 22 |
+
"n_codebooks": 6,
|
| 23 |
+
"quantizer_dropout": 0.0,
|
| 24 |
+
"sampling_rate": 16000,
|
| 25 |
+
"upsampling_ratios": [
|
| 26 |
+
4,
|
| 27 |
+
4,
|
| 28 |
+
2
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
"dtype": "float32",
|
| 32 |
+
"head_dim": 128,
|
| 33 |
+
"hidden_act": "silu",
|
| 34 |
+
"hidden_size": 32,
|
| 35 |
+
"initializer_range": 0.02,
|
| 36 |
+
"intermediate_size": 37,
|
| 37 |
+
"max_position_embeddings": 512,
|
| 38 |
+
"max_window_layers": 28,
|
| 39 |
+
"model_type": "pe_audio_encoder",
|
| 40 |
+
"num_attention_heads": 2,
|
| 41 |
+
"num_hidden_layers": 2,
|
| 42 |
+
"num_key_value_heads": 2,
|
| 43 |
+
"rms_norm_eps": 1e-05,
|
| 44 |
+
"rope_parameters": {
|
| 45 |
+
"rope_theta": 20000,
|
| 46 |
+
"rope_type": "default"
|
| 47 |
+
},
|
| 48 |
+
"transformers_version": "5.16.0.dev0"
|
| 49 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96bde82903f76747f702b3a8b7e83aff50796c7632413454f9918d27bae6fb2c
|
| 3 |
+
size 1411832
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"feature_extractor_type": "PeAudioFeatureExtractor",
|
| 3 |
+
"feature_size": 1,
|
| 4 |
+
"hop_length": 1920,
|
| 5 |
+
"padding_side": "right",
|
| 6 |
+
"padding_value": 0.0,
|
| 7 |
+
"return_attention_mask": true,
|
| 8 |
+
"sampling_rate": 48000
|
| 9 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"clean_up_tokenization_spaces": true,
|
| 4 |
+
"cls_token": "[CLS]",
|
| 5 |
+
"extra_special_tokens": [],
|
| 6 |
+
"is_local": true,
|
| 7 |
+
"local_files_only": false,
|
| 8 |
+
"mask_token": "[MASK]",
|
| 9 |
+
"model_input_names": [
|
| 10 |
+
"input_ids",
|
| 11 |
+
"attention_mask"
|
| 12 |
+
],
|
| 13 |
+
"model_max_length": 512,
|
| 14 |
+
"pad_token": "[PAD]",
|
| 15 |
+
"processor_class": "PeAudioVideoProcessor",
|
| 16 |
+
"sep_token": "[SEP]",
|
| 17 |
+
"tokenizer_class": "TokenizersBackend",
|
| 18 |
+
"unk_token": "[UNK]"
|
| 19 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"data_format": "channels_first",
|
| 3 |
+
"default_to_square": true,
|
| 4 |
+
"do_convert_rgb": true,
|
| 5 |
+
"do_normalize": true,
|
| 6 |
+
"do_rescale": true,
|
| 7 |
+
"do_resize": true,
|
| 8 |
+
"do_sample_frames": false,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"resample": 2,
|
| 20 |
+
"rescale_factor": 0.00392156862745098,
|
| 21 |
+
"return_metadata": false,
|
| 22 |
+
"size": {
|
| 23 |
+
"height": 336,
|
| 24 |
+
"width": 336
|
| 25 |
+
},
|
| 26 |
+
"video_processor_type": "PeVideoVideoProcessor"
|
| 27 |
+
}
|