feat(cli): add model hub option#3046
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new --hub (or -H) command-line option to the CLI, allowing users to select between ModelScope (ms) and Hugging Face (hf) as the model hub. The changes include updating the CLI argument parser, passing the selected hub configuration to the model, updating the documentation with usage examples, and adding a unit test to verify the new functionality. There are no review comments, and we have no additional feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
--hub/-Hto thefunasrCLI withmsas the default andhffor Hugging FaceAutoModelso VAD/punctuation/speaker sub-models inherit the same hub preferenceFixes #3045.
Tests
python -m pytest tests/test_cli.py -qpython -m py_compile funasr/cli.py tests/test_cli.pypython -m funasr.cli --helpgit diff --check