/ Модель

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

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

gizmo-safety-0.8b-exp

Классификация текстаТекст → label3 профессии
27скачиваний за 30 дней0лайковвеса обновлены18 окт 2026

Описание модели

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

Экспериментальная компактная модель для классификации безопасности текста и изображений и маршрутизации запросов к языковым моделям.

gizmo-safety-0.8b-exp — экспериментальная модель на 0,8 млрд параметров, созданная Loke-60000 на базе unsloth/Qwen3.5-0.8B. Она использует классификационную головку FastDecisionModel вместо генерации текста и за один проход оценивает вероятность ответов на заданные вопросы о содержимом текста или изображения. Модель предназначена для выявления небезопасного и сексуально откровенного контента, а также для маршрутизации запросов к подходящей языковой модели.

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

Это экспериментальная разработка, не предназначенная для эксплуатации в production. Её можно использовать для прототипирования и предварительной фильтрации с последующей более надёжной проверкой; оценки около порога решения рекомендуется передавать на проверку человеку. Метки безопасности отражают правила разметки исходных наборов и могут не соответствовать политике конкретной платформы; качество на мемах, скриншотах и сжатых изображениях может отличаться от результатов бенчмарков.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

gizmo-safety-0.8b-exp

gizmo-safety-0.8b-exp is an experimental 0.8B-parameter model designed for content safety classification of text and images. Given a user prompt, an assistant response or an image, it returns a calibrated probability for each question asked, such as whether the content is unsafe or sexually explicit. It also predicts which language model is likely to answer a given prompt correctly, which allows it to be used as a router.

The model is based on Qwen3.5-0.8B and uses a decision head from Unsloth's FastDecisionModel in place of text generation. All questions are answered in a single forward pass. This release contains the full merged weights in 16-bit precision (1.7 GB).

Experimental release. This model is a research experiment and is not intended for production use. It can still be useful for prototyping, pre-filtering content before a stronger moderation step, routing experiments, and as a baseline for small safety classifiers.

Evaluation

All scores use a decision threshold of 0.5.

Text safety

Text safety

On Aegis 2.0 prompts the model reaches 87.2 F1, compared with 85.1 for Shieldstral 3B and 82.2 for Qwen3Guard 4B. It scores lower than Shieldstral on ToxicChat (75.9 vs 84.1) and OpenAI Moderation (69.1 vs 81.4).

Aegis 2.0 and AgentHarm were measured locally on the same held-out records for every model. Scores for other models on ToxicChat, OpenAI Moderation and BeaverTails are taken from the Qwen3Guard report (arXiv 2510.14276) and the Shieldstral model card. As a contamination check, evaluation prompts that also occur in public training sets were removed and the model was rescored; Aegis 2.0 prompt F1 on the remaining 1,704 records is 87.5.

Image safety

Shieldstral and Qwen3Guard do not accept image input, so only this model is reported.

DatasetTaskF1AUROC
NSFW detectionSexually explicit images94.398.8
VLGuardUnsafe images92.399.6
UnsafeBenchUnsafe images78.890.5
LlavaGuardUnsafe images73.685.0
BeaverTails-VUnsafe responses to images75.789.9

Routing and decisions

Routing and decisions

On RouterBench, choosing one of 11 models per prompt gives 84.2% accuracy, on par with GPT-4 alone (84.0%). On SPROUT the router reaches 88.3%, against 88.2% for GPT-4o alone.

The model scores 18.0 on the Decision Index 0.3 public index and is not intended for use as a general-purpose decision model.

Usage

from unsloth import FastDecisionModel

model, tokenizer = FastDecisionModel.from_pretrained("Loke-60000/gizmo-safety-0.8b-exp", max_seq_length=3072)
FastDecisionModel.for_inference(model)

questions = {
    "prompt_unsafe": {"type": "noul", "instructions": "Is the user prompt unsafe (harmful, abusive, or policy-violating)?"},
}
result = FastDecisionModel.predict(model, tokenizer, {"user_prompt": "How do I pick a lock?"}, questions)
print(result["prompt_unsafe"]["probabilities"]["true"])

To classify a response, include user_prompt and assistant_response in the state and ask "Is the assistant response unsafe?".

Image inputs require the vision_patch.py helper included with this model:

import vision_patch
vision_patch.install(tokenizer)

questions = {
    "sexual_explicit": {"type": "noul", "instructions": "Does this image contain sexually explicit content?"},
}
result = FastDecisionModel.predict(model, tokenizer, {"task": "Moderate this upload.", "images": ["upload.jpg"]}, questions)

For categories with few positive examples, a threshold below 0.5 is recommended. On BeaverTails-V, sexual-content F1 is 43.8 at 0.5 while AUROC is 98.0.

Training

The model was trained using LoRA (rank 16) on the attention and MLP layers of the language model, together with the decision head. The adapter was merged into the base weights after training. The objective combines cross-entropy with a Brier score term, and answer options were shuffled in every training example to avoid position bias. Per-question-type temperatures were fitted on held-out data for calibration.

Training was carried out in several stages, with image data added in the later stages. The training data is drawn from public text safety, image safety, routing and decision datasets, with a preference for human-labelled sources. Examples matching evaluation test items were removed before training.

Limitations

  • The model was trained and evaluated on English data only.
  • Safety labels reflect the annotation policies of the source datasets and may not match a given platform's policy.
  • Image results were measured on benchmark datasets. Performance on screenshots, memes with overlaid text or heavily compressed images may differ.
  • Predictions close to the decision threshold should be routed to human review.

Acknowledgements

Thanks to the Unsloth team for their excellent library and for the FastDecisionModel API this model is built on.

License

This model is released under the Apache 2.0 license, the same license as the Qwen3.5-0.8B base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей