Instructions to use anaspro/Shako-iraqi-4B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anaspro/Shako-iraqi-4B-it with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="anaspro/Shako-iraqi-4B-it") 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 AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("anaspro/Shako-iraqi-4B-it") model = AutoModelForImageTextToText.from_pretrained("anaspro/Shako-iraqi-4B-it") 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 = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use anaspro/Shako-iraqi-4B-it with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anaspro/Shako-iraqi-4B-it" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anaspro/Shako-iraqi-4B-it", "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/anaspro/Shako-iraqi-4B-it
- SGLang
How to use anaspro/Shako-iraqi-4B-it 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 "anaspro/Shako-iraqi-4B-it" \ --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": "anaspro/Shako-iraqi-4B-it", "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 "anaspro/Shako-iraqi-4B-it" \ --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": "anaspro/Shako-iraqi-4B-it", "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" } } ] } ] }' - Unsloth Studio new
How to use anaspro/Shako-iraqi-4B-it with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for anaspro/Shako-iraqi-4B-it to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for anaspro/Shako-iraqi-4B-it to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for anaspro/Shako-iraqi-4B-it to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="anaspro/Shako-iraqi-4B-it", max_seq_length=2048, ) - Docker Model Runner
How to use anaspro/Shako-iraqi-4B-it with Docker Model Runner:
docker model run hf.co/anaspro/Shako-iraqi-4B-it
Shako-n — Advanced Iraqi Dialect Finetuned Model
- Developed by: anaspro
- License: apache-2.0
- Finetuned from model: unsloth/gemma-3n-E4B-it
Shako-n (شكو AI / Shako-n Model) is a specialized Iraqi Arabic LLM designed to produce natural, authentic Iraqi dialect with cultural understanding, humor, and accurate social expressions.
Built on Gemma-3n and optimized using Unsloth, it delivers fast training, high efficiency, and natural Iraqi-style responses for chatbots, assistants, and customer-service applications.
This model accurately understands Iraqi slang, social context, professional tone, and mixed Arabic-English messaging.
🧠 Model Overview
Shako-n specializes in:
- Conversational Iraqi dialect (لهجة عراقية دارجة)
- Real social expressions (ها شكو؟ شنو السالفة؟)
- Polite and professional support responses
- Mixed Arabic–English use
- Understanding Iraqi culture, humor, and tone
- Province-based variations in language
Designed for:
- Iraqi AI chatbots
- Iraqi virtual agents
- Customer-service AI
- Support centers & business tools
- Iraqi content generation
- Research on dialects
🚀 Key Features
✅ 1. Natural Iraqi Dialect
Generates smooth, real-life phrases like:
- “ها حبي شكو ماكو؟”
- “يمّه انت وين؟ صارلك يومين مختفي!”
- “لا حبيبي مو هيچ، السالفة تختلف.”
- “تره الموضوع كله بسيط، خل اوضحلك.”
✅ 2. Formal + Informal Tone Switching
Informal example:
- “هلا بالغالي، شتريد اساعدك؟”
Semi-professional:
- “صديقي العزيز، خليني اشوفلك المشكلة.”
Professional:
- “عزيزي العميل، يرجى تزويدنا بالتفاصيل حتى نكدر نكمل الإجراء.”
✅ 3. Customer Support Quality
Optimized for:
- Troubleshooting
- Step-by-step instructions
- Apology and clarification tone
Example:
- “نعتذر منك على الإزعاج، خل نجرب نعيد تشغيل الخدمة ونشوف يتحسن الوضع.”
✅ 4. Cultural Understanding
Knows Iraqi cultural references:
- “هاي سالفة من أيام البصرة القديمة.”
- “الموصل إلها نكهة خاصة بالحجي.”
📦 Technical Details
| Property | Value |
|---|---|
| Base Model | unsloth/gemma-3n-E4B-it |
| Architecture | Gemma-3n |
| Model Size | 4B parameter class |
| Context Window | ~4096 tokens |
| Training Method | SFT (Supervised Fine-Tuning) |
| Frameworks | Unsloth + TRL |
| Languages | Iraqi Arabic, Arabic (MSA), English |
📚 Training Data
The finetuning dataset was fully customized and included:
1. Iraqi Informal Conversations
- يوميات
- سوالف أصدقاء
- لهجة دارجة سريعة
- كلمات مستعملة بالعراق يوميًا
Example lines used:
- “هسه اجيت، وينكم بَس؟”
- “تره الجو اليوم مطبيعي.”
2. Support / Call-Center Dialogues
- Account issues
- Network problems
- Delivery, orders, complaints
Examples:
- “تدلل، راح اتأكد من حسابك هسه.”
- “نعتذر منك، السيرفر كان عليه ضغط.”
3. Iraqi Cultural Content
Includes:
- المحافظات
- الأمثال
- العادات والتقاليد
- اللهجات الفرعية
Examples:
- “مثل ما يكولون: المايشوف من الغربال اعمى.”
- “هذي أكلة مشهورة بالبصرة اسمها ‘مرق باجلا’.”
4. Mixed Arabic–English
To handle modern chat flow:
- “اوكي حبي دزلي screenshot حتى اشوف.”
- “Restart للراوتر وجرب بعد ٣ دقايق.”
5. JSONL Format
{"conversations":[
{"from": "human", "value": "ها شكو اليوم؟"},
{"from": "gpt", "value": "هلا حبي، الأمور تمام. انت شخبارك؟"}
]}
- Downloads last month
- 4