Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
orena
focus
surgical-video
qwen3-vl
conversational
Instructions to use Div97/orena-focus-segment-fullvis-w64 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Div97/orena-focus-segment-fullvis-w64 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Div97/orena-focus-segment-fullvis-w64") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Div97/orena-focus-segment-fullvis-w64") model = AutoModelForMultimodalLM.from_pretrained("Div97/orena-focus-segment-fullvis-w64", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Div97/orena-focus-segment-fullvis-w64 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Div97/orena-focus-segment-fullvis-w64" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Div97/orena-focus-segment-fullvis-w64", "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/Div97/orena-focus-segment-fullvis-w64
- SGLang
How to use Div97/orena-focus-segment-fullvis-w64 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 "Div97/orena-focus-segment-fullvis-w64" \ --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": "Div97/orena-focus-segment-fullvis-w64", "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 "Div97/orena-focus-segment-fullvis-w64" \ --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": "Div97/orena-focus-segment-fullvis-w64", "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 Div97/orena-focus-segment-fullvis-w64 with Docker Model Runner:
docker model run hf.co/Div97/orena-focus-segment-fullvis-w64
Document detailed method and data terms
Browse files
README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
|
|
|
|
|
|
| 3 |
base_model: Qwen/Qwen3-VL-4B-Instruct
|
| 4 |
library_name: transformers
|
| 5 |
pipeline_tag: image-text-to-text
|
|
@@ -16,31 +18,57 @@ Merged bfloat16 checkpoint used by **DISCOVR-SEGMENT**, submitted to the ORena
|
|
| 16 |
SAVE FOCUS 2026 SEGMENT track by team **Incision Impossible**.
|
| 17 |
|
| 18 |
- Base: `Qwen/Qwen3-VL-4B-Instruct`
|
|
|
|
| 19 |
- Merge: PEFT `merge_and_unload`
|
| 20 |
- Serving budget: 64 frames
|
| 21 |
- Model SHA-256:
|
| 22 |
`622fd66547b2ad88f9fcf9c74a22450f44b4c88cef8fcf1a9b464de2a51dcff3`
|
| 23 |
-
-
|
| 24 |
-
`
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Inference method
|
| 32 |
|
| 33 |
-
DISCOVR-SEGMENT uses
|
| 34 |
-
routing:
|
| 35 |
|
| 36 |
-
- ordinary questions sample the complete segment;
|
| 37 |
- questions containing timestamps use up to two ±30-second evidence windows;
|
| 38 |
- single-timestamp questions receive a second 64-frame pass in a 30-second
|
| 39 |
window around the first prediction;
|
| 40 |
-
- temporal frames receive an absolute-time overlay;
|
| 41 |
-
- output is
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
The
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed-apache-2.0-and-third-party-data-terms
|
| 4 |
+
license_link: https://github.com/mdivyanshu97/orena-focus-segment/blob/main/NOTICE
|
| 5 |
base_model: Qwen/Qwen3-VL-4B-Instruct
|
| 6 |
library_name: transformers
|
| 7 |
pipeline_tag: image-text-to-text
|
|
|
|
| 18 |
SAVE FOCUS 2026 SEGMENT track by team **Incision Impossible**.
|
| 19 |
|
| 20 |
- Base: `Qwen/Qwen3-VL-4B-Instruct`
|
| 21 |
+
- Adaptation: language, vision-encoder, and merger LoRA
|
| 22 |
- Merge: PEFT `merge_and_unload`
|
| 23 |
- Serving budget: 64 frames
|
| 24 |
- Model SHA-256:
|
| 25 |
`622fd66547b2ad88f9fcf9c74a22450f44b4c88cef8fcf1a9b464de2a51dcff3`
|
| 26 |
+
- Selected challenge image:
|
| 27 |
+
`b74f595d-06d4-488a-b76b-217544cf8e55`
|
| 28 |
|
| 29 |
+
Source and documentation:
|
| 30 |
+
|
| 31 |
+
- [GitHub source](https://github.com/mdivyanshu97/orena-focus-segment)
|
| 32 |
+
- [Concise implementation method](https://github.com/mdivyanshu97/orena-focus-segment/blob/main/METHOD.md)
|
| 33 |
+
- [Detailed challenge method draft](https://github.com/mdivyanshu97/orena-focus-segment/blob/main/METHOD_DESCRIPTION.md)
|
| 34 |
+
- [Training provenance](https://github.com/mdivyanshu97/orena-focus-segment/blob/main/TRAINING.md)
|
| 35 |
+
|
| 36 |
+
## Training summary
|
| 37 |
+
|
| 38 |
+
FullVis-W64 was trained in two stages:
|
| 39 |
+
|
| 40 |
+
1. one-epoch surgical scene-literacy warm-up on a 238,925-row SSG-VQA /
|
| 41 |
+
CholecT45 manifest, with language rank 16, vision rank 16, and merger rank
|
| 42 |
+
64; and
|
| 43 |
+
2. three scheduled epochs of continued all-track FOCUS fine-tuning on 34,290
|
| 44 |
+
HeiCo and LapChole training rows with a maximum of 64 frames.
|
| 45 |
+
|
| 46 |
+
The detailed document records exact data counts and hashes, frame generation,
|
| 47 |
+
optimizer settings, prompt construction, selected artifact hashes, known
|
| 48 |
+
historical dataset-revision differences, and official pre-evaluation metrics.
|
| 49 |
|
| 50 |
## Inference method
|
| 51 |
|
| 52 |
+
DISCOVR-SEGMENT uses question-dependent temporal routing:
|
|
|
|
| 53 |
|
| 54 |
+
- ordinary questions sample 64 frames across the complete segment;
|
| 55 |
- questions containing timestamps use up to two ±30-second evidence windows;
|
| 56 |
- single-timestamp questions receive a second 64-frame pass in a 30-second
|
| 57 |
window around the first prediction;
|
| 58 |
+
- temporal frames receive an absolute-procedure-time overlay; and
|
| 59 |
+
- output is normalized to the inferred answer format.
|
| 60 |
+
|
| 61 |
+
## Intended use and limitations
|
| 62 |
+
|
| 63 |
+
The checkpoint is intended for non-commercial research and challenge
|
| 64 |
+
reproduction. It is not a medical device and must not be used for clinical
|
| 65 |
+
decision making. No patient videos or raw challenge annotations are
|
| 66 |
+
distributed here.
|
| 67 |
+
|
| 68 |
+
## License and data terms
|
| 69 |
|
| 70 |
+
The Qwen3-VL base model and released source code use Apache-2.0. Training also
|
| 71 |
+
used SSG-VQA, whose repository specifies CC BY-NC-SA 4.0 for non-commercial
|
| 72 |
+
scientific research, plus challenge datasets governed by their respective
|
| 73 |
+
owners. The `license: other` metadata reflects these mixed terms; it does not
|
| 74 |
+
replace any source-dataset license or access agreement.
|