Welcome to ROSMASTER M1 repository
1.AI large model environment deployment
Ollama
OllamaLarge Language Models (LLMs)Ollama InstallationScript InstallationUsing OllamaOllama UninstallReferences
Demonstration Environment
Development Board: Jetson Nano
SD (TF) Card: 64GB
xxxxxxxxxxRecommended for models with 4B parameters or less
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 a local environment.
Large Language Models (LLMs)
Large Language Models (LLMs) are a type of advanced text generation system based on artificial intelligence technology. Their main feature is their ability to learn and understand human language using large amounts of training data and generate natural and fluent text.
Ollama Installation
This tutorial demonstrates how to install Ollama on a Jetson Nano using a script.
Script Installation
Note: Failure to pull the Ollama file is normal. You can try multiple times or use a proxy to pull the file. You will need to search online for proxy setup instructions.
xxxxxxxxxxsudo apt install curlcurl -fsSL https://ollama.com/install.sh | sh

Using Ollama
Type "ollama" in the terminal to see the following prompt:

| Command | Function |
|---|---|
| ollama serve | Start Ollama |
| ollama create | Create a model from a model file |
| ollama show | Display model information |
| ollama run | Run 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 | Remove a model |
| ollama help | Get help on any command |
Ollama Uninstall
- Removing the service
xxxxxxxxxxsudo systemctl stop ollamasudo systemctl disable ollamasudo rm /etc/systemd/system/ollama.service
- Removing files
xxxxxxxxxxsudo rm $(which ollama)
- Removing the 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