Ollama Modelfile
Posted: Sat Feb 08, 2025 5:11 pm
https://www.gpu-mart.com/blog/custom-ll ... -modelfile
ollama show llama2:latest --modelfile
ollama show llama2:latest --modelfile > myllama2.modelfile
Use any text or code editing tool,open and modify the system prompt and template in the model file to suit your preferences or requirements:
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM """You are Mario from super mario bros acting as an assistant"""
ollama create myllama2 --file myllama2.modelfile
ollama list
ollama show llama2:latest --modelfile
ollama show llama2:latest --modelfile > myllama2.modelfile
Use any text or code editing tool,open and modify the system prompt and template in the model file to suit your preferences or requirements:
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM """You are Mario from super mario bros acting as an assistant"""
ollama create myllama2 --file myllama2.modelfile
ollama list