Instructions to use CompressedGemma/gemma-4-31B-it-compressed 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 CompressedGemma/gemma-4-31B-it-compressed 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 CompressedGemma/gemma-4-31B-it-compressed # Run inference directly in the terminal: llama cli -hf CompressedGemma/gemma-4-31B-it-compressed
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CompressedGemma/gemma-4-31B-it-compressed # Run inference directly in the terminal: llama cli -hf CompressedGemma/gemma-4-31B-it-compressed
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 CompressedGemma/gemma-4-31B-it-compressed # Run inference directly in the terminal: ./llama-cli -hf CompressedGemma/gemma-4-31B-it-compressed
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 CompressedGemma/gemma-4-31B-it-compressed # Run inference directly in the terminal: ./build/bin/llama-cli -hf CompressedGemma/gemma-4-31B-it-compressed
Use Docker
docker model run hf.co/CompressedGemma/gemma-4-31B-it-compressed
- LM Studio
- Jan
- Ollama
How to use CompressedGemma/gemma-4-31B-it-compressed with Ollama:
ollama run hf.co/CompressedGemma/gemma-4-31B-it-compressed
- Unsloth Desktop
- Pi
How to use CompressedGemma/gemma-4-31B-it-compressed with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CompressedGemma/gemma-4-31B-it-compressed
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "CompressedGemma/gemma-4-31B-it-compressed" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use CompressedGemma/gemma-4-31B-it-compressed with Docker Model Runner:
docker model run hf.co/CompressedGemma/gemma-4-31B-it-compressed
- Lemonade
How to use CompressedGemma/gemma-4-31B-it-compressed with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CompressedGemma/gemma-4-31B-it-compressed
Run and chat with the model
lemonade run user.gemma-4-31B-it-compressed-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use CompressedGemma/gemma-4-31B-it-compressed with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CompressedGemma/gemma-4-31B-it-compressed
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default CompressedGemma/gemma-4-31B-it-compressed
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use CompressedGemma/gemma-4-31B-it-compressed with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf CompressedGemma/gemma-4-31B-it-compressed
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "CompressedGemma/gemma-4-31B-it-compressed" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Commit History
-
Upload Gemma-31B-it-quant.gguf
Verified signaturefd8b0e9
-
Draft model for MTP
Verified signature2b1ba0f
-
1,000 chunk iMatrix used
Verified signature2d7112c -
Delete gemma4_chat_template.jinja
Verified signaturef804fc8 -
Delete Gemma-4-31B-it-quant.gguf
Verified signature6d464c7 -
Delete gemma-4-31b-imatrix.dat
Verified signature4db6507 -
200 chunk imatrix
Verified signaturec3fff3c
-
Switch to Shor's-based block finding
Verified signature346e13d
-
Upload Gemma-4-31B-it-quant.gguf
Verified signature2b7ee82
-
Update README.md
Verified signature900a199
-
Update README.md
Verified signaturec85f848 -
Update README.md
Verified signature3ac40f2 -
Upload gemma-4-31b-imatrix.dat
Verified signature87680c6 -
Update README.md
Verified signature4374a56 -
Update README.md
Verified signature356a823 -
Update README.md
Verified signatureec701bb -
Perfected version
Verified signatureCan code, etc etc.8fd9243
-
Update README.md
Verified signature6383881 -
fixed tied embeddings
Verified signatureMake sure you have enough RAM to use this, if you try to cheat it by using swap space dominantly it will not work nearly as well55eb2b6
-
Update README.md
Verified signature54da6a6
-
Update README.md
Verified signatureccb6314
-
Mastered version
Verified signatureResolved stray text issue, resolved thinking loops. Made using the finished quant engine, significantly different from prior releases in terms of capability34ccd39 -
Mastered version uploading now
Verified signature8fefb39
-
Update README.md
Verified signature4f93730 -
Create gemma4_chat_template.jinja
Verified signature1503ec8 -
Delete gemma-4-31B-it-quant.gguf
Verified signatureada7ef9 -
RSME 1.5 from 3.0
Verified signatureModel intelligence significantly improved; chat template adds the ability to 'resume' prior thought if a token glitch does occur.362dc18
-
Update README.md
Verified signature2fdbc50 -
Update README.md
Verified signatured0aa1c7 -
Update README.md
Verified signatureb9e15da -
Update README.md
Verified signaturee867dbc -
Upload gemma-4-31B-it-quant.gguf
Verified signature2585993 -
initial commit
Verified signatureb83a27f