OpenMOSS-Team / MOSS-VL-Instruct-0708-NF4

huggingface.co
Total runs: 148
24-hour runs: 0
7-day runs: 20
30-day runs: 148
Model's Last Updated: August 18 2026
video-text-to-text

Introduction of MOSS-VL-Instruct-0708-NF4

Model Details of MOSS-VL-Instruct-0708-NF4

MOSS-VL

English | 中文

MOSS-VL-Instruct-0708 W4A16 NF4

This is the Transformers NF4 release of MOSS-VL-Instruct-0708 . It supports image and video inference through the standard MOSS-VL offline inference path. This checkpoint is not an SGLang release.

Architecture

MOSS-VL architecture

Quantization profile
Component Format
240 eligible Linear layers in language layers 4-43 bitsandbytes NF4 weight-only quantization with double quantization and BF16 compute
First four and last four language layers BF16
Cross-attention projection modules BF16
Vision encoder and merger BF16
Embeddings, norms and lm_head BF16
Transformers KV cache BF16
Attention backend FlashAttention 2

The checkpoint carries its bitsandbytes configuration. Load it directly and do not add a second runtime quantization configuration. This variant does not enable HQQ KV8; generation_config.json uses the standard BF16 KV cache.

Quantization benchmark

The final evaluation compares the original BF16 model with all four release profiles on their corresponding benchmark suites. This offline NF4 checkpoint scores 89.53 on DocVQA, 67.30 on VideoMME, 75.86 on MLVU_dev, 51.00/48.17/59.33 on the three TimeLens subsets, and 61.76 on VSIBench.

MOSS-VL quantization benchmark comparison

Hardware requirements

The validated image test peaked at 12,494 MiB of process VRAM. The 1 FPS, maximum-32-frame video test peaked at 16,708 MiB. A single NVIDIA GPU with 24 GB of VRAM is sufficient for the validated profile.

Environment
Installation
git clone https://github.com/OpenMOSS/MOSS-VL.git
cd MOSS-VL

conda create -n moss_vl_quant python=3.12 pip -y
conda activate moss_vl_quant
pip install -i https://pypi.org/simple --no-build-isolation -r requirements.txt
pip install -i https://pypi.org/simple bitsandbytes==0.49.2
python -m pip check

Validated core versions:

Package Version
Python 3.12.8
PyTorch 2.8.0 + CUDA 12.8
Transformers 4.57.1
Accelerate 1.12.0
FlashAttention 2.8.1
bitsandbytes 0.49.2

Video decoding also requires FFmpeg in PATH .

Load the model
import torch
from transformers import AutoModelForCausalLM, AutoProcessor

checkpoint = "OpenMOSS-Team/MOSS-VL-Instruct-0708-NF4"

processor = AutoProcessor.from_pretrained(
    checkpoint,
    trust_remote_code=True,
    frame_extract_num_threads=1,
)
model = AutoModelForCausalLM.from_pretrained(
    checkpoint,
    trust_remote_code=True,
    device_map="auto",
    torch_dtype=torch.bfloat16,
    attn_implementation="flash_attention_2",
)
model.eval()
Image inference
text = model.offline_image_generate(
    processor,
    prompt="Describe this image.",
    image="data/example_image.jpg",
    shortest_edge=4096,
    longest_edge=16777216,
    multi_image_max_pixels=201326592,
    patch_size=16,
    temporal_patch_size=1,
    merge_size=2,
    image_mean=[0.5, 0.5, 0.5],
    image_std=[0.5, 0.5, 0.5],
    max_new_tokens=256,
    do_sample=False,
    vision_chunked_length=64,
)
print(text)
Video inference
text = model.offline_video_generate(
    processor,
    prompt="Describe this video.",
    video="data/example_video.mp4",
    shortest_edge=4096,
    longest_edge=16777216,
    video_max_pixels=201326592,
    patch_size=16,
    temporal_patch_size=1,
    merge_size=2,
    video_fps=1.0,
    min_frames=1,
    max_frames=32,
    num_extract_threads=4,
    image_mean=[0.5, 0.5, 0.5],
    image_std=[0.5, 0.5, 0.5],
    max_new_tokens=256,
    do_sample=False,
    vision_chunked_length=64,
)
print(text)
Validated reproduction

