Instructions to use tenzro/cellgemma-e4b-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 tenzro/cellgemma-e4b-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 tenzro/cellgemma-e4b-gguf:Q8_0 # Run inference directly in the terminal: llama cli -hf tenzro/cellgemma-e4b-gguf:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tenzro/cellgemma-e4b-gguf:Q8_0 # Run inference directly in the terminal: llama cli -hf tenzro/cellgemma-e4b-gguf:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tenzro/cellgemma-e4b-gguf:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf tenzro/cellgemma-e4b-gguf:Q8_0
Use Docker
docker model run hf.co/tenzro/cellgemma-e4b-gguf:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use tenzro/cellgemma-e4b-gguf with Ollama:
ollama run hf.co/tenzro/cellgemma-e4b-gguf:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use tenzro/cellgemma-e4b-gguf with Docker Model Runner:
docker model run hf.co/tenzro/cellgemma-e4b-gguf:Q8_0
- Lemonade
How to use tenzro/cellgemma-e4b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tenzro/cellgemma-e4b-gguf:Q8_0
Run and chat with the model
lemonade run user.cellgemma-e4b-gguf-Q8_0
List all available models
lemonade list
- Atomic Chat
How to use from
llama.cppInstall from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf tenzro/cellgemma-e4b-gguf:Q8_0# Run inference directly in the terminal:
llama cli -hf tenzro/cellgemma-e4b-gguf:Q8_0Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf tenzro/cellgemma-e4b-gguf:Q8_0# Run inference directly in the terminal:
./build/bin/llama cli -hf tenzro/cellgemma-e4b-gguf:Q8_0Use Docker
docker model run hf.co/tenzro/cellgemma-e4b-gguf:Q8_0Quick Links
CellGemma E4B GGUF (Q8_0)
GGUF conversion of google/cellgemma-e4b (Apache-2.0), a Gemma 4 E4B fine-tune for single-cell perturbation prediction. Research use only, not for clinical decisions.
File: cellgemma-e4b-Q8_0.gguf (8,626,014,016 bytes, sha256 44d81da38ecc244189288ff2d643c58a99d7a72f347cd92a4d3e558ca32df207).
Conversion notes (two things differ from a plain conversion)
- The ~20K gene symbols are Hugging Face added tokens (no BPE merges produce them). convert_hf_to_gguf.py writes them as NORMAL, so llama.cpp splits "MYC" and numbers differently from the reference and the model sees a different prompt. We mark them USER_DEFINED in the GGUF so they match as whole strings, like the HF tokenizer. Result: prompt token ids are identical to transformers for both card examples (4128 and 4484 tokens).
- A plain Q8_0 of this model generates only control tokens (observed with llama.cpp b9073, CPU). Bisecting showed the Q8_0 FFN tensors of layers 0-4 cause it; keeping those 15 tensors in F16 fixes it (+0.37 GB). All other weights are Q8_0. The chat template is embedded and renders the card's exact wrapper without a thinking block.
Check against Google's transformers reference (greedy, 256 new tokens, via /v1/chat/completions)
| example | prompt ids equal | same token at position (of 256) | common prefix | top-50 +/-gene overlap |
|---|---|---|---|---|
| tahoe | yes (4128) | 172 | 15 | 50/50 |
| k562 | yes (4484) | 164 | 65 | 45/50 |
| Differences are order swaps between neighbouring genes and normal quantization drift; the gene sets agree. |
Sampling per the card: temperature 0.7, max 8192 new tokens, no system prompt, no thinking. Stage 2 (ExpressionDecoder) is unchanged: see stage2_decode.py.
- Downloads last month
- 1
Hardware compatibility
Log In to add your hardware
8-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf tenzro/cellgemma-e4b-gguf:Q8_0# Run inference directly in the terminal: llama cli -hf tenzro/cellgemma-e4b-gguf:Q8_0