Instructions to use kjunh/v1-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kjunh/v1-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="kjunh/v1-7B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kjunh/v1-7B", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use kjunh/v1-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kjunh/v1-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kjunh/v1-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kjunh/v1-7B
- SGLang
How to use kjunh/v1-7B 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 "kjunh/v1-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kjunh/v1-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "kjunh/v1-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kjunh/v1-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kjunh/v1-7B with Docker Model Runner:
docker model run hf.co/kjunh/v1-7B
Improve model card with pipeline tag and library name
Browse filesThis PR improves the model card by adding the `pipeline_tag` and `library_name` metadata. The `pipeline_tag` is set to `image-text-to-text` as the model processes both image and text data to generate text. The `library_name` is set to `transformers` based on the model's reliance on the Transformers library. This ensures the model is properly categorized on the Hugging Face Hub and allows users to easily discover it using relevant search filters.
README.md
CHANGED
|
@@ -1,3 +1,70 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: image-text-to-text
|
| 4 |
+
library_name: transformers
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Don't Look Only Once: Towards Multimodal Interactive Reasoning with Selective Visual Revisitation
|
| 8 |
+
|
| 9 |
+
<p align="left">
|
| 10 |
+
<a href='https://jiwanchung.github.io/' target='_blank'>Jiwan Chung<sup>*</sup></a> 
|
| 11 |
+
<a href='https://junhyeok.kim/' target='_blank'>Junhyeok Kim<sup>*</sup></a> 
|
| 12 |
+
<a href='https://scholar.google.com/citations?user=w3hOuRoAAAAJ' target='_blank'>Siyeol Kim</a> 
|
| 13 |
+
<a href='https://jaeyoung-l.github.io/' target='_blank'>Jaeyoung Lee</a> 
|
| 14 |
+
<a href="https://scholar.google.com/citations?user=Og3gN_AAAAAJ" target='_blank'>Minsoo Kim</a> 
|
| 15 |
+
<a href='https://mirlab.yonsei.ac.kr/' target='_blank'>Youngjae Yu</a>
|
| 16 |
+
</p>
|
| 17 |
+
|
| 18 |
+
[](https://arxiv.org/abs/2505.18842) [](https://huggingface.co/kjunh/v1-7B)
|
| 19 |
+
|
| 20 |
+
<p align="center">
|
| 21 |
+
<img src="assets/figure.png">
|
| 22 |
+
</p>
|
| 23 |
+
|
| 24 |
+
## Installation
|
| 25 |
+
```bash
|
| 26 |
+
conda create -n v1 python=3.10 -y
|
| 27 |
+
conda activate v1
|
| 28 |
+
pip install -r requirements.txt
|
| 29 |
+
pip install flash-attn --no-build-isolation
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Demo
|
| 33 |
+
|
| 34 |
+
### Gradio Web UI
|
| 35 |
+
Highly Recommended as the copy tokens are displayed on image.
|
| 36 |
+
|
| 37 |
+
<p align="center">
|
| 38 |
+
<img src="assets/demo.png">
|
| 39 |
+
</p>
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
python run_gradio.py
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
### Inference
|
| 46 |
+
```bash
|
| 47 |
+
python inference.py
|
| 48 |
+
```
|
| 49 |
+
The script uses a default image URL and text prompt. To use your own inputs, you can modify the `image` variable within the `messages` list and the `text` field for the user prompt.
|
| 50 |
+
|
| 51 |
+
## Coming Soon
|
| 52 |
+
- [x] Inference code
|
| 53 |
+
- [ ] Training data
|
| 54 |
+
- [ ] Evaluation code
|
| 55 |
+
- [ ] Training code
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
## Citation
|
| 59 |
+
If you find our work valuable, please cite:
|
| 60 |
+
```bibtex
|
| 61 |
+
@misc{chung2025dontlookoncemultimodal,
|
| 62 |
+
title={Don't Look Only Once: Towards Multimodal Interactive Reasoning with Selective Visual Revisitation},
|
| 63 |
+
author={Jiwan Chung and Junhyeok Kim and Siyeol Kim and Jaeyoung Lee and Min Soo Kim and Youngjae Yu},
|
| 64 |
+
year={2025},
|
| 65 |
+
eprint={2505.18842},
|
| 66 |
+
archivePrefix={arXiv},
|
| 67 |
+
primaryClass={cs.CL},
|
| 68 |
+
url={https://arxiv.org/abs/2505.18842},
|
| 69 |
+
}
|
| 70 |
+
```
|