/ Модель

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

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

NativeCodec-4B-FixedRatio

Компьютерное зрениеВидео, текст → текст3 профессии

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

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

Бенчмарки

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

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

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

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

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

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

NativeCodec-4B-FixedRatio — мультимодальная модель для понимания видео, созданная Tennineee на основе Qwen/Qwen3.5-4B-Base и дообученная для работы с визуальными токенами инкрементального кодека NativeCodec. Модель использует архитектуру Qwen3_5ForConditionalGeneration и содержит около 4,66 млрд параметров в формате bfloat16; адаптер уже объединён с базовыми весами. Для каждого P-кадра используется фиксированная доля причинного представления 1/16, без предсказателя длины Stage 2.

Модель предназначена для ответов на вопросы о видео, анализа действий, изменений и временных фрагментов. Для инференса через NativeCodec необходимы отдельный инкрементальный энкодер и кодовая база NativeCodec; число визуальных токенов задаётся фронтендом кодека. В README приведены результаты на BallBench и TimeLens-Bench. Доступ к файлам репозитория требует ручного одобрения. Лицензия — Apache-2.0.

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

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

Ограничения

Для видеоинференса требуются отдельный инкрементальный энкодер и кодовая база NativeCodec; загрузка весов доступна после ручного одобрения. Модель настроена на фиксированную долю суффикса P-кадров 1/16 и не использует предсказатель длины Stage 2.

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

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

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

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

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

Открыть на Hugging Face

NativeCodec-4B-FixedRatio

4B video MLLM aligned with NativeCodec for a constant P-frame suffix ratio.

This is the fixed-ratio variant of NativeCodec-4B. The language model is fine-tuned to consume visual tokens from the NativeCodec incremental encoder, and each P frame keeps a fixed suffix fraction of its causal representation. At inference the recommended setting is fixed_p_ratio = 1/16; the learned length predictor is not used, so this variant has no dependency on the Stage 2 prediction heads. Use it together with the incremental encoder and code in Tennineee/NativeCodec.

Companion assetRepository
Code, incremental encoder, prediction headsTennineee/NativeCodec
Predicted-length aligner for the same codecTennineee/NativeCodec-4B-PredLen
BallBench datasetTennineee/NativeCodec-BallBench

Access request

This repository is public but gated with manual approval. Anonymous visitors can read this model card and see the file list. Downloading files requires approval.

To request access, open the repository page, sign in, click Agree and access repository / Request access, and submit the form. Access is granted to individual users, not to organizations. Requests are reviewed manually by the maintainers without an automatic approval or a published turnaround guarantee; the Hub notifies you when a decision is made. A rejected request cannot be resubmitted from the same account on the Hub.

After approval, download the files with an authenticated session (the full model is about 9.34 GB / 8.70 GiB):

hf auth login
hf download Tennineee/NativeCodec-4B-FixedRatio --local-dir NativeCodec-4B-FixedRatio
hf download Tennineee/NativeCodec --local-dir NativeCodec

The incremental encoder required at inference (weights/inc_enc_stage1_step18750.pt) lives in the code repository. The complete card of Tennineee/NativeCodec also covers access requests, mirror downloads and fine-grained token settings.

Files

Every file sits at the repository root, so the directory can be passed to from_pretrained directly.

FileSize (bytes)Content
model.safetensors9,319,821,272Qwen3.5-4B language model, aligned to NativeCodec tokens; the adapter is merged into the base weights (no separate LoRA checkpoint)
config.json3,161Qwen3.5-4B model config (architecture Qwen3_5ForConditionalGeneration)
preprocessor_config.json390image processor config, inherited from the base model
video_preprocessor_config.json385video processor config, inherited from the base model
tokenizer.json12,807,982tokenizer (vocabulary 248,320)
tokenizer_config.json16,710tokenizer settings, including the chat template reference
vocab.json6,722,759vocabulary
merges.txt3,353,259BPE merges
chat_template.jinja7,756chat template
LICENSE-APACHE, NOTICE.md, README.mdlicense, attribution and this card

The weights are a complete Qwen3.5-4B-sized model: about 4.66 B parameters in bfloat16 (the file size divided by two bytes), including the frozen visual tower inherited from the base model. NativeCodec does not route video through that visual tower; the codec front-end adds its own visual tokens to the language model input.

Loading

The checkpoint follows the Hugging Face Qwen3.5 layout, so the standard multimodal loader works once your environment provides Qwen3.5 support (the upstream config records transformers_version: 4.57.0.dev0):

from transformers import AutoModelForImageTextToText, AutoTokenizer

tok = AutoTokenizer.from_pretrained("Tennineee/NativeCodec-4B-FixedRatio")
model = AutoModelForImageTextToText.from_pretrained(
    "Tennineee/NativeCodec-4B-FixedRatio",
    torch_dtype="bfloat16",
    attn_implementation="flash_attention_2",
)

Loading this directory with vanilla transformers gives the aligned multimodal language model itself. Video reasoning through NativeCodec additionally needs the incremental encoder and the codec front-end; this variant does not need a Stage 2 length predictor:

import sys
sys.path.insert(0, "NativeCodec/stage3_llm_sft")
from modeling_recodec_qwen35 import ReCodecQwen35ForConditionalGeneration

model = ReCodecQwen35ForConditionalGeneration(
    model_name_or_path="NativeCodec-4B-FixedRatio",
    recodec_root="NativeCodec/stage3_llm_sft/recodec",
    phase1_ckpt="NativeCodec/weights/inc_enc_stage1_step18750.pt",
    phase2_ckpt=None,
    video_pad_token_id=video_pad_id,   # from the code repository's Stage 3 config
    max_gop_frames=64,
    max_frames=12288,
    max_video_tokens=64000,
    fixed_p_ratio=1 / 16,              # constant suffix ratio
    lora_cfg=None,                     # adapter already merged
)

A complete runnable path, including frame sampling and prompt assembly, is provided by stage3_llm_sft/demo_recodec_inference.py in the code repository; set fixed_p_ratio=1/16 in the codec config there.

Use, budget and results

With the constant 1/16 suffix ratio, NativeCodec-4B reaches 26.1% accuracy on BallBench at 16 fps (13.9% is random, 12.2% for the Qwen3.5-4B base) and 56.4 mIoU on TimeLens-Bench with a 64k visual-token budget. Every subset of TimeLens-Bench is better than every open-source baseline in the comparison: 54.5 action, 53.8 change and 67.7 query mIoU. MomentSeeker reaches 25.0 mIoU. The predicted-length variant and the token-budget ablations are documented in the code repository's model card.

The visual-token budget is configured by the codec front-end, not by these weights; max_video_tokens in your config decides how many tokens the model sees.

License and attribution

The fine-tuned weights are distributed under the Apache License, Version 2.0, following the license of Qwen/Qwen3.5-4B-Base. The full license text is in LICENSE-APACHE; NOTICE.md records the upstream attribution and the changes made here. The code in Tennineee/NativeCodec is released under the MIT License.

NativeCodec Team

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

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

GPU в ailist

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

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

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

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

0 моделей