/ Модель

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

Контекст
262 144 токена
Размер весов
9,2 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-4B-Base-Kazakh
Библиотека
transformers
Опубликована
5 авг 2026

Qwen3.5-4B-Kazakh

Изображение и текст → текст7 профессий

Мультимодальная модель ISSAI на базе Qwen3.5, адаптированная для казахских и английских диалогов и понимания изображений.

369скачиваний за 30 дней1лайквеса обновлены19 авг 2026

Бенчмарки

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

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

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

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

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

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

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

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

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

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

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

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

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

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

Qwen3.5-4B-Kazakh — мультимодальная модель ISSAI на архитектуре Qwen3.5, дообученная на основе issai/Qwen3.5-4B-Base-Kazakh. Базовую модель продолжительно предобучили на казахских текстах и расширили её словарь на 16 тысяч казахских токенов; затем перенесли инструкционное выравнивание официальной Qwen3.5-4B методом chat-vector merge. Модель принимает текст и изображения, поддерживает чат и сохраняет возможности базовой модели для английского языка наряду с улучшенной обработкой казахского.

Модель предназначена для диалогов и ответов на вопросы на казахском и английском языках, а также для задач понимания изображений. Визуальный энкодер и мультимодальный проектор восстановлены из официальной Qwen3.5-4B, но модель отдельно не обучали на визуальных задачах. В оценках отмечено более краткое рассуждение и снижение результатов на сложных задачах reasoning; на визуальных бенчмарках также наблюдалось некоторое ухудшение. Весы опубликованы в формате safetensors, лицензия — Apache-2.0.

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

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

Ограничения

В README отмечено, что модель рассуждает короче исходной Qwen и уступает на наиболее сложных reasoning-бенчмарках; на визуальных задачах качество может снижаться, поскольку модель отдельно не обучали на vision-задачах.

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.5-4B-Kazakh

Qwen3.5-4B-Kazakh is a Kazakh adaptation of Qwen/Qwen3.5-4B. It extends the tokenizer with an additional Kazakh vocabulary for more efficient tokenization, is continued-pretrained on Kazakh text, and is then re-aligned to the official instruct model. This makes the model more efficient on Kazakh text and adds knowledge, while preserving the capabilities of the base model.

Methodology

This model is produced in two stages on top of our Kazakh continued-pretraining model issai/Qwen3.5-4B-Base-Kazakh, the official Qwen/Qwen3.5-4B-Base continued-pretrained on Kazakh text with a +16K Kazakh-token vocabulary extension. No additional post-training (SFT, RLHF, or RLVR) is used.

1. Chat-vector merge, transferring instruct alignment

We transfer the instruction-following / chat alignment of the official post-trained model using the chat vector method (Huang et al., 2024). Let

The chat vector is the task vector of post-training,

$$\tau_\text{chat} = \theta_\text{inst} - \theta_\text{base},$$

and it is added to our Kazakh continued-pretraining model:

$$\theta_\text{merged} = \theta_\text{cpt} + \tau_\text{chat} = \theta_\text{cpt} + (\theta_\text{inst} - \theta_\text{base}),$$

applied per parameter tensor, by name. Because our tokenizer is vocabulary-extended, the input-embedding and output (lm_head) matrices are merged row-wise: the shared original-vocabulary rows receive the chat vector, while the 16K new Kazakh-token rows are kept from θ_cpt (the official models have no counterpart for them). embed_tokens and lm_head are tied, so the row-wise merge is applied once and lm_head follows.

Special-token pinning. The rows of the format-control special tokens <think>, </think>, <|im_start|>, <|im_end|> and <|endoftext|> (in both the embedding and lm_head) are set to the official post-trained model's exact values instead of the merged values. These few rows drive the chat template's control flow (emitting </think> to close the reasoning block and <|im_end|> to end the turn). The raw chat vector otherwise detunes them and breaks this template logic, causing the model to loop and never terminate. Pinning them restores reliable termination while preserving the Kazakh knowledge acquired during continued pretraining.

2. Vision re-integration, restoring multimodality

