Run this model with HF Jobs
Run adventists-ai-research/SenseVoice-Small-Encoder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/adventists-ai-research/SenseVoice-Small-Encoder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/adventists-ai-research/SenseVoice-Small-Encoder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use adventists-ai-research/SenseVoice-Small-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adventists-ai-research/SenseVoice-Small-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="adventists-ai-research/SenseVoice-Small-Encoder", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("adventists-ai-research/SenseVoice-Small-Encoder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
SenseVoice-Small-Encoder
The audio encoder of FunAudioLLM/SenseVoiceSmall, packaged as a
standalone transformers model (trust_remote_code=True) so that it can feed a frozen LLM through a DuplexJev
connector. It needs no FunASR installation. The weights are those of SenseVoiceSmall, unchanged: the SANM encoder
(50 + 20 blocks, d = 512), the task-query embeddings and the CMVN statistics from am.mvn. The CTC head is not included.
What the model does inside forward:
- SenseVoice's frontend: Kaldi fbank (80 bins, 25 ms / 10 ms, Hamming, dither 0), LFR (7 frames stacked, stride 6), CMVN.
- The four task queries SenseVoice prepends (language = auto, event, emotion, text-norm = woitn).
- The encoder. The four query frames are dropped from the output, so one output frame covers 60 ms of audio.
The feature extractor only cuts 16 kHz audio into 10 ms frames of raw samples; the encoder computes the features. This
keeps the Ultravox processor's length arithmetic unchanged (encoder_ds_factor = 6).
Port check: greedy CTC decoding with SenseVoiceSmall's own CTC head on top of this encoder reproduces correct transcripts of Chinese and English test clips, in fp32 and bf16.
Requires torchaudio (for the Kaldi fbank): pip install torchaudio.
Used by the DuplexJev-B[-Para]-SenseVoice-Small-* connectors; Decider.from_pretrained("adventists-ai/DuplexJev-...")
fetches it automatically. Source of the port: github.com/adventists-ai/duplexjev.
License and attribution
The weights are SenseVoiceSmall by Alibaba Group (Tongyi Lab / FunAudioLLM), redistributed under the
FunASR Model Open Source License v1.1 (copy in
MODEL_LICENSE), which requires attributing the source and author and keeping the model name. The model is provided
by its authors for reference and learning; see the licence for the full terms. The SANM layer code is copied from
FunASR (MIT). The packaging code (feature extractor, wrapper) is Apache-2.0.
Please cite SenseVoice / FunAudioLLM when you use it.
- Downloads last month
- 511
Model tree for adventists-ai-research/SenseVoice-Small-Encoder
Base model
FunAudioLLM/SenseVoiceSmall