Instructions to use Janeodum/tsaro-e4b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Janeodum/tsaro-e4b-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Janeodum/tsaro-e4b-gguf", filename="tsaro-e4b-q3_k_m.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Janeodum/tsaro-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 Janeodum/tsaro-e4b-gguf:Q3_K_M # Run inference directly in the terminal: llama cli -hf Janeodum/tsaro-e4b-gguf:Q3_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Janeodum/tsaro-e4b-gguf:Q3_K_M # Run inference directly in the terminal: llama cli -hf Janeodum/tsaro-e4b-gguf:Q3_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 Janeodum/tsaro-e4b-gguf:Q3_K_M # Run inference directly in the terminal: ./llama-cli -hf Janeodum/tsaro-e4b-gguf:Q3_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 Janeodum/tsaro-e4b-gguf:Q3_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Janeodum/tsaro-e4b-gguf:Q3_K_M
Use Docker
docker model run hf.co/Janeodum/tsaro-e4b-gguf:Q3_K_M
- LM Studio
- Jan
- Ollama
How to use Janeodum/tsaro-e4b-gguf with Ollama:
ollama run hf.co/Janeodum/tsaro-e4b-gguf:Q3_K_M
- Unsloth Studio
How to use Janeodum/tsaro-e4b-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 Janeodum/tsaro-e4b-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 Janeodum/tsaro-e4b-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Janeodum/tsaro-e4b-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Janeodum/tsaro-e4b-gguf with Docker Model Runner:
docker model run hf.co/Janeodum/tsaro-e4b-gguf:Q3_K_M
- Lemonade
How to use Janeodum/tsaro-e4b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Janeodum/tsaro-e4b-gguf:Q3_K_M
Run and chat with the model
lemonade run user.tsaro-e4b-gguf-Q3_K_M
List all available models
lemonade list
Tsaro E4B โ Multilingual Threat Extraction
Fine-tuned Gemma 4 E4B for structured threat extraction from community security reports in Hausa, Nigerian Pidgin, and English.
Part of Tsaro, a community early-warning system for northern Nigeria.
Available quantizations
| File | Size | Recommended for |
|---|---|---|
| tsaro-e4b-q4_k_m.gguf | ~5.0 GB | Primary โ best quality |
| tsaro-e4b-q3_k_m.gguf | ~4.85 GB | Minor size savings |
Both require ~6-7 GB phone RAM to run.
Use with Cactus (React Native)
import { CactusLM } from 'cactus-react-native';
const lm = await CactusLM.init({
modelUrl: 'https://huggingface.co/Janeodum/tsaro-e4b-gguf/resolve/main/tsaro-e4b-q4_k_m.gguf',
contextSize: 2048,
});
Use with llama.cpp
./llama-cli -m tsaro-e4b-q4_k_m.gguf -p "your report here"
System prompt
You are Tsaro, a community security report analyzer for northern Nigeria.
Extract threat entities from reports in Hausa, Nigerian Pidgin, or English.
Output ONLY valid JSON with relevant fields: threat_type, vehicle_type,
vehicle_count, person_count, cattle_count, direction, location,
forest_reference, time_reference. Omit fields that are not mentioned.
Training
- Base: google/gemma-4-E4B-it
- Framework: Unsloth
- Data: 35,512 multilingual examples (Hausa, Pidgin, English)
- LoRA r=16 alpha=16, 2 epochs, lr=2e-4 cosine
License
Inherits Gemma Terms of Use: https://ai.google.dev/gemma/terms
- Downloads last month
- 11
Hardware compatibility
Log In to add your hardware
3-bit
4-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support