-
Notifications
You must be signed in to change notification settings - Fork 21
Add support for modelFile generate via model providers model_url #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary of ChangesHello @avinashsingh77, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant new capability to the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
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 valuable feature for generating a modelfile directly from a Hugging Face model URL. The implementation is well-structured, primarily by leveraging the huggingface-cli tool. My review focuses on enhancing user experience, ensuring proper resource management, and improving code clarity. I've suggested making the <path> argument and the --model_url flag mutually exclusive to prevent user confusion, adding cleanup for temporary directories, refining output handling within the hfhub package, and simplifying test logic for better maintainability.
4f37fb2 to
fb50643
Compare
chlins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we abstract a generic interface for the download part, and then support different drivers or vendors? Because in addition to Hugging Face, there are also model hubs like ModelScope.
|
Make sense. What all model vendors do we plan to support to start with?
…On Wed, 19 Nov 2025 at 1:47 PM, Chlins Zhang ***@***.***> wrote:
***@***.**** commented on this pull request.
Can we abstract a generic interface for the download part, and then
support different drivers or vendors? Because in addition to Hugging Face,
there are also model hubs like ModelScope.
—
Reply to this email directly, view it on GitHub
<#329 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZR3OPKI24M24EMC26FQON335QRR7AVCNFSM6AAAAACLYFAAOKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTIOBRGM3TQMZSGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
1a81c96 to
6d7fb90
Compare
|
@chlins Implemented a provider interface and added providers for HuggingFace and ModelScope as suggested. Does it look okay now? |
@avinashsingh77 Great work! thanks for adding the provider interface with HuggingFace and ModelScope implementations. I'll take a look at the changes in a bit and share my thoughts. |
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
chlins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…elpack#329) * Add support for HF model_url Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com> * optimise as per gemini's review Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com> * add modelprovider interface and providers Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com> * optimise code Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com> * add optional param for download-dir Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com> --------- Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
This PR adds support for providing model_url to
modctl modelfile generateTests added, run output:
Closes #308