Image-Text-to-Text
Transformers
Safetensors
qwen3_5
vllm
video
multimodal
reinforcement-learning
temporal-grounding
object-tracking
video-segmentation
visual-question-answering
spatial-reasoning
qwen3.5
conversational
Instructions to use OraRL/Video-ORA-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OraRL/Video-ORA-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OraRL/Video-ORA-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("OraRL/Video-ORA-9B") model = AutoModelForMultimodalLM.from_pretrained("OraRL/Video-ORA-9B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OraRL/Video-ORA-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OraRL/Video-ORA-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OraRL/Video-ORA-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/OraRL/Video-ORA-9B
- SGLang
How to use OraRL/Video-ORA-9B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "OraRL/Video-ORA-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OraRL/Video-ORA-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "OraRL/Video-ORA-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OraRL/Video-ORA-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use OraRL/Video-ORA-9B with Docker Model Runner:
docker model run hf.co/OraRL/Video-ORA-9B
| """Explicit, validated Hugging Face publication for evaluation repositories.""" | |
| from __future__ import annotations | |
| import os | |
| from pathlib import Path | |
| from typing import Any | |
| from .staging import validate_staged_repository | |
| class UploadError(ValueError): | |
| """Raised when an evaluation repository cannot be uploaded safely.""" | |
| def upload_evaluation_repository( | |
| repository_root: str | os.PathLike[str], | |
| repo_id: str, | |
| *, | |
| revision: str = "main", | |
| private: bool = False, | |
| num_workers: int | None = None, | |
| checksums: bool = False, | |
| ) -> dict[str, Any]: | |
| """Validate and resumably upload a complete dataset repository. | |
| Authentication is intentionally delegated to the Hugging Face environment | |
| or persisted CLI login. This API has no token parameter. | |
| """ | |
| root = Path(repository_root).expanduser().resolve() | |
| validated = validate_staged_repository(root, checksums=checksums) | |
| if not isinstance(repo_id, str) or not repo_id.strip() or repo_id != repo_id.strip(): | |
| raise UploadError("repo_id must be a nonempty Hugging Face repository id") | |
| if any(character.isspace() for character in repo_id): | |
| raise UploadError("repo_id must not contain whitespace") | |
| if not isinstance(revision, str) or not revision.strip() or revision != revision.strip(): | |
| raise UploadError("revision must be a nonempty branch or revision name") | |
| if not isinstance(private, bool): | |
| raise UploadError("private must be a boolean") | |
| if num_workers is not None and ( | |
| isinstance(num_workers, bool) or not isinstance(num_workers, int) or num_workers <= 0 | |
| ): | |
| raise UploadError("num_workers must be a positive integer") | |
| try: | |
| from huggingface_hub import HfApi | |
| except ImportError as error: | |
| raise UploadError( | |
| "upload requires huggingface_hub; install the 'hf' optional dependency" | |
| ) from error | |
| arguments: dict[str, Any] = { | |
| "repo_id": repo_id, | |
| "folder_path": str(root), | |
| "repo_type": "dataset", | |
| "revision": revision, | |
| "private": private, | |
| } | |
| if num_workers is not None: | |
| arguments["num_workers"] = num_workers | |
| try: | |
| HfApi().upload_large_folder(**arguments) | |
| except Exception as error: | |
| raise UploadError(f"Hugging Face upload failed ({type(error).__name__})") from error | |
| return { | |
| **validated, | |
| "repo_id": repo_id, | |
| "revision": revision, | |
| "private": private, | |
| } | |
| upload_repository = upload_evaluation_repository | |
| __all__ = ["UploadError", "upload_evaluation_repository", "upload_repository"] | |