Image-Text-to-Text
Transformers
Safetensors
multilingual
qwen3_5_text
text-generation
llm
neuralnode
horus
tokenai
conversational
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") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tokenaii/Horus-Hiero-Mini-4B") model = AutoModelForCausalLM.from_pretrained("tokenaii/Horus-Hiero-Mini-4B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - 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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokenaii/Horus-Hiero-Mini-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokenaii/Horus-Hiero-Mini-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokenaii/Horus-Hiero-Mini-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - 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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,33 +1,103 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
##
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: image-text-to-text
|
| 3 |
+
language:
|
| 4 |
+
- multilingual
|
| 5 |
+
library_name: transformers
|
| 6 |
+
tags:
|
| 7 |
+
- llm
|
| 8 |
+
- image-text-to-text
|
| 9 |
+
- neuralnode
|
| 10 |
+
- multilingual
|
| 11 |
+
- horus
|
| 12 |
+
- tokenai
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<div align="center">
|
| 16 |
+
<h1><b style="font-size: 1.5em;">Horus Hiero 4B Mini</b></h1>
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
<p align="center">
|
| 20 |
+
<img src="media/Horus%20Hiero.png" alt="Horus Hiero 4B Mini" width="600"/>
|
| 21 |
+
</p>
|
| 22 |
+
|
| 23 |
+
<p align="center">
|
| 24 |
+
<b>Horus Hiero 4B Mini</b> is an advanced language model developed by <b>TokenAI</b>, 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 <b>201 languages</b>. To ensure accessibility and efficient deployment across different hardware setups, the model will also be available in multiple GGUF variants.
|
| 25 |
+
</p>
|
| 26 |
+
<br>
|
| 27 |
+
|
| 28 |
+
## Model Overview
|
| 29 |
+
**Horus Hiero 4B Mini** is a 4-billion parameter language model built on top of the robust [Qwen/Qwen3.5-4B](https://huggingface.co/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.
|
| 30 |
+
## Model Variants
|
| 31 |
+
The following quantized versions are available for different deployment scenarios:
|
| 32 |
+
|
| 33 |
+
| Variant | Format | Size | Best For |
|
| 34 |
+
| :--- | :--- | :--- | :--- |
|
| 35 |
+
| **[Full 16-bit](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B)** | Safetensors | ~8.0 GB | Maximum quality, GPU inference |
|
| 36 |
+
| **[Q8_0](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B-GGUF/blob/main/Horus-Hiero-Mini-4B-Q8_0.gguf)** | GGUF | ~4.4 GB | Minimal quality loss |
|
| 37 |
+
| **[Q6_K](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B-GGUF/blob/main/Horus-Hiero-Mini-4B-Q6_K.gguf)** | GGUF | ~3.4 GB | Near-full quality |
|
| 38 |
+
| **[Q4_K_M](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B-GGUF/blob/main/Horus-Hiero-Mini-4B-Q4_K_M.gguf)** | GGUF | ~2.6 GB | Balanced quality/size, CPU+GPU |
|
| 39 |
+
| **[Q2_K](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B-GGUF/blob/main/Horus-Hiero-Mini-4B-Q2_K.gguf)** | GGUF | ~1.8 GB | Maximum compression, lower RAM usage |
|
| 40 |
+
|
| 41 |
+
## Technical Specifications
|
| 42 |
+
|
| 43 |
+
| Feature | Specification |
|
| 44 |
+
| :--- | :--- |
|
| 45 |
+
| **Number of Parameters** | 4 Billion |
|
| 46 |
+
| **Input Modalities** | Text, Image, Video |
|
| 47 |
+
| **Context Length** | 262,144 tokens natively (Extensible up to 1,010,000 tokens) |
|
| 48 |
+
| **Training** | Multi-Token Prediction (MTP), strong-to-weak distillation |
|
| 49 |
+
| **Thinking Mode** | Enabled (toggleable via `enable_thinking` parameter) |
|
| 50 |
+
## Benchmark Comparison
|
| 51 |
+
Performance comparison between **Horus Hiero 9B** and **Horus Hiero 4B Mini** across various rigorous benchmarks:
|
| 52 |
+
|
| 53 |
+
| Benchmark | Horus Hiero 9B | Horus Hiero 4B Mini |
|
| 54 |
+
| :--- | :---: | :---: |
|
| 55 |
+
| **MMLU-Pro** | **82.5** | 79.1 |
|
| 56 |
+
| **GPQA Diamond** | **81.7** | 76.2 |
|
| 57 |
+
| **IFEval** | **91.5** | 89.8 |
|
| 58 |
+
| **LongBench v2** | **55.2** | 50.0 |
|
| 59 |
+
| **LiveCodeBench v6** | **65.6** | 55.8 |
|
| 60 |
+
| **MMMU** | **78.4** | 77.6 |
|
| 61 |
+
| **MathVista (mini)** | **85.7** | 85.1 |
|
| 62 |
+
| **C-Eval** | **88.2** | 85.1 |
|
| 63 |
+
| **MMMU-Pro** | **70.1** | 66.3 |
|
| 64 |
+
| **AI2D_TEST** | **90.2** | 89.6 |
|
| 65 |
+
## Quick Start
|
| 66 |
+
**Using NeuralNode (Recommended)**
|
| 67 |
+
The easiest way to use Horus models is with the NeuralNode framework:
|
| 68 |
+
|
| 69 |
+
```python
|
| 70 |
+
import neuralnode as nn
|
| 71 |
+
|
| 72 |
+
MODEL_ID = "tokenaii/Horus-Hiero-Mini-4B-GGUF/Horus-Hiero-Mini-4B-Q6_K.gguf"
|
| 73 |
+
DEVICE = "cpu" # Change to "cuda" for GPU acceleration
|
| 74 |
+
|
| 75 |
+
# Download and load
|
| 76 |
+
model = nn.HorusModel(MODEL_ID, device=DEVICE).load()
|
| 77 |
+
|
| 78 |
+
# Use immediately
|
| 79 |
+
response = model.chat([{"role": "user", "content": "hi horus im emy"}])
|
| 80 |
+
|
| 81 |
+
print(response.content)
|
| 82 |
+
```
|
| 83 |
+
## About TokenAI & The Horus Family
|
| 84 |
+
**TokenAI** is a non-profit AI startup founded in 2025 by Assem Sabry, located in Alexandria, Egypt.
|
| 85 |
+
|
| 86 |
+
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.
|
| 87 |
+
|
| 88 |
+
### Contact & Community
|
| 89 |
+
- **Website:** [tokenai.cloud](https://tokenai.cloud/)
|
| 90 |
+
- **Hugging Face:** [tokenaii](https://huggingface.co/tokenaii)
|
| 91 |
+
- **GitHub:** [tokenaii](https://github.com/tokenaii)
|
| 92 |
+
- **LinkedIn:** [TokenAI](https://www.linkedin.com/company/tokenaii)
|
| 93 |
+
- **Location:** Alexandria, Egypt
|
| 94 |
+
## Citation
|
| 95 |
+
If you use Horus Hiero 4B Mini in your research or applications, please cite it as:
|
| 96 |
+
```bibtex
|
| 97 |
+
@misc{tokenai_horus_hiero_4b_mini,
|
| 98 |
+
title={Horus Hiero 4B Mini: Advanced Multilingual and Hieroglyphs Language Model},
|
| 99 |
+
author={Assem Sabry and TokenAI},
|
| 100 |
+
year={2026},
|
| 101 |
+
url={https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B}
|
| 102 |
+
}
|
| 103 |
+
```
|