Playground to test local Large Language Models with ollama, implementing functionalities such as function calling.
- Execute the following steps to install ollama's binaries and libraries, and create the models used in the playground.
- Note: These steps correspond to Linux OS. For other OS, check ollama's webpage for installation instructions, then follow from step B.
# A. Install ollama (Linux)
curl -fsSL https://ollama.com/install.sh | sh
# B. Install required Python packages
pip install -r requirements.txt
# C. Run ollama server as a service
ollama serve
# D. Create models
ollama create weatherer --file weatherer/Modelfile # Mistral 7B (4.1 GB disk, 5.8 GB memory)
-
List installed models with
ollama ls
-
List mounted models with
ollama ps
-
Check the notebooks containing each tested functionality.
-
Remove all custom models with
ollama rm <Model Name>
-
Follow ollama's instructions here (Linux).