/ Модель

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

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

qwen35-4b-danger-intent-opendata-qwensynth-79288-v5

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

Дообученный на Qwen3.5-4B текстовый классификатор, который помечает пользовательские запросы как SAFE или UNSAFE для предварительной оценки опасного намерения.

43скачиваний за 30 дней0лайковвеса обновлены31 авг 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

PLJIANGG05 выпустил дообученную на базе Qwen/Qwen3.5-4B модель для классификации пользовательского ввода по меткам SAFE и UNSAFE. Это текстовый классификатор на архитектуре Qwen3.5 с плотными весами; репозиторий содержит объединённую BF16-модель и исходные тензоры LoRA. Для вывода применяется сравнение условных логарифмических правдоподобий двух меток с фиксированными параметрами калибровки и порогом проверки.

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

Автор характеризует модель как исследовательский классификатор, а не универсального ассистента или независимо сертифицированную систему безопасности. Метка SAFE не гарантирует безвредность запроса или последующего ответа; опубликованные оценки не основаны на новом слепом тестовом наборе. Лицензия — CC-BY-NC-4.0, допускающая использование с указанием авторства и ограничивающая коммерческое применение.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.5-4B Danger Intent — Open Data + Qwen Synthetic | 79,288 training-pool records | V5

Merged BF16 full model for classifying a user input as SAFE or UNSAFE. This repository also preserves the original LoRA tensors in adapter/. It is a research classifier, not a general-purpose assistant and not an independently certified safety system.

Quick start

Download this repository, install requirements.txt with an appropriate PyTorch CUDA build, then run:

python predict.py --model . --text "How do I protect my email account?" --load-in-4bit

To reproduce the historical loading strategy rather than quantizing the merged weights:

python predict.py --model . --reference --load-in-4bit --text "How do I protect my email account?"

--reference downloads the pinned upstream base if absent and loads adapter/. Full BF16 CPU inference is available with --device cpu and without --load-in-4bit. Memory demand is materially higher than 4-bit CUDA inference. The portable script selects the correct full architecture automatically. Do not apply the adapter on top of this repository's already merged weights.

The saved native upstream chat template is preserved for provenance. Binary classification uses the explicit fixed template in predict.py and danger_intent_config.json, not an unmodified generic chat pipeline. Output includes the binary prediction, raw margin, risk score, threshold and truncation indicator.

Training data behind the repository name

Current repository: PLJIANGG05/qwen35-4b-danger-intent-opendata-qwensynth-79288-v5. Historical experiment ID: V5. Previously named PLJIANGG05/qwen35-4b-danger-intent-v5.

opendata denotes the six existing public-source datasets listed below, qwensynth denotes reviewed and corrected Qwen-generated samples, and supplement denotes the second five-category AI-generated supplement. sampled4000, when present, means a sampled subset rather than the full pool. Upstream licenses are unchanged.

The name refers to the configured 79,288-record first-stage training pool. The selected checkpoint is best1750; it does not claim every pool record was visited. No second-stage supplement was used by V5.

Training sourceRecords in this model's configured training data
Aegis V225,569
OR-Bench20,062
Chinese Do-Not-Answer2,724
AdvBench509
HarmBench391
JBB-Behaviors200
Corrected Qwen3.5-4B synthetic data29,833
Total79,288

SAFE: 48,003. UNSAFE: 31,285. Validation records are not included in these training totals. See training_dataset_summary.json for stage and validation provenance.

This rename changes repository naming and documentation only. Model weights, adapters, tokenizer, inference code, scoring configuration and historical results are unchanged. release_identity.json retains the original release ID for provenance; rename_history.json records the new ID. Raw training text remains excluded from this model repository.

Training lineage

First-stage pool: 79,288 records. Selected checkpoint: best1750. Original adapter is the selected best-model export, not a new training run.

The name refers to the configured 79,288-record first-stage training pool. The selected checkpoint is best1750; it does not claim every pool record was visited. No second-stage supplement was used by V5. No new training or recalibration was performed for this rename.

Scoring and limits

Full-candidate conditional log likelihood of SAFE and UNSAFE including the end marker; apply the frozen temperature, bias and review threshold in calibration.json.

Maximum classification context is 1,024 tokens under the fixed scorer. For longer inputs the scorer retains roughly 75 percent of the beginning and 25 percent of the end, with a visible truncation marker. This may discard safety-relevant context.

The full Qwen3.5 conditional-generation architecture is retained for adapter compatibility. Only text-input safety classification was trained and evaluated; no image/video safety claim is made.

English and Chinese are present in the task and training data. The current expanded comparison is English only and does not establish Chinese or other-language performance. SAFE is not a guarantee that an input or downstream response is harmless.

Evaluation protocol

Historical results and the expanded 85 percent-trigger comparison use NF4 upstream base plus the original unmerged adapter, with BF16 computation. The full BF16 merged model is a deployment artifact. Requantizing the merged model is not numerically identical to quantizing the base first and adding LoRA. Deployment probe checks are separate from the benchmark.

V9 confidence below 0.85 triggers one vote each from V9, V5 and V7. Confidence equal to or above 0.85 uses V9 alone. The 85 percent threshold does not mean an 85 percent accuracy guarantee. V5/V7 use their existing calibration and decision thresholds unchanged.

XSTest was used historically for validation/calibration; ToxicChat has been inspected repeatedly. Neither is a new blind holdout. New OpenAI Moderation, SimpleSafetyTests and WildGuardTest subsets are English-filtered and normalized-exact-deduplicated against used local data. Their definitions differ from the original Qwen paper, and upstream foundation-model contamination cannot be ruled out. Evaluation results are supplied in the accompanying experiment report when complete.

Provenance and verification

Base: Qwen/Qwen3.5-4B, revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a.

merge_verification.json records a streaming check of every exported tensor, adapter coverage, tied weights, and BF16 loader dtype conversions. SHA256SUMS.json lists distributed files. Adapter tensors are unchanged; its configuration has a portable pinned base identifier instead of a machine-specific path.

Licenses and attribution

Copyright 2026 PLJIANGG05 for new fine-tuning contributions. CC-BY-NC-4.0 applies only to the new fine-tuning contribution, including the adapter; see LICENSE. It does not replace or restrict rights granted by the upstream base's Apache-2.0 license, preserved verbatim in LICENSE.base-model. This combined artifact contains components under different licenses. The Python inference code is Apache-2.0 under LICENSE.code. Upstream training sources retain their respective licenses and attribution; no claim of ownership is made over upstream data.

Please attribute PLJIANGG05 and the original Qwen authors and respect applicable upstream notices. Training text is not included in this model repository. Users should validate the classifier on their own independent data, review false positives/negatives, and retain a human review route for consequential decisions.

Completed expanded comparison

evaluation_comparison.json contains completed results for all 8,498 locked records, including 2,607 new English records. It reports V9 alone, the V9-first 85 percent-trigger V9/V5/V7 ensemble, and native Qwen3Guard Strict and Loose, with confusion matrices and paired bootstrap intervals. V5 and V7 were evaluated only on triggered records in this experiment; do not interpret ensemble performance as their standalone full-suite performance.

These are original NF4 base-plus-adapter results, not benchmarks of the merged or requantized weights. deployment_bf16.json and deployment_nf4.json separately record fixed synthetic probe differences. The complete training-data publication remains pending personal-contact-information review; no raw training or benchmark text is included here.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей