Omarrran commited on
Commit
0f4b8a3
·
verified ·
1 Parent(s): 9084ba3

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Omarrran/english_speecht5_finetuned",
3
+ "activation_dropout": 0.1,
4
+ "apply_spec_augment": true,
5
+ "architectures": [
6
+ "SpeechT5ForTextToSpeech"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 0,
10
+ "conv_bias": false,
11
+ "conv_dim": [
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512
19
+ ],
20
+ "conv_kernel": [
21
+ 10,
22
+ 3,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 2,
27
+ 2
28
+ ],
29
+ "conv_stride": [
30
+ 5,
31
+ 2,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2
37
+ ],
38
+ "decoder_attention_heads": 12,
39
+ "decoder_ffn_dim": 3072,
40
+ "decoder_layerdrop": 0.1,
41
+ "decoder_layers": 6,
42
+ "decoder_start_token_id": 2,
43
+ "encoder_attention_heads": 12,
44
+ "encoder_ffn_dim": 3072,
45
+ "encoder_layerdrop": 0.1,
46
+ "encoder_layers": 12,
47
+ "encoder_max_relative_position": 160,
48
+ "eos_token_id": 2,
49
+ "feat_extract_activation": "gelu",
50
+ "feat_extract_norm": "group",
51
+ "feat_proj_dropout": 0.0,
52
+ "guided_attention_loss_num_heads": 2,
53
+ "guided_attention_loss_scale": 10.0,
54
+ "guided_attention_loss_sigma": 0.4,
55
+ "hidden_act": "gelu",
56
+ "hidden_dropout": 0.1,
57
+ "hidden_size": 768,
58
+ "initializer_range": 0.02,
59
+ "is_encoder_decoder": true,
60
+ "layer_norm_eps": 1e-05,
61
+ "mask_feature_length": 10,
62
+ "mask_feature_min_masks": 0,
63
+ "mask_feature_prob": 0.0,
64
+ "mask_time_length": 10,
65
+ "mask_time_min_masks": 2,
66
+ "mask_time_prob": 0.05,
67
+ "max_length": 1876,
68
+ "max_speech_positions": 1876,
69
+ "max_text_positions": 600,
70
+ "model_type": "speecht5",
71
+ "num_conv_pos_embedding_groups": 16,
72
+ "num_conv_pos_embeddings": 128,
73
+ "num_feat_extract_layers": 7,
74
+ "num_mel_bins": 80,
75
+ "pad_token_id": 1,
76
+ "positional_dropout": 0.1,
77
+ "reduction_factor": 2,
78
+ "scale_embedding": false,
79
+ "speaker_embedding_dim": 512,
80
+ "speech_decoder_postnet_dropout": 0.5,
81
+ "speech_decoder_postnet_kernel": 5,
82
+ "speech_decoder_postnet_layers": 5,
83
+ "speech_decoder_postnet_units": 256,
84
+ "speech_decoder_prenet_dropout": 0.5,
85
+ "speech_decoder_prenet_layers": 2,
86
+ "speech_decoder_prenet_units": 256,
87
+ "torch_dtype": "float32",
88
+ "transformers_version": "4.44.2",
89
+ "use_cache": false,
90
+ "use_guided_attention_loss": true,
91
+ "vocab_size": 81
92
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_ceptral_normalize": true,
3
+ "do_normalize": false,
4
+ "feature_extractor_type": "Speech2TextFeatureExtractor",
5
+ "feature_size": 1,
6
+ "fmax": 7600,
7
+ "fmin": 80,
8
+ "frame_signal_scale": 1.0,
9
+ "hop_length": 16,
10
+ "mel_floor": 1e-10,
11
+ "normalize_means": true,
12
+ "normalize_vars": true,
13
+ "num_mel_bins": 80,
14
+ "padding_side": "right",
15
+ "padding_value": 0.0,
16
+ "processor_class": "SpeechT5Processor",
17
+ "reduction_factor": 2,
18
+ "return_attention_mask": true,
19
+ "sampling_rate": 16000,
20
+ "win_function": "hann_window",
21
+ "win_length": 64
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd9bf63c0fef00f5b4c0dfd6141830a72635c0d4715fdcb14e4646c1ce3fa8d
3
+ size 186775626
quantization.log ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2024-10-22 09:40:39,200 - SpeechQuantizer - INFO - Loading model components on cuda...
2
+ 2024-10-22 09:40:39,307 - SpeechQuantizer - INFO - Attempting to load tokenizer from Omarrran/english_speecht5_finetuned
3
+ 2024-10-22 09:40:39,416 - SpeechQuantizer - WARNING - Original tokenizer loading failed: expected str, bytes or os.PathLike object, not NoneType
4
+ 2024-10-22 09:40:39,428 - SpeechQuantizer - INFO - Attempting to load tokenizer from fallback model facebook/s2t-small-librispeech-asr
5
+ 2024-10-22 09:40:39,553 - SpeechQuantizer - INFO - Successfully loaded tokenizer from facebook/s2t-small-librispeech-asr
6
+ 2024-10-22 09:40:40,372 - SpeechQuantizer - INFO - Model components loaded successfully
7
+ 2024-10-22 09:40:40,386 - SpeechQuantizer - INFO - Memory usage: RSS=3731.4MB
8
+ 2024-10-22 09:40:40,395 - SpeechQuantizer - INFO - GPU memory: 2342.8MB allocated
9
+ 2024-10-22 09:40:40,404 - SpeechQuantizer - INFO - Starting model calibration...
10
+ 2024-10-22 09:40:40,414 - SpeechQuantizer - INFO - Generating 10 calibration samples...
11
+ 2024-10-22 09:40:45,565 - SpeechQuantizer - WARNING - Sample generation failed: chirp() takes 0 positional arguments but 4 were given
12
+ 2024-10-22 09:40:45,592 - SpeechQuantizer - WARNING - Sample generation failed: chirp() takes 0 positional arguments but 4 were given
13
+ 2024-10-22 09:40:45,609 - SpeechQuantizer - WARNING - Sample generation failed: chirp() takes 0 positional arguments but 4 were given
14
+ 2024-10-22 09:40:45,619 - SpeechQuantizer - WARNING - Sample generation failed: chirp() takes 0 positional arguments but 4 were given
15
+ 2024-10-22 09:40:45,651 - SpeechQuantizer - INFO - Successfully generated 6 calibration samples
16
+ 2024-10-22 09:40:45,749 - SpeechQuantizer - WARNING - Calibration sample failed: SpeechT5ForSpeechToText.forward() got an unexpected keyword argument 'input_features'
17
+ 2024-10-22 09:40:45,766 - SpeechQuantizer - WARNING - Calibration sample failed: SpeechT5ForSpeechToText.forward() got an unexpected keyword argument 'input_features'
18
+ 2024-10-22 09:40:45,785 - SpeechQuantizer - WARNING - Calibration sample failed: SpeechT5ForSpeechToText.forward() got an unexpected keyword argument 'input_features'
19
+ 2024-10-22 09:40:45,801 - SpeechQuantizer - WARNING - Calibration sample failed: SpeechT5ForSpeechToText.forward() got an unexpected keyword argument 'input_features'
20
+ 2024-10-22 09:40:45,814 - SpeechQuantizer - WARNING - Calibration sample failed: SpeechT5ForSpeechToText.forward() got an unexpected keyword argument 'input_features'
21
+ 2024-10-22 09:40:45,824 - SpeechQuantizer - WARNING - Calibration sample failed: SpeechT5ForSpeechToText.forward() got an unexpected keyword argument 'input_features'
22
+ 2024-10-22 09:40:45,832 - SpeechQuantizer - INFO - Calibration completed: 0/6 samples successful (0.0%)
23
+ 2024-10-22 09:40:45,840 - SpeechQuantizer - WARNING - No successful calibrations. Proceeding with caution.
24
+ 2024-10-22 09:40:45,847 - SpeechQuantizer - INFO - Starting quantization process...
25
+ 2024-10-22 09:40:46,529 - SpeechQuantizer - INFO - Applying dynamic quantization...
26
+ 2024-10-22 09:40:48,931 - SpeechQuantizer - INFO - Quantization completed successfully
27
+ 2024-10-22 09:40:48,950 - SpeechQuantizer - INFO - Saving and pushing model...
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:052a168787a9160b4b2ba54e4995e9600298812c34191ca3f70cea51cd4f5c1e
3
+ size 416684
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "unk_token": "<unk>"
6
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ }
35
+ },
36
+ "additional_special_tokens": [],
37
+ "bos_token": "<s>",
38
+ "clean_up_tokenization_spaces": true,
39
+ "do_lower_case": true,
40
+ "do_upper_case": false,
41
+ "eos_token": "</s>",
42
+ "lang_codes": null,
43
+ "model_max_length": 1000000000000000019884624838656,
44
+ "pad_token": "<pad>",
45
+ "sp_model_kwargs": {},
46
+ "tgt_lang": null,
47
+ "tokenizer_class": "Speech2TextTokenizer",
48
+ "unk_token": "<unk>"
49
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff