Image-Text-to-Text
Transformers
GGUF
English
gemma4_unified
text-generation-inference
unified
conversational
Instructions to use prithivMLmods/gemma-4-12B-it-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/gemma-4-12B-it-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/gemma-4-12B-it-GGUF") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/gemma-4-12B-it-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/gemma-4-12B-it-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 prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/gemma-4-12B-it-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 prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/gemma-4-12B-it-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 prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/gemma-4-12B-it-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 prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/gemma-4-12B-it-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/gemma-4-12B-it-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": "prithivMLmods/gemma-4-12B-it-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/gemma-4-12B-it-GGUF 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 "prithivMLmods/gemma-4-12B-it-GGUF" \ --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": "prithivMLmods/gemma-4-12B-it-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "prithivMLmods/gemma-4-12B-it-GGUF" \ --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": "prithivMLmods/gemma-4-12B-it-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use prithivMLmods/gemma-4-12B-it-GGUF with Ollama:
ollama run hf.co/prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
- Unsloth Studio
How to use prithivMLmods/gemma-4-12B-it-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 prithivMLmods/gemma-4-12B-it-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 prithivMLmods/gemma-4-12B-it-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/gemma-4-12B-it-GGUF to start chatting
- Pi
How to use prithivMLmods/gemma-4-12B-it-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/gemma-4-12B-it-GGUF: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": "prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use prithivMLmods/gemma-4-12B-it-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/gemma-4-12B-it-GGUF: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 "prithivMLmods/gemma-4-12B-it-GGUF: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"
- Docker Model Runner
How to use prithivMLmods/gemma-4-12B-it-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/gemma-4-12B-it-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-12B-it-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use prithivMLmods/gemma-4-12B-it-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prithivMLmods/gemma-4-12B-it-GGUF: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 prithivMLmods/gemma-4-12B-it-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
Add files using upload-large-folder tool
Browse files- .gitattributes +17 -0
- gemma-4-12B-it.BF16.gguf +3 -0
- gemma-4-12B-it.F16.gguf +3 -0
- gemma-4-12B-it.Q2_K.gguf +3 -0
- gemma-4-12B-it.Q3_K_L.gguf +3 -0
- gemma-4-12B-it.Q3_K_M.gguf +3 -0
- gemma-4-12B-it.Q3_K_S.gguf +3 -0
- gemma-4-12B-it.Q4_0.gguf +3 -0
- gemma-4-12B-it.Q4_K_M.gguf +3 -0
- gemma-4-12B-it.Q4_K_S.gguf +3 -0
- gemma-4-12B-it.Q5_0.gguf +3 -0
- gemma-4-12B-it.Q5_K_M.gguf +3 -0
- gemma-4-12B-it.Q5_K_S.gguf +3 -0
- gemma-4-12B-it.Q6_K.gguf +3 -0
- gemma-4-12B-it.Q8_0.gguf +3 -0
- gemma-4-12B-it.mmproj-bf16.gguf +3 -0
- gemma-4-12B-it.mmproj-f16.gguf +3 -0
- gemma-4-12B-it.mmproj-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,20 @@ 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.mmproj-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gemma-4-12B-it.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gemma-4-12B-it.mmproj-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gemma-4-12B-it.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gemma-4-12B-it.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
gemma-4-12B-it.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
gemma-4-12B-it.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
gemma-4-12B-it.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
gemma-4-12B-it.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
gemma-4-12B-it.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
gemma-4-12B-it.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
gemma-4-12B-it.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
gemma-4-12B-it.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
gemma-4-12B-it.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
gemma-4-12B-it.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
gemma-4-12B-it.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
gemma-4-12B-it.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
gemma-4-12B-it.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2dfe03b7c7eb88dc7c80707897133d89f7a41b6adcc6e739aa6d0da5458804b
|
| 3 |
+
size 23832065056
|
gemma-4-12B-it.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ecb3a9d3ec5c179e798e33ea9c97e7b412912a8dbf0684d3d863219903fc8d7
|
| 3 |
+
size 23832065056
|
gemma-4-12B-it.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0ee202a0d73f56079f6bb575625c0e98332ca22984d658da7635e35e620894a
|
| 3 |
+
size 4830147616
|
gemma-4-12B-it.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f77be6e5d18ea99753a927090246486d959d0cb2cd6bfca558d440f0c870452b
|
| 3 |
+
size 6566319136
|
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:7247df74581f6c7e98d50909b86c9b5c70fea35384446c7102f8cef833596d11
|
| 3 |
+
size 6087087136
|
gemma-4-12B-it.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10c951d9c8d160fe242ac610013848d3ae9d7da2fca21c0396861af9ba132289
|
| 3 |
+
size 5528228896
|
gemma-4-12B-it.Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e1f8cb7757eaeb73911624e57e72a146d201360f7f2751a34dfa8973787f778
|
| 3 |
+
size 6975878176
|
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:1329f33c644cfee623e5ee366d292cdfbc5189355f7c5eb2c5a67a66ebd4777a
|
| 3 |
+
size 7381382176
|
gemma-4-12B-it.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d2631cfa941095a682ec1b40020e87b912f9bba799b36b548099bfcc4fff28b
|
| 3 |
+
size 7024047136
|
gemma-4-12B-it.Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67c8b0c6f83a42a7c28bb097878b0186ed74e8738ed19dd376c73b9b5e94b484
|
| 3 |
+
size 8338371616
|
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:53d57bcc84f3254e9da005ed272af23141e048baa231a18b94b6460a63daed78
|
| 3 |
+
size 8547267616
|
gemma-4-12B-it.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec95e934a9540de4ed22861830ce202609a54ca45e35f18c2c83f88df9adc8b1
|
| 3 |
+
size 8338371616
|
gemma-4-12B-it.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1bf286339ebc1c78d34a1b3f1afbce2b2fce717ec803f0124a5aac9a5c9af0d5
|
| 3 |
+
size 9786020896
|
gemma-4-12B-it.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1be8c1930654436806ffd23138b860a696c52c3920324702660d879c44cf697b
|
| 3 |
+
size 12669645856
|
gemma-4-12B-it.mmproj-bf16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7af60b4322978d9b01f13931c7e64abb6159342cdda1b4ad8473500597dc722a
|
| 3 |
+
size 175115712
|
gemma-4-12B-it.mmproj-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7af60b4322978d9b01f13931c7e64abb6159342cdda1b4ad8473500597dc722a
|
| 3 |
+
size 175115712
|
gemma-4-12B-it.mmproj-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1967aacac1101dda7c8981a14735dd46e53a107ecd3f4379fa4e88c25add8031
|
| 3 |
+
size 158987712
|