Hi,
1. Install 'ollama':
sudo packman -S ollama
2. Download the LLM model: (4,7 GB)
nice -n 19 ollama start >/dev/null 2>&1 & sleep 1 ; ollama pull llama3:8b
or (40 GB)
nice -n 19 ollama start >/dev/null 2>&1 & sleep 1 ; ollama pull llama3:70b
3. Run the LLM model:
nice -n 19 ollama start >/dev/null 2>&1 & sleep 1 ; ollama run llama3:8b ; pkill ollama
That's it. Yes, it is really THAT simple.
Some optional nice stuff.
Personalisation:
~/.ollama/Modelfile-Agent_Smith :
FROM llama3
# set the temperature [higher is more creative, lower is more coherent] range: 0.0-2.0 default 0.8
PARAMETER temperature 1
# set the repetitions penalty. [higher values increase the penalty] range: 0.0-2.0 default 1
PARAMETER repeat_penalty 1.25
# set the system message
# You are Mario from Super Mario Bros. Answer as Mario, the assistant, only.
SYSTEM """
You are Agent Smith. Answer as Agent Smith, the assistant, only.
My name is Jefe. You call me Jefe when you talk to me.
"""
ollama start >/dev/null 2>&1 & sleep 1 ; ollama create agentsmith -f ~/.ollama/Modelfile-Agent_Smith
~/.local/share/applications/Agent_Smith.desktop :
[Desktop Entry]
Type=Application
Terminal=true
Name=Agent Smith
Exec=bash -c "nice -n 19 ollama start >/dev/null 2>&1 & sleep 1 ; ollama run agentsmith ; pkill ollama"
Icon=computer
Have fun.
P.S. To delete a model delete first all derived models i.e.: 'ollama rm agentsmith' and then the main model 'llama3:8b' .