Introduce modular files for speech models (#35902)
* WAV_2_VEC_2 to WAV2VEC2 * added modular files for hubert, wavlm, wav2vec2_bert, data2vec_audio * remove unnessary definitions in modulars * added modular files for UniSpeech, UniSpeechSat, Wav2Vec2Conformer * docstring fix for UniSpeechForCTC * removed unneccessary re-definition of modular classes * reverted lazy imports change on modular_model_converter, type-alias for Wav2Vec2BaseModelOutput * top-level import of deepspeed in seamless_m4t, speecht5 * avoid tracking imports inside classes, relocate lazy deepspeed, peft imports in their original locations * convert modular * tiny modular typing fixes * some more modular fixes * make style --------- Co-authored-by: eustlb <94853470+eustlb@users.noreply.github.com> Co-authored-by: Eustache Le Bihan <eulebihan@gmail.com>
This commit is contained in:
@@ -50,9 +50,9 @@ if is_torch_available():
|
||||
Wav2Vec2BertForXVector,
|
||||
Wav2Vec2BertModel,
|
||||
)
|
||||
from transformers.models.wav2vec2.modeling_wav2vec2 import _sample_negative_indices
|
||||
from transformers.models.wav2vec2_bert.modeling_wav2vec2_bert import (
|
||||
_compute_mask_indices,
|
||||
_sample_negative_indices,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user