Instructions to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Use Docker
docker model run hf.co/yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
- Ollama
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with Ollama:
ollama run hf.co/yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with Docker Model Runner:
docker model run hf.co/yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
- Lemonade
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-e2b-yemeni-arabic-assistant-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:# Run inference directly in the terminal:
llama cli -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:# Run inference directly in the terminal:
./build/bin/llama cli -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Use Docker
docker model run hf.co/yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:Gemma 4 E2B Yemeni Arabic Assistant GGUF
gemma-4-e2b-yemeni-arabic-assistant-GGUF provides GGUF builds of a Gemma 4 E2B Yemeni Arabic assistant model for local inference with llama.cpp-compatible runtimes.
The model is adapted for broad Yemeni Arabic responses. It is intended to answer, rewrite, and translate text using Yemeni-style Arabic rather than defaulting to formal Modern Standard Arabic.
Yemeni Arabic is underrepresented in public LLM resources. This release is intended to support practical local inference and research experimentation around low-resource Yemeni Arabic dialect adaptation.
Model Details
- Model repo:
yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF - Base model:
unsloth/gemma-4-E2B-it - Developer: Loay Amin
- Organization: Yemeni AI Lab
- Format: GGUF
- Runtime target: llama.cpp-compatible inference
- Language: Arabic
- Dialect focus: Broad Yemeni Arabic
- Task type: Text generation / assistant responses / dialect rewriting
Intended Use
This model is intended for:
- Yemeni Arabic assistant responses
- Yemeni dialect rewriting
- Translation or adaptation into Yemeni Arabic
- Short localized Arabic replies
- Yemeni vocabulary and expression experiments
- Local inference on consumer hardware
- Research on low-resource Arabic dialect adaptation
Example use cases:
User: ุชุฑุฌู
ูููุฌุฉ ุงููู
ููุฉ: I am tired today and I do not want to go out.
Assistant: ุฃูุง ุชุนุจุงู ุงูููู
ูู
ุง ุงุดุชู ุฃุฎุฑุฌ.
User: ุงูุชุจูุง ุจุทุฑููุฉ ูู
ููุฉ ุฃุจุณุท: ูุง ุฃุฑูุฏ ุฃู ุฃุชููู
ุนู ุงูู
ูุถูุน ุงูุขู.
Assistant: ู
ุง ุงุดุชู ุฃุชููู
ุนู ุงูู
ูุถูุน ุฐูุญูู.
Recommended Prompt
Use a short system prompt that controls assistant behavior:
ุฃูุช ู
ุณุงุนุฏ ูู
ูู ุฐูู ูู
ุฎุชุตุฑ.
ุฌุงูุจ ุจุงูููุฌุฉ ุงููู
ููุฉ ุงูุทุจูุนูุฉ.
ูุง ุชุถู ุชุญูุฉ ุฅูุง ุฅุฐุง ุงูู
ุณุชุฎุฏู
ุจุฏุฃ ุจุชุญูุฉ.
ูุง ุชุฎุชู
ุจุณุคุงู ุฃู ุนุฑุถ ู
ุณุงุนุฏุฉ.
ูุง ุชุถู ุฑุฃูู ุฅูุง ุฅุฐุง ุงูู
ุณุชุฎุฏู
ุทูุจ ุฑุฃูู.
ูู ุงูุชุฑุฌู
ุฉ ุฃู ุฅุนุงุฏุฉ ุงูุตูุงุบุฉ: ุฃุนุทู ุงููุต ููุท ุจุฏูู ุดุฑุญ.
For translation-only tasks:
ุชุฑุฌู
ูููุฌุฉ ุงููู
ููุฉ ููุท. ูุง ุชุถู ู
ูุฏู
ุฉ ููุง ุดุฑุญ.
Recommended Inference Settings
Suggested settings:
temperature: 0.3 - 0.5
top_p: 0.85 - 0.9
top_k: 40
repeat_penalty: 1.08 - 1.12
max_tokens: 160 - 256
For translation or rewriting:
temperature: 0.2 - 0.3
max_tokens: 120 - 180
If the model becomes too verbose, reduce max_tokens first.
Usage with llama.cpp
Download one GGUF file from the repository, then run it with a llama.cpp-compatible build:
llama-cli \
-m gemma-4-e2b-yemeni-arabic-assistant.Q4_K.gguf \
-cnv \
-p "ุฃูุช ู
ุณุงุนุฏ ูู
ูู ุฐูู ูู
ุฎุชุตุฑ. ุฌุงูุจ ุจุงูููุฌุฉ ุงููู
ููุฉ ุงูุทุจูุนูุฉ."
For a direct translation prompt:
llama-cli \
-m gemma-4-e2b-yemeni-arabic-assistant.Q4_K.gguf \
-p "ุชุฑุฌู
ูููุฌุฉ ุงููู
ููุฉ ููุท. ูุง ุชุถู ู
ูุฏู
ุฉ ููุง ุดุฑุญ.\n\nุงููุต: I am tired today and I do not want to go out."
Different llama.cpp builds may use slightly different flags. If your runtime supports Gemma chat templates, use the model's chat template rather than a hand-written prompt format.
Usage with llama-cpp-python
from llama_cpp import Llama
llm = Llama(
model_path="gemma-4-e2b-yemeni-arabic-assistant.Q4_K.gguf",
n_ctx=1024,
n_gpu_layers=-1,
)
prompt = """ุฃูุช ู
ุณุงุนุฏ ูู
ูู ุฐูู ูู
ุฎุชุตุฑ.
ุฌุงูุจ ุจุงูููุฌุฉ ุงููู
ููุฉ ุงูุทุจูุนูุฉ.
ูุง ุชุถู ุชุญูุฉ ุฅูุง ุฅุฐุง ุงูู
ุณุชุฎุฏู
ุจุฏุฃ ุจุชุญูุฉ.
ูุง ุชุฎุชู
ุจุณุคุงู ุฃู ุนุฑุถ ู
ุณุงุนุฏุฉ.
ุงูู
ุณุชุฎุฏู
: ุชุฑุฌู
ูููุฌุฉ ุงููู
ููุฉ: I am tired today and I do not want to go out.
ุงูู
ุณุงุนุฏ:"""
out = llm(
prompt,
max_tokens=160,
temperature=0.3,
top_p=0.9,
repeat_penalty=1.1,
)
print(out["choices"][0]["text"].strip())
Training Data Summary
The source adapter was trained on 19,609 cleaned Yemeni Arabic assistant-style samples.
The dataset was built from a mixture of locally collected and generated resources, including:
- Yemeni social-media style text collected from public/community sources
- Yemeni examples derived from Arabic dialect identification data
- Yemeni vocabulary and expression references
- Local dictionary-style resources
- Grounded teacher-model rewrites and expansions
- Filtered task examples for translation, rewriting, Q&A, reasoning, and calculations
The final training file was cleaned with rule-based and LLM-assisted review passes. The cleaning focused on reducing:
- Non-target dialect leakage such as Gulf/Egyptian expressions
- Overused assistant phrases and service endings
- Excessive greetings and formal closings
- Repetitive openings such as overuse of "ูุงููู" and "ุดูู"
- Long, generic explanations where a direct answer was better
- Obvious hallucinated or malformed Yemeni expressions
- Known unwanted terms from the current data cleaning pass
The final cleaned dataset used for the source fine-tune contained:
- 19,609 rows
- Average assistant response length around 150 characters
- Maximum assistant response length capped at 360 characters
Notes on Yemeni Arabic
Yemeni Arabic is not one dialect. It includes substantial regional variation across Sana'a, Taiz, Aden, Ibb, Hadramout, Tihama, Dhamar, Lahj, Al-Bayda, Marib, and other areas. This model targets a broad, practical Yemeni style for assistant use rather than a single city-specific dialect.
The dataset intentionally avoids some expressions that appeared in generated data but were judged unsuitable for the target style, including examples such as non-target vocatives, Gulf-like fillers, and malformed Yemeni phrases.
Limitations
This is an experimental dialect adaptation model.
Known limitations:
- Quantized GGUF files may behave differently from the original adapter, especially at lower bitrates.
- Very small quantizations can reduce dialect naturalness, reasoning quality, and factual consistency.
- The model may still produce Modern Standard Arabic on technical, formal, or unfamiliar topics.
- The base instruction model may still show polite assistant behavior unless the prompt and output length are controlled.
- The model may occasionally overuse common openings such as "ูุงููู" or "ุดูู".
- It may hallucinate factual or cultural information if used without retrieval or source grounding.
- The training data includes synthetic and teacher-assisted samples, so not every phrase should be treated as corpus-attested Yemeni speech.
- It is not a legal, medical, financial, or religious authority.
- It does not represent every Yemeni region equally.
Ethical and Privacy Considerations
The training work used collected and generated Arabic text for dialect adaptation. Public or community-sourced social-media text can contain names, opinions, jokes, and local references. Cleaning passes were applied to reduce low-quality generations and unwanted assistant behavior, but users should not assume the data pipeline guarantees perfect anonymization or factual accuracy.
This model should not be used to impersonate private individuals, generate harassment, or make high-stakes decisions about people.
Citation
If you use this model, cite it as:
@misc{amin2026gemma4e2byemeniarabicassistantgguf,
title={Gemma 4 E2B Yemeni Arabic Assistant GGUF},
author={Amin, Loay},
year={2026},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF}}
}
Developer
Developed by Loay Amin under Yemeni AI Lab.
This project is part of an effort to improve AI support for Yemeni Arabic.
- Downloads last month
- 2,167
1-bit
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF:# Run inference directly in the terminal: llama cli -hf yemeni-ai-lab/gemma-4-e2b-yemeni-arabic-assistant-GGUF: