Welcome to ROSMASTER A1 repository
1. Deployment of large-scale AI models
Ollama
Ollama1. Large Language Models (LLMs)2. Ollama InstallationScript Installation3. Using Ollam4. Uninstalling OllamaReferences
Demo Environment
Development Boards: RDK X5, Jetson Orin, Raspberry Pi 5
Ollama is an open-source tool designed to simplify the deployment and operation of large language models, allowing users to use high-quality language models in their local environment.
1. Large Language Models (LLMs)
Large Language Models (LLMs) are a class of advanced text generation systems based on artificial intelligence. Their main characteristic is their ability to learn and understand human language through large-scale training data and generate natural and fluent text.
2. Ollama Installation
Note: It is recommended to use a pre-configured environment image from Yabo Smart. Personal environment configuration takes a long time, and installation may encounter issues depending on the system version.
This tutorial demonstrates installing Ollama using a script on an RDK X5 motherboard. (The large language model image provided by Yabo Intelligence is already configured; no further installation is required.)
Script Installation
xxxxxxxxxxsudo apt install curl -ysudo curl -fsSL https://ollama.com/install.sh | sh
The entire installation process takes a relatively long time; please be patient!
Note: Ollam download failures are normal. Try multiple times, or use a proxy to download. You'll need to search online for instructions on using a proxy.
Once the installation is complete, it should display:

xxxxxxxxxx3. Using Ollam
Type ollama in the terminal to see the following prompts:

| Command | Function |
|---|---|
| ollama serve | Start Ollam |
| ollama create | Create a model from a model file |
| ollama show | Display model information |
| ollama stop | Stop a model |
| ollama pull | Pull a model from the registry |
| ollama push | Push a model to the registry |
| ollama list | List models |
| ollama ps | List running models |
| ollama cp | Copy a model |
| ollama rm | Delete a model |
| ollama help | Get help information for any command |
4. Uninstalling Ollama
- Delete the service
xxxxxxxxxxsudo systemctl stop ollamasudo systemctl disable ollamasudo rm /etc/systemd/system/ollama.service
- Delete a file
xxxxxxxxxxsudo rm $(which ollama)
- Delete a model and service user and group
xxxxxxxxxxsudo rm -r /usr/share/ollamasudo userdel ollamasudo groupdel ollama
References
Ollama
Official Website: https://ollama.com/
GitHub: https://github.com/ollama/ollama