/ Модель

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

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

Qwen3.5-9B-yoiko-img-prompt-gen-instruct-7-bf16

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

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

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

Текстовая модель Qwen3.5-9B для преобразования коротких запросов к изображениям в англоязычные позитивные промпты Stable Diffusion.

Это текстовая модель Qwen3.5-9B, дообученная сообществом yoikoarmor и выпущенная как объединённая версия BF16. Она предназначена для преобразования коротких запросов к изображению в англоязычные позитивные промпты для Stable Diffusion. Модель принимает текст; компоненты для обработки изображений и видео удалены. В метаданных указаны архитектура Qwen3_5ForCausalLM, 7,2 млрд параметров и контекст до 262 144 токенов.

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

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

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

Ограничения

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

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

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

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

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

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

Qwen3.5-9B-Instruct-7-merged-bf16

A text-only BF16 merged model for rewriting short image requests into English positive prompts for Stable Diffusion. This is a community fine-tuned derivative, not an official Qwen release. The name "7" identifies one selected LoRA adapter; it does not mean that seven adapters were combined.

Origin and changes

  • Base: Qwen/Qwen3.5-9B, exact revision c202236235762e1c871ad0ccb60c8ee5ba337b9a.
  • Adapter: LoRA 7 (07_changed_only_regenerated_user), best evaluation adapter from epoch 3 / checkpoint 546, rank 16, alpha 32.
  • Adapter SHA-256: d60d86811c44baebd5c5a4852532785fbea6822fbc7407bb8679548939bd764c.
  • Merged with PEFT safe_merge=True into the original unquantized BF16 base, not into a dequantized NF4 model.
  • Exported as Qwen3_5ForCausalLM. The vision encoder and multimodal components were omitted. Image/video inputs are not supported.
  • This repository contains merged weights, tokenizer/configuration, licensing, and sanitized provenance only. It does not contain training data or credentials.

License and attribution

The base model is Copyright 2026 Alibaba Cloud and is distributed under the Apache License 2.0. The original LICENSE is preserved. This derivative is distributed under Apache-2.0. This model's modifications are described above; no endorsement by Alibaba Cloud or the Qwen team is implied.

Quantized companion

A Q4_K_M GGUF version is available at yoikoarmor/Qwen3.5-9B-Instruct-7-GGUF. Its quantization and runtime differ from this BF16 export; see the comparison limits below.

Usage

Tested with Python 3.12, PyTorch 2.10.0, Transformers 5.3.0, PEFT 0.18.1, and Accelerate 1.13.0. PEFT is not required to load the already merged model. Use Transformers 5.3.0 or a compatible newer version with qwen3_5_text support.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "yoikoarmor/Qwen3.5-9B-Instruct-7-merged-bf16"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, dtype=torch.bfloat16, device_map="auto"
)
system_prompt = 'You rewrite short image-generation requests into strong positive prompts for Stable Diffusion. Control explicit Stable Diffusion attention weights deliberately according to the importance of each concept in the user request. Use (phrase:weight) when weighting is useful: 1.0 is neutral, values below 1.0 de-emphasize, and values above 1.0 emphasize. Choose appropriate strengths, for example 0.8-0.95 for secondary details that should be subdued, 1.0 or no explicit weight for ordinary details, 1.1-1.2 for moderate emphasis, and 1.25-1.4 for a genuinely central requested subject or attribute. Do not mechanically assign 1.1 to everything or reuse a constant weight by habit. Do not vary numbers merely to create variety: equal weights are acceptable for equally important concepts. Reserve stronger weights for meaningful priorities, preserve the user request, and do not add unwanted concepts merely to demonstrate weighting.'
messages = [
    {"role": "system", "content": system_prompt},
    {"role": "user", "content": "少年の旅立ち"},
]
text = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(text, return_tensors="pt", add_special_tokens=False).to(model.device)
with torch.inference_mode():
    outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(outputs[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))

The system prompt is required at inference time; it is not embedded as a default instruction in the weights. BF16 weights alone occupy about 18 GB. Runtime memory is higher; smaller GPUs can use an optional compatible quantization backend.

Validation and limitations

