CoolFace
Apppublic

chmielvu/gemma-3-1b-cpu

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
App README

Gemma 3 1B IT (Q4_0, CPU)

OpenAI-compatible API endpoint with Gradio UI running Google's official Gemma 3 1B QAT GGUF.

  • —POST /v1/chat/completions — Chat completions (supports streaming)
  • —GET /v1/models — List models
  • —GET /health — Health check
  • —GET /ready — Warm up model and confirm readiness

Based on google/gemma-3-1b-it-qat-q4_0-gguf — Google's own quantization-aware trained Q40 GGUF. Uses `chatformat="gemma"` for correct instruction format.

Config via env vars

VariableDefaultDescription
MODEL_REPO_IDgoogle/gemma-3-1b-it-qat-q4_0-ggufHF model repo
MODEL_FILEgemma-3-1b-it-q4_0.ggufGGUF filename
N_CTX4096Context window
N_THREADS2CPU threads
N_BATCH512Batch size
CHAT_FORMATgemmaChat template