Skip to main content

Model guide

Code Llama 34B Instruct

Code Llama 34B Instruct is for a high-memory code-chat setup or reproducing work built around this checkpoint. A large download is not a substitute for executing the generated tests. Compare it with smaller code models before committing a machine to it, and keep its custom license separate from your application’s license.

34BCode100,000 token contextView the model card →

At a glance

Parameters
34B
Accepts
Text
Returns
Text, including code
Published context limit
100,000 tokensTrained on 16K-token sequences; Meta describes support for inputs up to 100,000 tokens. The app must support and configure the longer context, and the conversation needs additional memory. Start the examples below at 4,096 tokens.
Model format
safetensors · GGUF
Software and download hosts
transformers · Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4_K_M
Model-weight download
Q4_K_M weights · 20.22 GBTheBloke (community conversion)codellama-34b-instruct.Q4_K_M.gguf
Languages
English · Python · C++ · Java · PHP · TypeScript · JavaScript · C# · Bash

Will it fit?

Code Llama 34B Instruct · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.

Check on your computer

Best for

  • Use the 34B Instruct model on a repair that 13B gets wrong. Test the proposed fix against the original failing input.

Choose something else when

  • Its 20.22 GB weight download leaves conversation and runtime memory still to budget.

First setup

After loading this coding model with the setup below, keep context at 4,096 tokens and cap the first reply at 512 tokens. Ask: Write a Python function unique_in_order(values) that removes duplicates while preserving first occurrence. For [3, 1, 3, 2, 1], what does it return? Check for [3, 1, 2], and inspect the empty-list and all-duplicate cases before running the code. Do not grant filesystem, network or shell access for this example. One correct snippet is not proof that a larger generated program works. See the model instructions.

Other models for this task