multilingual

#3
by bababababooey - opened

is_multilingual now works as expected after installing ct2 wheel from https://github.com/OpenNMT/CTranslate2/actions/runs/6801730648

I'm install CTranslate2 with pip
but I see message:
WARNING:faster_whisper:The current model is English-only but the language parameter is set to 'ru'; using 'en' instead.

did you install the appropriate wheel from the python-wheels zip in the above link?

with ct2 from pypi, the model is eng only but after updating should be multilingual as expected. have to do this for now until the updated ct2 is published to pypi

looks like 3.21 should be published soon https://github.com/OpenNMT/CTranslate2/pull/1533

how did you pass this error , on cuda float 16? (with ctranslate 3.21)
Invalid input features shape: expected an input with shape (1, 128, 3000), but got an input with shape (1, 80, 3000) instead

how did you pass this error , on cuda float 16? (with ctranslate 3.21)
Invalid input features shape: expected an input with shape (1, 128, 3000), but got an input with shape (1, 80, 3000) instead

I think I found the solution
https://github.com/guillaumekln/faster-whisper/issues/547#issuecomment-1797962599
model.feature_extractor.mel_filters = model.feature_extractor.get_mel_filters(model.feature_extractor.sampling_rate, model.feature_extractor.n_fft, n_mels=128)

Sign up or log in to comment