IFM/Jais-3-3.7B-GGUF

来源:🤗🏴‍☠️ 由 Sherpa 救援text-generationapache-2.0激活 3.7B30 GBGGUF✓ 7 个校验和5 天前更新
磁力链接🌱 6

Jais-3-3.7B-GGUF

[!NOTE] This repository contains GGUF versions of inception42/Jais-3-3.7B for use with llama.cpp.

Multiple precision and quantization variants are available: BF16, Q8_0, Q6_K, Q5_K_M, Q5_0, Q4_K_M.

[!WARNING] Deployment notes: K2 Horizon architecture support is merged into llama.cpp (ggml-org/llama.cpp#29535). Use a recent llama.cpp build, build it yourself from master, or wait for the next official llama.cpp release. Start llama-server with --jinja so that reasoning and tool calls are parsed.

Jais-3-3.7B is the small dense member of the Jais-3 family: a 3.7B-class decoder-only model with a 512K context window.

[!TIP] Other formats are available in the IFM/Jais-3 collection:

Benchmark Results

Reference models
Jais-3-3.7BQwen3.5-4BGemma 4 E2Bgranite-4.0-h-3b-arFalcon-H1-3B-Instruct
# Params3.7B4B5B3B3B
# Activated params3.7B4B2.3B3B3B
ArchitectureDenseDenseDenseDenseDense
Open-ended Generation
AraGen
AraGen v3 (3C3H)09-202549.645.839.627.113.0
Correctness57.957.246.530.816.8
Completeness56.956.346.430.415.3
Conciseness18.210.311.514.43.5
Helpfulness51.945.541.527.613.4
Honesty55.649.045.228.913.8
Harmlessness56.956.346.530.615.4
Knowledge & Reasoning
General Knowledge & Comprehension
Arabic MMLU*Accuracy83.375.269.459.851.0
BelebeleAccuracy91.984.079.661.957.9
STEM & Math
AraSTEM*Accuracy91.791.485.166.564.9
Arabic GSM8K*Accuracy91.988.781.767.272.2
GATmath*Accuracy96.295.990.545.341.3
Professional Domains
MedAraBench*Accuracy74.174.157.238.134.5
Arabic Legal (HELM)*Accuracy66.763.357.156.153.0
Arabic Language & Culture
Islamic Knowledge & Arab Culture
IslamicQAAccuracy (mean of the 4 below)81.761.663.041.248.2
PaLM-X 2025-2*Accuracy88.979.679.257.566.6
QIAS-1*Accuracy83.350.751.618.227.5
QIAS-2*Accuracy80.069.965.366.554.3
IslamicEval2025-1B*Accuracy74.546.355.822.544.6
Arab CultureAccuracy (mean of the 3 below)81.268.866.860.254.8
ArabCulture*Accuracy84.376.274.768.464.2
AraDiCE-Culture*Accuracy76.561.556.453.645.8
Arabic Cuisine^Accuracy82.668.969.258.654.4
Dialects
Dialectal Arabic MMLU*Accuracy81.676.565.150.743.8
Dialect Identification (QADI)Accuracy68.837.444.442.228.5
Alyah*Accuracy79.763.369.766.058.9
Linguistics & Literature
Arabic MMLU with diacriticsAccuracy80.770.864.753.334.6
FannOrFlop-MCQAccuracy66.250.960.048.841.1
Arabic Linguistics^Accuracy (mean of the 2 below)92.172.777.949.342.1
DiacritizationAccuracy86.979.274.264.151.2
ParsingAccuracy97.366.381.634.632.9
Assistant Capabilities
Instruction Following
Arabic IFBench^Accuracy (prompt-level strict)92.653.737.614.718.4
Arabic IFEvalAccuracy79.073.069.643.155.7
Factuality & Hallucination
HalluScoreAccuracy48.337.533.316.413.2
SimpleQA Verified (Ar)Aggregate (2/3 F-score + 1/3 non-hallucination rate)29.17.029.83.52.5
F-score1.57.42.24.52.3
Non-hallucination rate84.26.384.81.43.0
Agentic
Terminal Bench 2.1Accuracy (Avg@3)41.225.80.40.00.0
GDPValAccuracy (@ 75% threshold)54.515.03.20.00.0
MCPMarkAccuracy (Pass@1)30.725.21.60.00.0
WildClawBenchMean Score@340.933.318.28.20.1
Apex-AgentsAccuracy (Pass@1)16.76.40.00.50.2
GAIA v2 lit ARAccuracy (Pass@1)45.527.918.20.00.0
BrowseComp-PlusAccuracy64.850.616.40.60.0

[!NOTE] Starred (*) benchmarks have been audited for sample quality. Items with ambiguous questions, invalid answer options, or indefensible gold labels were excluded, since they can penalize a correct answer or reward a lucky guess. Scores on these benchmarks are reported on the cleaned sets. The audit methodology, the excluded samples and the verified benchmarks are available in the IFM/Arabic-Benchmark-Auditing collection.

[!NOTE] Benchmarks marked with ^ will be released by IFM soon.

[!NOTE] Scores above are for the BF16 source checkpoint. Quantized variants have not been separately evaluated yet.

Files

File Type Size
Jais-3-3.7B-BF16.gguf BF16 10.13 GB
Jais-3-3.7B-Q8_0.gguf Q8_0 5.39 GB
Jais-3-3.7B-Q6_K.gguf Q6_K 4.16 GB
Jais-3-3.7B-Q5_K_M.gguf Q5_K_M 3.64 GB
Jais-3-3.7B-Q5_0.gguf Q5_0 3.57 GB
Jais-3-3.7B-Q4_K_M.gguf Q4_K_M 3.16 GB

Quickstart

llama.cpp

cmake -B build -DGGML_CUDA=ON
cmake --build build -j --target llama-server
./build/bin/llama-server -hf IFM/Jais-3-3.7B-GGUF:Q8_0 --jinja -ngl 99 -c 32768

Pick a variant with :BF16, :Q8_0, :Q6_K, :Q5_K_M, :Q5_0 or :Q4_K_M, or pass a local file with -m. --jinja enables the embedded chat template, which handles reasoning_effort and K2 Horizon tool calls; reasoning_content is returned separately from content.

API Usage

[!TIP] Recommended settings: reasoning_effort="high", the sampling hyperparameters in the table below, and at least 32,768 output tokens. Reasoning depth is selected per request through chat_template_kwargs. Thinking is returned in reasoning_content and the answer in content.

Parameter Default Thinking mode, English Thinking mode, Arabic
temperature 0.2 1.0 0.7
top_p 0.95 0.95 0.95
top_k 20 20 20
Reasoning ExampleTool Calling Example
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key="EMPTY")
response = client.chat.completions.create(
    model="Jais-3-3.7B",
    messages=[{"role": "user", "content": "لدينا عددان مجموعهما 50 وحاصل ضربهما 600. ما هما العددان؟ اشرح خطوات الحل."}],
    temperature=0.7,
    top_p=0.95,
    max_tokens=32768,
    extra_body={"top_k": 20, "chat_template_kwargs": {"reasoning_effort": "high"}},
)
message = response.choices[0].message
print("Reasoning:", getattr(message, "reasoning_content", None))
print("Answer:", message.content)
import json
from datetime import datetime
from zoneinfo import ZoneInfo
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key="EMPTY")
TIMEZONES = {"أبوظبي": "Asia/Dubai", "الرياض": "Asia/Riyadh", "القاهرة": "Africa/Cairo", "لندن": "Europe/London"}

