/ Модель

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

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
qwen3_vl · dense
Базовая модель
Qwen3-VL-8B-Instruct
Библиотека
transformers
Опубликована
18 сен 2026

AnomalyThink-Qwen3-VL-8B-SFT-GRPO

Изображение и текст → текст

Исследовательская мультимодальная модель на базе Qwen3-VL-8B для обнаружения и объяснения дефектов на изображениях промышленных изделий.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

AnomalyThink-Qwen3-VL-8B-SFT-GRPO — исследовательский чекпойнт модели Qwen3-VL-8B, дообученный авторами проекта методом SFT и затем GRPO для обнаружения аномалий на изображениях промышленных изделий. Модель принимает изображение и текстовый запрос, а в ответ формирует текстовую оценку наличия дефектов с объяснением. В README описаны эксперименты на поднаборах DS-MVTec и VisA; наибольший результат этой версии в проекте на DS-MVTec составил 87,14% сбалансированной точности при использовании обучающего промпта.

Чекпойнт основан на Qwen/Qwen3-VL-8B-Instruct, имеет плотную архитектуру Qwen3-VL и доступен в формате safetensors для Transformers. Для загрузки требуется transformers версии 5.0 или новее. Модель предназначена для исследовательского воспроизведения и анализа промышленных аномалий на изображениях товаров сверху. Лицензия — Apache-2.0.

Результаты получены с конкретным промптом и протоколом оценки и не гарантируют аналогичное качество в других сценариях. Это эксперимент с одним seed; объяснения не оценивались людьми, а возможное присутствие публичных тестовых изображений в предобучении базовой модели исключить нельзя.

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

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

Ограничения

Качество оценивалось на конкретных промптах и наборах данных; использован один seed, а объяснения модели не проверялись людьми. Возможное пересечение тестовых изображений с данными предобучения базовой модели исключить нельзя.

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

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

Открыть на Hugging Face

AnomalyThink-Qwen3-VL-8B-SFT-GRPO

The Qwen3-VL-8B SFT model refined with GRPO. DS-MVTec 87.14 / VisA 72.39 under the training prompt, the best DS-MVTec score of any Qwen model in the project.

Post-submission research artefact. The thesis reports Qwen3-VL-8B only as a corpus-transfer check (base 78.68 / 64.45, trained on the Qwen2.5-VL KCR corpus 85.82 / 76.45, Table 6.13). The three Qwen3-VL-8B models in this family (AnomalyThink-Qwen3-VL-8B-SFT, AnomalyThink-Qwen3-VL-8B-SFT-GRPO, AnomalyThink-Qwen3-VL-8B-KCR) were trained after the thesis was submitted, in September 2026, by running the thesis recipe end to end on this backbone. They are not thesis results and are released for reproducibility.

Results (MMAD subsets, balanced accuracy, strict scoring)

ModelDS-MVTecVisA
Qwen3-VL-8B-Instruct base, zero-shot78.6864.45
AnomalyThink-Qwen3-VL-8B-SFT (6K Gemini traces, epoch 1)80.3167.32
AnomalyThink-Qwen3-VL-8B-SFT-GRPO (epoch 1, training prompt)87.1472.39
AnomalyThink-Qwen3-VL-8B-KCR (own corrected rollouts, epoch 2)84.3976.63
This model87.1472.39

Evaluation protocol. One harness for every row: the DS-MVTec (1,670 images) and VisA (2,141 images) subsets of MMAD, one image per prompt, the training prompt with the one-line system message "Please answer by yes or no", greedy decoding, at most 1,024 new tokens, images capped at 262,144 pixels, vLLM generation. Balanced accuracy is the mean of sensitivity and specificity. Strict scoring: a generation with no parsable <answer> counts as wrong. Per-sample evaluation files are next to the weights (eval_*.json).

The pattern of the thesis reproduces on this backbone: GRPO carries DS-MVTec, and the corrected corpus built from the GRPO policy's rollouts carries VisA, where 76.63 is the highest VisA score of any model trained in the project.

Training

  • Initialisation: AnomalyThink-Qwen3-VL-8B-SFT (epoch 1 of the 6K SFT), which is also the fixed reference policy.
  • Recipe: the thesis GRPO configuration unchanged. Two reward functions summed with unit weight, a binary full-schema format reward and an accuracy reward (verdict plus the mean of a Nomic-embedding type similarity and a 3x3 location cell match), maximum 3.0. Group size 4, clipping 0.2, KL coefficient 0 (monitored), learning rate 1e-6, effective batch 8, prompt set of 4,236 class-balanced Real-IAD images, images capped at 480,000 pixels, 2 epochs of 530 steps, all parameters trainable. This is checkpoint-530, the end of epoch 1; epoch 2 (checkpoint-1060) scored 84.89 / 69.90.
  • Prompt: GRPO trains on the fixed question "Are there any defects in the query image?" with no system message. Under that prompt this checkpoint scores 86.52 / 73.90; the table reports the training-prompt score so that it is comparable with the SFT and KCR rows.

What Keep-Correct-Revise (KCR) means

An SFT plus GRPO policy is sampled eight times on every training image. A trace is kept when the verdict is right and a Gemini-3-Flash judge finds the reasoning grounded, corrected by the teacher when every rollout was wrong, and revised by the teacher when the verdict was right but the reasoning was weakly grounded. A fresh model is then fine-tuned from the base weights on the curated corpus, so the final model is supervised and the reinforcement-learned policy is the source of its training data.

Usage

The checkpoint was saved with transformers 5.0.0 and loads directly with transformers>=5.0:

from transformers import AutoProcessor, AutoModelForImageTextToText
import torch
repo = "aacudad/AnomalyThink-Qwen3-VL-8B-SFT-GRPO"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForImageTextToText.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
msgs = [{"role": "system", "content": "Please answer by yes or no"},
        {"role": "user", "content": [{"type": "image", "image": "part.jpg"},
         {"type": "text", "text": "Analyze the provided image of the pcb. Determine if there are any anomalies present. If an anomaly is detected, specify its type and location, and provide a detailed reasoning for your conclusion."}]}]
inputs = processor.apply_chat_template(msgs, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

The output is <think>...</think> followed, for anomalies, by <location>, <type> and <answer>Yes</answer>, or <answer>No</answer> for a normal part. For transformers 4.57 or vLLM 0.10.x use the files in transformers4_vllm/ (the stock Qwen3-VL-8B-Instruct tokenizer and processor files and a config with rope_theta written into text_config) next to model.safetensors; this is how every number above was produced.

Intended use and limitations

Research artefact for explainable industrial anomaly detection on top-down product images. Single seed, no human evaluation of the explanations, selection on DS-MVTec with VisA reported at the same checkpoint. The public benchmark images may have been seen during backbone pretraining, which cannot be ruled out for any model in this comparison.

Citation

@mastersthesis{acudad2026reasoning,
  author  = {Acudad, A.},
  title   = {Reasoning-Enhanced Vision-Language Models for Explainable Industrial Anomaly Detection},
  school  = {Delft University of Technology},
  year    = {2026},
  type    = {Master's thesis},
  url     = {https://resolver.tudelft.nl/uuid:65c62420-79c0-447f-b095-7fb11d4474fc}
}

Thesis: https://resolver.tudelft.nl/uuid:65c62420-79c0-447f-b095-7fb11d4474fc. Code and evaluation files: https://github.com/aacudad/IAD-VLMs.

License

Apache-2.0, derived from Qwen/Qwen3-VL-8B-Instruct.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3VLForConditionalGeneration
Ревизия весов
e57f6e7

0 моделей