Code Llama 34B Instruct is the instruction-following 34-billion-parameter member of Meta's Code Llama family of code models. According to its Hugging Face model card, Code Llama was trained between January 2023 and July 2023 on an offline dataset, and the Instruct variant is meant to be safer for code assistant and generation applications. The family is described in the paper Code Llama: Open Foundation Models for Code. It is an older model, and Meta's newer Llama generations have their own catalog entries.
Key features
- Code completion and infilling: the card lists code completion, infilling, instruction following and chat among the family's capabilities.
- Three variants: base Code Llama for general code synthesis and understanding, Code Llama - Python specialized for Python, and Code Llama - Instruct for instruction following and safer deployment.
- Open weights: distributed on Hugging Face under the Llama 2 Community License, after sharing contact information with Meta.
- Sizes: the card says the family ranges from 7 billion to 34 billion parameters, and its table also lists 70B models.
Model specs
| Spec | Code Llama 34B Instruct |
|---|---|
| Parameters | 34B |
| Variant | Instruct |
| Training period | January 2023 to July 2023 |
| License | Llama 2 Community License |
| Hugging Face repo | meta-llama/CodeLlama-34b-Instruct-hf |
The card does not state a context length, and it carries no benchmark figures. It points readers to Sections 3 and 4 of the paper for evaluation results.
Limitations
Meta says testing was done in English only, that the model may in some instances produce inaccurate or objectionable responses, and that use in languages other than English is out of scope. Developers should run their own safety testing and tuning for their application.
Use cases
- Self-hosted code assistants and code generation experiments.
- Fine-tuning and research on code models.
- Baselines when comparing open code models.
Getting started
- Accept the license and share your details on the model card.
- Load the model with Hugging Face Transformers in bfloat16, or use a quantized build, since a 34B model needs substantial GPU memory.
- Use the Instruct prompt format and run your own safety checks before deployment.
FAQ
What license does Code Llama 34B Instruct use?
The Llama 2 Community License, according to the model card.
When was Code Llama trained?
Between January 2023 and July 2023, according to the card.
What is the difference between Code Llama, Python and Instruct?
The base model targets general code synthesis, the Python variant is specialized for Python, and the Instruct variant follows instructions and is intended for safer deployment.
Is there a newer open code model?
Yes. Newer options in this catalog include Qwen2.5-Coder 32B Instruct and the general-purpose Llama 3.1 70B Instruct.
Alternatives
- Qwen2.5-Coder 32B Instruct: a newer open coding model.
- Llama 3.1 70B Instruct: Meta's later general-purpose model.
- DeepSeek Coder V2.5: another open coding option.
Conclusion
Code Llama 34B Instruct was an influential open code model, and it is still useful as a baseline or a research reference. For new projects, read the model card and compare it with newer models in the models category.
Sources
- Websitehttps://www.llama.com/
- Social Mediahttps://x.com/llama
Comments
No comments yet. Be the first to comment!
Related Tools
Related Insights
Point Codex at any model with magpie
Install magpie, add a local or signed-in provider, then switch Codex to that model. Rechecked against official magpie docs on 2026-10-06.
How to pick an AI coding CLI for your repo
Match Claude Code, Codex CLI, OpenCode, Pi, omp, DeepSeek Harness, and Grok Build to the work you actually run. Docs rechecked 2026-10-06.
Skills + Hooks + Plugins: How Anthropic Redefined AI Coding Tool Extensibility
An in-depth analysis of Claude Code's trinity architecture of Skills, Hooks, and Plugins. Explore why this design is more advanced than GitHub Copilot and Cursor, and how it redefines AI coding tool extensibility through open standards.