Video-Text-to-Text
Transformers
Safetensors
English
Chinese
moss_vl
feature-extraction
Realtime
Streaming
Video-Understanding
Image-Understanding
MOSS-VL
OpenMOSS
multimodal
video
vision-language
custom_code
Instructions to use OpenMOSS-Team/MOSS-VL-Realtime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMOSS-Team/MOSS-VL-Realtime with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenMOSS-Team/MOSS-VL-Realtime", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
fix: strip mid-string U+FFFD in realtime decode emit
Verified signatureThe end-of-buffer guard only catches an INCOMPLETE trailing multi-byte char. Under sampling, a char can also break MID-string (the next token completes a different char, orphaning the first one's tail bytes) and the replacement character then stays in the output text forever (observed: mojibake in Chinese captions). Strip the unrecoverable broken char at emit time. Platform-neutral.3c04eb4 -
revert: preprocessor_config.json to stock (interpolation field was a no-op)
Verified signatureThe interpolation field is not read by the framework (valid kwarg name is resample; the parent class already defaults to BICUBIC and the base _further_process_kwargs converts resample -> interpolation before calling _preprocess). Verified bitwise-identical pixel_values with/without it.2fb20b5 -
simplify: processing reduced to stock + only the <=8-D device-aware 10-D routing
Verified signaturePer review: the signature defaults are never exercised (the framework setdefaults every valid kwarg and passes them explicitly) and the explicit interpolation chain was redundant (parent class already defaults to BICUBIC via resample; pixel_values verified bitwise-identical). processing now matches the video_processing minimal style. preprocessor_config.json is reverted to stock in the next commit.f418456
-
Ascend NPU support: device-aware cache release, GIL-friendly idle wait, <=8-D vision processing, BICUBIC declaration
Verified signatureAscend NPU (910B, CANN 9.0.0) support for the realtime checkpoint. CUDA behavior unchanged — every NPU path is guarded. - modeling_moss_vl.py - empty_cache: release NPU HBM after realtime sessions (torch_npu import guarded; the CUDA branch is unchanged) - realtime idle wait: a bare `while True: continue` busy-spin monopolizes the CPython GIL and starves co-resident threads (measured: an in-process ASR decode inflates ~150ms -> 40-80s while a session idles in <|silence|>). Replaced with a 20ms sleep poll. Platform-neutral — CUDA deployments embedding this checkpoint benefit equally. - processing / video_processing: the 10-D vision permute+reshape is routed through CPU on NPU (NPU ops support at most 8-D tensors); CUDA keeps the on-device path untouched. - preprocessor_config.json: declare interpolation=BICUBIC explicitly (NPU has no implicit resize kernel; explicit declaration keeps CUDA outputs identical — pixel_values verified bitwise-equal on identica…5c67b2b
-
Upload README.md with huggingface_hub
Verified signature06b0676
-
Update README.md
Verified signature3fed18c
-
Update README.md
Verified signatureca541ad
-
Update README.md
Verified signature8af1f0c -
Update README.md
Verified signature2bd81d5 -
Update README.md
Verified signature43c9272 -
Upload benchmark-streaming.png
Verified signatureef13d48 -
Delete assets/benchmark-streaming.png
Verified signature2be9a1b -
Update README
Verified signature686e285 -
Upload MOSS-VL-Realtime-0708 release
Verified signaturef55d7c8 -
initial commit
Verified signatured784ba4