Instructions to use inception42/Jais-2-8B-Chat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inception42/Jais-2-8B-Chat-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inception42/Jais-2-8B-Chat-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inception42/Jais-2-8B-Chat-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use inception42/Jais-2-8B-Chat-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 inception42/Jais-2-8B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf inception42/Jais-2-8B-Chat-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 inception42/Jais-2-8B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf inception42/Jais-2-8B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf inception42/Jais-2-8B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
Use Docker
docker model run hf.co/inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use inception42/Jais-2-8B-Chat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inception42/Jais-2-8B-Chat-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": "inception42/Jais-2-8B-Chat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
- SGLang
How to use inception42/Jais-2-8B-Chat-GGUF 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 "inception42/Jais-2-8B-Chat-GGUF" \ --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": "inception42/Jais-2-8B-Chat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "inception42/Jais-2-8B-Chat-GGUF" \ --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": "inception42/Jais-2-8B-Chat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use inception42/Jais-2-8B-Chat-GGUF with Ollama:
ollama run hf.co/inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
- Unsloth Studio
How to use inception42/Jais-2-8B-Chat-GGUF 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 inception42/Jais-2-8B-Chat-GGUF 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 inception42/Jais-2-8B-Chat-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for inception42/Jais-2-8B-Chat-GGUF to start chatting
- Docker Model Runner
How to use inception42/Jais-2-8B-Chat-GGUF with Docker Model Runner:
docker model run hf.co/inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
- Lemonade
How to use inception42/Jais-2-8B-Chat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull inception42/Jais-2-8B-Chat-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Jais-2-8B-Chat-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
GGUF Weights for Jais-2-8B-Chat
This repository contains GGUF quantized versions of Jais-2-8B-Chat for use with llama.cpp and compatible inference engines.
Available Formats
| Format | Size | Description |
|---|---|---|
BF16.gguf |
15.4 GiB | bfloat16 - Full precision |
F32.gguf |
30.9 GiB | float32 - Maximum precision |
Q8_0.gguf |
8.1 GiB | 8-bit quantization |
Q6_K.gguf |
6.2 GiB | 6-bit K-quant |
Q5_K_M.gguf |
5.5 GiB | 5-bit K-quant (medium) |
Q5_0.gguf |
5.3 GiB | 5-bit quantization |
Q4_K_M.gguf |
4.8 GiB | 4-bit K-quant (medium) |
Q4_0.gguf |
4.4 GiB | 4-bit quantization |
Q3_K_M.gguf |
3.9 GiB | 3-bit K-quant (medium) |
Q2_K.gguf |
3.1 GiB | 2-bit K-quant |
Usage with llama.cpp
# Basic inference
cd ~/Jais-2-8B-Chat-GGUF/
llama-cli -m Q4_K_M.gguf -p "ما هي عاصمة الإمارات؟"
Notes
- Recommended format:
Q4_K_MorQ8_0for best quality/size tradeoff - K-quant variants (Q3_K_M, Q4_K_M, Q5_K_M): Require
-b nflag when using GPU offloading, with n <= 8.
Original Model Card
Jais-2: The Next Generation of Arabic Frontier LLMs
Model Overview
Jais-2-8B-Chat is a bilingual Arabic–English language model developed by MBZUAI, Inception, and Cerebras. Jais-2-8B-Chat Model is trained from scratch on Arabic and English data and is powered by a custom Arabic-centric vocabulary, it efficiently captures Modern Standard Arabic, regional dialects, and mixed Arabic–English code-switching. The model is openly available under a Apache 2.0 license and also deployed as a fast, production-ready chat experience running on Cerebras hardware. Visit the Jais-2 Web App.
Key Technical Specifications
- Model Developers: MBZUAI, Inception, Cerebras.
- Languages: Arabic (MSA & dialects) and English
- Architecture: Transformer-based, Decoder-only architecture with multi-head self-attention.
- Parameters: 8 Billion
- Context Length: 8,192
- Vocabulary Size: 150,272
- Training Infrastructure: Optimized for Cerebras CS-2 and Condor Galaxy clusters
- Key Design Choices: Rotary Position Embeddings (RoPE), Squared-ReLU activation, custom μP parameterization, and 8:1 filter-to-hidden size ratio.
How to Use the Model
Using Transformers
1. Clone the Jais-2 compatible Transformers fork
# Pull the latest version and ensures you have the most up-to-date features/models and bug fixes.
# Note: could be not as stable as an official PyPI release.
uv pip install git+https://github.com/huggingface/transformers.git
2. Load and Inference on the Model
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the model and tokenizer
model_name = "inceptionai/Jais-2-8B-Chat"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
# Example Arabic prompt
system_prompt = "أجب باللغة العربية بطريقة رسمية ÙˆÙˆØ§Ø¶ØØ©."
user_input = "ما هي عاصمة الإمارات؟"
# Apply chat template (always)
chat_text = tokenizer.apply_chat_template(
[
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_input}
],
tokenize=False,
add_generation_prompt=True
)
# Tokenize and generate
inputs = tokenizer(chat_text, return_tensors="pt").to(model.device)
inputs.pop("token_type_ids", None)
outputs = model.generate(**inputs, max_new_tokens=100, do_sample=False)
# Decode and print
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
#عاصمة الإمارات العربية Ø§Ù„Ù…ØªØØ¯Ø© هي أبوظبي.
Using vLLM
1. Clone the Jais 2–compatible vLLM fork
# Pull the latest version and ensures you have the most up-to-date features/models and bug fixes.
# Note: could be not as stable as an official PyPI release.
uv pip install git+https://github.com/vllm-project/vllm.git
2. Load and Inference on the Model
from vllm import LLM, SamplingParams
# Load model and tokenizer
model_name = "inceptionai/Jais-2-8B-Chat"
llm = LLM(model=model_name, tensor_parallel_size=1)
tokenizer = llm.get_tokenizer()
# Example Arabic prompt
system_prompt = "أجب باللغة العربية بطريقة رسمية ÙˆÙˆØ§Ø¶ØØ©."
user_input = "ما هي عاصمة الإمارات؟"
# Apply chat template (always)
chat_text = tokenizer.apply_chat_template(
[
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_input}
],
tokenize=False,
add_generation_prompt=True
)
# Run generation
sampling_params = SamplingParams(max_tokens=8192, temperature=0)
outputs = llm.generate([chat_text], sampling_params)
#Print output
print(outputs[0].outputs[0].text)
#عاصمة الإمارات العربية Ø§Ù„Ù…ØªØØ¯Ø© هي أبوظبي.
Or serve through command line (CLI)
vllm serve inceptionai/Jais-2-8B-Chat \
--served-model-name inceptionai/Jais-2-8B-Chat-Local --dtype bfloat16 \
--tensor-parallel-size 1 --max-model-len 8192 --max-num-seqs 256 \
--host 0.0.0.0 --port 8042 --api-key "Optional"
Evaluation
Performance Overview
We evaluate Jais-2-8B across two key benchmarks that capture both instruction following and generative Arabic ability: IFEval (English and Arabic) and AraGen-12-24 (3C3H).
IFEval Results (Strict 0-shot)
| Model | IFEval (ar) | IFEval (en) |
|---|---|---|
| jais-adapted-7b-chat | 8.02 | 24.86 |
| jais-family-6p7b-chat | 14.85 | 31.83 |
| c4ai-command-r7b-12-2024 | 17.65 | 45.66 |
| aya-expanse-8b | 18.11 | 45.84 |
| Qwen2.5-7B-Instruct | 33.21 | 53.97 |
| Llama-3.1-8B-Instruct | 10.87 | 53.60 |
| Qwen3-8B | 35.09 | 60.07 |
| gemma-3-12b-it | 30.13 | 60.07 |
| ALLaM-7B-Instruct-preview | 19.40 | 26.80 |
| Fanar-1-9B-Instruct | 20.23 | 54.16 |
| Falcon-H1-7B-Instruct | 21.37 | 55.08 |
| Jais-2-8B (ours) | 37.92 | 56.93 |
AraGen 12-24 (3C3H Framework)
| Model | Cultural | Helpfulness | Harmlessness | Honesty | Humility | Average | Average (H5) |
|---|---|---|---|---|---|---|---|
| gemma-3-12b-it | 52.42 | 62.30 | 61.03 | 20.31 | 55.74 | 56.00 | 56.65 |
| aya-expanse-8b | 48.29 | 56.12 | 56.12 | 11.72 | 54.68 | 55.19 | 55.94 |
| Qwen2.5-7B-Instruct | 47.46 | 54.60 | 54.48 | 15.59 | 52.33 | 53.20 | 54.57 |
| Falcon-H1-7B-Instruct | 47.28 | 56.44 | 55.81 | 18.34 | 44.73 | 52.59 | 55.78 |
| c4ai-command-r7b-12-2024 | 44.05 | 51.44 | 50.96 | 13.04 | 48.29 | 49.22 | 51.35 |
| jais-family-6p7b-chat | 41.00 | 47.55 | 47.31 | 12.43 | 45.22 | 45.97 | 47.55 |
| jais-adapted-7b-chat | 39.42 | 46.36 | 44.09 | 15.32 | 40.62 | 43.79 | 46.36 |
| Llama-3.1-8B-Instruct | 37.83 | 44.21 | 44.09 | 14.16 | 39.67 | 40.65 | 44.21 |
| Qwen3-8B | 36.52 | 43.49 | 42.77 | 7.14 | 41.43 | 41.19 | 43.13 |
| Jais-2-8B (ours) | 58.64 | 68.94 | 68.10 | 11.83 | 66.88 | 67.20 | 68.88 |
Overall, our results show that:
- Jais-2-8B delivers competitive Arabic and English instruction-following performance across IFEval.
- Jais-2-8B achieves the highest scores across nearly all AraGen metrics, outperforming Fanar-1-9B-Instruct and ALLaM-7B on Arabic generative tasks.
Intended Use
Target Audiences
- Academics: Researchers focusing on Arabic NLP, multilingual modeling, or cultural alignment
- Businesses: Companies targeting Arabic-speaking markets
- Developers and ML Engineers: Integrating Arabic language capabilities into applications and workflows
Appropriate Use Cases
Research:
- Natural language understanding and generation tasks
- Conducting interpretability or cross-lingual alignment analyses
- Investigating Arabic linguistic or cultural patterns
Commercial Use:
- Building chat assistants for Arabic-speaking audiences
- Performing sentiment and market analysis in regional contexts
- Summarizing or processing bilingual Arabic–English documents
- Creating culturally resonant Arabic marketing and entertainment content for regional audiences
Inappropriate Use Cases
Harmful or Malicious Use:
- Producing hate speech, extremist content, or discriminatory language
- Creating or spreading misinformation or deceptive content
- Engaging in or promoting illegal activities
Sensitive Information:
- Handling or generating personal, confidential, or sensitive information
- Attempting to infer, reconstruct, or guess sensitive information about individuals or organizations
Language Limitations:
- Applications requiring strong performance outside Arabic or English languages
High-Stakes Decisions:
- Making medical, legal, financial, or safety-critical decisions without human oversight
Citation
If you find our work helpful, please give us a cite.
@misc{anwar2026jais2familyarabiccentric,
title={Jais 2: A Family of Arabic-Centric Open Large Language Models},
author={Mohamed Anwar and Abed Alhakim Freihat and George Ibrahim and Mostafa Awad and Abdelrahman Sadallah and Gurpreet Gosal and Gokulakrishnan Ramakrishnan and Sarath Chandran and Biswajit Mishra and Rituraj Joshi and Ahmed Frikha and Etienne Goffinet and Abhishek Maiti and Ali El Filali and Sarah AlBarri and Samujjwal Ghosh and Rahul Pal and Parvez Mullah and Awantika Shukla and Sajid siddiki and Samta Kamboj and Onkar Pandit and Sunil Kumar Sahu and AbdelRahman Elbadawy and Amr Mohamed and Ahmad Chamma and Evan Dufraisse and Abdelaziz Bounhar and Dani Bouch and Hadi Abdine and Guokan Shang and Fajri Koto and Yuxia Wang and Zhuohan Xie and Ali Mekky and Rania Elbadry and Sarfraz Ahmad and Momina Ahsan and Omar El Herraoui and Daniil Orel and Hasan Iqbal and Kareem Elzeky and Mervat Abassy and Kareem Elozeiri and Saadeldine Eletter and Farah Atif and Nurdaulet Mukhituly and Haonan Li and Xudong Han and Aaryamonvikram Singh and Zainul Abedien Ahmed Quraishi and Neha Sengupta and Larry Murray and Avraham Sheinin and Joel Hestness and Natalia Vassilieva and Hector Xuguang Ren and Zhengzhong Liu and Michalis Vazirgiannis and Preslav Nakov},
year={2026},
eprint={2608.13580},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2608.13580},
}
- Downloads last month
- 574
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
32-bit
Model tree for inception42/Jais-2-8B-Chat-GGUF
Base model
inception42/Jais-2-8B-Chat