Fix model name normalization in run command#410
Fix model name normalization in run command#410krissetto wants to merge 1 commit intodocker:mainfrom
Conversation
Summary of ChangesHello @krissetto, 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 crucial fix 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.
Code Review
This pull request correctly applies model name normalization in the run command, ensuring consistency with the pull command's behavior. The added tests are comprehensive and validate the new logic effectively. I've suggested a minor refactoring in one of the new tests to improve its clarity and remove some redundancy. Overall, this is a solid improvement.
Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
84fc03f to
e7a45b9
Compare
|
We are trying our best to apply these daemon side, so we don't have to normalize for every client request. Funnily enough on this branch if I purge all models: and do it works... |
|
|
||
| // TestRunModelNameNormalization verifies that model names are normalized correctly | ||
| // in the run command to ensure consistency with how models are stored after pulling | ||
| func TestRunModelNameNormalization(t *testing.T) { |
| return nil | ||
| } | ||
|
|
||
| model = dmrm.NormalizeModelName(model) |
There was a problem hiding this comment.
Why is this needed? Have you found an error?
In the backend we resolve the model name to the model ID for doing inference, so in case of error I think we should apply normalization in the API layer
There was a problem hiding this comment.
i think this pr is no longer needed since things have changed in the backend
There was a problem hiding this comment.
Ok! I'm closing it then, thanks!
No description provided.