mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
🙏 Feature request > Create model from file path with SDK #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adriens on GitHub (Feb 3, 2024).
❔ About
Currently we can create model from sdk this way;
🤔 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:
@mxyng commented on GitHub (Feb 5, 2024):
This is possible in a couple ways. Here are some examples:
Using the
pathkeyword argument:Reading the file explicitly: