Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
knowledge-distillation
multimodal-reasoning
conversational
Instructions to use SeonghoonYu/Masking-KD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SeonghoonYu/Masking-KD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="SeonghoonYu/Masking-KD") 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("SeonghoonYu/Masking-KD") model = AutoModelForMultimodalLM.from_pretrained("SeonghoonYu/Masking-KD", 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 SeonghoonYu/Masking-KD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SeonghoonYu/Masking-KD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SeonghoonYu/Masking-KD", "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/SeonghoonYu/Masking-KD
- SGLang
How to use SeonghoonYu/Masking-KD 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 "SeonghoonYu/Masking-KD" \ --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": "SeonghoonYu/Masking-KD", "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 "SeonghoonYu/Masking-KD" \ --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": "SeonghoonYu/Masking-KD", "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 SeonghoonYu/Masking-KD with Docker Model Runner:
docker model run hf.co/SeonghoonYu/Masking-KD
Add paper link and citation
Browse files
README.md
CHANGED
|
@@ -13,11 +13,11 @@ tags:
|
|
| 13 |
|
| 14 |
# Masking-KD (Qwen3-VL-2B-Thinking)
|
| 15 |
|
| 16 |
-
Checkpoint for **Hide
|
| 17 |
|
| 18 |
[Qwen3-VL-2B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-2B-Thinking) distilled from [Qwen3-VL-8B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-8B-Thinking) with Masking-KD.
|
| 19 |
|
| 20 |
-
Code: https://github.com/Seonghoon-Yu/Masking-KD
|
| 21 |
|
| 22 |
## Training
|
| 23 |
|
|
@@ -64,3 +64,14 @@ git clone https://github.com/Seonghoon-Yu/Masking-KD && cd Masking-KD
|
|
| 64 |
python evaluation/prepare_data.py
|
| 65 |
bash scripts/eval.sh SeonghoonYu/Masking-KD
|
| 66 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Masking-KD (Qwen3-VL-2B-Thinking)
|
| 15 |
|
| 16 |
+
Checkpoint for **Hide to See: Reasoning-prefix Masking for Visual-anchored Thinking in VLM Distillation** (NeurIPS 2026).
|
| 17 |
|
| 18 |
[Qwen3-VL-2B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-2B-Thinking) distilled from [Qwen3-VL-8B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-8B-Thinking) with Masking-KD.
|
| 19 |
|
| 20 |
+
Paper: https://arxiv.org/abs/2605.11651 | Code: https://github.com/Seonghoon-Yu/Masking-KD
|
| 21 |
|
| 22 |
## Training
|
| 23 |
|
|
|
|
| 64 |
python evaluation/prepare_data.py
|
| 65 |
bash scripts/eval.sh SeonghoonYu/Masking-KD
|
| 66 |
```
|
| 67 |
+
|
| 68 |
+
## Citation
|
| 69 |
+
|
| 70 |
+
```bibtex
|
| 71 |
+
@inproceedings{yu2026hide,
|
| 72 |
+
title = {Hide to See: Reasoning-prefix Masking for Visual-anchored Thinking in VLM Distillation},
|
| 73 |
+
author = {Yu, Seonghoon and Nam, Dongjun and Lee, Byung-Kwan and Son, Jeany},
|
| 74 |
+
booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
|
| 75 |
+
year = {2026}
|
| 76 |
+
}
|
| 77 |
+
```
|