Can SenseVoiceSmall be registered and run locally instead of downloading from HuggingFace? #2449
-
|
I am trying to run a local version of SenseVoiceSmall (I am assuming that my production environment will not have access to download a model from HuggingFace), but am coming across the error '{model path} is not registered', despite attempting to use the tables.register() method. Is it possible to register a local copy of the SenseVoiceSmall and use it with AutoModel, and if so, how do I do so? Thanks in advance! Reference code: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Yes. You can run SenseVoiceSmall fully offline, but The directory needs the files referenced by its config, including at least: Use an absolute directory path and disable both update checks: from funasr import AutoModel
model_dir = "/absolute/path/to/SenseVoiceSmall"
model = AutoModel(
model=model_dir,
hub="ms",
device="cuda:0",
disable_update=True,
check_latest=False,
)
result = model.generate(
input="/absolute/path/to/audio.wav",
language="auto",
use_itn=True,
)
print(result)You do not need The original I verified the command against current FunASR Relevant loader code: local ModelScope directory handling. |
Beta Was this translation helpful? Give feedback.
Yes. You can run SenseVoiceSmall fully offline, but
modelmust point to the complete model directory, not tomodel.pt.The directory needs the files referenced by its config, including at least:
Use an absolute directory path and disable both update checks: