Ollama

OllamaLarge Language Model (LLM)Ollama installationScript installationOllama UsageOllama uninstallReferences

Demonstration environment

Development board: Jetson Orin series motherboard

SSD: 128G

Tutorial scope

Development board model: Jetson series, Raspberry Pi 5

Ollama is an open source tool that aims to simplify the deployment and operation of large language models, allowing users to use high-quality language models in a local environment.

Large Language Model (LLM)

Large Language Models (LLM) is a type of advanced text generation system based on artificial intelligence technology. Its main feature is that it can learn and understand human language through large-scale training data and can generate natural and fluent text.

Ollama installation

The tutorial demonstrates the use of scripts to install Ollama on the Jetson Orin series motherboard.

Script installation

image-20240708145853030

image-20240708150713025

The entire installation process takes a long time, please wait patiently!

Raspberry Pi 5 The motherboard installation steps are the same.

image-20240625122656248

The Raspberry Pi terminal displays "Install complete", indicating that Ollama has been successfully installed!

Ollama Usage

You can see the prompt by typing ollama in the terminal:

image-20240708150727776

CommandFunction
ollama serveStart ollama
ollama createCreate a model from a model file
ollama showDisplay model information
ollama runRun the model
ollama pullPull the model from the registry
ollama pushPush the model to the registry
ollama listList the models
ollama psList the running models
ollama cpCopy the model
ollama rmDelete the model
ollama helpGet help information about any command
ollama -vView ollama version number

Ollama uninstall

References

Ollama

Official website: https://ollama.com/

GitHub: https://github.com/ollama/ollama