Skip to content

Instantly share code, notes, and snippets.

@mertbozkir
Last active June 27, 2024 14:11
Show Gist options
  • Save mertbozkir/b10981689807e5991d243fca47fd6686 to your computer and use it in GitHub Desktop.
Save mertbozkir/b10981689807e5991d243fca47fd6686 to your computer and use it in GitHub Desktop.
Uploading model to ollama! 🤙

Push a new model:

ollama pull llama2
echo "FROM llama2" >> Modelfile
echo "SYSTEM You are a friendly assistant." >> Modelfile
ollama create -f Modelfile mertbozkir/test
ollama push mertbozkir/test

or push an existing model:

ollama cp llama2 mertbozkir/test
ollama push mertbozkir/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment