/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
85,4 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_moe · dense
Базовая модель
Qwen3.6-35B-A3B
Библиотека
transformers
Опубликована
26 окт 2026

Karnak-Th-41B-v1.0

Генерация текстаТекст → текст15 профессий

Арабско-английская модель AIC на базе Qwen для диалогов, генерации текста и многошаговых рассуждений с режимами thinking и non-thinking.

576скачиваний за 30 дней0лайковвеса обновлены26 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Karnak-Th-41B v1.0 — арабско-английская языковая модель Applied Innovation Center (AIC), созданная на основе Qwen/Qwen3.6-35B-A3B. Разработчики увеличили глубину архитектуры и дообучили модель на отобранных данных на арабском и английском языках, включая примеры рассуждений. Общий размер составляет около 41 млрд параметров.

Модель предназначена для диалоговых помощников, ответов на вопросы, написания и редактирования текстов, суммаризации, перевода и многошаговых аналитических задач. Она поддерживает режимы thinking для задач с промежуточными рассуждениями и non-thinking для прямых ответов, а при работе через vLLM может вызывать заданные приложением инструменты. Также её можно использовать как генератор в RAG-системах с предоставленными документами.

Модель принимает текст и выдаёт текст. Для режима thinking требуется больше токенов генерации, что может увеличить задержку; наличие рассуждений не гарантирует правильность ответа. Модель может выдавать ошибочную, неполную или предвзятую информацию, поэтому важные факты следует проверять. Лицензия — Apache-2.0.

Сценарии применения

  • арабско-английский диалоговый помощник
  • ответы на вопросы на арабском и английском
  • суммаризация документов на арабском и английском
  • перевод между арабским и английским
  • написание и редактирование текстов
  • многошаговый анализ и рассуждения
  • генерация ответов по документам в RAG-системах

Ограничения

Модель может давать ошибочные, неполные или предвзятые ответы; режим thinking не гарантирует правильность, а его использование увеличивает расход токенов и может повысить задержку.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Karnak-Th-41B v1.0

A Depth-Extended Arabic–English Language Model with Hybrid Thinking

Karnak-Th-41B v1.0 is an approximately 41-billion-parameter language model developed by the Applied Innovation Center (AIC). Built on Qwen3.6-35B-A3B, it combines architectural depth extension with further training on highly curated and carefully cleaned Arabic, English, and reasoning data.

Karnak brings bilingual language generation and reasoning into a single model with two response modes: thinking for tasks that benefit from intermediate reasoning, and non-thinking for direct answers. This flexibility lets applications choose how much generation to devote to a task, from everyday conversations to problems requiring multiple steps.

Recommended generation setting: Use presence_penalty=1.0 for both thinking and non-thinking modes when supported by your inference backend.

Model Summary

PropertyDetails
Model nameKarnak-Th-41B v1.0
DeveloperApplied Innovation Center (AIC)
Base modelQwen/Qwen3.6-35B-A3B
Total parametersApproximately 41B after depth extension
ArchitectureDepth-extended Qwen-based Mixture-of-Experts (MoE) language model
Primary languagesArabic and English
Response modesThinking and non-thinking
Tool integrationOpenAI-compatible function calling through vLLM
Recommended presence penalty1.0 for both response modes
Training dataHighly curated and cleaned Arabic, English, and reasoning data
Primary taskInstruction-following text generation
LicenseApache 2.0

The parameter count refers to total model parameters, rather than parameters activated per token.

Key Features

  • Depth extension from 35B to approximately 41B: Additional model layers expand the backbone's capacity, followed by training of the extended model.
  • Arabic–English training: Bilingual data supports language understanding, generation, and instruction following, with particular attention to Arabic.
  • Reasoning-focused training: Reasoning examples complement language and instruction data to support tasks requiring analysis and multiple steps.
  • Hybrid thinking: A single checkpoint supports both intermediate reasoning and direct-response generation.
  • Tool integration: vLLM serving supports structured function calls for connecting the model to application-defined tools.
  • Carefully curated data: Training emphasizes data quality through deliberate selection and cleaning of Arabic, English, and reasoning material.
  • Local deployment: The checkpoint can be hosted on your own infrastructure and adapted to application-specific workflows under its license.

Architecture and Training

Karnak-Th-41B v1.0 starts from the Qwen3.6-35B-A3B backbone and extends its depth to produce an approximately 41B-parameter model. The extended model is then trained on curated bilingual and reasoning data.

