Closed adriens closed 4 months ago
This is possible in a couple ways. Here are some examples:
Using the path
keyword argument:
ollama.create(model='name', path=modelfilepath)
Reading the file explicitly:
with open(modelfilepath) as f:
ollama.create(model='name', modelfile=f.read())
:grey_question: About
Currently we can create model from sdk this way;
:thinking: Sometimes, it could be even easier to load a file directly by provding the model file (possibly generated by third party process) path to the SDK so the code would become: