nguyenvulebinh commited on
Commit
457abe7
·
verified ·
1 Parent(s): 32acc7b

Upload AV2TextForConditionalGeneration

Browse files
Files changed (4) hide show
  1. README.md +199 -0
  2. config.json +174 -0
  3. generation_config.json +9 -0
  4. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/export/data1/data/binhnguyen/workspace/av_hubert_hf/model-bin/avhubert/AVSR/en/seq2seq",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "relu",
5
+ "adapter_attn_dim": null,
6
+ "adapter_kernel_size": 3,
7
+ "adapter_stride": 2,
8
+ "add_adapter": false,
9
+ "apply_spec_augment": true,
10
+ "architectures": [
11
+ "AV2TextForConditionalGeneration"
12
+ ],
13
+ "attention_dropout": 0.1,
14
+ "audio_dropout": 0.5,
15
+ "audio_feat_dim": 104,
16
+ "bos_token_id": 1,
17
+ "classifier_proj_size": 256,
18
+ "codevector_dim": 256,
19
+ "contrastive_logits_temperature": 0.1,
20
+ "conv_bias": false,
21
+ "conv_channels": 1024,
22
+ "conv_dim": [
23
+ 512,
24
+ 512,
25
+ 512,
26
+ 512,
27
+ 512,
28
+ 512,
29
+ 512
30
+ ],
31
+ "conv_kernel": [
32
+ 10,
33
+ 3,
34
+ 3,
35
+ 3,
36
+ 3,
37
+ 2,
38
+ 2
39
+ ],
40
+ "conv_kernel_sizes": [
41
+ 5,
42
+ 5
43
+ ],
44
+ "conv_stride": [
45
+ 5,
46
+ 2,
47
+ 2,
48
+ 2,
49
+ 2,
50
+ 2,
51
+ 2
52
+ ],
53
+ "ctc_loss_reduction": "sum",
54
+ "ctc_zero_infinity": false,
55
+ "d_model": 1024,
56
+ "decoder_attention_heads": 8,
57
+ "decoder_ffn_dim": 4096,
58
+ "decoder_layerdrop": 0.0,
59
+ "decoder_layers": 9,
60
+ "decoder_start_token_id": 2,
61
+ "diversity_loss_weight": 0.1,
62
+ "do_stable_layer_norm": false,
63
+ "dropout": 0.1,
64
+ "dropout_features": 0.1,
65
+ "dropout_input": 0.1,
66
+ "encoder_attention_heads": 16,
67
+ "encoder_embed_dim": 1024,
68
+ "encoder_ffn_dim": 2048,
69
+ "encoder_layerdrop": 0.0,
70
+ "encoder_layers": 12,
71
+ "eos_token_id": 2,
72
+ "feat_extract_activation": "gelu",
73
+ "feat_extract_norm": "group",
74
+ "feat_proj_dropout": 0.1,
75
+ "feat_quantizer_dropout": 0.0,
76
+ "feature_grad_mult": 0.1,
77
+ "final_dim": 256,
78
+ "final_dropout": 0.0,
79
+ "freeze_feat_extract_train": true,
80
+ "hidden_act": "gelu",
81
+ "hidden_dropout": 0.1,
82
+ "init_std": 0.02,
83
+ "initializer_range": 0.02,
84
+ "input_channels": 1,
85
+ "input_feat_per_channel": 80,
86
+ "intermediate_size": 4096,
87
+ "is_encoder_decoder": true,
88
+ "label_rate": 25,
89
+ "layer_norm_eps": 1e-05,
90
+ "layerdrop": 0.0,
91
+ "logit_temp": 0.1,
92
+ "mask_channel_length": 10,
93
+ "mask_channel_min_space": 1,
94
+ "mask_channel_other": 0.0,
95
+ "mask_channel_prob": 0.0,
96
+ "mask_channel_selection": "static",
97
+ "mask_feature_length": 10,
98
+ "mask_feature_min_masks": 0,
99
+ "mask_feature_prob": 0.0,
100
+ "mask_length_audio": 10,
101
+ "mask_length_image": 5,
102
+ "mask_min_space": 1,
103
+ "mask_other": 0.0,
104
+ "mask_prob_audio": 0.8,
105
+ "mask_prob_image": 0.3,
106
+ "mask_selection": "static",
107
+ "mask_time_length": 10,
108
+ "mask_time_min_masks": 2,
109
+ "mask_time_min_space": 1,
110
+ "mask_time_other": 0.0,
111
+ "mask_time_prob": 0.0,
112
+ "mask_time_selection": "static",
113
+ "masking_type": "input",
114
+ "max_source_positions": 6000,
115
+ "max_target_positions": 2048,
116
+ "modality_dropout": 0.5,
117
+ "modality_fuse": "concat",
118
+ "model_type": "speech_to_text",
119
+ "no_mask_channel_overlap": false,
120
+ "no_mask_overlap": false,
121
+ "no_mask_time_overlap": false,
122
+ "num_adapter_layers": 3,
123
+ "num_classes": 2004,
124
+ "num_codevector_groups": 2,
125
+ "num_codevectors_per_group": 320,
126
+ "num_conv_layers": 2,
127
+ "num_conv_pos_embedding_groups": 16,
128
+ "num_conv_pos_embeddings": 128,
129
+ "num_dictionaries": 1,
130
+ "num_feat_extract_layers": 7,
131
+ "num_hidden_layers": 24,
132
+ "num_negatives": 100,
133
+ "output_hidden_size": 1024,
134
+ "pad_token_id": 1,
135
+ "proj_codevector_dim": 256,
136
+ "resnet_relu_type": "prelu",
137
+ "resnet_weights": null,
138
+ "sample_rate": 25,
139
+ "scale_embedding": null,
140
+ "selection_type": "same_seq",
141
+ "sim_type": "cosine",
142
+ "skip_masked": false,
143
+ "skip_nomask": false,
144
+ "sub_encoder_layers": 0,
145
+ "target_glu": false,
146
+ "tdnn_dilation": [
147
+ 1,
148
+ 2,
149
+ 3,
150
+ 1,
151
+ 1
152
+ ],
153
+ "tdnn_dim": [
154
+ 512,
155
+ 512,
156
+ 512,
157
+ 512,
158
+ 1500
159
+ ],
160
+ "tdnn_kernel": [
161
+ 5,
162
+ 3,
163
+ 3,
164
+ 1,
165
+ 1
166
+ ],
167
+ "torch_dtype": "float32",
168
+ "transformers_version": "4.44.2",
169
+ "untie_final_proj": true,
170
+ "use_cache": true,
171
+ "use_weighted_layer_sum": false,
172
+ "vocab_size": 1000,
173
+ "xvector_output_dim": 512
174
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 2,
5
+ "eos_token_id": 2,
6
+ "max_new_tokens": 2048,
7
+ "pad_token_id": 1,
8
+ "transformers_version": "4.44.2"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1c975589418a70fc471715cac2d3e18f7ff2ff4edef922b51ce8639235f601b
3
+ size 1921959896