CoolFace
Modelpublic

Kenntkim66/snowclaw-gemma4-e2b-ft-gguf

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes42downloads
Model Card

SnowClaw — Fine-tuned Gemma 4 E2B for Privacy-First Tool Use

A fine-tuned Gemma 4 E2B model optimized for on-device AI tool use in the SnowClaw desktop agent. Achieves 100% tool use accuracy (7/7) on our evaluation set.

Model Details

PropertyValue
Base Modelgoogle/gemma-4-E2B-it (Gemma 4 E2B Instruct)
MethodLoRA (rank=64, alpha=64) via Unsloth
Training Data2,000 synthetic tool-use examples
Epochs15
Final Loss0.040
HardwareNVIDIA RTX 3090 (24GB VRAM)
QuantizationQ4KM (GGUF)
VisionMultimodal — includes mmproj for image understanding

Files

FileSizeDescription
gemma-4-e2b-it.Q4_K_M.gguf3.2 GBMain model (Q4KM quantized)
gemma-4-e2b-it.BF16-mmproj.gguf942 MBVision projector (multimodal image encoder)
Modelfile205 BOllama registration file

Intended Use

SnowClaw is a privacy-first desktop AI agent that runs entirely on-device. This model is fine-tuned for:

  • —Tool Use: Executing system commands, browsing files, managing contacts/calendar
  • —Code Generation: Writing and executing Python/AppleScript in a sandboxed environment
  • —Screenshot Analysis: Understanding screen content via vision capabilities
  • —Privacy: All processing stays local — zero data leaves the device

How to Use

With Ollama

bash
# Download the GGUF files, then register with Ollama:
ollama create snowclaw -f Modelfile

# Run
ollama run snowclaw

With llama.cpp

bash
# Text only
./llama-cli -m gemma-4-e2b-it.Q4_K_M.gguf -p "List files in my Downloads folder"

# With vision (multimodal)
./llama-mtmd-cli \
  -m gemma-4-e2b-it.Q4_K_M.gguf \
  --mmproj gemma-4-e2b-it.BF16-mmproj.gguf

Training Details

LoRA Configuration

json
{
  "r": 64,
  "lora_alpha": 64,
  "target_modules": ["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"],
  "lora_dropout": 0,
  "task_type": "CAUSAL_LM"
}

Training Curve

StepLoss
108.147
201.074
300.469
1000.099
5000.043
10000.038
18750.040

Dataset

2,000 synthetic examples covering:

  • —System tool invocations (file management, process control)
  • —Contact and calendar queries
  • —Device information retrieval
  • —Multi-step task planning
  • —Safety-aware refusals

Evaluation

MetricScore
Tool Use Accuracy7/7 (100%)
Correct Tool Selection7/7
Parameter Extraction7/7

Part of SnowClaw

SnowClaw is a privacy-first AI agent built for the Google Gemma Hackathon. It features:

  • —On-device inference via bundled Ollama
  • —Dual security modes: Paranoid (fully offline) / Smart Search (local + anonymous SearXNG)
  • —E2E encrypted communication between desktop and mobile
  • —Hardware-aware model selection (auto-detects CPU/GPU/RAM)

Author

Kennt Kim — Calida Lab

License

Apache 2.0 (following Gemma's license terms)