Run this model with HF Jobs
Run StreamFormer/OmniStream on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/StreamFormer/OmniStream. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/StreamFormer/OmniStream on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use StreamFormer/OmniStream with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use StreamFormer/OmniStream with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="StreamFormer/OmniStream")# pip install -U transformers accelerate # Load model directly from transformers import VFMMultiFrameTransformer model = VFMMultiFrameTransformer.from_pretrained("StreamFormer/OmniStream", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card: add metadata, links and sample usage
#1
by nielsr HF Staff - opened
123123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---
license: mit
------license: mitlibrary_name: transformerspipeline_tag: image-feature-extraction---
# OmniStream: Mastering Perception, Reconstruction and Action in Continuous Streams
OmniStream is a unified streaming visual backbone that effectively perceives, reconstructs, and acts from diverse visual inputs. By incorporating causal spatiotemporal attention and 3D rotary positional embeddings (3D-RoPE), the model supports efficient, frame-by-frame online processing of video streams via a persistent KV-cache.
- **Paper:** [OmniStream: Mastering Perception, Reconstruction and Action in Continuous Streams](https://huggingface.co/papers/2603.12265)- **Project Page:** [https://go2heart.github.io/omnistream/](https://go2heart.github.io/omnistream/)- **Repository:** [https://github.com/Go2Heart/OmniStream](https://github.com/Go2Heart/OmniStream)
## Sample Usage
The following code snippet demonstrates how to use OmniStream for feature extraction. Note that this requires the `model.py` file from the official repository to be present in your environment.
```pythonfrom model import OmnistreamMultiFrameTransformerfrom transformers import AutoImageProcessorimport torchimport numpy as np
# Load processor and modelprocessor = AutoImageProcessor.from_pretrained("StreamFormer/OmniStream")model = OmnistreamMultiFrameTransformer.from_pretrained("StreamFormer/OmniStream").to("cuda")
model.eval()
# Prepare dummy input: 16 frames of 512x512 RGB images (Batch x Time, Height, Width, Channels)fake_pixel = np.random.randn(16, 512, 512, 3) fake_input = processor(images=fake_pixel, return_tensors="pt").to("cuda")
# Reshape to (Batch, Time, Channels, Height, Width)fake_input["pixel_values"] = fake_input["pixel_values"].unsqueeze(0).float()
with torch.no_grad(): output = model(**fake_input, return_dict=True)
print(output.keys())print(output["last_hidden_state"].shape) # last layer's hidden statesprint(output["pooler_output"].shape) # cls tokenprint(output["patch_start_idx"]) # index of the first patch of each frame```
## Citation
```bibtex@article{yan2026omnistream, title={OmniStream: Mastering Perception, Reconstruction and Action in Continuous Streams}, author={Yibin Yan and Jilan Xu and Shangzhe Di and Haoning Wu and Weidi Xie}, journal={arXiv preprint arXiv:2603.12265}, year={2026}, url={https://arxiv.org/abs/2603.12265}}```README.md+57-3