Warning
This is as a Lab Notebook which describes how to solve a specific problem at a specific time. Please keep this in mind as you read and use the content. Please pay close attention to the date, version information and other details.
How to Use Ollama
Ollama is a command-line tool for managing and running machine learning models. Below is a guide on how to use the various commands available in Ollama.
Quick Start
1 |
|
Note: If this is the first time you are running Ollama, you will most likely want to run this powertool:
1 |
|
1 |
|
(If you want to run Ollama in a single command, you can use ollama serve &
to run it in the background)
Next you can use
1 |
|
To see the available models. More info about models on the hpcc here
Find the model you want to use and run it with
1 |
|
Available Commands
- serve: Start Ollama.
- create: Create a model from a Modelfile.
- show: Show information for a model.
- run: Run a model.
- pull: Pull a model from a registry.
- push: Push a model to a registry.
- list: List models.
- ps: List running models.
- cp: Copy a model.
- rm: Remove a model.
- help: Help about any command.