/ Модель

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

Контекст
262 144 токена
Параметры
3,7 млрд
Лицензия
CC BY-NC 4.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B-Instruct-2507
Библиотека
transformers
Опубликована
5 окт 2026

CHILLGuard-4B

Генерация текстаТекст → текст3 профессии
530скачиваний за 30 дней1лайквеса обновлены5 ноя 2026

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

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

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

CHILLGuard-4B — классификатор безопасности запросов на китайском языке, разработанный авторами проекта CHILLGuard и дообученный на базе Qwen/Qwen3-4B-Instruct-2507. Модель предназначена для модерации запросов: она определяет, безопасен ли запрос, и относит потенциально вредное содержание к одной из 5 макрокатегорий и 31 микрокатегории, учитывающих китайские нормы и языковые особенности.

Модель построена на плотной архитектуре Qwen3 и содержит 3,7 млрд параметров. Она принимает текст и выдаёт текстовую классификационную оценку; в метаданных указан контекст до 262 144 токенов. Авторы сообщают о ведущих результатах на собственном наборе CHILLGuardTest для моделей серии 1.7B, 4B и 8B.

CHILLGuard-4B рассчитана прежде всего на китайскую модерацию в исследовательских и некоммерческих системах защитных ограничений. Перенос на другие языки и устойчивость к новым адаптивным атакам ограничены; возможны чрезмерная блокировка и ложные срабатывания, поэтому пограничные случаи следует проверять человеком. Лицензия — CC BY-NC 4.0, допускающая использование с указанием авторства и ограничивающая коммерческое применение.

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

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

Ограничения

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

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

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

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

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

Источники: 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

CHILLGuard-4B

CHILLGuard: Towards Fine-Grained Chinese LLM Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignment (Findings of EMNLP 2026)

CHILLGuard-4B is a fine-grained Chinese LLM content-safety guardrail classifier fine-tuned from Qwen3-4B-Instruct-2507. It judges whether a Chinese prompt is safe or unsafe, with a 5-macro / 31-micro harm taxonomy aligned with Chinese regulations and linguistic characteristics.

Usage

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "cswbyu/CHILLGuard-4B"
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)

messages = [
    {"role": "system", "content": "你是一个安全审核助手。请只输出'安全'或'不安全'。"},
    {"role": "user", "content": "请判断以下文本是否安全:\n<待检测文本>"},
]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt",
    return_dict=True, enable_thinking=False
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=10, do_sample=False)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
# -> "安全" or "不安全"

vLLM

vllm serve cswbyu/CHILLGuard-4B --max-model-len 2048

> When calling the OpenAI-compatible server, pass `"chat_template_kwargs": {"enable_thinking": false}` in the request (required for 1.7B / 8B; no effect on 4B), and use the same system / user prompt as above.

Requires transformers >= 5.3 (the config uses the new dtype field).

Training

The model is trained with the generator–classifier collaborative training framework (paper Sec. 4.3) via Model-aware Direct Preference Optimization (MDPO): three iterations, in which the classifier is fine-tuned from the Qwen3 base model in every iteration, while the uncensored Dolphin3.0-Llama3.1-8B rewriting generator produces adversarial prompts in iterations 1 and 2.

Intended Use & Limitations

  • Intended for Chinese prompt-level content safety moderation in research and non-commercial guardrail settings.
  • Optimized for Chinese content; generalization to other languages and emerging adaptive adversarial attacks is limited (see the paper's Limitations section).
  • As with any moderation system, over-censorship and false positives are possible; human review is recommended for borderline cases.

Ethical Considerations

This model is trained on datasets containing examples of harmful content for the purpose of detecting and mitigating such content. It must not be used to generate harmful content. The datasets were screened to remove personally identifiable information.

Citation

@inproceedings{yu-etal-2026-chillguard,
  title     = "{CHILLG}uard: Towards Fine-Grained {C}hinese {LLM} Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignment",
  author    = "Yu, Wenbo  and
             Wang, Bohua  and
             Fang, Hao  and
             Gao, Kuofeng  and
             Zeng, Jingru  and
             Yang, Xiaochen  and
             Zhang, Tianyi  and
             Ma, Xiaoxiao  and
             Kong, Jiawei  and
             Wu, Hao  and
             Chen, Bin  and
             Xia, Shu-Tao  and
             Zhang, Min",
  editor    = "Lee, Hung-Yi  and
             Dev, Sunipa  and
             Li, Jessy  and
             Elliott, Desmond",
  booktitle = "Findings of the {A}ssociation for {C}omputational {L}inguistics: {EMNLP} 2026",
  month     = oct,
  year      = "2026",
  address   = "Budapest, Hungary",
  publisher = "Association for Computational Linguistics",
  url       = "https://aclanthology.org/2026.findings-emnlp.1721/",
  doi       = "10.18653/2026.findings-emnlp.1721",
  pages     = "36802--36827",
  ISBN      = "979-8-89176-462-0",
  abstract  = "Malicious content generated from large language models (LLMs) could pose severe safety risks and ethical concerns. While existing LLM safety guardrails excel in English or multilingual settings, they lack adaptation to Chinese-specific regulatory policies, cultural context, and linguistic nuances, failing to support fine-grained risk classification for diverse deployment needs. In this paper, we introduce a 5-macro, 31-micro category fine-grained risk taxonomy for Chinese scenarios, and build $\textbf{CHILLGuard}$: a dedicated $\textbf{Chi}$nese $\textbf{LL}$M content safety $\textbf{guard}$rail. To address the critical scarcity of high-quality annotated Chinese safety data, we propose a scalable multi-stage data construction pipeline: we expand multi-source corpus via retrieval-augmented generation, generate implicit harmful samples through prompt engineering rewriting, and refine high-quality data via multi-model voting-based label calibration. Based on this, we build $\textbf{CHILLGuardTrain}$, a large-scale training set with 405,007 samples, and $\textbf{CHILLGuardTest}$, a rigorously curated annotated test set with 51,745 samples. We then train CHILLGuard on CHILLGuardTrain under a generator-classifier collaborative framework via Model-aware Direct Preference Optimization. Extensive experiments under multiple settings demonstrate the state-of-the-art performance of CHILLGuard, e.g., a 15.92{\%} relative improvement of F1 score over Qwen3Guard-8B-Strict on our benchmark. We release our resources at https://github.com/cswbyu/CHILLGuard."
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей