Instructions to use bowang0911/colgemma-300m-gguf 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 bowang0911/colgemma-300m-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 bowang0911/colgemma-300m-gguf:F16 # Run inference directly in the terminal: llama cli -hf bowang0911/colgemma-300m-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bowang0911/colgemma-300m-gguf:F16 # Run inference directly in the terminal: llama cli -hf bowang0911/colgemma-300m-gguf:F16
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 bowang0911/colgemma-300m-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf bowang0911/colgemma-300m-gguf:F16
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 bowang0911/colgemma-300m-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf bowang0911/colgemma-300m-gguf:F16
Use Docker
docker model run hf.co/bowang0911/colgemma-300m-gguf:F16
- LM Studio
- Jan
- Ollama
How to use bowang0911/colgemma-300m-gguf with Ollama:
ollama run hf.co/bowang0911/colgemma-300m-gguf:F16
- Unsloth Studio
How to use bowang0911/colgemma-300m-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 bowang0911/colgemma-300m-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 bowang0911/colgemma-300m-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bowang0911/colgemma-300m-gguf to start chatting
- Docker Model Runner
How to use bowang0911/colgemma-300m-gguf with Docker Model Runner:
docker model run hf.co/bowang0911/colgemma-300m-gguf:F16
- Lemonade
How to use bowang0911/colgemma-300m-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bowang0911/colgemma-300m-gguf:F16
Run and chat with the model
lemonade run user.colgemma-300m-gguf-F16
List all available models
lemonade list
- Atomic Chat
colgemma-300m-gguf
GGUF conversion of bowang0911/colgemma-300m for use with llama.cpp.
Files
colgemma-300m-q4.ggufβ Gemma3 transformer in GGUF Q4_K_M format (225 MB, recommended)colgemma-300m-f16.ggufβ Gemma3 transformer in GGUF f16 format (584 MB)dense_head.npzβ ColBERT projection layers as numpy arrays (18 MB): 768β3072β768β128
Quality
| Variant | Size | Cosine sim vs PyTorch f32 | Cosine sim vs f16 |
|---|---|---|---|
| f16 | 584 MB | 0.992 | β |
| q4 | 225 MB | 0.991 | 0.9997 |
Usage
Get per-token embeddings from llama.cpp, then apply the dense head:
# Per-token embeddings (768-dim)
llama-embedding -m colgemma-300m-q4.gguf --pooling none -p "your text" --embd-output-format json
import numpy as np
# Load dense head weights
weights = np.load("dense_head.npz")
# Apply projection: 768 -> 3072 -> 768 -> 128
x = token_embeddings # (seq_len, 768) from llama.cpp
x = x @ weights["d1_w"].T
x = x @ weights["d2_w"].T
x = x @ weights["d3_w"].T
# L2 normalize
x = x / np.maximum(np.linalg.norm(x, axis=1, keepdims=True), 1e-12)
- Downloads last month
- 52
Hardware compatibility
Log In to add your hardware
16-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support