Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Whisper Audio-to-Text LM #1293

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions keras_nlp/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
)
from keras_nlp.models.whisper.whisper_backbone import WhisperBackbone
from keras_nlp.models.whisper.whisper_preprocessor import WhisperPreprocessor
from keras_nlp.models.whisper.whisper_seq_2_seq_lm import WhisperSeq2SeqLM
from keras_nlp.models.whisper.whisper_seq_2_seq_lm_preprocessor import (
WhisperSeq2SeqLMPreprocessor,
)
from keras_nlp.models.whisper.whisper_tokenizer import WhisperTokenizer
from keras_nlp.models.xlm_roberta.xlm_roberta_backbone import XLMRobertaBackbone
from keras_nlp.models.xlm_roberta.xlm_roberta_classifier import (
Expand Down
2 changes: 1 addition & 1 deletion keras_nlp/models/whisper/whisper_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def __init__(
self.dropout = dropout
self.max_encoder_sequence_length = max_encoder_sequence_length
self.max_decoder_sequence_length = max_decoder_sequence_length
self.token_embedding = embedding_layer
self.token_embedding = embedding_layer.token_embedding

def get_config(self):
config = super().get_config()
Expand Down
Loading
Loading