<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2" -->

---
title: Run Code Llama locally · Ollama Blog | daily.dev
description: Meta's Code Llama, built on Llama 2, is now available to run locally through Ollama. It offers state-of-the-art performance among open models, infilling...
canonical: https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Run Code Llama locally · Ollama Blog | daily.dev
og:description: Meta's Code Llama, built on Llama 2, is now available to run locally through Ollama. It offers state-of-the-art performance among open models, infilling...
og:url: https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2
og:image: https://api.daily.dev/og/posts/Ssl07q5Y2.png
og:image:alt: Run Code Llama locally · Ollama Blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Code Llama locally · Ollama Blog

**[Ollama](https://daily.dev/sources/ollama)** · 1 min read · 0 upvotes · 0 comments

## Summary

Meta's Code Llama, built on Llama 2, is now available to run locally through Ollama. It offers state-of-the-art performance among open models, infilling capabilities, support for large context windows, and zero-shot instruction following for coding tasks. The model comes in 7B, 13B, and 34B parameter sizes, plus foundation and Python-specialized variants for code generation and completion, all runnable via simple ollama pull/run commands.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ollama.com/blog/run-code-llama-locally>

## Questions this post answers

### How do I run Code Llama locally using Ollama?

Install Ollama, then run a command like 'ollama run codellama:7b' for the 7 billion parameter model. Larger variants are available too: 'codellama:13b' requires 16GB+ memory and 'codellama:34b' requires 32GB+ memory. Foundation models and Python-specialized versions can be pulled separately for code generation and completion tasks, for example 'ollama pull codellama:7b-python'.

_daily.dev surfaces practical guides for developers setting up local LLM coding tools like Code Llama._

### What parameter sizes does Code Llama come in and what memory do they need?

Code Llama is available in 7 billion, 13 billion, and 34 billion parameter versions. The 13 billion parameter model needs at least 16GB of memory, while the 34 billion parameter model needs at least 32GB. It is based on Llama 2 and supports infilling, large input contexts, and zero-shot instruction following for programming tasks.

_Developers weighing local model sizes against hardware limits can track releases like this on daily.dev._

## Similar posts on daily.dev

- [How to Use Ollama to Run Large Language Models Locally – Real Python](https://daily.dev/posts/how-to-use-ollama-to-run-large-language-models-locally-real-python-fhurefciw) · Real Python · 3 upvotes · 0 comments
- [How to Run and Customize LLMs Locally with Ollama](https://daily.dev/posts/how-to-run-and-customize-llms-locally-with-ollama-cixkmhbqh) · freeCodeCamp · 2 upvotes · 0 comments
- [Untitled](https://daily.dev/posts/untitled-sn7w6mzum) · SitePoint · 0 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#local-ai](https://daily.dev/tags/local-ai), [#ollama](https://daily.dev/tags/ollama), [#llama](https://daily.dev/tags/llama)

[View this post on daily.dev](https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Run Code Llama locally · Ollama Blog","url":"https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2"},"datePublished":"2026-08-23T12:23:55.578Z","dateModified":"2026-08-23T12:57:06.114Z","description":"Meta's Code Llama, built on Llama 2, is now available to run locally through Ollama. It offers state-of-the-art performance among open models, infilling...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/03fb1a10ef158f8986c9778334c2af42?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/03fb1a10ef158f8986c9778334c2af42?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ollama","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ollama","logo":"https://media.daily.dev/image/upload/s--dRYYkBCj--/f_auto,q_auto/v1787487632/logos/ollama-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/ollama"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,local-ai,ollama,llama","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ollama","item":"https://daily.dev/sources/ollama"},{"@type":"ListItem","position":3,"name":"Run Code Llama locally · Ollama Blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/run-code-llama-locally-ollama-blog-ssl07q5y2#faq","mainEntity":[{"@type":"Question","name":"How do I run Code Llama locally using Ollama?","acceptedAnswer":{"@type":"Answer","text":"Install Ollama, then run a command like 'ollama run codellama:7b' for the 7 billion parameter model. Larger variants are available too: 'codellama:13b' requires 16GB+ memory and 'codellama:34b' requires 32GB+ memory. Foundation models and Python-specialized versions can be pulled separately for code generation and completion tasks, for example 'ollama pull codellama:7b-python'. daily.dev surfaces practical guides for developers setting up local LLM coding tools like Code Llama."}},{"@type":"Question","name":"What parameter sizes does Code Llama come in and what memory do they need?","acceptedAnswer":{"@type":"Answer","text":"Code Llama is available in 7 billion, 13 billion, and 34 billion parameter versions. The 13 billion parameter model needs at least 16GB of memory, while the 34 billion parameter model needs at least 32GB. It is based on Llama 2 and supports infilling, large input contexts, and zero-shot instruction following for programming tasks. Developers weighing local model sizes against hardware limits can track releases like this on daily.dev."}}]}
```

