Skip to main content

Model guide

Gemma 2 27B Instruct

Gemma 2 27B is the large text-only checkpoint in this generation. Consider it for a specific Gemma 2 requirement or a controlled comparison on hardware with enough memory. It does not acquire image input by being larger, and its context limit remains a separate constraint from the weight size.

27BText chat8,192 token contextView the model card →

At a glance

Parameters
27B
Accepts
Text
Returns
Text
Published context limit
8,192 tokens
Model format
safetensors · GGUF
Software and download hosts
Ollama · Transformers · Kaggle. 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 · 16.65 GBbartowski (community conversion)gemma-2-27b-it-Q4_K_M.gguf
Languages
English

Will it fit?

Gemma 2 27B 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

  • Compare two conflicting notes and ask which one supports each date.

Choose something else when

  • A larger Gemma 2 checkpoint does not add image input.

First setup

Check a representative task

Evaluate this large text-only model on conflicting supplied text, not an image task.

Use only the two records below. Answer: (1) What is the shipping date in each record? (2) Can you establish a single final date? (3) Which fact is not in either record? Keep the answer under 80 words.
Record A, dated 3 November: shipping is planned for 11 November, subject to supplier confirmation.
Record B, undated: shipping is planned for 13 November. It does not identify an approval or supersede another record.
Requested missing fact: the name of the approving manager.

Check the result: Identify 11 November with its condition in A and 13 November in B. Do not decide that the undated record supersedes A. State that neither record names an approving manager. Record which date and condition belong to A, which date belongs to B, and whether the model invents an approver.

This creates a 4,096-token copy of gemma2:27b-instruct-q4_K_M named gemma-2-27b-it-short-context. Save the following as a file named Modelfile in your working folder:

FROM gemma2:27b-instruct-q4_K_M
PARAMETER num_ctx 4096

Then run these commands from that folder:

ollama pull gemma2:27b-instruct-q4_K_M
ollama create gemma-2-27b-it-short-context -f ./Modelfile
ollama run gemma-2-27b-it-short-context

Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.

The recorded Ollama package is Q4_K_M: 16.65 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.

See Ollama context settings and the Modelfile instructions.

Other models for this task