Instructions to use safecircleai/horizon-edge-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use safecircleai/horizon-edge-4b with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli litert-lm run \ --from-huggingface-repo=safecircleai/horizon-edge-4b \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
Horizon Edge 4B β On-Device Child Safety Risk Detection
Horizon Edge 4B is a fine-tuned Gemma 4 E4B model packaged in LiteRT-LM format. It delivers higher accuracy than Horizon Edge 2B at a moderate size increase (~3.7 GB), making it the recommended edge choice for devices with 6 GB+ RAM.
β οΈ License: SafeCircle Research License (SRL-1.0). Commercial use prohibited without written permission. Contact legal@safecircle.tech.
Available Variants
| File | Target | Optimized For |
|---|---|---|
horizon-edge-e4b.litertlm |
General | CPU/GPU cross-platform |
horizon-edge-e4b_Google_Tensor_G5.litertlm |
Google Tensor G5 | Pixel 10 |
horizon-edge-e4b_intel_LNL.litertlm |
Intel Lunar Lake | Ultra 200V laptops |
horizon-edge-e4b_intel_PTL.litertlm |
Intel Panther Lake | Core Ultra 300 |
horizon-edge-e4b_qualcomm_qcs8275.litertlm |
Qualcomm QCS8275 | Dragonwing IQ8 (NPU) |
horizon-edge-e4b_qualcomm_sm8750.litertlm |
Qualcomm SM8750 | Snapdragon 8 Elite |
horizon-edge-e4b-web.litertlm |
Web | WebGPU browsers |
All variants share the same fine-tuned weights; they differ only in hardware-specific compilation.
Model Details
| Property | Value |
|---|---|
| Base model | google/gemma-4-E4B-it |
| Fine-tuning | QLoRA β rank 128, alpha 256, all projection layers |
| Training data | 1.6M synthetic conversations across 8 categories |
| Dataset | safecircleai/horizon-training-data |
| Hardware | NVIDIA H100 NVL (94 GB) |
| Training steps | 15,000 |
| Format | LiteRT-LM (.litertlm) |
| Model size | ~3.7 GB |
Risk Categories
| Category | Description |
|---|---|
grooming |
Trust building, boundary testing, secrecy requests |
bullying |
Harassment, threats, cyberbullying |
sexual_content |
Explicit messages, inappropriate requests |
isolation |
Controlling behavior, network isolation |
personal_info |
Requests for identifying information |
platform_migration |
Moving to less monitored platforms |
threats |
Violent threats, dangerous challenges |
benign |
Safe, normal conversation |
Usage
LiteRT-LM CLI
uv tool install litert-lm
litert-lm run horizon-edge-e4b.litertlm \
--prompt "Analyze this conversation: Child: hey, want to meet up? Don't tell your parents."
Android / iOS β LiteRT-LM SDK
Load the .litertlm file with the LiteRT-LM SDK. The model includes the tokenizer, system prompt, and chat template β no additional configuration required.
Python
from litert_lm import LiteRTLM
model = LiteRTLM("horizon-edge-e4b.litertlm")
result = model.generate(
"Analyze this conversation:\nChild: hey\nOther: how old are you? where do you live?"
)
print(result)
Deployment Pattern
Incoming message
β
βΌ
Horizon Edge 4B (on-device, LiteRT-LM)
β
βββ safe βββΊ No action
β
βββ risk βββΊ Horizon Full (cloud API, full severity assessment)
β
βΌ
Human moderator review
For the full server-side model, see safecircleai/horizon-full. For the smaller 2B variant, see safecircleai/horizon-edge-2b.
Citation
@misc{horizon2026,
title={Horizon: Child Safety Risk Detection via Fine-tuned LLMs},
author={SafeCircle},
year={2026},
url={https://huggingface.co/safecircleai/horizon-edge-4b}
}
- Downloads last month
- 18