The development process can be summarized as:

Qwen3.6-35B-A3B → Depth Extension → Training on Curated Arabic, English, and Reasoning Data → Karnak-Th-41B v1.0

Training focuses on bilingual responses, instruction following, and reasoning behavior across thinking and non-thinking modes.

Thinking and Non-Thinking Modes

ModeBehaviorExample applications
ThinkingGenerates intermediate reasoning before the final response.Multi-step questions, analytical tasks, and problems requiring careful consideration.
Non-thinkingGenerates a direct response without an explicit reasoning section.Conversation, summarization, translation, rewriting, and straightforward questions.

Select the mode through the checkpoint's chat template:

enable_thinking=True   # Thinking mode
enable_thinking=False  # Non-thinking mode

Use the tokenizer and chat template distributed with this checkpoint, and set enable_thinking to select the response mode. The reasoning parser separates reasoning from the final answer in API responses.

Thinking generally requires more output tokens and can increase latency. Allocate enough generation budget for both reasoning and the final answer.

Usage

The model is loaded from Applied-Innovation-Center/Karnak-Th-41B-v1.0 in the examples below.

1. Hugging Face Transformers

Install a recent Transformers release with support for the checkpoint's Qwen architecture:

pip install -U transformers torch accelerate

Load the checkpoint and generate a response:

import torch
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer

model_id = "Applied-Innovation-Center/Karnak-Th-41B-v1.0"
enable_thinking = True  # Set to False for direct responses.

tokenizer = AutoTokenizer.from_pretrained(model_id)
config = AutoConfig.from_pretrained(model_id)

# Select the loader matching the exported checkpoint configuration.
if getattr(config, "vision_config", None) is not None:
    from transformers import Qwen3_5MoeForConditionalGeneration
    model_class = Qwen3_5MoeForConditionalGeneration
else:
    model_class = AutoModelForCausalLM

model = model_class.from_pretrained(
    model_id,
    dtype=torch.bfloat16,
    device_map="auto",
).eval()

messages = [
    {"role": "system", "content": "You are a helpful assistant. أجب بلغة المستخدم."},
    {"role": "user", "content": "اشرح الفرق بين التعلم الخاضع للإشراف والتعلم المعزز، مع مثال لكل منهما."},
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=enable_thinking,
)
inputs = tokenizer(
    prompt,
    return_tensors="pt",
    add_special_tokens=False,
).to(model.device)

with torch.inference_mode():
    outputs = model.generate(
        **inputs,
        max_new_tokens=4096 if enable_thinking else 1024,
        do_sample=True,
        temperature=0.6 if enable_thinking else 0.7,
        top_p=0.95 if enable_thinking else 0.8,
        top_k=20,
    )

generated_ids = outputs[0, inputs["input_ids"].shape[1]:]
response = tokenizer.decode(generated_ids, skip_special_tokens=True)
print(response)

In thinking mode, decoded text may include reasoning delimiters such as <think> and </think>. Keep reasoning and final-answer presentation separate in applications that expose only the final response.

2. vLLM Server

Use a recent vLLM release supporting the exported architecture. Install it in a separate environment from other inference stacks:

pip install -U vllm openai

Start an OpenAI-compatible server with reasoning parsing and automatic tool calling:

vllm serve "Applied-Innovation-Center/Karnak-Th-41B-v1.0" \
  --served-model-name karnak-th-41b-v1.0 \
  --dtype bfloat16 \
  --tensor-parallel-size 2 \
  --reasoning-parser qwen3 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --port 8000

Adjust --tensor-parallel-size to your GPU topology and available memory.

--reasoning-parser qwen3 separates reasoning from final responses. --enable-auto-tool-choice lets the model select tools supplied in a request, and --tool-call-parser qwen3_coder converts generated function calls into the OpenAI-compatible tool_calls format.

Request Either Response Mode

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

def ask(prompt: str, thinking: bool = True):
    response = client.chat.completions.create(
        model="karnak-th-41b-v1.0",
        messages=[{"role": "user", "content": prompt}],
        temperature=0.6 if thinking else 0.7,
        top_p=0.95 if thinking else 0.8,
        presence_penalty=1.0,
        max_tokens=4096 if thinking else 1024,
        extra_body={
            "top_k": 20,
            "chat_template_kwargs": {"enable_thinking": thinking},
        },
    )
    return response.choices[0].message.content

# Thinking mode
print(ask("كيف يمكن مقارنة حلين لمشكلة عندما يختلفان في التكلفة والوقت والجودة؟", thinking=True))

# Non-thinking mode
print(ask("اكتب رسالة قصيرة لشكر زميل على مساعدته.", thinking=False))

The server's qwen3 parser can separate reasoning into an additional response field. The example prints the final-answer content field.

Tool Calling

Define tools using JSON schemas and pass them with tool_choice="auto". Your application executes the requested functions and returns their results to the model. The following example completes a tool call using a local multiplication function:

import json
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

tools = [{
    "type": "function",
    "function": {
        "name": "multiply",
        "description": "Multiply two integers and return their product.",
        "parameters": {
            "type": "object",
            "properties": {
                "a": {"type": "integer", "description": "The first integer."},
                "b": {"type": "integer", "description": "The second integer."},
            },
            "required": ["a", "b"],
            "additionalProperties": False,
        },
    },
}]

def multiply(a: int, b: int) -> int:
    return a * b

functions = {"multiply": multiply}
messages = [{"role": "user", "content": "استخدم الأداة لحساب حاصل ضرب 125 في 48."}]

def complete(tool_choice):
    return client.chat.completions.create(
        model="karnak-th-41b-v1.0",
        messages=messages,
        tools=tools,
        tool_choice=tool_choice,
        temperature=0.7,
        top_p=0.8,
        presence_penalty=1.0,
        max_tokens=1024,
        extra_body={
            "top_k": 20,
            "chat_template_kwargs": {"enable_thinking": False},
        },
    ).choices[0].message

message = complete("auto")
if message.tool_calls:
    messages.append(message.model_dump(exclude_none=True))
    for call in message.tool_calls:
        arguments = json.loads(call.function.arguments)
        result = functions[call.function.name](**arguments)
        messages.append({
            "role": "tool",
            "tool_call_id": call.id,
            "content": json.dumps({"result": result}),
        })
    message = complete("none")

print(message.content)

Only expose functions your application intends to provide, and validate arguments before executing tools that access external services or modify data.

3. vLLM Offline Inference

Apply the model's chat template before submitting prompts for offline generation:

from transformers import AutoTokenizer
from vllm import LLM, SamplingParams

model_id = "Applied-Innovation-Center/Karnak-Th-41B-v1.0"
tokenizer = AutoTokenizer.from_pretrained(model_id)

llm = LLM(
    model=model_id,
    dtype="bfloat16",
    tensor_parallel_size=2,
)

messages = [{"role": "user", "content": "Explain reinforcement learning in simple English."}]
prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)

params = SamplingParams(
    temperature=0.7,
    top_p=0.8,
    top_k=20,
    presence_penalty=1.0,
    max_tokens=1024,
)

for output in llm.generate([prompt], params):
    print(output.outputs[0].text)

Generation Guidance

We recommend setting presence_penalty=1.0 in both thinking and non-thinking modes when supported by the inference backend. All vLLM generation examples above use this setting.

Adjust temperature, sampling thresholds, and output budgets to your application's requirements.

  • Explicitly select thinking or non-thinking mode through the chat template.
  • Give thinking requests sufficient output budget; generation can stop before the final answer if reasoning consumes the token limit.
  • Use the checkpoint's tokenizer and generation configuration, including its end-of-sequence tokens.
  • Match serving settings to the checkpoint configuration, available memory, and application workload.

Intended Uses and Limitations

Karnak-Th-41B v1.0 is intended for Arabic–English assistants, question answering, writing, summarization, translation, and reasoning-oriented applications. It can also serve as the generation component of retrieval-augmented systems when supplied with relevant documents.

The model can produce incorrect, incomplete, or biased responses. Thinking mode does not guarantee a correct answer, and generated reasoning should not be treated as evidence of correctness. Retrieved evidence and independent verification remain useful when factual accuracy matters.

License

Karnak-Th-41B v1.0 is released under the Apache License 2.0. See the repository's LICENSE file for the full terms.

Citation

@misc{karnak_th_41b_v1_2026,
  title        = {Karnak-Th-41B v1.0: A Depth-Extended Arabic-English Language Model with Hybrid Thinking},
  author       = {{Applied Innovation Center}},
  year         = {2026},
  howpublished = {Hugging Face model release},
  url          = {https://huggingface.co/Applied-Innovation-Center/Karnak-Th-41B-v1.0}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

vLLM

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5MoeForConditionalGeneration
Ревизия весов
098de69

0 моделей