Validation used the exact system prompt above and the user input 少年の旅立ち, thinking disabled, deterministic greedy decoding, and 128 new tokens. The prompt can exceed this validation limit; the test is not a quality benchmark.

  • PEFT safe merge completed without non-finite weights.
  • All saved parameters are BF16, with no remaining LoRA modules.
  • The saved model was reloaded successfully. Next-token logits and the 128-token greedy output were bit-exact between the in-memory merged model and its reload.
  • Pre-merge adapter inference and merged BF16 inference are not identical. BF16 rounding produced max absolute next-token logit difference 0.12890625, mean difference 0.0210571103, and RMSE 0.0270430148. Both logits were finite, but their top-1 token and greedy outputs differed. For this input, the two leading tokens were exactly tied at 19.5 before merge; after merge, (master scored 19.625 and master remained at 19.5. This explains why a small numerical change can select a different initial token.
  • Three short-input next-token comparisons also passed finite-logit and cosine similarity > 0.999 checks. Their top-five logits, top-1/top-2 margins, and relative L2 errors are recorded in provenance.json. This is a numerical smoke test, not proof of identical behavior.
  • This does not guarantee equivalence to the earlier NF4 + adapter setup. Quantization and merging can change output.
  • The model may repeat concepts, reuse a constant weight such as 1.2 despite the weighting instruction, produce unfinished output at the token limit, or add details not requested. Review generated prompts before use. No general quality improvement or benchmark score is claimed.
  • Training-data sources, rights, licensing, and composition are not established by the metadata available for this release. This card does not certify the dataset or guarantee rights clearance. No training dataset is distributed in this repository.

See provenance.json for exact versions and validation values, and SHA256.json for downloadable-file integrity hashes.

Intended use and unsupported use

Use this model as an assistive text tool for drafting positive Stable Diffusion prompts from short requests. Review the subject, scene details, and explicit attention weights before using the result. Support for Japanese inputs and English prompt outputs is demonstrated only by limited local tests.

This text-only export does not accept images or video. It is not an image generator, a general-purpose assistant, a factual reference system, or a validated tool for medical, legal, financial, or other consequential decisions. It does not establish that the generated images will preserve the request or achieve a particular quality.

Twenty-input first-token comparison

A separate local comparison used 20 varied, convenience-selected short image requests with the exact system prompt in this card and thinking disabled. The rendered prompts and input token sequences were verified identical for all 20 inputs across the compared setups. These are pre-generation candidate distributions for the first content token, after the empty no-thinking block. They are not comparisons of complete answers.

The setups were: the unquantized BF16 base with PEFT LoRA 7 attached; this merged BF16 model; and a Q4_K_M GGUF converted from the merged model. The comparison aligned 248,077 assigned vocabulary entries by token ID and excluded 243 unassigned HF / GGUF placeholder rows. Exact ties use ascending token ID for deterministic rankings; tie-aware results are reported separately.

ComparisonTop-1 matchTie-aware top-1Exact top-5 set matchMean top-5 overlapTie-compatible top-5
PEFT BF16 vs merged BF1695% (19/20)100%95%99%100%
Merged BF16 vs Q4_K_M90% (18/20)95%45%89%45%

For PEFT BF16 vs merged BF16, mean logits cosine similarity was 0.999884435 and mean relative L2 error was 0.015128595. BF16 rounding can change a tied or near-tied winning token, and autoregressive generation can then diverge.

Definitions and limits:

  • Top-1 is the highest-ranked token after the tie rule. Tie-aware top-1 means the exact argmax token sets have a nonempty intersection.
  • Top-5 set match requires the same five token IDs; mean overlap is the shared count divided by five, averaged over the 20 inputs.
  • Tie-compatible top-5 means that at least one identical valid top-5 set exists when exact boundary ties are allowed. GGUF ties are limited by the precision of the returned probabilities.
  • HF comparisons used raw logits. The GGUF API returned log probabilities, so no cross-backend Q4 logits cosine or relative L2 result is claimed.
  • Q4 differences combine quantization and runtime/kernel differences. They do not isolate quantization error.
  • These percentages are not full-text agreement, semantic agreement, or Stable Diffusion image-quality scores. Twenty convenience prompts are not a representative benchmark or evidence of generalization.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
6fb87cf

0 моделей