/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3-4B
Библиотека
transformers
Опубликована
31 мая 2025

Qwen3-4B-unc

Генерация текстаТекст → текст

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

0скачиваний за 30 дней15лайковвеса обновлены28 июн 2025

Бенчмарки

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

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

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

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

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

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

Модель fedric95/Qwen3-4B-unc разработана Federico Ricciuti и представляет собой дообученную версию Qwen/Qwen3-4B для генерации текста в диалоговом формате. Её предполагаемые сценарии — создание защитных механизмов модерации для запросов и ответов LLM, подготовка пар безопасных и небезопасных предпочтений для выравнивания моделей и оценка их безопасности.

Модель работает с текстом и может генерировать откровенный и нецензурированный контент, включая материалы на потенциально травмирующие темы. В README указано, что веса, данные и код предназначены только для академических исследований и не могут использоваться в коммерческих целях; метаданные при этом обозначают лицензию Apache 2.0, поэтому условия использования следует сверять с полным комплектом материалов репозитория.

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

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

Ограничения

Модель способна генерировать откровенный и потенциально оскорбительный контент, в том числе на темы насилия и самоповреждения. README ограничивает использование академическими исследованиями и запрещает коммерческое применение; метаданные указывают Apache 2.0, поэтому условия лицензирования требуют проверки.

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

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

Открыть на Hugging Face

Model Card for Model ID

Model Description

  • Developed by: Federico Ricciuti
  • License: Apache 2

Direct Use

The resources, including code, data, and model weights, associated with this project are restricted for academic research purposes only and cannot be used for commercial purposes.

To build LLM content safety moderation guardrails for LLMs, can be used to train both prompt and response moderation.

Can be used for alignment of general purpose LLMs towards safety along with carefully using the data for safe-unsafe preference pairs.

Can be used for the evaluation of the safety allignment of LLMs.

Out-of-Scope Use

The model may generate content that may be offensive or upsetting. Topics include, but are not limited to, discriminatory language and discussions of abuse, violence, self-harm, exploitation, and other potentially upsetting subject matter. Please only engage with the data in accordance with your own personal risk tolerance. The data are intended for research purposes, especially research that can make models less harmful. The views expressed in the data do not reflect my view.

Disclaimer

The resources, including code, data, and model weights, associated with this project are restricted for academic research purposes only and cannot be used for commercial purposes.

This model is capable of generating uncensored and explicit content. It should be used responsibly and within the bounds of the law. The creators do not endorse illegal or unethical use of the model. Content generated using this model should comply with platform guidelines and local regulations regarding NSFW material.

Quickstart

The following contains a code snippet illustrating how to use the model generate content based on given inputs.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "fedric95/Qwen3-4B-unc"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)

# prepare the model input
prompt = "Give me a short introduction to large language model."
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=True # Switches between thinking and non-thinking modes. Default is True.
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

# conduct text completion
generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=32768
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist() 

# parsing thinking content
try:
    # rindex finding 151668 (</think>)
    index = len(output_ids) - output_ids[::-1].index(151668)
except ValueError:
    index = 0

thinking_content = tokenizer.decode(output_ids[:index], skip_special_tokens=True).strip("\n")
content = tokenizer.decode(output_ids[index:], skip_special_tokens=True).strip("\n")

print("thinking content:", thinking_content)
print("content:", content)

More information in the Qwen3-4B repo.

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
d0b9659

0 моделей