The official runner passed both the receipt image and the 1 FPS Starbucks video tests:

source /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/venv/bin/activate

/inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/venv/bin/python \
  /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/final_release/mossvl-github/MOSS-VL/inference/run_inference.py \
  --checkpoint /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/final_release/quant/MOSS-VL-0708-Offline-NF4-Keep4-KV16 \
  --mode image \
  --input /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/transformers_validation_20260811/inputs/offline_image.json \
  --output /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/transformers_validation_20260811/results/offline_nf4_image_output.json \
  --timeout-seconds 300

/inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/venv/bin/python \
  /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/final_release/mossvl-github/MOSS-VL/inference/run_inference.py \
  --checkpoint /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/final_release/quant/MOSS-VL-0708-Offline-NF4-Keep4-KV16 \
  --mode video \
  --input /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/transformers_validation_20260811/inputs/offline_video.json \
  --output /inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/transformers_validation_20260811/results/offline_nf4_video_output.json \
  --timeout-seconds 300

Full inputs, commands and raw results:

/inspire/qb-ilm/project/video-understanding/public/train/moss_vl_streaming/8B/quant/transformers_validation_20260811
Configuration files
  • config.json : model and bitsandbytes NF4 configuration.
  • generation_config.json : standard generation settings with BF16 KV cache.
  • modeling_moss_vl.py : checkpoint-local offline MOSS-VL code.

Runs of OpenMOSS-Team MOSS-VL-Instruct-0708-NF4 on huggingface.co

148
Total runs
0
24-hour runs
1
3-day runs
20
7-day runs
148
30-day runs

More Information About MOSS-VL-Instruct-0708-NF4 huggingface.co Model

More MOSS-VL-Instruct-0708-NF4 license Visit here:

https://choosealicense.com/licenses/apache-2.0

MOSS-VL-Instruct-0708-NF4 huggingface.co

MOSS-VL-Instruct-0708-NF4 huggingface.co is an AI model on huggingface.co that provides MOSS-VL-Instruct-0708-NF4's model effect (), which can be used instantly with this OpenMOSS-Team MOSS-VL-Instruct-0708-NF4 model. huggingface.co supports a free trial of the MOSS-VL-Instruct-0708-NF4 model, and also provides paid use of the MOSS-VL-Instruct-0708-NF4. Support call MOSS-VL-Instruct-0708-NF4 model through api, including Node.js, Python, http.

MOSS-VL-Instruct-0708-NF4 huggingface.co Url

https://huggingface.co/OpenMOSS-Team/MOSS-VL-Instruct-0708-NF4

OpenMOSS-Team MOSS-VL-Instruct-0708-NF4 online free

MOSS-VL-Instruct-0708-NF4 huggingface.co is an online trial and call api platform, which integrates MOSS-VL-Instruct-0708-NF4's modeling effects, including api services, and provides a free online trial of MOSS-VL-Instruct-0708-NF4, you can try MOSS-VL-Instruct-0708-NF4 online for free by clicking the link below.

OpenMOSS-Team MOSS-VL-Instruct-0708-NF4 online free url in huggingface.co:

https://huggingface.co/OpenMOSS-Team/MOSS-VL-Instruct-0708-NF4

MOSS-VL-Instruct-0708-NF4 install

MOSS-VL-Instruct-0708-NF4 is an open source model from GitHub that offers a free installation service, and any user can find MOSS-VL-Instruct-0708-NF4 on GitHub to install. At the same time, huggingface.co provides the effect of MOSS-VL-Instruct-0708-NF4 install, users can directly use MOSS-VL-Instruct-0708-NF4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

MOSS-VL-Instruct-0708-NF4 install url in huggingface.co:

https://huggingface.co/OpenMOSS-Team/MOSS-VL-Instruct-0708-NF4

Url of MOSS-VL-Instruct-0708-NF4

MOSS-VL-Instruct-0708-NF4 huggingface.co Url

Provider of MOSS-VL-Instruct-0708-NF4 huggingface.co

OpenMOSS-Team
ORGANIZATIONS

Other API from OpenMOSS-Team

huggingface.co

Total runs: 139
Run Growth: -267
Growth Rate: -192.09%
Updated:September 26 2023