Instructions to use tokenaii/Horus-Hiero-Mini-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tokenaii/Horus-Hiero-Mini-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="tokenaii/Horus-Hiero-Mini-4B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tokenaii/Horus-Hiero-Mini-4B", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tokenaii/Horus-Hiero-Mini-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tokenaii/Horus-Hiero-Mini-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokenaii/Horus-Hiero-Mini-4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tokenaii/Horus-Hiero-Mini-4B
- SGLang
How to use tokenaii/Horus-Hiero-Mini-4B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tokenaii/Horus-Hiero-Mini-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokenaii/Horus-Hiero-Mini-4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tokenaii/Horus-Hiero-Mini-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokenaii/Horus-Hiero-Mini-4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tokenaii/Horus-Hiero-Mini-4B with Docker Model Runner:
docker model run hf.co/tokenaii/Horus-Hiero-Mini-4B
Horus Hiero 4B Mini
Horus Hiero 4B Mini is an advanced language model developed by TokenAI, an Egyptian AI startup founded by Assem Sabry. The model specializes in understanding and translating ancient Egyptian Hieroglyphs into various modern human languages. In addition, it is highly multilingual and masters 201 languages. To ensure accessibility and efficient deployment across different hardware setups, the model will also be available in multiple GGUF variants.
Model Overview
Horus Hiero 4B Mini is a 4-billion parameter language model built on top of the robust Qwen/Qwen3.5-4B architecture (or its GGUF equivalent). It is designed to handle extremely long contexts and leverages a sophisticated hybrid attention mechanism to deliver high performance and efficiency.
Model Variants
The following quantized versions are available for different deployment scenarios:
| Variant | Format | Size | Best For |
|---|---|---|---|
| Full 16-bit | Safetensors | ~8.0 GB | Maximum quality, GPU inference |
| Q8_0 | GGUF | ~4.4 GB | Minimal quality loss |
| Q6_K | GGUF | ~3.4 GB | Near-full quality |
| Q4_K_M | GGUF | ~2.6 GB | Balanced quality/size, CPU+GPU |
| Q2_K | GGUF | ~1.8 GB | Maximum compression, lower RAM usage |
Technical Specifications
| Feature | Specification |
|---|---|
| Number of Parameters | 4 Billion |
| Input Modalities | Text, Image, Video |
| Context Length | 262,144 tokens natively (Extensible up to 1,010,000 tokens) |
| Training | Multi-Token Prediction (MTP), strong-to-weak distillation |
| Thinking Mode | Enabled (toggleable via enable_thinking parameter) |
Benchmark Comparison
Performance comparison between Horus Hiero 9B and Horus Hiero 4B Mini across various rigorous benchmarks:
| Benchmark | Horus Hiero 9B | Horus Hiero 4B Mini |
|---|---|---|
| MMLU-Pro | 82.5 | 79.1 |
| GPQA Diamond | 81.7 | 76.2 |
| IFEval | 91.5 | 89.8 |
| LongBench v2 | 55.2 | 50.0 |
| LiveCodeBench v6 | 65.6 | 55.8 |
| MMMU | 78.4 | 77.6 |
| MathVista (mini) | 85.7 | 85.1 |
| C-Eval | 88.2 | 85.1 |
| MMMU-Pro | 70.1 | 66.3 |
| AI2D_TEST | 90.2 | 89.6 |
Quick Start
Using NeuralNode (Recommended)
The easiest way to use Horus models is with the NeuralNode framework:
import neuralnode as nn
MODEL_ID = "tokenaii/Horus-Hiero-Mini-4B-GGUF/Horus-Hiero-Mini-4B-Q6_K.gguf"
DEVICE = "cpu" # Change to "cuda" for GPU acceleration
# Download and load
model = nn.HorusModel(MODEL_ID, device=DEVICE).load()
# Use immediately
response = model.chat([{"role": "user", "content": "hi horus im emy"}])
print(response.content)
About TokenAI & The Horus Family
TokenAI is a non-profit AI startup founded in 2025 by Assem Sabry, located in Alexandria, Egypt.
The Horus family is our line of advanced language models. The series began with Horus 1.0 4B, which achieved remarkable success as the very first language model to be fully trained from scratch in Egypt. Building on that foundation, Horus Hiero brings specialized capabilities in ancient languages while retaining powerful modern multilingual performance.
Contact & Community
- Website: tokenai.cloud
- Hugging Face: tokenaii
- GitHub: tokenaii
- LinkedIn: TokenAI
- Location: Alexandria, Egypt
Citation
If you use Horus Hiero 4B Mini in your research or applications, please cite it as:
@misc{tokenai_horus_hiero_4b_mini,
title={Horus Hiero 4B Mini: Advanced Multilingual and Hieroglyphs Language Model},
author={Assem Sabry and TokenAI},
year={2026},
url={https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B}
}