Building, Running, and Sharing Custom Models for Ollama (Modelfile)
61%
Step 7: Package It and Read It Back
The LICENSE instruction stores license text inside the model, so anyone you share it with knows the terms. Add a block, and paste your real license text between the triple quotes. A short note works too:
LICENSE """
MIT License. See https://opensource.org/license/mit for the full text.
"""
We're not going to change the original LICENSE in this example, but you can if you want.
Your tool is done and you can use it on real changes. Stage some edits and pipe the diff straight in:
git commit -m \
"$(git diff --staged |Local AI Engineering with Ollama
Run, understand, customize, fine-tune, and build agentic apps on your own hardwareEnroll now to unlock all content and receive all future updates for free.
