support download model with different mirrors#266
Conversation
_mocks/opencsg.com/csghub-server/builder/store/database/mock_MirrorStore.go
Show resolved
Hide resolved
MR Evaluation:This feature is still under test, evaluation are given by AI and might be inaccurate. After evaluation, the code changes in the Merge Request get score: 89-90. Analysis for the evaluation score:
TipsCodeReview Commands (invoked as MR or PR comments)
CodeReview Discussion ChatThere are 2 ways to chat with Starship CodeReview:
Note: Be mindful of the bot's finite context window. CodeReview Documentation and Community
About Us:Visit the OpenCSG StarShip website for the Dashboard and detailed information on CodeReview, CodeGen, and other StarShip modules. |
|
The TipsCodeReview Commands (invoked as MR or PR comments)
CodeReview Discussion ChatThere are 2 ways to chat with Starship CodeReview:
Note: Be mindful of the bot's finite context window. CodeReview Documentation and Community
|
What is this feature?
user can download model with different source repo id.
https://hub.opencsg.com/hf for hugging model id
https://hub.opencsg.com/ms for modelscope model id
Why do we need this feature?
some open source tool like opencompass can support donwload with modelscope repo id, so using this way, csghub user can specify the id to download from csghub
Who is this feature for?
csghub sdk
Which issue(s) does this PR fix?:
Fixes #
Special notes for your reviewer:
MR Summary:
The summary is added by @codegpt.
The Merge Request introduces support for downloading models from different mirrors based on the source repository ID. It allows users to specify a repository ID from either Hugging Face or ModelScope to download models directly from CSGHub. This feature is aimed at enhancing the flexibility and usability of the CSGHub SDK by accommodating different repository sources.
Key updates include:
MirrorStoreinterface and its implementation to support repository lookups by mapping types.