Uploaded finetuned model

🧠 Qwen2-VL-2B-MedVQA-PMC-TR (v1)

Bu model, Türkçe medikal görsel soru-cevaplama (VQA) amacıyla Qwen2-VL-2B üzerine fine-tune edilmiştir. Eğitimde Unsloth kütüphanesi kullanılarak düşük kaynakla etkili LoRA adaptasyonu uygulanmıştır.


📁 Datasetler

  • nezahatkorkmaz/unsloth-pmc-vqa-tr
  • aosm/vqa-rad-tr-yesno-2025

⚙️ Eğitim Parametreleri

Parametre Değer
Model Temeli unsloth/Qwen2-VL-2B-Instruct
Epoch 1.5
Adım (steps) 47
Batch size (efektif) 96 (48 x 2)
Learning Rate 3e-5
LoRA r / alpha 16 / 16
Max Seq Length 200
Precision bf16
GPU NVIDIA T4 (Colab)
Eğitim Süresi ~37 dakika (2253 sn)
Token Sayısı 1.83M

📊 Eğitim Sonuçları

🎯 Evet/Hayır (Binary QA)

Metrik Değer
✅ Exact Match 57.51%
🎯 Ortalama F1 57.51%
🧪 Accuracy 57.51%
🧪 Binary F1 44.33%

🧠 Semantik Değerlendirme (converted_test_dataset)

Metrik Değer
📘 ROUGE-L 0.0217
🧠 BERTScore (F1) 0.4502

📌 Kullanım

from unsloth import FastVisionModel
from PIL import Image

model, tokenizer = FastVisionModel.from_pretrained(
    "nezahatkorkmaz/Qwen2-VL-2B-MedVQA-PMC-TR",
    use_safetensors=True
)
FastVisionModel.for_inference(model)

image = Image.open("ornek.jpg").convert("RGB")
question = "Bu akciğer filminde sıvı birikimi var mı?"

messages = [{"role": "user", "content": [
    {"type": "text", "text": question},
    {"type": "image", "image": image}
]}]
input_text = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
inputs = tokenizer(image, input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=16)
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)


- **Developed by:** nezahatkorkmaz
- **License:** apache-2.0
- **Finetuned from model :** unsloth/qwen2-vl-2b-instruct-unsloth-bnb-4bit

This qwen2_vl model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.

[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
Downloads last month
5
Safetensors
Model size
2.21B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support