chore: remove unused NewModelWithConfigArchive#247
Conversation
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoved the unused NewModelWithConfigArchive function and related logic to streamline the safetensors model construction code. Class diagram for removal of NewModelWithConfigArchiveclassDiagram
class Model {
layers
configFile
}
class create_go {
- NewModelWithConfigArchive(safetensorsPaths []string, configArchivePath string) (*Model, error)
}
Model <.. create_go: uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes the unused NewModelWithConfigArchive function from the safetensors package, cleaning up dead code.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary of ChangesHello @doringeman, 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 focuses on code cleanup by eliminating a function that is no longer utilized within the codebase. The removal of 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 removes the unused function NewModelWithConfigArchive, which is a good code health improvement. The change is straightforward and correct. While reviewing, I noticed that this function was the only consumer of types.MediaTypeVLLMConfigArchive within the provided files. It might be worth checking if this constant and related logic for creating the config archive have become unused across the codebase and could be removed in a follow-up change.
Summary of ChangesHello @doringeman, 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 focuses on code cleanup by removing an identified unused function, 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 removes the unused function NewModelWithConfigArchive from pkg/distribution/internal/safetensors/create.go. This is a good code cleanup that improves maintainability by removing dead code. The change is straightforward and I have no issues with it. As a potential follow-up, you may want to check if the types.MediaTypeVLLMConfigArchive constant is now also unused and can be removed.
Remove unused
NewModelWithConfigArchive.Summary by Sourcery
Chores: