/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-4B
Опубликована
16 ноя 2026

qwen3.5-lumenraw-optimize

Изображение и текст → текст3 профессии
1 673скачиваний за 30 дней1лайквеса обновлены16 ноя 2026

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

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

Модель на базе Qwen3.5-4B для преобразования запросов на китайском и английском языках в команды редактирования фотографий и управления редактором LUMEN RAW.

Qwen3.5 LumenRAW Optimize — дообученная модель на базе Qwen3.5-4B, созданная для RAW-фоторедактора LUMEN RAW. Она преобразует запросы на китайском или английском языке, статистику фотографии и при необходимости её превью в JSON-параметры редактирования: настройки изображения, цветокоррекцию, кривые и маски. Также модель умеет управлять LUMEN RAW через 32 MCP-инструмента для импорта, открытия, редактирования, экспорта и сохранения фотографий.

Модель дообучена методом LoRA на ответах более крупной модели-преподавателя и примерах исправления ошибок. Доступны варианты GGUF с квантованием Q4_K_M и Q8_0, а также safetensors; для запросов с изображением в GGUF-сценарии нужен файл vision encoder. В испытаниях на собственных задачах редактора модель показала высокую точность, однако результаты относятся к ограниченным тестовым наборам и китайскому и английскому языкам.

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

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

  • коррекция RAW-фотографии по текстовой просьбе
  • настройка экспозиции, цвета и кривых в LUMEN RAW
  • создание масок неба, объекта, воды и растительности
  • управление импортом, открытием и сохранением фотографий через инструменты LUMEN RAW
  • редактирование фотографии с учётом её превью и статистики

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.5 LumenRAW Optimize (4B)

A fine-tune of Qwen3.5-4B for LUMEN RAW, a RAW photo editor. It does two jobs, locally and in Chinese or English:

  • Natural-language editing: turns a request such as "压暗天空,保留云层" or "make it warmer", with the photo's statistics and optionally a preview image, into LUMEN RAW's edit JSON (global sliders, HSL, colour grading, curves, LUT strength, AI masks for sky / subject / water / vegetation …).
  • Operating LUMEN RAW through its 32 MCP tools: import, open, edit, masks, ratings, export, save.

It is not a general chat model. It expects the prompts LUMEN RAW's tools use, which are in prompts/.

