/ Модель

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

Лицензия
MIT
Базовая модель
Qwen2.5-1.5B-Instruct
Библиотека
transformers
Опубликована
13 окт 2026

HYdra

Мультимодальная модель3 профессии

HYDRA — мультимодальная модель на базе Qwen2.5 для ответов на вопросы об изображениях и генерации изображений по тексту.

0скачиваний за 30 дней3лайкавеса обновлены14 окт 2026

Бенчмарки

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

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

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

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

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

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

HYDRA — исследовательская унифицированная мультимодальная модель, разработанная авторами проекта HYDRA и представленная как принятая к NeurIPS 2026. В репозитории есть варианты на 1,5 и 7 млрд параметров на базе Qwen2.5-Instruct; модель объединяет авторегрессионный текстовый декодер и декодер изображений на основе rectified flow matching в общем пространстве параметров. Для токенизации изображений используется HYDRA-TOK — визуальный ViT-токенизатор без квантования, сочетающий представления для генерации и понимания.

Модель предназначена для понимания изображений и генерации изображений по текстовым запросам. В README приведены сценарии визуального вопросно-ответного взаимодействия и text-to-image, а оценка генерации проводилась на наборах GenEval, WISE и DPG-Bench. Для работы нужны кодовая база HYDRA и конфигурации проекта: веса не загружаются напрямую через AutoModel.from_pretrained. Лицензия репозитория — MIT. README называет чекпойнты исследовательскими; также указаны ограничения совместимости с transformers 5.x и зависимостями OmegaConf/ANTLR.

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

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

Ограничения

Чекпойнты предназначены для исследовательского кода HYDRA и не загружаются напрямую через AutoModel.from_pretrained; требуется использовать конфигурации проекта. README указывает на несовместимость с transformers 5.x и необходимость закреплённых версий OmegaConf/ANTLR.

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

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

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

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

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

Открыть на Hugging Face

🎉 HYDRA is accepted by NeurIPS 2026!

Unified multimodal models struggle to bridge the gap between the abstract representations needed for visual understanding and the detailed primitives required for generation. HYDRA closes that gap with a single representation.

  • 🧩 HYDRA-TOK — a representation-harmonized pure-ViT tokenizer, no quantization. The backbone transitions from a Gen-ViT (structure-preserving primitives for synthesis) to a Sem-ViT (semantic encoding), mediated by a Generation-Semantic Bottleneck (GSB) that compresses features to 64 channels, filters noise for robust synthesis, then restores dimensionality for semantic comprehension — all in one architecture.
  • 🔗 HYDRA — a native unified framework built on HYDRA-TOK with a dual-head decoder (autoregressive for text, rectified flow matching for images) sharing a single parameter space.

See the paper for the full benchmark tables.

📦 Files in this repo

PathSizeWhat it is
hydra_1.5b/4.9GHYDRA-1.5B unified model (Qwen2.5-1.5B-Instruct backbone). Single pytorch_model.bin.
hydra_7b/17GHYDRA-7B unified model (Qwen2.5-7B-Instruct backbone). Sharded into 2 files.
hydra_tok_gan/1.1GHYDRA-TOK, GAN-finetuned — use this one for generation (best perceptual quality).
hydra_tok_base/1.1GHYDRA-TOK, base (stage-2, pre-GAN) — used to initialize unified-model training.
hydra_tok_latent_stats.pt1.6MLatent mean/std. Required — the flow head consumes normalized latents.

Each unified model is one self-contained checkpoint holding the Qwen backbone, und_vit (Sem-ViT), semantic_proj, both flow-matching heads, diff_proj and the timestep embeddings — 661 tensors. Both were trained with the same stage-3 finetune recipe, so HYDRA-1.5B and HYDRA-7B are directly comparable.

und_vit_weights.pth is byte-identical between hydra_tok_gan/ and hydra_tok_base/ — the stage-2 GAN finetune only updates the generative half (Gen-ViT + Pixel Flow Decoder) and leaves the Sem-ViT understanding half frozen. The latent statistics were computed on the base tokenizer and are reused by the GAN version, which is consistent precisely because the finetune does not move the latent space.

Measured on ImageNet val (50K, 448→256 LANCZOS, paper protocol): the GAN finetune trades ~0.9 dB PSNR for a ~33% rFID improvement, which is why it is the recommended choice for generation and the base version for reconstruction.

Not included — fetched separately

DependencySourceNeeded for
Qwen2.5-1.5B-InstructQwen1.5B inference + training
Qwen2.5-7B-InstructQwen7B inference + training
InternViT-300M-448px-V2.5OpenGVLabtokenizer stage-1 teacher (training only)
DINO ViT-S/8Meta AItokenizer stage-2 GAN discriminator (training only)

The Qwen backbones are pulled automatically by from_pretrained — no manual download needed.

🚀 Usage

