Video-Text-to-Text
Transformers
Safetensors
English
Chinese
moss_vl
feature-extraction
SFT
Video-Understanding
Image-Understanding
MOSS-VL
OpenMOSS
multimodal
video
vision-language
custom_code
Instructions to use OpenMOSS-Team/MOSS-VL-Instruct-0708 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMOSS-Team/MOSS-VL-Instruct-0708 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenMOSS-Team/MOSS-VL-Instruct-0708", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update processing_moss_vl.py
Browse files55 unmodified lines5657585960616252 unmodified lines11511611711811912012155 unmodified linesimages: list["torch.Tensor"],do_resize: bool,size: SizeDict,interpolation: Optional["F.InterpolationMode"],do_rescale: bool,rescale_factor: float,do_normalize: bool,52 unmodified linesstacked_images = self.resize(image=stacked_images,size=SizeDict(height=resized_height, width=resized_width),interpolation=interpolation,)resized_images_grouped[shape] = stacked_imagesresized_images = reorder_images(resized_images_grouped, grouped_images_index)55 unmodified lines5657585960616252 unmodified lines11511611711811912012155 unmodified linesimages: list["torch.Tensor"],do_resize: bool,size: SizeDict,resample: Optional["F.InterpolationMode"],do_rescale: bool,rescale_factor: float,do_normalize: bool,52 unmodified linesstacked_images = self.resize(image=stacked_images,size=SizeDict(height=resized_height, width=resized_width),resample=resample,)resized_images_grouped[shape] = stacked_imagesresized_images = reorder_images(resized_images_grouped, grouped_images_index)
processing_moss_vl.py+2-2