We introduce
MOSS-Video-Preview-Real-Time-SFT
, a specialized model derived from MOSS-Video-Preview-SFT through an additional
Real-Time Supervised Fine-Tuning (Real-Time SFT)
.
This is a
Real-Time SFT
checkpoint. It is optimized for
low-latency, high-frequency real-time video understanding
.
This checkpoint is intended for:
Real-time video understanding
with true "see-and-say" capabilities.
Low-latency interactive applications
where Time to First Token (TTFT) is critical.
Continuous video monitoring
and instant action feedback.
Model Architecture
**MOSS-Video-Preview-Real-Time-SFT** is the flagship model of the series, featuring a **Pioneering Image-Video Unified Cross-Attention Architecture** optimized for streaming:
Native Unified Design
: Unlike traditional models, our architecture supports native frame-by-frame video injection, ensuring the visual context is always up-to-date with the generation process.
Dual-Duplex Interaction
: Specifically tuned for "Silence-Speak" switching. The model can be interrupted and self-correct its responses in real-time as the video scene evolves.
Unified Spatio-Temporal Encoding
: Features optimized gated positional embeddings and Cross-Attention KV Cache, allowing the model to maintain robust temporal context over extended streams.
The core advantage of this model is its
Asynchronous Streaming Capability
, enabling true "See-and-Say" video intelligence.
Asynchronous Single-Frame Streaming
: Video frames are injected at a stable frequency. The input pipeline is
non-blocking
and decoupled from text generation, ensuring continuous perception.
Persistent State Maintenance
: Leveraging
Cross-Attention KV Cache
and temporal positional encoding, the model maintains long-range contextual dependencies across continuous frames.
Instantaneous Streaming Response
: Built on the optimized
MllamaVideoModel
, it performs autoregressive generation alongside the visual stream, achieving ultra-low
Time to First Token (TTFT)
.
🌟 Key Highlights
🧩 Decoupled Cross-Attention
:A novel approach that decouples visual perception and linguistic generation for seamless real-time video understanding.
🔄 Millisecond-Level Interaction
: Supports real-time interruption and dynamic response adjustment as the environment changes.
⚡ Hardware-Optimized Performance
: Fully supports
Flash Attention 2
and is compatible with
CUDA/NPU
platforms, optimized for long-context video stream processing.
🚀 Quickstart
Video streaming inference (Recommended for Real-Time SFT)
This mode uses the
real_time_generate()
API for low-latency streaming.
import os, queue, threading, time, cv2
from PIL import Image
from transformers import AutoProcessor, AutoModelForCausalLM
deffeed(video, q, fps=1.0):
cap=cv2.VideoCapture(video); step=max(1, round((cap.get(cv2.CAP_PROP_FPS) or25)/fps)); i=0while cap.isOpened():
ok, f = cap.read()
ifnot ok: breakif i % step == 0: q.put(Image.fromarray(cv2.cvtColor(f, cv2.COLOR_BGR2RGB))); time.sleep(1/fps)
i += 1
cap.release()
checkpoint = "fnlp-vision/moss-video-preview-realtime-sft"
video_path = "data/example_video.mp4"
prompt = "Describe the video."
processor=AutoProcessor.from_pretrained(checkpoint, trust_remote_code=True)
model=AutoModelForCausalLM.from_pretrained(checkpoint, trust_remote_code=True, device_map="auto")
image_queue, prompt_queue, token_queue = queue.Queue(), queue.Queue(), queue.Queue()
threading.Thread(target=feed, args=(video_path, image_queue), daemon=True).start()
time.sleep(1)
prompt_queue.put(prompt)
threading.Thread(
target=lambda: model.real_time_generate(image_queue, prompt_queue, token_queue, processor),
daemon=True,
).start()
END={"[DONE]","[ERROR]","<|round_end|>"}; BANNER="\n"+"-"*30+" [Silence / Observing] "+"-"*30
pending=None; silent=False; last=time.time(); got=FalsewhileTrue:
try: tok = token_queue.get(timeout=0.1)
except queue.Empty:
if pending: print(pending, end="", flush=True); pending=Noneif got and time.time()-last>5: breakcontinue
got,last=True,time.time()
if tok=="<|round_start|>": pending=None; continueif tok in END:
if pending: print(pending, end="", flush=True)
breakif tok=="<|silence|>":
ifnot silent:
if pending: print(pending, end="", flush=True); pending=Noneprint(BANNER, flush=True); silent=Truecontinue
silent=Falseif pending: print(pending, end="", flush=True)
pending=tok
ifhasattr(model,"stop_real_time_generate"): model.stop_real_time_generate()
Real-time "See-and-Say"
: Instant description and Q&A for live video streams.
Low-latency Monitoring
: Detecting events or actions in real-time with minimal delay.
Interactive Multimodal Agents
: Building responsive AI assistants that can see and interact.
⚠️ Limitations & Future Outlook
High-End Hardware Recommended
: For the best real-time experience (lowest latency), modern GPUs (e.g., A100/H100/H200) with
FlashAttention 2
are strongly recommended.
Performance Benchmarking
: While leading in real-time interaction, a performance gap still exists in general benchmarks compared to models like
Qwen2.5-VL
. Continuous optimization is our primary focus.
Scalable Distributed Training
: We are migrating our training pipeline to the
Megatron-LM framework
, utilizing
3D parallelism
to support even larger-scale pre-training and fine-tuning for future versions.
Open-Source Commitment
: The complete training codebase and experimental configurations will be released in the next major update.
Transformers
: required with
trust_remote_code=True
FlashAttention 2
: Strongly recommended for low-latency inference.
OpenCV
: Required for video frame extraction in streaming demos.
🌟 Our Mission & Community Invitation
We have filled the gap in cross-attention-based foundation models for video understanding.
We warmly welcome experts in
Representation Learning
and
Model Efficiency
to explore, experiment, and innovate on top of our architecture. Let's push the boundaries of video intelligence and advance the open-source community together!
Citation
@misc{moss_video_2026,
title = {{MOSS-Video-Preview: Next-Generation Real-Time Video Understanding}},
author = {OpenMOSS Team},
year = {2026},
howpublished = {\url{https://github.com/fnlp-vision/MOSS-Video-Preview}},
note = {GitHub repository}
}
Runs of OpenMOSS-Team moss-video-preview-realtime-sft on huggingface.co
55
Total runs
0
24-hour runs
4
3-day runs
7
7-day runs
-109
30-day runs
More Information About moss-video-preview-realtime-sft huggingface.co Model
More moss-video-preview-realtime-sft license Visit here:
moss-video-preview-realtime-sft huggingface.co is an AI model on huggingface.co that provides moss-video-preview-realtime-sft's model effect (), which can be used instantly with this OpenMOSS-Team moss-video-preview-realtime-sft model. huggingface.co supports a free trial of the moss-video-preview-realtime-sft model, and also provides paid use of the moss-video-preview-realtime-sft. Support call moss-video-preview-realtime-sft model through api, including Node.js, Python, http.
moss-video-preview-realtime-sft huggingface.co is an online trial and call api platform, which integrates moss-video-preview-realtime-sft's modeling effects, including api services, and provides a free online trial of moss-video-preview-realtime-sft, you can try moss-video-preview-realtime-sft online for free by clicking the link below.
OpenMOSS-Team moss-video-preview-realtime-sft online free url in huggingface.co:
moss-video-preview-realtime-sft is an open source model from GitHub that offers a free installation service, and any user can find moss-video-preview-realtime-sft on GitHub to install. At the same time, huggingface.co provides the effect of moss-video-preview-realtime-sft install, users can directly use moss-video-preview-realtime-sft installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
moss-video-preview-realtime-sft install url in huggingface.co: