Image-Text-to-Text
Transformers
Safetensors
qwen3_vl_moe
robotics
embodied-ai
video-understanding
progress-estimation
reward-modeling
qwen3-vl
conversational
Instructions to use InternRobotics/VLAC-Cut with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InternRobotics/VLAC-Cut with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="InternRobotics/VLAC-Cut") 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("InternRobotics/VLAC-Cut") model = AutoModelForMultimodalLM.from_pretrained("InternRobotics/VLAC-Cut", 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 InternRobotics/VLAC-Cut with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InternRobotics/VLAC-Cut" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternRobotics/VLAC-Cut", "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/InternRobotics/VLAC-Cut
- SGLang
How to use InternRobotics/VLAC-Cut 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 "InternRobotics/VLAC-Cut" \ --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": "InternRobotics/VLAC-Cut", "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 "InternRobotics/VLAC-Cut" \ --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": "InternRobotics/VLAC-Cut", "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 InternRobotics/VLAC-Cut with Docker Model Runner:
docker model run hf.co/InternRobotics/VLAC-Cut
Add quick_start/README.md
Browse files- quick_start/README.md +47 -0
quick_start/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Quick Start
|
| 2 |
+
|
| 3 |
+
This quick start runs the released VLAC model on one bundled example video with the `chunk_all` prompt.
|
| 4 |
+
The bundled `mp4` is sampled on the fly into a fixed `2hz` frame list, then the predicted progress points are aligned to the benchmark dense GT curve for full-trajectory comparison.
|
| 5 |
+
|
| 6 |
+
## Requirements
|
| 7 |
+
|
| 8 |
+
- environment: `swift-vlac311-vllm011`
|
| 9 |
+
- hardware: at least `1` GPU with enough memory for this `30B` VLAC checkpoint
|
| 10 |
+
|
| 11 |
+
## Run
|
| 12 |
+
|
| 13 |
+
From the model release root:
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
python quick_start/run_example.py --example-id example_01
|
| 17 |
+
python quick_start/run_example.py --example-id example_02
|
| 18 |
+
python quick_start/run_example.py --example-id example_03
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
If the model directory is not the parent of `quick_start/`, pass it explicitly:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
python quick_start/run_example.py \
|
| 25 |
+
--model-path /path/to/VLAC2-Qwen3VL-30B-A3B-Progress \
|
| 26 |
+
--example-id example_01
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Output
|
| 30 |
+
|
| 31 |
+
By default the script writes:
|
| 32 |
+
|
| 33 |
+
- `quick_start/outputs/example_01.jsonl`
|
| 34 |
+
- `quick_start/outputs/example_02.jsonl`
|
| 35 |
+
- `quick_start/outputs/example_03.jsonl`
|
| 36 |
+
|
| 37 |
+
Each output file contains one JSONL row with:
|
| 38 |
+
|
| 39 |
+
- example id
|
| 40 |
+
- task metadata
|
| 41 |
+
- `2hz` sampled input frame indices and timestamps
|
| 42 |
+
- chunk_all prompt text
|
| 43 |
+
- raw model response
|
| 44 |
+
- parsed predicted key points: `时间 / 进度`
|
| 45 |
+
- benchmark dense GT progress and semantic anchors
|
| 46 |
+
- predicted dense curve aligned to the GT timeline
|
| 47 |
+
- full-curve comparison metrics and an optional comparison plot path
|