add modelfile support to docker model package#903
add modelfile support to docker model package#903areebahmeddd wants to merge 4 commits intodocker:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for Modelfile in the package command via a new --file flag, allowing users to define model sources and parameters in a configuration file. The review feedback identifies critical improvements for the parser to correctly handle file paths with spaces or quotes and suggests ignoring unknown instructions to maintain compatibility with standard Modelfiles. Additionally, the feedback recommends refining error messages to accurately reflect the new flag and improve user empathy.
|
the command is |
|
@areebahmeddd thanks and nice work! Two things, I think this should be "docker model build" or "docker model create", it's what people are used to from docker and ollama and it makes things simpler. Also, Ollama-type models are generally out of scope for this projects as they are not standards compliant (although we do have an Ollama-compatible API). I would like to see if there are plans to define a standard with the ModelPack folk before we proceed: |
sure, i’ll update it post-discussion in the modelpack issue 🙂
interesting, i just read about modelpack and its spec. ollama’s modelfile seems to not follow since it uses its own binary blob format. i agree to wait for a definitive plan from the modelpack team |
changes
completes #628
--file / -fflag todocker model packageto load and apply a modelfilecloses #613