Ollama

Table of contents

  1. Ollama commands
    1. Pull models
      1. Pull a model
      2. Pull a specific model version/tag
    2. Run models
      1. Run a model
      2. Run a model with a single prompt
    3. List models
      1. List installed models
      2. List running models
    4. Remove models
      1. Remove a model

Ollama commands

Pull models

Pull a model

  • ollama pull

    Downloads a model, e.g. ollama pull llama3

    More info: https://github.com/ollama/ollama

Pull a specific model version/tag

  • ollama pull :

    e.g. ollama pull llama3:8b

Run models

Run a model

  • ollama run

    Starts an interactive session with the model, pulling it first if not already installed

Run a model with a single prompt

  • ollama run ""

    Runs the model with the given prompt and returns the output

List models

List installed models

  • ollama list

    Lists all models that have been pulled locally

List running models

  • ollama ps

    Lists the models currently loaded into memory

Remove models

Remove a model

  • ollama rm

This site uses Just the Docs, a documentation theme for Jekyll.