Instructions to use MassivDash/Gemma-4-RUST-CODER-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MassivDash/Gemma-4-RUST-CODER-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MassivDash/Gemma-4-RUST-CODER-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MassivDash/Gemma-4-RUST-CODER-12B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MassivDash/Gemma-4-RUST-CODER-12B 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 MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M # Run inference directly in the terminal: llama cli -hf MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M # Run inference directly in the terminal: llama cli -hf MassivDash/Gemma-4-RUST-CODER-12B: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 MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MassivDash/Gemma-4-RUST-CODER-12B: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 MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
Use Docker
docker model run hf.co/MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use MassivDash/Gemma-4-RUST-CODER-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MassivDash/Gemma-4-RUST-CODER-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MassivDash/Gemma-4-RUST-CODER-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
- SGLang
How to use MassivDash/Gemma-4-RUST-CODER-12B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MassivDash/Gemma-4-RUST-CODER-12B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MassivDash/Gemma-4-RUST-CODER-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MassivDash/Gemma-4-RUST-CODER-12B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MassivDash/Gemma-4-RUST-CODER-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use MassivDash/Gemma-4-RUST-CODER-12B with Ollama:
ollama run hf.co/MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
- Unsloth Studio
How to use MassivDash/Gemma-4-RUST-CODER-12B 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 MassivDash/Gemma-4-RUST-CODER-12B 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 MassivDash/Gemma-4-RUST-CODER-12B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MassivDash/Gemma-4-RUST-CODER-12B to start chatting
- Pi
How to use MassivDash/Gemma-4-RUST-CODER-12B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MassivDash/Gemma-4-RUST-CODER-12B with Docker Model Runner:
docker model run hf.co/MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
- Lemonade
How to use MassivDash/Gemma-4-RUST-CODER-12B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
Run and chat with the model
lemonade run user.Gemma-4-RUST-CODER-12B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use MassivDash/Gemma-4-RUST-CODER-12B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
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 MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MassivDash/Gemma-4-RUST-CODER-12B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M
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 "MassivDash/Gemma-4-RUST-CODER-12B:Q4_K_M" \ --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"
Upload folder using huggingface_hub
Browse files- .gitattributes +13 -0
- export_metadata.json +3 -0
- gemma-4-12B-it.BF16-mmproj.gguf +3 -0
- gemma-4-12B-it.BF16.gguf +3 -0
- gemma-4-12B-it.IQ2_M.gguf +3 -0
- gemma-4-12B-it.IQ2_XXS.gguf +3 -0
- gemma-4-12B-it.IQ3_XXS.gguf +3 -0
- gemma-4-12B-it.IQ4_XS.gguf +3 -0
- gemma-4-12B-it.Q2_K_L.gguf +3 -0
- gemma-4-12B-it.Q3_K_M.gguf +3 -0
- gemma-4-12B-it.Q4_K_M.gguf +3 -0
- gemma-4-12B-it.Q5_K_M.gguf +3 -0
- gemma-4-12B-it.Q6_K.gguf +3 -0
- gemma-4-12B-it.Q8_0.gguf +3 -0
- imatrix_unsloth.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,16 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
gemma-4-12B-it.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gemma-4-12B-it.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gemma-4-12B-it.IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gemma-4-12B-it.IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gemma-4-12B-it.IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
gemma-4-12B-it.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
gemma-4-12B-it.Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
gemma-4-12B-it.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
gemma-4-12B-it.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
gemma-4-12B-it.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
gemma-4-12B-it.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
gemma-4-12B-it.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
imatrix_unsloth.gguf filter=lfs diff=lfs merge=lfs -text
|
export_metadata.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "google/gemma-4-12B-it"
|
| 3 |
+
}
|
gemma-4-12B-it.BF16-mmproj.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c787197b43f9258e08317b00cf0d2e331acfeba84e3e1bf5dd6639a4d3cd255
|
| 3 |
+
size 175115424
|
gemma-4-12B-it.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41c1b0bd9e2bf8dee41cd49c88465057a16f5f96c4dcae07a5f651dae8627f9b
|
| 3 |
+
size 23832065984
|
gemma-4-12B-it.IQ2_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bcf42ee4faa1a21c442c9b09c967dadc9730fd423a3468eed219413b2f06dd6
|
| 3 |
+
size 4371806464
|
gemma-4-12B-it.IQ2_XXS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fb6e6d1ce159a490169a9b19486b6ef0103211dab2e8efd1901feb69f0fddae
|
| 3 |
+
size 3568109824
|
gemma-4-12B-it.IQ3_XXS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a86eb0e9f10d4d7a2a196439733e8a4554b8e760092d091daf65aea7dd21d18a
|
| 3 |
+
size 4849195264
|
gemma-4-12B-it.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d263d1176a2eadfa1cacc887c188df9502fbab906470c0617680d67278fb82d
|
| 3 |
+
size 6635256064
|
gemma-4-12B-it.Q2_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:119d0c5930b157f80bb40d71b5741863a4bd5c0c7eb196c5f2a7b1cbf698cda9
|
| 3 |
+
size 5073942784
|
gemma-4-12B-it.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb98f60c1115a39a372a94c97966267ffd47f13bb7e2d5a8acb28b173dfe7dc3
|
| 3 |
+
size 6087088384
|
gemma-4-12B-it.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20557639e591e043a682ea345a1b0ed431a6f440f2e83d296257e74ee7d9ae34
|
| 3 |
+
size 7381383424
|
gemma-4-12B-it.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:069bbaee26f62119a0412834accb1240c121c18e26d22c8628872837e1fab251
|
| 3 |
+
size 8547268864
|
gemma-4-12B-it.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fef4a3c658eb09ea87f926667d7809b374c0819275e20613947c80d96346183
|
| 3 |
+
size 9786022144
|
gemma-4-12B-it.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:482f5b192041024cfc61f60c61035d6d707846b746ecdbb7a106e4161431af5f
|
| 3 |
+
size 12669647104
|
imatrix_unsloth.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d5c0a0d890fb1dec63ae7ace1d315a8ccef0788395ed4914a14f768fcb2911b
|
| 3 |
+
size 7480640
|