Views
No views yet


| Item | Value |
|---|---|
| Parameters | 11B |
| Tensor type | BF16 |
| Context length | 256K |
| Vision patch size | 16 |
| Temporal patch size | 1 |
| Default video FPS | 1.0 |
| Default max video frames | 256 |

1git clone https://github.com/OpenMOSS/MOSS-VL.git
2cd MOSS-VL
3conda create -n moss_vl python=3.12 pip -y
4conda activate moss_vl
5pip install -i https://pypi.org/simple --no-build-isolation -r requirements.txt1import torch
2from transformers import AutoModelForCausalLM, AutoProcessor
3
4checkpoint = "OpenMOSS-Team/MOSS-VL-Base-0708"
5
6processor = AutoProcessor.from_pretrained(
7 checkpoint,
8 trust_remote_code=True,
9 frame_extract_num_threads=1,
10)
11model = AutoModelForCausalLM.from_pretrained(
12 checkpoint,
13 trust_remote_code=True,
14 device_map="auto",
15 torch_dtype=torch.bfloat16,
16 attn_implementation="flash_attention_2",
17)1image_path = "data/example_image.jpg"
2
3text = model.offline_image_generate(
4 processor,
5 prompt="",
6 image=image_path,
7 shortest_edge=4096,
8 longest_edge=16777216,
9 multi_image_max_pixels=201326592,
10 patch_size=16,
11 temporal_patch_size=1,
12 merge_size=2,
13 image_mean=[0.5, 0.5, 0.5],
14 image_std=[0.5, 0.5, 0.5],
15 max_new_tokens=256,
16 temperature=1.0,
17 top_k=50,
18 top_p=1.0,
19 repetition_penalty=1.0,
20 do_sample=False,
21 vision_chunked_length=64,
22)
23
24print(text)1video_path = "data/example_video.mp4"
2
3text = model.offline_video_generate(
4 processor,
5 prompt="",
6 video=video_path,
7 shortest_edge=4096,
8 longest_edge=16777216,
9 video_max_pixels=201326592,
10 patch_size=16,
11 temporal_patch_size=1,
12 merge_size=2,
13 video_fps=1.0,
14 min_frames=1,
15 max_frames=256,
16 num_extract_threads=4,
17 image_mean=[0.5, 0.5, 0.5],
18 image_std=[0.5, 0.5, 0.5],
19 max_new_tokens=256,
20 temperature=1.0,
21 top_k=50,
22 top_p=1.0,
23 repetition_penalty=1.0,
24 do_sample=False,
25 vision_chunked_length=64,
26)
27
28print(text)offline_batch_generate accepts independent image/video/text queries. Queries in the same batch should share the same media_kwargs and generate_kwargs.1queries = [
2 {
3 "images": ["data/sample_a.jpg"],
4 "videos": [],
5 "generate_kwargs": {
6 "temperature": 1.0,
7 "top_k": 50,
8 "top_p": 1.0,
9 "max_new_tokens": 256,
10 "repetition_penalty": 1.0,
11 "do_sample": False,
12 },
13 },
14 {
15 "images": [],
16 "videos": ["data/sample_b.mp4"],
17 "media_kwargs": {
18 "video_fps": 1.0,
19 "min_frames": 8,
20 "max_frames": 256,
21 },
22 "generate_kwargs": {
23 "temperature": 1.0,
24 "top_k": 50,
25 "top_p": 1.0,
26 "max_new_tokens": 256,
27 "repetition_penalty": 1.0,
28 "do_sample": False,
29 },
30 },
31]
32
33with torch.no_grad():
34 result = model.offline_batch_generate(
35 processor,
36 queries,
37 vision_chunked_length=64,
38 )
39
40texts = [item["text"] for item in result["results"]]
41print(texts)| Model | Parameters | Context | Usage | Hugging Face |
|---|---|---|---|---|
| MOSS-VL-Realtime | 11B | 256K | Realtime streaming video interaction | https://huggingface.co/OpenMOSS-Team/MOSS-VL-Realtime |
| MOSS-VL-Instruct | 11B | 256K | Offline multimodal instruction following | https://huggingface.co/OpenMOSS-Team/MOSS-VL-Instruct-0708 |
| MOSS-VL-Base | 11B | 256K | Continued pretraining and fine-tuning | https://huggingface.co/OpenMOSS-Team/MOSS-VL-Base-0708 |
| MOSS-VL-Instruct-0408 | 11B | 256K | Previous instruction-tuned checkpoint | https://huggingface.co/OpenMOSS-Team/MOSS-VL-Instruct-0408 |
| MOSS-VL-Base-0408 | 11B | 256K | Previous base checkpoint | https://huggingface.co/OpenMOSS-Team/MOSS-VL-Base-0408 |
1@misc{mossvl,
2 title = {MOSS-VL Technical Report},
3 author = {Wang, Pengyu and Tan, Chenkun and Zhou, Shaojun and Zhou, Qirui and Chen, Yanxin and He, Xingyang and Zeng, Huazheng and Cheng, Jijun and Wang, Chenghao and Qian, Xiaomeng and Wang, Pengfei and Huang, Zhan and Gao, Shanqing and Huang, Wei and Cao, Longjun and Ran, Wu and Liu, Jie and Zhu, Changtai and Wang, Hongkai and Tian, Yixian and Liu, Chenghao and Ye, Zhen and Wang, Xinghao and Jiang, Botian and Feng, Guoguo and Fei, Zhaoye and Li, Ruixiao and Chen, Mingshu and Gao, Yang and Cheng, Qinyuan and Li, Shimin and Qiu, Xipeng},
4 year = {2026},
5 eprint = {2608.15045},
6 archivePrefix = {arXiv},
7 primaryClass = {cs.CV},
8 url = {https://arxiv.org/abs/2608.15045}
9}
10
11@misc{mossvideopreview,
12 title = {{MOSS-Video-Preview: Toward Real-Time Video Understanding via Cross-Attention}},
13 author = {Pengyu Wang and Chenkun Tan and Shaojun Zhou and Wei Huang and Qirui Zhou and Zhan Huang and Zhen Ye and Jijun Cheng and Xiaomeng Qian and Yanxin Chen and Xingyang He and Huazheng Zeng and Chenghao Wang and Pengfei Wang and Hongkai Wang and Shanqing Gao and Yixian Tian and Chenghao Liu and Xinghao Wang and Botian Jiang and Xipeng Qiu},
14 year = {2026},
15 eprint = {2606.07639},
16 archivePrefix = {arXiv},
17 primaryClass = {cs.CV},
18 url = {https://arxiv.org/abs/2606.07639}
19}