Because our continued pretraining was performed on text only, with the vision branch removed beforehand, the chat-vector merge operates on the language model and produces a text-only model. To restore image and video understanding, the vision encoder and multimodal projector from the official Qwen/Qwen3.5-4B are re-attached to this Kazakh-adapted, instruct-aligned language backbone, and the architecture is set back to Qwen3_5ForConditionalGeneration. The result is a multimodal model that largely preserves the official model's vision capabilities while its language model handles Kazakh (and English) with instruct-style alignment and correct <think>...</think> reasoning.

Evaluation

We evaluate Qwen3.5-4B-Kazakh against its base model Qwen3.5-4B on Kazakh and English benchmarks under identical settings (thinking mode enabled):

  • temperature = 1.0
  • top_p = 0.95
  • top_k = 20
  • presence_penalty = 1.5
  • max_tokens = 81920

Scores are accuracy (%).

Kazakh

The Kazakh benchmarks (most of which are available in the ISSAI Qolda suite: language, vision) use Kazakh questions and answer choices. KazMMLU and KazCulture are native Kazakh benchmarks; the rest are Kazakh adaptations of the standard benchmarks.

English

Model usage

The following package versions are used:

  • transformers>=5.12.1
  • a recent torch build (matching your CUDA)
  • vllm>=0.24.0 (for serving)
  • optional: flash-linear-attention and causal-conv1d for faster linear-attention inference

The model reasons by default, emitting a chain-of-thought inside <think> ... </think>.

Transformers

from transformers import AutoProcessor, AutoModelForMultimodalLM

model_id = "issai/Qwen3.5-4B-Kazakh"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(model_id, dtype="auto", device_map="auto")

messages = [
    {"role": "user", "content": [{"type": "text", "text": "Балқаш көлінің қандай ерекшелігі бар?"}]}
]

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=32768,
    do_sample=True, temperature=1.0, top_p=0.95, top_k=20,
)

print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Image input:

messages = [
    {"role": "user", "content": [
        {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
        {"type": "text", "text": "Суретте не бейнеленген?"},
    ]}
]

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=32768,
    do_sample=True, temperature=1.0, top_p=0.95, top_k=20,
)

print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

To disable thinking, pass enable_thinking=False to apply_chat_template.

vLLM

Serve an OpenAI-compatible endpoint:

vllm serve issai/Qwen3.5-4B-Kazakh \
    --served-model-name qwen \
    --reasoning-parser qwen3 \
    --max-model-len 90000
from openai import OpenAI

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

resp = client.chat.completions.create(
    model="qwen",
    messages=[{"role": "user", "content": """Төмендегі экзопланеталардың қайсысында тығыздығы ең жоғары?
a) Жермен бірдей құрамы бар, бірақ Жерден 5 есе ауыр планета.
b) Жермен бірдей құрамды, бірақ Жерден екі есе жеңіл планета.
c) Массасы Жерден 2 есе үлкен және тығыздығы шамамен 5.5 г/см^3 болатын планета.
d) Жердің массасы мен радиусымен тең планета."""}],
    max_tokens=81920, temperature=1.0, top_p=0.95, presence_penalty=1.5,
    extra_body={"top_k": 20},
)

print(resp.choices[0].message.reasoning)          # chain-of-thought
print(resp.choices[0].message.content)            # final answer

Image input:

import base64

image = base64.b64encode(open("image.png", "rb").read()).decode()

resp = client.chat.completions.create(
    model="qwen",
    messages=[{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image}"}},
        {"type": "text", "text": "Суретте қандай фигуралар бар?"},
    ]}],
    max_tokens=81920, temperature=1.0, top_p=0.95, presence_penalty=1.5,
    extra_body={"top_k": 20},
)

print(resp.choices[0].message.content)

To disable thinking, add "chat_template_kwargs": {"enable_thinking": false} to extra_body.

License

This model is released under the Apache 2.0 license, inherited from the original Qwen3.5 model.

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

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

GPU в ailist

Универсальный рантайм · transformers

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
5aa79b5

0 моделей