It was trained with LoRA on answers from a larger teacher model, DeepSeek-V4.1-Flash-1017 (through DeepSeek's API). The training set included 400 corrections, cases where the teacher took over from this model's own mistakes (section Training).

Files

FileSizeUse
qwen3.5-lumenraw-optimize-Q4_K_M.gguf2.8 GBThe model for llama.cpp / LM Studio (recommended)
qwen3.5-lumenraw-optimize-Q8_0.gguf4.6 GBSame model, 8-bit: no dangerous action in the tests, 20–35% slower
mmproj-qwen3.5-lumenraw-optimize-f16.gguf0.67 GBVision encoder (needed for requests with a preview image)
adapter/85 MBThe LoRA adapter for Qwen/Qwen3.5-4B (revision 851bf6e), PEFT format
prompts/system_prompt.txtSystem prompt for natural-language editing
prompts/agent_prompt.txt, prompts/tools.jsonSystem prompt and tool definitions (OpenAI function format) for tool use

Usage

Tested on Windows on 2026-11-17 with LM Studio 0.4.14, Ollama 0.40.16 and llama.cpp, each with a picture.

LM Studio: search qwen3.5-lumenraw-optimize in Discover and download Q4_K_M (3.49 GB; the vision file comes with it). Set the context length to 8192 or more, then load it. The local server is http://127.0.0.1:1234/v1, model id qwen3.5-lumenraw-optimize.

Ollama: ollama run hf.co/H3tY/qwen3.5-lumenraw-optimize:Q4_K_M downloads the model and the vision file (3.5 GB in all).

In LUMEN RAW 2.3: open the natural-language panel's settings, choose LM Studio or Ollama, pick this model, set thinking to off and tick the preview image option. LUMEN RAW 2.3 sends its own built-in prompt rather than prompts/system_prompt.txt, and with it this model did 88.0% of the held-out set (the original Qwen3.5-4B: 82.9%), against 98.1% with the prompt it was trained on.

llama.cpp:

llama-server -m qwen3.5-lumenraw-optimize-Q4_K_M.gguf --mmproj mmproj-qwen3.5-lumenraw-optimize-f16.gguf \
    --jinja -c 32768 -ngl 999

Thinking is off by default. The model was trained and tested with thinking off, so its chat template leaves thinking out unless a request sets "chat_template_kwargs": {"enable_thinking": true}. The tests used temperature: 0.3.

Natural-language editing. The system message is prompts/system_prompt.txt. The user message has the form LUMEN RAW builds:

照片信息:{"格式": "NEF", "尺寸": "6048 × 4024", "相机": "…", …}
当前效果的统计信息:{"亮度分位(0–1)": {…}, "高光溢出比例": 0.003, …, "色彩倾向": "整体偏暖"}
当前参数(未列出的都是默认值):{"adjustments": {"temperature": 28.0}}
用户指令:压暗天空,保留云层

With a preview, the image (JPEG, long edge 768) goes in the same message. The answer is one JSON object, for example {"explanation": "…", "masks": [{"region": "sky", "adjustments": {"exposure": -0.6, "highlights": -30}}]}.

Tool use. The system message is prompts/agent_prompt.txt and the tools are prompts/tools.json. The user message is the request followed by the editor's state, e.g. Export the selected photos to E:/batch as tif\n\nCurrent photo: D:/photos/DSC_0001.NEF; selected: ….

Validate what the model returns before applying it, as LUMEN RAW does. Answers can occasionally be malformed (see Limitations).

Evaluation

The benchmarks were run with LUMEN RAW's own validator and command layer, with no repair of the model's output.

  • Seed set (102): hand-written cases.
  • Held-out set (158): test phrasings and test photos.
  • Hard set (260): compound, vague, multi-turn, settings-preserving and tool cases.
  • Photo set (46): vision.

No benchmark phrasing or photo was in the training data: photos are split by their sha256, and phrasings by template.

Did what was askedSeed 102Held-out 158Hard 260Hard: tool cases
Teacher (DeepSeek-V4.1-Flash-1017)97.1%98.1%98.5%99.2%
Qwen3.5-4B, first round (NL only), Q4_K_M95.1%97.5%88.1%83.5%
This model, Q4_K_M93.1%98.1%96.5%100%
This model, Q8_097.1%98.7%95.0%100%
Strictly valid as given (seed / held-out / hard)Dangerous actions (all 520)Median request time
Teacher93.8% / 90.5% / 95.0%1 (0.19%)1.3–1.6 s (API)
First round, Q4_K_M97.5% / 97.3% / 97.1%21 (4.04%)0.5–0.8 s
This model, Q4_K_M95.0% / 97.3% / 100%2 (0.38%)0.5–0.9 s
This model, Q8_096.2% / 96.0% / 99.3%00.6–1.2 s

The rows for this model are the files published here, re-tested on 2026-11-17. Before the re-export (see Changes) the same weights scored Q4_K_M 92.2% / 98.7% / 96.5% with 2 dangerous actions and Q8_0 96.1% / 98.7% / 95.8% with 1. Splitting the merged tensors changes the rounding of the matrix products, not the weights, so a few answers sampled at temperature 0.3 come out differently.

A dangerous action is an unrequested reset or removal of a LUT or mask, an export over an original or an existing file without being asked, or a file written when nothing should change. Local times are on one AMD RX 9070 XT. Photo set (Q4_K_M): 97.8% with statistics + image, 100% with the image only.

Limitations

  • "Export over the original file." When the user explicitly asks to export over the RAW file, the model still calls export_photo onto the original with overwrite: true. This accounts for both remaining dangerous actions. LUMEN RAW's export command refuses it, so no original is lost there. In any other host, keep such a guard: never give the model a tool that can destroy files unchecked.
  • 2/520 is a point estimate. The 95% upper bound of the dangerous-action rate is about 1.2%.
  • Changing one's mind across turns is weak. After "warmer", "算了,还是冷一点吧" should end up cooler than the original; the model often only takes some of the warmth back (6/15, teacher 15/15).
  • Occasional malformed answers. For example, an hsl object written inside the masks list, a mask exposure on a ±100 scale (the range is −5…5 EV), or grain under adjustments instead of effects.
  • Scope. It was tested only on LUMEN RAW's tasks, in Chinese and English. The edits it proposes are AI-generated; tell your users so.

Training

  • Method: LoRA (r 16, α 32, dropout 0).
    • Targets: q/k/v/o of the 8 full-attention layers and gate/up/down of all 32 layers.
    • 21.2 M trainable parameters (0.46% of the model). Merged, the 128 target matrices change by about 1% each (0.57–1.48%).
    • Frozen: the vision encoder, the projections of the 24 linear-attention layers, the embeddings and the output layer.
  • Data: 1,016 training samples (137 more for validation), all with thinking off.
    • 666 answers from the teacher: 598 natural-language, 68 tool use.
    • 350 corrections: the first-round model answered training prompts; where it failed or did something dangerous, the teacher continued from the model's own state and only the teacher's turns were trained.
    • Photos: openly licensed (CC0) photos, training and validation splits only.
  • Schedule: 2 epochs, 342 steps of 8 examples, learning rate 1e-4, up to 16,384 tokens per example. Validation loss 0.330 → 0.324.
  • Hardware: one AMD Radeon RX 9070 XT (16 GB), ROCm PyTorch on Windows, about 14 h.

The teacher's outputs were obtained under the DeepSeek Open Platform Terms of Service (effective 2026-04-29). Section 4.2 assigns the outputs to the user and lists "training other models (such as model distillation)" as a permitted use. This model is not affiliated with or endorsed by DeepSeek, Alibaba Cloud (Qwen) or any camera maker.

Changes

  • 2026-11-17: the Q4_K_M and Q8_0 files were re-exported. The weights are unchanged. Each linear-attention layer now stores its tensors separately: attn_qkv + attn_gate and ssm_beta + ssm_alpha, row slices of the merged attn_qkv_gate and ssm_beta_alpha, with no re-quantisation. With the merged tensors, LM Studio 0.4.14 and Ollama 0.40.16 failed with "tensor 'blk.0.ssm_beta.weight' not found". The chat template was also changed to leave thinking off by default. The first files are still in the repo history.

License

Apache-2.0, like the base model (see LICENSE). Changes from Qwen3.5-4B: LoRA fine-tuning as described above, merged into the weights and quantised with llama.cpp.


中文说明

用途: 这是 LUMEN RAW 修图软件的专用本地模型,基于 Qwen3.5-4B 微调,做两件事:

  • 把中文或英文的修图要求转换成 LUMEN RAW 的参数 JSON;
  • 通过 32 个 MCP 工具操作 LUMEN RAW。

它不是通用聊天模型,需要配合 prompts/ 里的提示词使用,并且要关闭思考。

训练: 教师是 DeepSeek-V4.1-Flash-1017,训练集包括 400 条纠错样本,即教师接手改正这个模型自己做错的回答。

评测: Q4_K_M 版本在种子集、测试集、困难集共 520 条里,危险操作 2 次(0.38%),困难集做到要求的事 96.5%,教师是 98.5%。

已知问题:

  • 用户明确要求“导出覆盖原文件”时,模型仍会照做。LUMEN RAW 的导出命令会拒绝这个调用;在别的软件里使用时,请保留这类保护。
  • 多轮对话里改主意的请求处理得不好。

许可: Apache-2.0。

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

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

GPU в ailist

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

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

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
6309e23

0 моделей