Views
No views yet
master branch of llama.cpp to ensure full architectural compatibility and natively support high-speed inference on modern hardware. The "E" stands for effective parameters; this model uses Per-Layer Embeddings (PLE) to achieve the reasoning depth of a larger model while only utilizing 2.3B effective parameters (out of 5.1B total) during generation. It is the most lightweight model in the Gemma 4 family, specifically engineered for ultra-fast local execution on mobile devices, edge hardware, and entry-level laptops.| File Name | Bit-Rate | Size | Target VRAM / RAM | Description |
|---|---|---|---|---|
gemma-4-e2b-Q8_0.gguf | 8-bit | ~5.4 GB | 8 GB+ | Purest quality, zero noticeable logic loss. |
gemma-4-e2b-Q6_K.gguf | 6-bit | ~4.2 GB | 6 GB+ | Near-perfect reasoning retention. Fits easily on 6GB GPUs. |
gemma-4-e2b-Q5_K_M.gguf | 5-bit | ~3.7 GB | 6 GB+ | High precision, ideal for edge devices. |
gemma-4-e2b-Q4_K_M.gguf | 4-bit | ~3.1 GB | 4 GB+ | Recommended. The sweet spot for 4GB GPUs (like the RTX 3050). |
./llama-cli -m gemma-4-e2b-Q4_K_M.gguf -n 2048 -c 8192 -ngl 999 -p "You are an expert AI assistant. Explain quantum entanglement."1from llama_cpp import Llama
2
3# Load the model with Blackwell-optimized Flash Attention
4llm = Llama(
5 model_path="./gemma-4-e2b-Q4_K_M.gguf",
6 n_gpu_layers=-1, # Offload entirely to GPU
7 n_ctx=8192, # 8K Context Window
8 flash_attn=True
9)
10
11response = llm.create_chat_completion(
12 messages=[
13 {"role": "system", "content": "You are a helpful assistant."},
14 {"role": "user", "content": "Write a python script to calculate the Fibonacci sequence."}
15 ]
16)
17
18print(response["choices"][0]["message"]["content"])