How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf TheCosmicStage/sansara-gemma4-e4b-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 TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf TheCosmicStage/sansara-gemma4-e4b-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 TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
Use Docker
docker model run hf.co/TheCosmicStage/sansara-gemma4-e4b-gguf:Q4_K_M
Quick Links

SANSARA Gemma 4 E4B (Q4_K_M GGUF)

Fine-tuned google/gemma-4-E4B-it for the SANSARA on-device AI journaling app.

Training

Use

Designed for inference via llama.cpp / llama.rn / Ollama on mobile and desktop.

from llama_cpp import Llama
llm = Llama(model_path="sansara-gemma4-e4b-Q4_K_M.gguf", n_ctx=2048)
Downloads last month
9
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for TheCosmicStage/sansara-gemma4-e4b-gguf

Quantized
(209)
this model