Downloads · 30 days
140
17% of all-time downloads
rajofearth/lfm-ucf-gguf
lfm-ucf-gguf is a image-to-text model from rajofearth. Use it when you need a caption or text from an image. The card lists the license as apache-2.0.
Base model: LiquidAI/LFM2.5-VL-1.6B fine-tuned on the UCF Crime dataset for surveillance crime detection.
Downloads · 30 days
140
17% of all-time downloads
All-time downloads
819
Public
Repo size
3.2 GB
Likes
1
Public
Click a slice to open those files.
.gguf1.6 GB · 100%
From the Hugging Face model README
Base model: LiquidAI/LFM2.5-VL-1.6B fine-tuned on the UCF Crime dataset for surveillance crime detection.
Quantized GGUF files for fast inference with llama.cpp / Ollama / LM Studio — derived from rajofearth/lfm-ucf-unsloth.
🔓 Training notebook (free Colab): Open in Colab — see exactly how this model was trained and exported.
Fine-tuned using Unsloth on ~26k surveillance images from the UCF Crime dataset across 15 categories:
Abuse · Arrest · Arson · Assault · Burglary · Explosion · Fighting · Robbery · Shooting · Shoplifting · Stealing · Vandalism · Road Accident · Normal
The model analyzes surveillance images and outputs structured JSON:
{
"isHarm": true,
"descriptionIfHarm": "The image depicts a physical altercation."
}
When no harmful activity is detected:
{
"isHarm": false
}
⚠️ Output format note: Always include a system prompt explicitly requesting JSON output — the model is trained toward it but won't default to that format without instruction.
./llama-cli -m LFM2.5-VL-1.6B.Q4_K_M.gguf \
--image your_surveillance_image.jpg \
-p "Analyze this surveillance image and respond ONLY in JSON: {\"isHarm\": true/false, \"descriptionIfHarm\": \"reason if harmful, else omit\"}." \
--temp 0.1
# Create a Modelfile
cat > Modelfile << 'EOF'
FROM ./LFM2.5-VL-1.6B.Q4_K_M.gguf
SYSTEM "You are a surveillance analysis assistant. Analyze images for harmful or criminal activity. Always respond in strict JSON: {\"isHarm\": true/false, \"descriptionIfHarm\": \"brief description if harmful, else omit\"}."
EOF
ollama create lfm-ucf -f Modelfile
ollama run lfm-ucf
Note: Vision GGUF support for this architecture is still experimental in llama.cpp and Ollama. Results may vary — the LoRA version via Unsloth/Transformers is more reliable for production use.
| Model | Accuracy (5,200 samples) |
|---|---|
| Base model (untrained) | 35.2% |
| This model (fine-tuned) | 44.8% |

+9.6 percentage point improvement on UCF Crime CCTV imagery. Evaluated using an LLM judge on a held-out test set.
The full pipeline — training, evaluation, and GGUF export — is available as a free public Colab notebook:
No paid GPU required. Runs on a free T4.
| Resource | Link |
|---|---|
| Base model | LiquidAI/LFM2.5-VL-1.6B |
| LoRA adapters | rajofearth/lfm-ucf-unsloth |
| Training notebook | Google Colab |
| Dataset | tanzzpatil/ucf-crime-small |
Developed by: rajofearth · Created with Unsloth + Google Colab (free tier).