LOCAL_AI_STACK
v2.2 · 2026-06-12
← back to models

Code Llama 34B Instruct

codellama-34b-instruct
CODE

Code Llama 34B Instruct is a 34B code model profile for local AI planning. This page records provider, license, context, quantization, hardware-fit estimates, setup hints, source links, and caveats so readers do not choose a model by name alone.

PROVIDER
Meta
FAMILY
Code Llama
MODEL TYPE
code
PARAMETERS
34B
MODALITIES
text
ARCHITECTURE
auto-regressive transformer
CONTEXT WINDOW
100,000 tokens
TRAINING TOKENS
0.5T
RELEASE DATE
2023-08-24
LICENSE & LINKS
Code Llama community licenselicense text
GGUF REPOSITORIES
Community GGUF conversion/quantization of the Meta Code Llama Instruct checkpoint; file table used for Q4_K_M, Q5_K_M, and Q8_0 sizes.
SETUP HINTS
OLLAMA
Use `ollama run codellama:34b-instruct`
LM STUDIO
Search for `TheBloke/CodeLlama-34B-Instruct-GGUF` and start with the Q4_K_M file for balanced quality and size.
LLAMA.CPP
Use `llama-cli -hf TheBloke/CodeLlama-34B-Instruct-GGUF:Q4_K_M` with the Code Llama instruct prompt template
QUANTIZATION FILE SIZES (GGUF)
Q4_K_M
20.22 GB
Q5_K_M
23.84 GB
Q8_0
35.86 GB
Quantization note: Q4_K_M
RAM / VRAM ESTIMATES
MIN RAM
22.72 GB
COMFORTABLE RAM
32 GB
MIN VRAM
24 GB
COMFORTABLE VRAM
32 GB
These are conservative local-inference estimates, not official hardware requirements.
HARDWARE FIT
CPU only (no GPU)
possible_but_slow
8 GB RAM
not_recommended
16 GB RAM
not_recommended
32 GB RAM
possible
8 GB VRAM
not_recommended
12 GB VRAM
not_recommended
24 GB VRAM
possible
Apple Silicon (unified memory)
32GB_unified_memory_or_more
Hardware fit values are conservative local-inference estimates based on GGUF size plus runtime and KV-cache overhead. Actual requirements depend on context length, quantization, runtime, GPU offload, and other running apps.
BEST FOR
·Local code explanation and code generation with an instruction/chat prompt format
AVOID IF
·You need a modern function-calling/tool-calling model with an official tool schema
CAVEATS
·RAM and VRAM estimates are conservative local-inference estimates based on GGUF file size plus runtime and KV-cache overhead, not official Meta requirements.
·Meta describes stable generations up to 100,000 tokens, while common local runtimes and the Ollama catalog may default to smaller contexts such as 16K.
SOURCE URLS
FIELD EVIDENCE
LANGUAGES
EnglishPythonC++JavaPHPTypeScriptJavaScriptC#Bash
CAPABILITIES
code tuned
Code Llama 13B InstructStarCoder2 3B