Not have any extension for Modelfile. You can create file in current project directory and run it.
Not have any extension for Modelfile. You can create file in current project directory and run it.
1. Create Llama3ModelFile file not any extension
FROM llama3:8b
# Set parameters
PARAMETER temperature 0.8
PARAMETER stop Result
# Sets a custom system message to specify the behavior of the chat assistant
# Leaving it blank for now.
SYSTEM """"""
2. Create Llama3ModelFile.sh file and enter the code
#!/bin/zsh
# variables
model_name="llama3:8b"
custom_model_name="crewai-llama3:8b"
#get the base model
ollama pull $model_name
#create the model file
ollama create $custom_model_name -f ./Llama3ModelFile
3. Run .sh file