Closed lutangar closed 5 months ago
I wrongly assumed a CTranslate2 model could be a single .bin
file as openai-whisper
--model
option may point to a single .pt
file.
Still, I think this issue remains relevant, the --model
option could be used to point to either a model name or model directory instead of relying on an extra model_directory
option.
Thanks for your feedback. No plans to change this at this point.
Considering
openai-whisper
is the reference implementation, inopen-whisper
one may provide a path to a model instead of the name of a model.Here's the
load_model
implementation :On the other hand, in
whisper-ctranslate2
the same feature is only achievable using yet another option--model_directory
.Furthermore, there is a hard constraint on the model filename which must be namedmodel.bin
. Anything else would be considered invalid.The
openai-whisper
whisper behavior could be implemented inwhisper-ctranslate2
for :