Skip to content

feat(cli): add model hub option#3046

Merged
LauraGPT merged 1 commit into
mainfrom
codex/cli-hub
Jun 29, 2026
Merged

feat(cli): add model hub option#3046
LauraGPT merged 1 commit into
mainfrom
codex/cli-hub

Conversation

@LauraGPT

Copy link
Copy Markdown
Collaborator

Summary

  • add --hub/-H to the funasr CLI with ms as the default and hf for Hugging Face
  • pass the selected hub into AutoModel so VAD/punctuation/speaker sub-models inherit the same hub preference
  • document the option and a Hugging Face CLI example

Fixes #3045.

Tests

  • python -m pytest tests/test_cli.py -q
  • python -m py_compile funasr/cli.py tests/test_cli.py
  • python -m funasr.cli --help
  • git diff --check

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@LauraGPT
LauraGPT merged commit 25c8623 into main Jun 29, 2026
@LauraGPT
LauraGPT deleted the codex/cli-hub branch June 29, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add --hub argument to CLI to allow Hugging Face model loading

1 participant