Llama 3.2 is the latest release from Meta, designed for a wide variety of AI tasks, with multilingual capabilities and smaller model sizes. This guide will walk you through the process of installing Llama 3.2 on Ubuntu 24.04 using Ollama, a powerful platform that simplifies running AI models.
Prerequisites
Before you begin, ensure that your system meets the following requirements:
- Ubuntu 24.04 installed
- Sufficient disk space (depending on the model size you choose)
- Internet connection
Step 1: Install Ollama
Ollama is required to run the Llama 3.2 models. To install it, open your terminal and execute the following command:
curl https://ollama.ai/install.sh | sh
This will download and install Ollama on your system, allowing you to run Llama models.
Step 2: Download and Run the Llama 3.2 Model
Llama 3.2 is available in two sizes: 1B and 3B parameters. Depending on your needs, choose the appropriate model and run the following command:
For the 1B model:
ollama run llama3.2:1b
For the 3B model:
ollama run llama3.2
This command will download the selected model and run it. If the model is already installed, the same command will simply run it without downloading again.
Troubleshooting
If you encounter any issues during installation or while running the model, ensure that your system has enough resources (especially disk space and memory) and that your internet connection is stable. For further assistance, refer to the official Ollama documentation.
Conclusion
Installing Llama 3.2 on Ubuntu 24.04 is a simple process when using Ollama. Whether you’re working with the 1B or 3B model, following the steps above will allow you to easily leverage the power of Llama 3.2 for your AI projects.