Hello, I am making some changes such as adding attention to the results of the whisper model. I made some modifications, such as adding arguments to the generate function, however when I run the model using fast whisper it does not detect the change made to the c++ whisper model.
Do I have to build it every time I push a change to a dev fork of ctranslate2 or is there something else I am missing?
Hello, after compiling the C++ library and compiling the python wrapper in google colab and trying to run fast whisper with the change I get this error
/usr/local/lib/python3.8/dist-packages/faster_whisper/__init__.py in <module>
----> 1 from faster_whisper.transcribe import WhisperModel
/usr/local/lib/python3.8/dist-packages/faster_whisper/transcribe.py in <module>
2 import zlib
3
----> 4 import ctranslate2
5 import numpy as np
6 import tokenizers
/usr/local/lib/python3.8/dist-packages/ctranslate2/__init__.py in <module>
18
19 try:
---> 20 from ctranslate2._ext import (
21 AsyncGenerationResult,
22 AsyncScoringResult,
ImportError: libctranslate2.so: cannot open shared object file: No such file or directory
I followed the documentation, is there something I’m missing in the building process? I’m not sure that libctranslate2.so is even being added to any file directory i.e. it doesn’t show up when uninstalling it unlike when I uninstall the pip-installed version.
By default, libctranslate2.so is not embedded in the Python wheel. You need to use auditwheel if you want to do that but it is not necessary during development.
when I then run fast-whisper I get the error above, is there anything I am doing wrong, I am also running this on google colab if that changes anything.