Skip to content
Computer vision

EcoWitness-Qwen3.5-9B-RL-LoRA

модель с проверкой ссылок на доказательства

2 min readupdated

Автор ForeverBlue выпустил LoRA-адаптер (небольшую надстройку) для мультимодальной модели Qwen/Qwen3.5-9B, обученный с помощью RL (обучения с подкреплением) и автоматического верификатора. Модель решает задачи по экологии рек на основе спутниковых снимков Sentinel-2, описаний участков и списков видов из анализа ДНК среды (eDNA), где каждый фрагмент данных имеет свой идентификатор. В отличие от обычных VLM, она не просто выбирает вариант ответа, но и строго указывает идентификаторы использованных и критически важных (load-bearing) фактов, а также умеет пересчитывать выводы при изменении исходных данных. Адаптер пригодится исследователям, изучающим проверяемость рассуждений (grounding) и устойчивость моделей к правкам контекста.

Ключевые особенности

  • Строгая привязка к фактам: ответ формируется в три строки — answer, support и load_bearing с точным перечислением ID источников.
  • Обучение с верификатором: во время RL каждый ответ проверялся движком правил, который точно оценивал как правильность вывода, так и набор указанных доказательств.
  • Устойчивость к изменениям: в обучение включены сценарии со скрытым редактированием фактов и явным обновлением данных, где модель должна отследить изменения.
  • Адаптация только языковой части: веса LoRA (r=32, 86.6 млн параметров) затрагивают только проекции языковой модели, оставляя визуальный энкодер замороженным.

Что можно сделать

  • Протестировать на бенчмарке EcoWitness: запустить оценку модели на задачах по речной экологии и проверить её реакцию на подмену или обновление исходных свидетельств.
  • Изучить пайплайн verifier-guided RL: использовать открытый код из репозитория EcoWitness как референс для обучения собственных моделей с проверкой ссылок на источники.

Пример

import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoProcessor

base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.5-9B", dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(base, "ForeverBlue/EcoWitness-Qwen3.5-9B-RL-LoRA").merge_and_unload()
processor = AutoProcessor.from_pretrained("ForeverBlue/EcoWitness-Qwen3.5-9B-RL-LoRA")
ПодробнееВалидация (240 записей): точность ответов выросла с 60.8% до 93.8%, F1-мера для load_bearing — с 0.536 до 0.974, для support — с 0.541 до 0.994.
Обучение: 2500 шагов на 80 000 эпизодах (2× NVIDIA H100 80 GB, 17.5 часов, пик памяти 40 GB на GPU).
Требования: transformers >= 5.3, peft >= 0.18, формат промптов witness-protocol с отключённым режимом рассуждений (enable_thinking=False).
Ограничения: только английский язык; модель заточена исключительно под формат бенчмарка и не является универсальным ассистентом по экологии.
Discuss Telegram 0 40

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # ForeverBlue/EcoWitness-Qwen3.5-9B-RL-LoRA
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download ForeverBlue/EcoWitness-Qwen3.5-9B-RL-LoRA --local-dir ~/models/EcoWitness-Qwen3.5-9B-RL-LoRA
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of EcoWitness-Qwen3.5-9B-RL-LoRA (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

ForeverBlue/EcoWitness-Qwen3.5-9B-RL-LoRA
Author
ForeverBlue
Category
Computer vision
Released
Posted

On NeyroLearn

Hugging Face

400

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments

Other

Calpha

Calpha