Views
No views yet


| Model Name | Description | Download |
|---|---|---|
| Youtu-VL-4B-Instruct | Visual language model of Youtu-LLM | 🤗 Model |
| Youtu-VL-4B-Instruct-GGUF | Visual language model of Youtu-LLM, in GGUF format | 🤗 Model |



transformers library installed and that the version meets the requirements.pip install "transformers>=4.56.0,<=4.57.1" torch accelerate pillow torchvision git+https://github.com/lucasb-eyer/pydensecrf.git opencv-python-headlesstransformers:1from transformers import AutoProcessor, AutoModelForCausalLM
2
3model = AutoModelForCausalLM.from_pretrained(
4 "tencent/Youtu-VL-4B-Instruct", attn_implementation="flash_attention_2", torch_dtype="auto", device_map="cuda", trust_remote_code=True
5).eval()
6
7processor = AutoProcessor.from_pretrained(
8 "tencent/Youtu-VL-4B-Instruct", use_fast=True, trust_remote_code=True
9)
10
11img_path = "./assets/logo.png"
12messages = [
13 {
14 "role": "user",
15 "content": [
16 {"type": "image", "image": img_path},
17 {"type": "text", "text": "Describe the image"},
18 ],
19 }
20]
21
22inputs = processor.apply_chat_template(
23 messages,
24 tokenize=True,
25 add_generation_prompt=True,
26 return_dict=True,
27 return_tensors="pt"
28).to(model.device)
29
30generated_ids = model.generate(
31 **inputs,
32 temperature=0.1,
33 top_p=0.001,
34 repetition_penalty=1.05,
35 do_sample=True,
36 max_new_tokens=32768,
37 img_input=img_path,
38)
39
40generated_ids_trimmed = [
41 out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
42]
43outputs = processor.batch_decode(
44 generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
45)
46generated_text = outputs[0]
47print(f"Youtu-VL output: {generated_text}")1model_path = "tencent/Youtu-VL-4B-Instruct"
2youtu_vl = YoutuVL(model_path)
3response = youtu_vl(prompt, img_path, seg_mode=seg_mode)Prompt: Please provide the bounding box coordinate of the region this sentence describes: a black and white cat sitting on the edge of the bathtub
Prompt: Detect all objects in the provided image.
Prompt: Can you segment "hotdog on left" in this image?
@article{youtu-vl,
title={Youtu-VL: Unleashing Visual Potential via Unified Vision-Language Supervision},
author={Tencent Youtu Lab},
year={2026},
eprint={2601.19798},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2601.19798},
}
@article{youtu-llm,
title={Youtu-LLM: Unlocking the Native Agentic Potential for Lightweight Large Language Models},
author={Tencent Youtu Lab},
year={2025},
eprint={2512.24618},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2512.24618},
}