fix(audio): bump funasr pin for Fun-ASR-Nano models to ~=1.3 - #5140
Conversation
The current git pin (b25472b0, funasr 1.2.7) predates the FunASRNano model
class, causing deployment failures:
AssertionError: FunASRNano is not registered
Replace the git pin with funasr~=1.3.0 (>=1.3.0, <2.0), which:
- Picks up the first version that includes FunASRNano (1.3.0)
- Auto-resolves to latest 1.3.x on fresh venv creation
- Won't auto-upgrade to 2.0 when it's released
Affected models: Fun-ASR-Nano-2512, Fun-ASR-MLT-Nano-2512
Other funasr models (paraformer, SenseVoice) are unaffected since
they don't use virtualenv isolation.
Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request updates the funasr dependency in xinference/model/audio/model_spec.json from a specific git commit to a version constraint of funasr~=1.3.0. The feedback suggests clarifying the versioning intent: if the goal is to allow any compatible 1.x release, the constraint should be adjusted to funasr~=1.3 instead of locking it to the 1.3.x branch.
|
FunASR-side note: the direction of this PR looks right for the Fun-ASR-Nano registration failure. Moving off the old pinned Git commit lets Xinference pick up the packaged FunASR 1.3.x registry entries for the Nano model specs. One small consistency check before merge: the current PR head
For the immediate Nano registration unblock, staying on |
|
CI follow-up from the FunASR side: I inspected the only failing check on the current head ( This does not look caused by the FunASR dependency change in this PR. The diff only updates the two FunASR The traceback is from importing and the installed Transformers path then tries to read So I would treat the red macOS Metal check as an unrelated MLX/Transformers compatibility failure (or rerun it), not as evidence against the FunASR pin direction. The only FunASR-side nit I still see is the package spec currently being |
Add Xinference to the English and Chinese deployment matrix after xorbitsai/inference#5140 merged Fun-ASR-Nano model spec support.
|
Thanks for getting this merged. I synced the FunASR-side deployment docs so users who already run Xinference can discover this route from the FunASR repo as well:
|
Problem
Deploying Fun-ASR-Nano-2512 on a 4090 worker node fails after downloading:
Root Cause
The
model_spec.jsonvirtualenv packages for both Fun-ASR-Nano models pinned funasr 1.2.7 (commitb25472b0, 2025-08-15), which predates the model release and does not support theFunASRNanomodel class.Version Timeline
Fix
Replace the git pin with
funasr~=1.3(equivalent to>=1.3.0, <2.0.0per PEP 440):Why
~=1.3:~=operator with a two-segment version is equivalent to>=1.3.0, <2.0.0)Impact
Post-Deploy Verification
Clean old virtual environments after deploying:
Re-deploy the model and confirm the log shows
funasr version: 1.3.14.