-
Notifications
You must be signed in to change notification settings - Fork 225
update docs about pull models from HF and relax condition for cloning… #3659
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR updates documentation and improves the logic for determining when to use git clone vs optimum-cli for downloading models from Hugging Face. The changes make the documentation clearer about model conversion requirements and relax the conditions for cloning models to be based on naming patterns rather than organization names.
- Relaxes the condition for git clone to use pattern matching for OpenVINO models instead of organization-based detection
- Updates documentation to clarify the difference between pre-configured IR models and models requiring conversion
- Updates test cases to use more generic model names
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
src/cli_parser.cpp | Replaces isOptimumCliDownload function with pattern-based detection for OpenVINO models |
src/test/ovmsconfig_test.cpp | Updates test model names to use "Unknown" organization instead of "NonOpenVINO" |
docs/pull_optimum_cli.md | Restructures documentation for clarity and updates docker image references |
docs/pull_hf_models.md | Clarifies distinction between pre-configured and conversion-required models |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
src/cli_parser.cpp
Outdated
if (isOptimumCliDownload(serverSettings.hfSettings.sourceModel, hfSettings.ggufFilename)) { | ||
// Cloning the repository is allowed only for OpenVINO models determined by the name pattern | ||
// Other models will be downloaded and converted using optimum-cli or just downloaded as GGUF | ||
std::string lowerSourceModel = toLower(serverSettings.hfSettings.sourceModel); |
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.
Replace logic inside isOptimumCliDownload. This will break --draft model pull
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.
We should have also test for what acceptin "-ov", "_ov" inside if we want to change this behavior. Are those official repositories of OpenVINO? Wouldn't it make sense to have separate switch to choose which downloader we should use instead of relying on organization?
User then could use optimum/libgit2 regardless if sourcemodel name sticks to some arbitral convention.
… models
🛠 Summary
🧪 Checklist
``