Image-Text-to-Text
Transformers
GGUF
English
gemma4
text-generation-inference
llama-cpp
Mixture of Experts
e4b
conversational
Instructions to use prithivMLmods/gemma-4-E4B-it-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/gemma-4-E4B-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-E4B-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-E4B-it-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/gemma-4-E4B-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-E4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/gemma-4-E4B-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-E4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf prithivMLmods/gemma-4-E4B-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-E4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/gemma-4-E4B-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-E4B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/gemma-4-E4B-it-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/gemma-4-E4B-it-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/gemma-4-E4B-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-E4B-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-E4B-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-E4B-it-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/gemma-4-E4B-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-E4B-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-E4B-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-E4B-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-E4B-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-E4B-it-GGUF with Ollama:
ollama run hf.co/prithivMLmods/gemma-4-E4B-it-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use prithivMLmods/gemma-4-E4B-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-E4B-it-GGUF:Q4_K_M
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": "prithivMLmods/gemma-4-E4B-it-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prithivMLmods/gemma-4-E4B-it-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/gemma-4-E4B-it-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/gemma-4-E4B-it-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/gemma-4-E4B-it-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-E4B-it-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use prithivMLmods/gemma-4-E4B-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-E4B-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-E4B-it-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prithivMLmods/gemma-4-E4B-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-E4B-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-E4B-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"
Add files using upload-large-folder tool
Browse files- .gitattributes +17 -0
- gemma-4-E4B-it.BF16.gguf +3 -0
- gemma-4-E4B-it.F16.gguf +3 -0
- gemma-4-E4B-it.Q2_K.gguf +3 -0
- gemma-4-E4B-it.Q3_K_L.gguf +3 -0
- gemma-4-E4B-it.Q3_K_M.gguf +3 -0
- gemma-4-E4B-it.Q3_K_S.gguf +3 -0
- gemma-4-E4B-it.Q4_0.gguf +3 -0
- gemma-4-E4B-it.Q4_K_M.gguf +3 -0
- gemma-4-E4B-it.Q4_K_S.gguf +3 -0
- gemma-4-E4B-it.Q5_0.gguf +3 -0
- gemma-4-E4B-it.Q5_K_M.gguf +3 -0
- gemma-4-E4B-it.Q5_K_S.gguf +3 -0
- gemma-4-E4B-it.Q6_K.gguf +3 -0
- gemma-4-E4B-it.Q8_0.gguf +3 -0
- gemma-4-E4B-it.mmproj-bf16.gguf +3 -0
- gemma-4-E4B-it.mmproj-f16.gguf +3 -0
- gemma-4-E4B-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-E4B-it.mmproj-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gemma-4-E4B-it.mmproj-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gemma-4-E4B-it.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gemma-4-E4B-it.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gemma-4-E4B-it.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
gemma-4-E4B-it.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
gemma-4-E4B-it.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
gemma-4-E4B-it.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
gemma-4-E4B-it.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
gemma-4-E4B-it.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
gemma-4-E4B-it.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
gemma-4-E4B-it.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
gemma-4-E4B-it.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
gemma-4-E4B-it.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
gemma-4-E4B-it.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
gemma-4-E4B-it.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
gemma-4-E4B-it.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
gemma-4-E4B-it.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b28090d97b26dab680df81aa90340e794b6cacf43bdb2757825d42f8e79d8c6
|
| 3 |
+
size 15053096192
|
gemma-4-E4B-it.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55b6b9e8691d97d9ac4d518022ce2097be8b8f84614932ad432ccaf0048b7804
|
| 3 |
+
size 15053096192
|
gemma-4-E4B-it.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7a2998d6368a25440bd23e75fbf3d54335db29aa1d663763272066526ec58ea
|
| 3 |
+
size 4401321216
|
gemma-4-E4B-it.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b266e20c2919b3bf70f3b6fbfe3fa401c07c9e3e747ff420ccf8d880f174633c
|
| 3 |
+
size 5021281536
|
gemma-4-E4B-it.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74a05fe29f92ed5ed9b173550fb0d506aab2c3c0b22a2ea33c21d913cbb6857e
|
| 3 |
+
size 4850396416
|
gemma-4-E4B-it.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76e800b3824eb691ab54bfa0b75315e2a86a9ee8c0c6e4898858fc6c3d371275
|
| 3 |
+
size 4654638336
|
gemma-4-E4B-it.Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b22c5a9e69a51fcbc11dc96cafa22e9a3b41d0a1508b2dcc548854741ff4af00
|
| 3 |
+
size 5185930496
|
gemma-4-E4B-it.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7655c98c63cc13a98c48a971b78afd2860cfdbfa41f9ef34e6f7ad0c6957b38b
|
| 3 |
+
size 5335291136
|
gemma-4-E4B-it.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d621f95de13d3fabc20dfae281f9c6abd561a105c496bd7365abb197c830c8d
|
| 3 |
+
size 5202969856
|
gemma-4-E4B-it.Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:029005d0e65fa416989110ff72995d5cdf90cb9ed9d9afcb08545271e5c0f1a6
|
| 3 |
+
size 5685970176
|
gemma-4-E4B-it.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28b640eae43864081d2a3254adc0081c3e297ee85f6b9f9d1e5670e3156e62e8
|
| 3 |
+
size 5762913536
|
gemma-4-E4B-it.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3547f258a57b18e9216a237e9e2183f9817736db2c5cbc110c3005b10a66574d
|
| 3 |
+
size 5685970176
|
gemma-4-E4B-it.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c269334e90a226ae53d6abb36da1c09fe05bf08f9cf13f353aa75487da385350
|
| 3 |
+
size 6217262336
|
gemma-4-E4B-it.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6488a1c34899e84b5c563b17b136ce3270d8853be5c1994c3b257e373b0f64c
|
| 3 |
+
size 8005436672
|
gemma-4-E4B-it.mmproj-bf16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:305fc748d45cd1960c656165cb2588848431d7866328877285ea28863f19c137
|
| 3 |
+
size 991552256
|
gemma-4-E4B-it.mmproj-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:305fc748d45cd1960c656165cb2588848431d7866328877285ea28863f19c137
|
| 3 |
+
size 991552256
|
gemma-4-E4B-it.mmproj-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9014f811ac891d1dc29d0eedc46c2a285c13e43eb388c7b07df0e8c8e901348a
|
| 3 |
+
size 559874816
|