How to use from
Ollama
ollama run hf.co/giladgd/gemma-4-12B-it-GGUF:
Quick Links

gemma-4-12B-it-GGUF

Read our blog post to learn more about using Gemma 4 with node-llama-cpp

Static quants of google/gemma-4-12B-it.

Quants

Link URI Quant Size
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q2_K Q2_K 4.8GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q3_K_S Q3_K_S 5.5GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q3_K_M Q3_K_M 6.1GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q3_K_L Q3_K_L 6.6GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q4_0 Q4_0 7.0GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q4_K_S Q4_K_S 7.0GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q4_K_M Q4_K_M 7.4GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q5_0 Q5_0 8.3GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q5_K_S Q5_K_S 8.3GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q5_K_M Q5_K_M 8.5GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q6_K Q6_K 9.8GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:Q8_0 Q8_0 12.7GB
GGUF hf:giladgd/gemma-4-12B-it-GGUF:BF16 BF16 23.8GB

Download a quant using node-llama-cpp (more info):

npx -y node-llama-cpp pull <URI>

Usage

Use with node-llama-cpp (recommended)

Ensure you have node.js installed:

brew install nodejs

CLI

Chat with the model:

npx -y node-llama-cpp chat hf:giladgd/gemma-4-12B-it-GGUF:Q4_K_M

Code

Use it in your project:

npm install node-llama-cpp
import {getLlama, resolveModelFile, LlamaChatSession} from "node-llama-cpp";

const modelUri = "hf:giladgd/gemma-4-12B-it-GGUF:Q4_K_M";


const llama = await getLlama();
const model = await llama.loadModel({
    modelPath: await resolveModelFile(modelUri)
});
const context = await model.createContext();
const session = new LlamaChatSession({
    contextSequence: context.getSequence()
});


const q1 = "Hi there, how are you?";
console.log("User: " + q1);

const a1 = await session.prompt(q1);
console.log("AI: " + a1);

Read the getting started guide to quickly scaffold a new node-llama-cpp project

Use with llama.cpp

Install llama.cpp through brew (works on Mac and Linux)

brew install llama.cpp

CLI

llama-cli -hf giladgd/gemma-4-12B-it-GGUF:Q4_K_M -p "The meaning to life and the universe is"

Server

llama-server -hf giladgd/gemma-4-12B-it-GGUF:Q4_K_M -c 2048
Downloads last month
4,002
GGUF
Model size
12B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for giladgd/gemma-4-12B-it-GGUF

Quantized
(267)
this model