def get_current_time(city: str) -> dict:
    if city not in TIMEZONES:
        return {"error": f"مدينة غير معروفة: {city}"}
    return {"city": city, "time": datetime.now(ZoneInfo(TIMEZONES[city])).strftime("%H:%M")}

tools = [{
    "type": "function",
    "function": {
        "name": "get_current_time",
        "description": "يعيد الوقت الحالي في مدينة معينة",
        "parameters": {
            "type": "object",
            "properties": {"city": {"type": "string", "description": "اسم المدينة بالعربية"}},
            "required": ["city"],
        },
    },
}]
available_tools = {"get_current_time": get_current_time}
messages = [{"role": "user", "content": "كم الساعة الآن في القاهرة؟"}]
for _ in range(5):  # call the model, run any requested tools, repeat until it answers
    message = client.chat.completions.create(
        model="Jais-3-3.7B",
        messages=messages,
        tools=tools,
        temperature=0.7,
        top_p=0.95,
        max_tokens=32768,
        extra_body={
            "top_k": 20,
            "chat_template_kwargs": {"reasoning_effort": "high", "tool_call_format": "xml"},
        },
    ).choices[0].message
    messages.append(message)
    if not message.tool_calls:
        break
    for call in message.tool_calls:
        tool = available_tools.get(call.function.name)
        arguments = json.loads(call.function.arguments)
        result = tool(**arguments)
        messages.append({"role": "tool", "tool_call_id": call.id,
                         "content": json.dumps(result, ensure_ascii=False)})

print(message.content)

Our model supports multiple tool-call formats, which can be changed with chat_template_kwargs. The supported values are json, xml, and xml_typed. The default is xml. Keep --tool-call-parser k2_horizon enabled to parse the selected format.

Best Practices

  1. Reasoning effort: always high. All reported results use high reasoning effort. Pass {"chat_template_kwargs": {"reasoning_effort": "high"}} on every request. No reasoning ({"reasoning_effort": "low"}) is not recommended except for research on reasoning efforts.
  2. Sampling parameters. Use the values in the table above: temperature=0.2, top_p=0.95, top_k=20 by default. In thinking mode, set temperature=1.0 for English and temperature=0.7 for Arabic. Keep min_p=0.0, presence_penalty=0.0 and repetition_penalty=1.0.
  3. Parsers. With --jinja, llama.cpp detects the K2 Horizon template and parses reasoning and tool calls itself; no parser flags are needed.

Intended Use and Limitations

Intended use: The model is designed for Arabic and English assistant and agentic applications, including reasoning and tool-use tasks, as well as for research and experimentation.

Out of scope: The model should not be used in ways that violate applicable laws or regulations. The following uses are also considered out of scope:

  • Harmful or malicious use: generating hateful, extremist, discriminatory, or deliberately misleading content, or using the model to support illegal or harmful activities.
  • Sensitive information: using the model to generate, expose, or infer personal, confidential, or otherwise sensitive information about individuals or organizations.
  • Unsupported languages: applications that depend on reliable performance in languages other than Arabic or English.
  • High-stakes decisions: relying on the model to make medical, legal, financial, or safety-critical decisions without appropriate human oversight.

Limitations: The model can produce inaccurate or made-up content and may reflect biases present in its training data. Evaluate it for your use case and add safeguards before deploying it.

Citation

@misc{jais3_2026,
  title  = {Jais 3: Introducing Arabic-centric Agentic AI},
  author = {{IFM Team, Inception42 Team, and Cerebras Team}},
  year   = {2026},
  url    = {https://ifm.ai/blog/jais3/},
}