Views
No views yet
| Step | Tool | Input | Output |
|---|---|---|---|
| 1 | convert_hf_to_gguf.py | BF16 safetensors | F16.gguf |
| 2 | llama-quantize | F16.gguf | Q8_0.gguf |
| File | Size | Description |
|---|---|---|
gemma-3-1b-it-Q8_0.gguf | 1.07 GB | Q8_0 — 8-bit quantization, 8.50 BPW |
| Model | Prefill | Throughput | VRAM |
|---|---|---|---|
| BF16 (transformers) | 226 ms | 8.7 tok/s | 3334 MB |
| INT8 BitsAndBytes | 245 ms | 5.2 tok/s | 1329 MB |
| GGUF Q8_0 (this) | 83 ms | 107 tok/s | ~1100 MB |
1from llama_cpp import Llama
2
3llm = Llama.from_pretrained(
4 repo_id="MichaelLowrance/gemma-3-1b-it-Q8_0-GGUF",
5 filename="gemma-3-1b-it-Q8_0.gguf",
6 n_gpu_layers=-1,
7 n_ctx=2048,
8)
9
10output = llm(
11 "<start_of_turn>user\nHello!<end_of_turn>\n<start_of_turn>model\n",
12 max_tokens=100,
13 temperature=0.7,
14)
15print(output["choices"][0]["text"])