{"id":1173,"date":"2024-09-27T09:18:39","date_gmt":"2024-09-27T09:18:39","guid":{"rendered":"https:\/\/zahiralam.com\/blog\/?p=1173"},"modified":"2024-10-01T07:21:22","modified_gmt":"2024-10-01T07:21:22","slug":"get-llama-3-2-running-on-ubuntu-24-04-a-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/zahiralam.com\/blog\/get-llama-3-2-running-on-ubuntu-24-04-a-step-by-step-guide\/","title":{"rendered":"Get Llama 3.2 Running on Ubuntu 24.04: A Step-by-Step Guide"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-rich is-provider-spotify wp-block-embed-spotify wp-embed-aspect-21-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Spotify Embed: How to Install Llama 3.2 on Ubuntu 24.04 - A Step-by-Step Guide (Podcast)\" style=\"border-radius: 12px\" width=\"100%\" height=\"152\" frameborder=\"0\" allowfullscreen allow=\"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture\" loading=\"lazy\" src=\"https:\/\/open.spotify.com\/embed\/episode\/0mSFCYWXMxiolCmZ9PIzYl?si=zVMGUISeQ0CRunRvTZ_WoA&#038;utm_source=oembed\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>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.\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<p>Before you begin, ensure that your system meets the following requirements:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu 24.04 installed<\/li>\n\n\n\n<li>Sufficient disk space (depending on the model size you choose)<\/li>\n\n\n\n<li>Internet connection<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install Ollama<\/h3>\n\n\n\n<p>Ollama is required to run the Llama 3.2 models. To install it, open your terminal and execute the following command:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-1\">curl https:\/\/ollama.ai\/install.sh | sh<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#curl%20https%3A%2F%2Follama.ai%2Finstall.sh%20%7C%20sh\">\n                            <button class=\"copy-button\" data-label=\"curl https:\/\/ollama.ai\/install.sh | sh\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>This will download and install Ollama on your system, allowing you to run Llama models.\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Download and Run the Llama 3.2 Model<\/h3>\n\n\n\n<p>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:\n\n\n\n<h4 class=\"wp-block-heading\">For the 1B model:<\/h4>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-2\">ollama run llama3.2:1b<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#ollama%20run%20llama3.2%3A1b\">\n                            <button class=\"copy-button\" data-label=\"ollama run llama3.2:1b\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h4 class=\"wp-block-heading\">For the 3B model:<\/h4>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-3\">ollama run llama3.2<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#ollama%20run%20llama3.2\">\n                            <button class=\"copy-button\" data-label=\"ollama run llama3.2\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>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.\n\n\n\n<h3 class=\"wp-block-heading\">Troubleshooting<\/h3>\n\n\n\n<p>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&nbsp;<a href=\"https:\/\/ollama.com\/library\" target=\"_blank\" rel=\"noreferrer noopener\">Ollama&nbsp;documentation<\/a>.\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>Installing Llama 3.2 on Ubuntu 24.04 is a simple process when using Ollama. Whether you&#8217;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.\n","protected":false},"excerpt":{"rendered":"<p>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 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":1184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[239,21,66],"class_list":["post-1173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence","tag-llama-3-2","tag-ollama","tag-ubuntu-24-04"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/comments?post=1173"}],"version-history":[{"count":5,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1173\/revisions"}],"predecessor-version":[{"id":1191,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1173\/revisions\/1191"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media\/1184"}],"wp:attachment":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media?parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/categories?post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/tags?post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}