Upload config
Browse files- README.md +199 -0
- config.json +39 -0
- configuration_bestrq_conformer.py +131 -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,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"MeralionBestRqModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_bestrq_conformer.MeralionBestRqConformerConfig",
|
| 9 |
+
"AutoModel": "modeling_bestrq_conformer.MeralionBestRqModel"
|
| 10 |
+
},
|
| 11 |
+
"conformer_conv_dropout": 0.0,
|
| 12 |
+
"conv_depthwise_kernel_size": 5,
|
| 13 |
+
"ctc_loss_reduction": "sum",
|
| 14 |
+
"ctc_zero_infinity": false,
|
| 15 |
+
"feat_proj_dropout": 0.0,
|
| 16 |
+
"ffn_dim": 4096,
|
| 17 |
+
"final_dropout": 0.0,
|
| 18 |
+
"hidden_act": "swish",
|
| 19 |
+
"hidden_dropout": 0.0,
|
| 20 |
+
"hidden_size": 1024,
|
| 21 |
+
"input_channels": 1,
|
| 22 |
+
"input_dim": 80,
|
| 23 |
+
"layerdrop": 0.0,
|
| 24 |
+
"lstm_dim": 768,
|
| 25 |
+
"lstm_dropout_prob": 0.0,
|
| 26 |
+
"lstm_num_layers": 2,
|
| 27 |
+
"max_source_positions": 3000,
|
| 28 |
+
"model_type": "meralion_bestrq",
|
| 29 |
+
"no_scale_embedding": false,
|
| 30 |
+
"num_attention_heads": 8,
|
| 31 |
+
"num_hidden_layers": 24,
|
| 32 |
+
"position_embeddings_type": "relative",
|
| 33 |
+
"rotary_embedding_base": 10000,
|
| 34 |
+
"self_condition_layers": [],
|
| 35 |
+
"torch_dtype": "float32",
|
| 36 |
+
"transformers_version": "4.51.3",
|
| 37 |
+
"use_weighted_sum": true,
|
| 38 |
+
"vocab_size": null
|
| 39 |
+
}
|
configuration_bestrq_conformer.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
class MeralionBestRqConformerConfig(PretrainedConfig):
|
| 6 |
+
"""
|
| 7 |
+
This is the configuration class to store the configuration of a [`MeralionBestRqConformer`]. It is used to
|
| 8 |
+
instantiate a BEST-RQ Conformer model according to the specified arguments, defining the model architecture.
|
| 9 |
+
|
| 10 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 11 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 12 |
+
|
| 13 |
+
Args:
|
| 14 |
+
input_dim (`int`, *optional*, defaults to 80):
|
| 15 |
+
The number of input features in the mel-frequency spectrogram.
|
| 16 |
+
input_channels (`int`, *optional*, defaults to 1):
|
| 17 |
+
The number of input channels of the convolutional subsampling layers.
|
| 18 |
+
num_attention_heads (`int`, *optional*, defaults to 8):
|
| 19 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
| 20 |
+
hidden_size (`int`, *optional*, defaults to 1024):
|
| 21 |
+
Dimensionality of the encoder layers and the pooler layer.
|
| 22 |
+
ffn_dim (`int`, *optional*, defaults to 4096):
|
| 23 |
+
Dimensionality of the "intermediate" (i.e., feed-forward) layer in the Transformer encoder.
|
| 24 |
+
num_hidden_layers (`int`, *optional*, defaults to 24):
|
| 25 |
+
Number of hidden layers in the Transformer encoder.
|
| 26 |
+
conv_depthwise_kernel_size (`int`, *optional*, defaults to 5):
|
| 27 |
+
Kernel size of the depthwise convolution in the Conformer convolution module.
|
| 28 |
+
feat_proj_dropout (`float`, *optional*, defaults to 0.0):
|
| 29 |
+
The dropout probability for the input projection layer.
|
| 30 |
+
activation_dropout (`float`, *optional*, defaults to 0.0):
|
| 31 |
+
The dropout probability for the activation functions in the feed-forward layers.
|
| 32 |
+
hidden_dropout (`float`, *optional*, defaults to 0.0):
|
| 33 |
+
The dropout probability for the hidden layers.
|
| 34 |
+
max_source_positions (`int`, *optional*, defaults to 3000):
|
| 35 |
+
The maximum sequence length that this model might ever be used with.
|
| 36 |
+
no_scale_embedding (`bool`, *optional*, defaults to `False`):
|
| 37 |
+
Whether to scale the embeddings by the square root of the hidden size.
|
| 38 |
+
hidden_act (`str`, *optional*, defaults to `"swish"`):
|
| 39 |
+
The non-linear activation function (function or string) in the encoder and pooler.
|
| 40 |
+
conformer_conv_dropout (`float`, *optional*, defaults to 0.0):
|
| 41 |
+
The dropout probability for the Conformer convolution module.
|
| 42 |
+
position_embeddings_type (`str`, *optional*, defaults to `"relative"`):
|
| 43 |
+
The type of position embeddings to use. Can be `"relative"` or `"rotary"`.
|
| 44 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 45 |
+
The dropout probability for the attention layers.
|
| 46 |
+
rotary_embedding_base (`int`, *optional*, defaults to 10000):
|
| 47 |
+
The base for the rotary position embeddings.
|
| 48 |
+
layerdrop (`float`, *optional*, defaults to 0.0):
|
| 49 |
+
The LayerDrop probability.
|
| 50 |
+
self_condition_layers (`List`, *optional*, defaults to `[]`):
|
| 51 |
+
A list of layer indices where self-conditioning should be applied.
|
| 52 |
+
use_weighted_sum (`bool`, *optional*, defaults to `True`):
|
| 53 |
+
Whether to use a weighted sum of all hidden states for the final output of the LSTM-CTC model.
|
| 54 |
+
lstm_dim (`int`, *optional*, defaults to 768):
|
| 55 |
+
The hidden size of the LSTM layers in the LSTM-CTC head.
|
| 56 |
+
lstm_num_layers (`int`, *optional*, defaults to 2):
|
| 57 |
+
The number of layers in the LSTM of the LSTM-CTC head.
|
| 58 |
+
lstm_dropout_prob (`float`, *optional*, defaults to 0.0):
|
| 59 |
+
The dropout probability for the LSTM layers in the LSTM-CTC head.
|
| 60 |
+
final_dropout (`float`, *optional*, defaults to 0.0):
|
| 61 |
+
The dropout probability for the final layer before the CTC loss.
|
| 62 |
+
vocab_size (`int`, *optional*):
|
| 63 |
+
Vocabulary size of the model. Defines the number of different tokens that can be represented by the
|
| 64 |
+
`inputs_ids` passed when calling [`MeralionBestRqModelForCTC`].
|
| 65 |
+
ctc_loss_reduction (`str`, *optional*, defaults to `"sum"`):
|
| 66 |
+
The reduction to apply to the output of `torch.nn.functional.ctc_loss`.
|
| 67 |
+
ctc_zero_infinity (`bool`, *optional*, defaults to `False`):
|
| 68 |
+
Whether to zero infinite losses and gradients in `torch.nn.functional.ctc_loss`.
|
| 69 |
+
"""
|
| 70 |
+
model_type = "meralion_bestrq"
|
| 71 |
+
|
| 72 |
+
def __init__(
|
| 73 |
+
self,
|
| 74 |
+
input_dim: int = 80,
|
| 75 |
+
input_channels: int = 1,
|
| 76 |
+
num_attention_heads: int = 8,
|
| 77 |
+
hidden_size: int = 1024, #embed_dim
|
| 78 |
+
ffn_dim: int = 4096,
|
| 79 |
+
num_hidden_layers: int = 24,
|
| 80 |
+
conv_depthwise_kernel_size: int = 5,
|
| 81 |
+
feat_proj_dropout: float = 0., #for input_projection
|
| 82 |
+
activation_dropout: float = 0.,
|
| 83 |
+
hidden_dropout: float = 0.,
|
| 84 |
+
max_source_positions: int = 3000,
|
| 85 |
+
no_scale_embedding: bool = False,
|
| 86 |
+
hidden_act: str = "swish",
|
| 87 |
+
conformer_conv_dropout: float = 0.,
|
| 88 |
+
position_embeddings_type: str = "relative",
|
| 89 |
+
attention_dropout: float = 0.,
|
| 90 |
+
rotary_embedding_base: int = 10000,
|
| 91 |
+
layerdrop = 0.,
|
| 92 |
+
self_condition_layers: List = [], # asr
|
| 93 |
+
use_weighted_sum: bool = True, #lstm
|
| 94 |
+
lstm_dim: int = 768, #lstm
|
| 95 |
+
lstm_num_layers: int = 2, #lstm
|
| 96 |
+
lstm_dropout_prob = 0., #lstm
|
| 97 |
+
final_dropout = 0., #ctc
|
| 98 |
+
vocab_size = None, #ctc
|
| 99 |
+
ctc_loss_reduction = 'sum', #ctc
|
| 100 |
+
ctc_zero_infinity = False, #ctc
|
| 101 |
+
**kwargs,
|
| 102 |
+
):
|
| 103 |
+
|
| 104 |
+
self.input_dim = input_dim
|
| 105 |
+
self.input_channels = input_channels
|
| 106 |
+
self.num_attention_heads = num_attention_heads
|
| 107 |
+
self.hidden_size = hidden_size
|
| 108 |
+
self.ffn_dim = ffn_dim
|
| 109 |
+
self.num_hidden_layers = num_hidden_layers
|
| 110 |
+
self.conv_depthwise_kernel_size = conv_depthwise_kernel_size
|
| 111 |
+
self.feat_proj_dropout = feat_proj_dropout
|
| 112 |
+
self.activation_dropout = activation_dropout
|
| 113 |
+
self.hidden_dropout = hidden_dropout
|
| 114 |
+
self.max_source_positions = max_source_positions
|
| 115 |
+
self.no_scale_embedding = no_scale_embedding
|
| 116 |
+
self.hidden_act = hidden_act
|
| 117 |
+
self.conformer_conv_dropout = conformer_conv_dropout
|
| 118 |
+
self.position_embeddings_type = position_embeddings_type
|
| 119 |
+
self.attention_dropout = attention_dropout
|
| 120 |
+
self.rotary_embedding_base = rotary_embedding_base
|
| 121 |
+
self.layerdrop = layerdrop
|
| 122 |
+
self.self_condition_layers = self_condition_layers
|
| 123 |
+
self.use_weighted_sum = use_weighted_sum
|
| 124 |
+
self.lstm_dim = lstm_dim
|
| 125 |
+
self.lstm_num_layers = lstm_num_layers
|
| 126 |
+
self.lstm_dropout_prob = lstm_dropout_prob
|
| 127 |
+
self.final_dropout = final_dropout
|
| 128 |
+
self.vocab_size = vocab_size
|
| 129 |
+
self.ctc_loss_reduction = ctc_loss_reduction
|
| 130 |
+
self.ctc_zero_infinity = ctc_zero_infinity
|
| 131 |
+
super().__init__(**kwargs)
|