AI model environment deployment

AI model environment deploymentLLMOllama installationScript installationOllama useOllama uninstallReference material

Demonstration environment

Development board : Raspberry Pi 5B (8G RAM)

SD(TF)card:64G(Above 16G, the larger the capacity, the more models can be experienced)

Ollama is an open-source tool aimed at simplifying the deployment and runtime process of large language models, allowing users to use high-quality language models in their local environment.

LLM

Large Language Models, abbreviated as LLM, is a type of advanced text generation system based on artificial intelligence technology. Its main feature is the ability to learn and understand human language through large-scale training data, and to generate natural and fluent text.

Ollama installation

Tutorial demonstration on using scripts to install Ollama in Raspberry Pi 5.

Script installation

image-20240625122656248

The installation process takes a long time, please be patient and wait;

When the Raspberry Pi terminal displays "Install complete", it indicates that Ollama has been successfully installed!

Ollama use

When entering the command ollama on the terminal, we can see the following prompt.

image-20240625122715489

CommandFunction
ollama serveStart ollama
ollama createCreate a model from a model file
ollama showDisplay model information
ollama runOperational model
ollama pullPulling models from the registry
ollama pushPush the model to the registry
ollama listList models
ollama psList the running models
ollama cpCopy model
ollama rmDelete model
ollama helpGet help information about any command

Ollama uninstall

Reference material

Ollama

Website:https://ollama.com/

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