These are research checkpoints for the HYDRA codebase; they are not loadable via AutoModel.from_pretrained. The model is built from the YAML configs, not from the bundled config.json (which is informational only).

git clone https://github.com/Tencent-Hunyuan/HYdra
cd HYdra && pip install -r requirements.txt

[!TIP] No checkpoint download is needed. configs/inference.yaml points at hf://Xuerui123/HYdra/..., and every entry point resolves those specs into the standard HuggingFace cache on first use ($HF_HOME, default ~/.cache/huggingface). Both commands below run as-is on a clean machine.

Multimodal understanding

cd hydra
python evaluation/inference_mmu.py \
    config=configs/inference.yaml \
    mmu_image_path=./test.jpg \
    question='Describe this image.'

mmu_image_path also accepts a directory, in which case every image inside is processed. Multiple questions can be asked in one pass by separating them with ***, e.g. question='What is in this image? *** What color is the sky?'.

Text-to-image

inference_t2i.py must be launched with torchrun — prompts are sharded across ranks internally.

cd hydra
torchrun --nproc_per_node=8 evaluation/inference_t2i.py \
    config=configs/inference.yaml \
    t2i_prompts_file=prompts/t2i_prompts.txt \
    output_dir=samples

The defaults these two commands pick up are HYDRA-1.5B + hydra_tok_gan + hydra_tok_latent_stats.pt + Qwen/Qwen2.5-1.5B-Instruct. To swap in the base tokenizer (reconstruction comparisons only), add model.hydra_tok_model.pretrained_model_path=hf://Xuerui123/HYdra/hydra_tok_base.

7B

Override the three fields that differ from the 1.5B default:

    model_path=hf://Xuerui123/HYdra/hydra_7b \
    model.llm.llm_model_path=Qwen/Qwen2.5-7B-Instruct \
    model.llm.hidden_size=3584

For T2I, add transport.time_shifting_factor=3.0 — the 7B was evaluated with a shift of 3.0, whereas the config default of 5.0 is the 1.5B setting.

Local weights instead

huggingface-cli download Xuerui123/HYdra --local-dir ckpt

# or just the 1.5B generation stack (~6G)
huggingface-cli download Xuerui123/HYdra --local-dir ckpt \
    --include "hydra_1.5b/*" "hydra_tok_gan/*" "hydra_tok_latent_stats.pt"

The layout matches the ckpt/ directory the code expects; then override with model_path=../ckpt/hydra_1.5b. HYDRA_HF_SKIP_DOWNLOAD=1 turns hf:// resolution off completely.

Sampling protocol

Every sampling knob lives under transport.; a bare guidance_scale=... is rejected rather than silently ignored. configs/inference.yaml ships the HYDRA-1.5B GenEval/WISE setting, so only the 7B and DPG-Bench need overrides.

SettingHYDRA-1.5BHYDRA-7B
transport.guidance_scale5.05.0
transport.time_shifting_factor5.03.0
transport.num_inference_steps — GenEval / WISE50200
transport.num_inference_steps — DPG-Bench100100

Bold entries differ from the shipped config defaults (5.0 / 5.0 / 50).

time_shifting_factor is the only timestep shift that affects generation — it reshapes the sampling grid as t → t / (t + f − f·t). The do_shift flag is training-only and has no effect at inference. Setting time_shifting_factor=0.0 disables the shift and causes a train/test mismatch.

[!NOTE] GenEval and DPG-Bench numbers were measured with the detailed caption prompts (prompts/geneval_detailed_caption.csv). The prompt set matters a lot: the same checkpoints score ~0.78–0.80 with rewritten prompts and ~0.64 with the original short prompts.

⚙️ Requirements

[!IMPORTANT] transformers must be 4.x. Version 5 removed SlidingWindowCache from transformers.cache_utils, which the Qwen2 modeling file imports at module level, so every entry point fails at import on 5.x.

omegaconf 2.3 also requires the antlr4 4.9.3 runtime — a newer antlr4 makes every OmegaConf.load raise Could not deserialize ATN with version (expected 4). Both constraints are pinned in the repo's requirements.txt.

🙏 Acknowledgements

📄 License

MIT, matching the code release. The checkpoints inherit the licenses of their base models — Qwen2.5 (Apache-2.0) for the unified models, and for HYDRA-TOK the terms of the InternViT teacher used in stage-1 distillation.

📖 Citation

@article{qiu2026hydra,
  title={{HYDRA}: Representation Harmonized Tokenization for Multimodal Generation and Understanding},
  author={Qiu, Xuerui and Cui, Yutao and Zhang, Guozhen and Li, Junzhe and Zhao, Yaqi and Zhang, Xiao and Li, Yang and Liu, Songtao and Yang, Miles and Shi, Yu and Zhong, Zhao and Bo, Liefeng},
  journal={arXiv preprint arXiv:2603.15228},
  year={2026}
}

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

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

GPU в ailist

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

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

Any-to-any модели пока не поддерживаются.

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

0 моделей