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
|
| 3 |
+
base_model: Qwen/Qwen3-VL-8B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- vision-language-model
|
| 6 |
+
- image-text-to-text
|
| 7 |
+
- tibetan
|
| 8 |
+
- qwen3_vl
|
| 9 |
+
- finetuned
|
| 10 |
+
language:
|
| 11 |
+
- bo
|
| 12 |
+
- zh
|
| 13 |
+
pipeline_tag: image-text-to-text
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# FTib-VLM
|
| 17 |
+
|
| 18 |
+
FTib-VLM is a Tibetan vision-language model fine-tuned from `Qwen/Qwen3-VL-8B-Instruct` for multimodal understanding in low-resource language settings. It is released as part of the FTibSuite project to support reproducible Tibetan multimodal research.
|
| 19 |
+
|
| 20 |
+
## Model Details
|
| 21 |
+
|
| 22 |
+
- **Model**: `onedday/FTib-VLM`
|
| 23 |
+
- **Base model**: `Qwen/Qwen3-VL-8B-Instruct`
|
| 24 |
+
- **Architecture**: `qwen3_vl`
|
| 25 |
+
- **Parameters**: ~8.8B
|
| 26 |
+
- **License**: `Apache-2.0`
|
| 27 |
+
|
| 28 |
+
## Highlights
|
| 29 |
+
|
| 30 |
+
- Fine-tuned for **Tibetan multimodal understanding**
|
| 31 |
+
- Built on top of a strong open-source VLM backbone
|
| 32 |
+
- Trained with a **three-stage adaptation pipeline**
|
| 33 |
+
- Released for **research, evaluation, and downstream adaptation**
|
| 34 |
+
- Shows strong improvements on Tibetan multimodal benchmarks
|
| 35 |
+
|
| 36 |
+
## Intended Use
|
| 37 |
+
|
| 38 |
+
FTib-VLM is intended for research and experimental applications such as:
|
| 39 |
+
|
| 40 |
+
- Tibetan image question answering
|
| 41 |
+
- Tibetan image description
|
| 42 |
+
- Multimodal instruction following
|
| 43 |
+
- Tibetan-oriented visual reasoning
|
| 44 |
+
- Low-resource vision-language adaptation research
|
| 45 |
+
|
| 46 |
+
## Training Overview
|
| 47 |
+
|
| 48 |
+
FTib-VLM is fine-tuned from `Qwen/Qwen3-VL-8B-Instruct` using a three-stage pipeline:
|
| 49 |
+
|
| 50 |
+
1. **Continual Pretraining** on Tibetan-oriented text data
|
| 51 |
+
2. **Multimodal Alignment** on Tibetan image-text pairs
|
| 52 |
+
3. **Multimodal Instruction Tuning** on Tibetan multimodal instruction data
|
| 53 |
+
|
| 54 |
+
The goal is to improve Tibetan multimodal capability while preserving the strengths of the base vision-language model.
|
| 55 |
+
|
| 56 |
+
## Benchmark Summary
|
| 57 |
+
|
| 58 |
+
FTib-VLM shows clear improvements over the base model on Tibetan multimodal evaluation, including:
|
| 59 |
+
|
| 60 |
+
- BinaryVQA: 76.01
|
| 61 |
+
- MMBench: 67.78
|
| 62 |
+
- POPE-random: 80.56
|
| 63 |
+
|
| 64 |
+
## Usage
|
| 65 |
+
|
| 66 |
+
Install dependencies:
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
pip install -U transformers accelerate torch pillow
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Example
|
| 73 |
+
Replace `"example.jpg"` with your local image path.
|
| 74 |
+
|
| 75 |
+
```python
|
| 76 |
+
from PIL import Image
|
| 77 |
+
from transformers import AutoProcessor, AutoModelForVision2Seq
|
| 78 |
+
import torch
|
| 79 |
+
|
| 80 |
+
model_id = "onedday/FTib-VLM"
|
| 81 |
+
|
| 82 |
+
processor = AutoProcessor.from_pretrained(model_id)
|
| 83 |
+
model = AutoModelForVision2Seq.from_pretrained(
|
| 84 |
+
model_id,
|
| 85 |
+
torch_dtype=torch.bfloat16,
|
| 86 |
+
device_map="auto",
|
| 87 |
+
)
|
| 88 |
+
|
| 89 |
+
image = Image.open("example.jpg").convert("RGB")
|
| 90 |
+
prompt = "请详细描述这张图片。"
|
| 91 |
+
|
| 92 |
+
inputs = processor(
|
| 93 |
+
text=prompt,
|
| 94 |
+
images=image,
|
| 95 |
+
return_tensors="pt",
|
| 96 |
+
)
|
| 97 |
+
|
| 98 |
+
inputs = {
|
| 99 |
+
k: v.to(model.device) if hasattr(v, "to") else v
|
| 100 |
+
for k, v in inputs.items()
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
generated_ids = model.generate(
|
| 104 |
+
**inputs,
|
| 105 |
+
max_new_tokens=256,
|
| 106 |
+
)
|
| 107 |
+
|
| 108 |
+
output = processor.batch_decode(
|
| 109 |
+
generated_ids,
|
| 110 |
+
skip_special_tokens=True,
|
| 111 |
+
)
|
| 112 |
+
|
| 113 |
+
print(output[0])
|
| 114 |
+
```
|
| 115 |
+
## Limitations
|
| 116 |
+
|
| 117 |
+
- OCR and in-image text understanding remain challenging.
|
| 118 |
+
- Benchmark performance does not fully reflect real-world reliability.
|
| 119 |
+
- The model is intended primarily for research use.
|
| 120 |
+
- As a low-resource adapted model, output quality may vary across domains and prompt styles.
|
| 121 |
+
|
| 122 |
+
## Ethical Considerations
|
| 123 |
+
|
| 124 |
+
This model is released to support Tibetan multimodal research and improve access to low-resource language technology. However, like other vision-language models, it may produce incorrect, biased, or misleading outputs. It should be used with care in high-stakes or reliability-sensitive scenarios.
|
| 125 |
+
|
| 126 |
+
## Citation
|
| 127 |
+
|
| 128 |
+
If you use this model, please cite the FTibSuite paper:
|
| 129 |
+
|
| 130 |
+
```bibtex
|
| 131 |
+
@article{xu2026ftibsuite,
|
| 132 |
+
title={FTibSuite: A Comprehensive Resource Suite for Tibetan Vision--Language Modeling},
|
| 133 |
+
author={Xu, Guixian and Liang, Yide and Su, Zeli and Song, Xuexian and Zhang, Ziyin and Dong, Yushuang and Zhang, Ting and Han, Xu},
|
| 134 |
+
year={2026}
|
| 135 |
+
}
|
| 136 |
+
You may also cite this repository as:
|
| 137 |
+
@misc{onedday_ftib_vlm,
|
| 138 |
+
title = {FTib-VLM},
|
| 139 |
+
author = {onedday},
|
| 140 |
+
year = {2026},
|
| 141 |
+
howpublished = {\url{https://huggingface.co/onedday/FTib-VLM}}
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
```
|
| 145 |
+
You may also cite this repository as:
|
| 146 |
+
````bibtex
|
| 147 |
+
|
| 148 |
+
@misc{onedday_ftib_vlm,
|
| 149 |
+
title = {FTib-VLM},
|
| 150 |
+
author = {onedday},
|
| 151 |
+
year = {2026},
|
| 152 |
+
howpublished = {\url{https://huggingface.co/onedday/FTib-VLM}}
|
| 153 |
+
}
|
| 154 |
+
```
|