/ Модель

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

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

qwen3-0.6b-small-rag

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

Компактная дообученная Qwen3-0.6B отвечает коротко на вопросы по четырём найденным фрагментам сайта и отказывается, если в них нет ответа.

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

Бенчмарки

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

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

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

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

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

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

Qwen3-0.6B-small-rag — дообученная bartdegoede модель на базе Qwen3-0.6B для кратких ответов на вопросы по найденным фрагментам текста. Она предназначена для сценариев «спросить о сайте» и может работать в браузере через transformers.js с ONNX-моделью для WebGPU или WASM. Модель принимает вопрос и четыре извлечённых фрагмента, отвечает одним коротким предложением, опираясь на формулировки источников, либо сообщает, что материалы не содержат ответа. Архитектура — плотная Qwen3ForCausalLM с 507,9 млн параметров и контекстом 40 960 токенов; в репозитории есть веса safetensors и ONNX. Дообучение выполнено методом LoRA на 4 530 примерах на английском языке; адаптер объединён с базовой моделью.

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

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

  • Краткие ответы на вопросы по публикациям технического блога
  • Создание функции «спросить о сайте» для статического сайта
  • Ответы по найденным фрагментам документации
  • Отказ от ответа, когда извлечённые материалы не содержат нужной информации

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3-0.6B, fine-tuned for short answers from retrieved passages

Qwen3-0.6B with a LoRA fine-tune (merged) that answers a question from 4 retrieved passages in one short sentence, using the passages' own words, or says "The blog does not seem to cover this." when they don't answer it. Built for "ask my site" pages that run entirely in the browser: the q4f16 ONNX file is 330 MB and runs on WebGPU or WASM through transformers.js.

Results

On a blog it never saw in training (bart.degoe.de): 45 questions, 30 the blog answers and 15 it doesn't, judged by Claude Opus 5.5 against the passages. Greedy decoding, no repetition penalty.

faithful (of 30)wrong answersinvented (of 15)
Qwen3-0.6B1792
this model1630

It is right as often as the base model but rarely misleads: a third of the wrong answers, and it doesn't make up answers to questions the site doesn't cover. The price is more refusals on questions the passages do answer (11 of 30, against 4), mostly broad ones like "What has the blog written about X?".

Prompt

The model was trained on exactly this format; other wording will work less well. System prompt:

You answer questions about a personal technical blog. Use only the numbered passages provided. Answer in at most 2 sentences. If the passages do not answer the question, say that the blog does not seem to cover it.

User message: the passages, best first, each headed [n] Title — Section (or [n] Title without a section), then the question:

Passages:

[1] Bloom filters — How they work
A Bloom filter is a bit array of m bits, all set to 0...

[2] ...

Question: How does a Bloom filter decide that an item is not in the set?

Retrieval in training: posts chunked into 600-character passages with 120 characters of overlap, each prefixed with its post title, embedded with minishlab/potion-base-8M truncated to 128 dimensions, top 4 by cosine similarity (static-site-search-eval builds that index for a folder of markdown posts). Other retrievers work, but the model has learned to expect passages of about that size.

Turn off Qwen3's thinking (enable_thinking: false) and decode greedily. Don't use a repetition penalty: transformers.js applies it to the prompt too, which pushes the model away from the passages' words.

transformers.js

import { pipeline } from "@huggingface/transformers";

const generator = await pipeline("text-generation", "bartdegoede/qwen3-0.6b-small-rag", {
  dtype: "q4f16",
  device: "webgpu", // or "wasm"
});
const messages = [
  { role: "system", content: SYSTEM_PROMPT },
  { role: "user", content: `Passages:\n\n${passages}\n\nQuestion: ${question}` },
];
const out = await generator(messages, {
  max_new_tokens: 120,
  do_sample: false,
  tokenizer_encode_kwargs: { enable_thinking: false },
});
console.log(out[0].generated_text.at(-1).content);

A complete static page (index build, retrieval, prompt, streaming worker) is in the GitHub repo under examples/browser/.

transformers (Python)

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "bartdegoede/qwen3-0.6b-small-rag"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)
inputs = tok.apply_chat_template(
    messages,
    add_generation_prompt=True,
    enable_thinking=False,
    return_dict=True,
    return_tensors="pt",
)
out = model.generate(**inputs, max_new_tokens=120)
print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

The root holds the merged weights in bfloat16 (also loadable with mlx_lm); onnx/model_q4f16.onnx is the 4-bit browser build, exported with the onnxruntime-genai model builder.

Training

LoRA rank 8 on all layers, prompt masked, one epoch over 4,530 examples (batch 2, gradient accumulation 2, learning rate 5e-5) with mlx-lm on an M4 Mac mini, 1h18m. The checkpoint was picked on Claude-judged answers to the dataset's held-out test split, not on validation loss.

Limitations

  • The refusal is the fixed sentence "The blog does not seem to cover this.", and the system prompt says "blog". For a documentation site you'd want different wording, which means regenerating the training answers.
  • Broad questions ("What has the blog written about X?", "How do I ...?") are often refused when the passages do cover them. Adding such questions to the training data made the model garble them instead.
  • English technical writing only.
  • The model only knows what the passages say; it will be wrong when retrieval is.

Licence

Apache-2.0, like the base model. The training data is CC-BY-4.0 (see the dataset card for its sources).

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

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

GPU в ailist

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

Нельзя запустить

Модель выложена для браузера (ONNX / transformers.js).

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

0 моделей