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
| pipeline_tag: image-text-to-text | |
| language: | |
| - multilingual | |
| library_name: transformers | |
| tags: | |
| - llm | |
| - image-text-to-text | |
| - neuralnode | |
| - multilingual | |
| - horus | |
| - tokenai | |
| <div align="center"> | |
| <h1><b style="font-size: 1.5em;">Horus Hiero 4B Mini</b></h1> | |
| </div> | |
| <p align="center"> | |
| <img src="media/Horus%20Hiero.png" alt="Horus Hiero 4B Mini" width="600"/> | |
| </p> | |
| <p align="center"> | |
| <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>150 Languages + Hieroglyphic</b>. To ensure accessibility and efficient deployment across different hardware setups, the model is also available in multiple GGUF variants. | |
| </p> | |
| ## Model Overview | |
| **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. | |
| ### Leading Model in the Middle East | |
| <img src="media/middle%20east%20top%20models.png" alt="Middle East Top Models" width="100%"/> | |
| <br> | |
| ### 150 Languages + Hieroglyphic | |
| <img src="media/languages.png" alt="Languages" width="100%"/> | |
| <br> | |
| ### Example: Hieroglyph Translation | |
| <img src="media/mode%20lchat.png" alt="Translation Example" width="100%"/> | |
| ## Model Variants | |
| The following quantized versions are available for different deployment scenarios: | |
| | Variant | Format | Size | Best For | | |
| | :--- | :--- | :--- | :--- | | |
| | **[Full 16-bit](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B)** | Safetensors | ~8.0 GB | Maximum quality, GPU inference | | |
| | **[GGUF Repo](https://huggingface.co/tokenaii/Horus-Hiero-Mini-4B-GGUF)** | GGUF | Various | All quantized variants (Q2_K through Q8_0) | | |
| | **[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 | | |
| | **[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 | | |
| | **[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 | | |
| | **[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 | | |
| ## Technical Specifications | |
| | Feature | Specification | | |
| | :--- | :--- | | |
| | **Number of Parameters** | 4 Billion | | |
| | **Input Modalities** | Text, Image, Video | | |
| | **Context Length** | 524,288 tokens (512K) natively | | |
| | **Training** | Multi-Token Prediction (MTP), strong-to-weak distillation | | |
| | **Thinking Mode** | Enabled (toggleable via `enable_thinking` parameter) | | |
| ## Benchmark Results | |
| | Benchmark | Score | | |
| | :--- | :---: | | |
| | **MMLU-Pro** | **74.2%** | | |
| | **GPQA Diamond** | **72.3%** | | |
| | **HumanEval** | **68.2%** | | |
| | **LiveCodeBench** | **51.4%** | | |
| | **MATH** | **45.8%** | | |
| ## Quick Start | |
| **Using NeuralNode (Recommended)** | |
| The easiest way to use Horus models is with the NeuralNode framework: | |
| ```python | |
| import neuralnode as nn | |
| # For GGUF models (recommended): | |
| 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": "Translate this hieroglyph: ππππ"} | |
| ]) | |
| print(response.content) | |
| ``` | |
| <br><p align="center"><a href="https://tokenai.llc/projects/horus-hiero"><b>Create your own code to use Horus Hiero β</b></a></p> | |
| ## 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.llc](https://tokenai.llc/) | |
| - **Hugging Face:** [tokenaii](https://huggingface.co/tokenaii) | |
| - **GitHub:** [tokenaii](https://github.com/tokenaii) | |
| - **LinkedIn:** [TokenAI](https://www.linkedin.com/company/tokenaii) | |
| - **Location:** Alexandria, Egypt | |
| ## Citation | |
| If you use Horus Hiero 4B Mini in your research or applications, please cite it as: | |
| ```bibtex | |
| @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} | |
| } | |
| ``` |