Instructions to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
Use Docker
docker model run hf.co/ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
- Ollama
How to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with Ollama:
ollama run hf.co/ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
- Unsloth Studio
How to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with Docker Model Runner:
docker model run hf.co/ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
- Lemonade
How to use ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Gemma4-E2B-SFT-Fable5-GGUF-Q4_K_M
List all available models
lemonade list
Gemma4-E2B-SFT-Fable5 โ GGUF
Quantized GGUF builds of Gemma4-E2B-SFT-Fable5, a
unsloth/gemma-4-E2B-it model supervised-fine-tuned on the FABLE-5 Complete-2M trace
corpus. These files run locally with llama.cpp,
Ollama, LM Studio, and any GGUF-compatible
runtime โ no GPU required for the smaller quants.
Overview
| Fine-tuned model | Gemma4-E2B-SFT-Fable5 |
| Base model | unsloth/gemma-4-E2B-it |
| Parameter class | E2B (effective) |
| Model family | Gemma-4 MatFormer |
| Training method | LoRA SFT (distillation), assistant-only loss masking |
| Dataset | FABLE-5 Complete-2M traces (private) |
| Format | GGUF (this repo) ยท safetensors (merged repo) |
What is FABLE-5 Complete-2M?
This model was fine-tuned on FABLE-5 Complete-2M, the full ~2M-trace FABLE-5 corpus
(cleaned). Each target completion may include a <think>โฆ</think> reasoning span followed
by the response; training used assistant-only loss masking so the model learns to
produce the response, not echo the prompt. The dataset is private; the fine-tuned weights
are public.
Available Quantizations
| File | Quant | Size | Notes |
|---|---|---|---|
gemma4-e2b-sft-fable5.q4_k_m.gguf |
Q4_K_M | ~3.4 GB | Recommended โ best quality/size balance |
gemma4-e2b-sft-fable5.q5_k_m.gguf |
Q5_K_M | ~3.6 GB | Higher quality |
gemma4-e2b-sft-fable5.q8_0.gguf |
Q8_0 | ~5.0 GB | Maximum quality (near-lossless) |
Which to pick: Q4_K_M is the best size/quality trade-off for most users. Use Q5_K_M
if you have spare RAM/VRAM and want a little more fidelity, or Q8_0 for near-lossless
output when size is not a concern.
Usage
Ollama
ollama run hf.co/ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF:Q4_K_M "Write a short story about a clockwork fox."
llama.cpp
# One-shot
llama-cli -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF --jinja -p "Write a short fable about ambition." -n 512
# Interactive chat
llama-cli -hf ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF --jinja -cnv
llama-cpp-python
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF",
filename="*q4_k_m.gguf",
n_ctx=4096,
)
out = llm.create_chat_completion(
messages=[{"role": "user", "content": "Write a short fable about ambition."}],
max_tokens=512,
)
print(out["choices"][0]["message"]["content"])
Intended use & limitations
Research and non-commercial experimentation with FABLE-5-style creative / agentic
generation. As GGUF quantizations these carry unavoidable quality loss versus the source
safetensors weights โ prefer Q8_0 when fidelity matters. Inherits every limitation of the
base model unsloth/gemma-4-E2B-it and the source fine-tune Gemma4-E2B-SFT-Fable5. Verify
outputs before any downstream use.
Citation
@misc{gemma4_e2b_fable5_gguf,
author = {Ermia Azarkhalili},
title = {Gemma4-E2B-SFT-Fable5 โ GGUF quantized},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF}}
}
- Downloads last month
- 351
4-bit
5-bit
8-bit
Model tree for ermiaazarkhalili/Gemma4-E2B-SFT-Fable5-GGUF
Base model
ermiaazarkhalili/Gemma4-E2B-SFT-Fable5