/ Модель

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

Контекст
40 960 токенов
Параметры
508 млн
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-0.6B
Библиотека
transformers
Опубликована
7 окт 2026

qwen3-0.6b-contextual-chunks

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

Компактная русскоязычная модель для добавления контекста к фрагментам документов при индексации RAG-поиска.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Qwen3-0.6B contextual chunk — дообученная модель на базе Qwen/Qwen3-0.6B, разработанная p4ulbr4dl3y для подготовки контекстных фрагментов в конвейере загрузки RAG. По фрагменту документа она пишет одно-два предложения, связывающих фрагмент с родительским документом, чтобы повысить полезность поиска, когда отдельный фрагмент неоднозначен. Модель предназначена прежде всего для русскоязычных договоров, закупочной и технической документации; запуск на устройстве пользователя помогает не передавать текст документов наружу.

Это плотная причинная языковая модель Qwen3 с 507,9 млн параметров и контекстом до 40 960 токенов. Доступны веса Safetensors и сборка GGUF Q8_0 для llama.cpp, Ollama и LM Studio; README также описывает LoRA-адаптер, из которого получены объединённые веса. По оценке word-F1 на 60 валидационных примерах дообучение улучшило совпадение с формулировками учителя, однако эта метрика сама по себе не измеряет качество поиска.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3-0.6B contextual chunk

A 0.6B model that writes one or two sentences placing a document chunk inside its parent document. It fills the contextual retrieval step of a RAG ingest pipeline: the index stores each chunk together with the context it came from, which helps retrieval when a chunk on its own is ambiguous. The model is small enough to run at ingest time on the machine that later answers queries, so document text never leaves the device.

Domain: Russian contracts, procurement and technical documentation.

Files

pathwhat
model.safetensors, config.jsonmerged weights, bfloat16, 596M parameters
lora/the LoRA adapter that produced them (r=16, alpha=16, dropout=0)
gguf/a Q8_0 build for llama.cpp, Ollama and LM Studio
training/run log, per-row comparison and the metric files behind the table below
tokenizer.json, tokenizer_config.json, chat_template.jinjatokenizer and chat template

The merged weights and the adapter are the same network. Use the merged weights unless you want to keep the adapter separate from the base model.

Quality

Heuristic word-F1 against the teacher reference, measured on the same 60 held-out validation rows before and after fine-tuning:

metricbase Qwen3-0.6B (4-bit)this model
word-F1 mean0.18930.5373
word-F1 median0.17640.5340
word-F1 p100.06390.3188
rows with zero F10.0170.000
numbers absent from the window00

Per category, base and fine-tuned:

categorybasetuned
construction0.0970.529
food0.1430.484
it0.2320.574
pharma0.1370.445
security0.0790.540

word-F1 clears 0.10 on all 60 rows after training, against 47 of 60 for the base model. The metric compares the output with the teacher's own wording, so on its own it says little about retrieval quality. The end-to-end numbers are in the technical report linked below.

Training

The training data pairs 3,134 chunks with the document window each was cut from and the context an API teacher wrote for it (dataset card).

  • base model Qwen/Qwen3-0.6B, loaded in 4-bit, LoRA rank 16 with alpha 16 attached to every linear layer, 10.09M trainable parameters (1.665% of the model)
  • 2,701 train and 433 validation rows, split by window_hash so that identical prompts never straddle the two splits
  • response-only loss masking: the document window and the instruction are masked out and the loss covers the assistant turn alone
  • two epochs, effective batch size 8 (batch 2 with 4 gradient accumulation steps), learning rate 2e-4 with 5 warm-up steps, maximum sequence length 16,384; the longest training sample is 9.7k tokens, so nothing is truncated
  • 676 steps on a single T4, about 9.5 hours, resumed across four Colab sessions; the best checkpoint by evaluation loss is step 640
  • training and inference use the same prompt, a byte-identical Qwen3 chat template with thinking disabled

Usage

With the merged weights:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

REPO = "p4ulbr4dl3y/qwen3-0.6b-contextual-chunks"
tok = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForCausalLM.from_pretrained(REPO, dtype=torch.bfloat16, device_map="auto").eval()

TEMPLATE = """<document>
{document}
</document>
Вот фрагмент, который нужно соотнести со всем документом:
<chunk>
{chunk}
</chunk>
Сформулируй краткий контекст (1-2 предложения), чтобы привязать этот фрагмент к документу в целом для улучшения поисковой выдачи. Ответь только кратким контекстом и ничем больше."""

msgs = [{"role": "user", "content": TEMPLATE.format(document=document, chunk=chunk)}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, enable_thinking=False, return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=160, do_sample=False)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True).strip())

With the adapter, if you would rather keep the base weights separate:

from peft import PeftModel

model = PeftModel.from_pretrained(base_model, REPO, subfolder="lora").eval()

The prompt has to reach the model exactly as written above, wrapped in the Qwen3 chat template with enable_thinking=False. A mistake in the assembly shows up as a different first token rather than as an obviously broken answer.

GGUF

gguf/qwen3-0.6b-contextual-chunks-Q8_0.gguf runs the same network in llama.cpp, Ollama or LM Studio, which covers CPUs and non-Apple hardware. The ablation used the same 60 validation rows; the bfloat16 reference on those rows is 0.537.

quantsizeword-F1difference from f16 (95% interval)
f161143 MB0.526
Q8_0610 MB0.520-0.007 [-0.021, +0.008]
Q6_K472 MB0.502-0.024 [-0.053, +0.002]
Q5_K_M424 MB0.500-0.027 [-0.062, +0.006]
Q4_K_M378 MB0.484-0.043 [-0.068, -0.016]

Q8_0 is the default here. Its difference from f16 is not significant, and no quantization produced an empty answer or a number missing from the document. Q6_K is a fair pick under a tight size budget, while Q4_K_M loses quality measurably at 0.6B. Only Q8_0 is uploaded; the other builds take seconds with the conversion scripts in the repository. The intervals are a paired bootstrap over the 60 rows.

llama-cli -m gguf/qwen3-0.6b-contextual-chunks-Q8_0.gguf -ngl 99 -c 16384 -p "<chat-templated prompt>"

Limitations

  • The output is a retrieval aid, not a summary, so it compresses and paraphrases rather than reproduces the document faithfully.
  • Russian contracts, procurement and technical documentation only. Quality on other domains is unmeasured.
  • word-F1 scores agreement with the teacher's wording, which is a proxy for retrieval quality and not a measurement of it.
  • The final model put no invented numbers into its 60 validation answers. The check only covers numbers that also fail to appear in the document window, so it will not catch invented entities, and an intermediate epoch-1 checkpoint did insert two numbers that were absent from the source.

Links

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
6cca330

0 моделей