🧠 Qwen2-VL-7B Medical VQA (Türkçe) · LoRA Fine-Tuned

Model: Qwen2-VL-7B-Instruct
Finetuning Türü: LoRA (Low-Rank Adaptation)
Dili: Türkçe
Kullanım Alanı: Görsel Soru-Cevaplama (Medical VQA)
Model ID: nezahatkorkmaz/qwen2-vl-7b-medical-vqa-tr-16bit


📌 Açıklama

Bu model, Türkçe tıbbi görseller üzerinde görsel soru-cevaplama (Visual Question Answering - VQA) amacıyla fine-tune edilmiştir. unsloth/Qwen2-VL-7B-Instruct tabanlıdır ve Unsloth kütüphanesi kullanılarak yalnızca %0.73’lük bir kısmı eğitilmiştir (parameter-efficient LoRA ile).


🗃️ Eğitim Özeti

Özellik Değer
🧠 Temel Model unsloth/Qwen2-VL-7B-Instruct
🔢 Eğitim Verisi 316 örnek (Türkçe medikal VQA)
🧪 Doğrulama Verisi 64 örnek
🔄 Eğitim Adımı 100 adım
⏱️ Eğitim Süresi 417 saniye (yaklaşık 7 dakika)
💾 GPU NVIDIA A100 40GB
💡 Eğitim Kayıp (Loss) 0.91
🧠 Eğitilen Parametre Oranı %0.73 (50M/7B)
📦 Maksimum GPU Belleği 7.82 GB (toplamın %19.76'sı)

📈 Doğrulama Sonuçları

Metrik Değer
📊 Exact Match %0.00
🎯 F1 Skoru %7.95
🧠 BLEU Skoru %1.06

Bu skorlar temel seviyedeki bir LoRA eğitimi sonucudur. Daha uzun eğitim ve veri ile artırılabilir.


🚀 Örnek Kullanım

from unsloth import FastVisionModel
from transformers import TextStreamer
from PIL import Image

model, tokenizer = FastVisionModel.from_pretrained(
    "nezahatkorkmaz/qwen2-vl-7b-medical-vqa-tr-16bit",
    load_in_4bit=False
)
FastVisionModel.for_inference(model)

image = Image.open("/path/to/image.jpg").convert("RGB")
question = "Bu görüntüde kırık var mı?"

messages = [
    {"role": "user", "content": [
        {"type": "image", "image": image},
        {"type": "text", "text": question}
    ]}
]

input_text = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
inputs = tokenizer(image, input_text, return_tensors="pt").to("cuda")

streamer = TextStreamer(tokenizer, skip_prompt=True)
_ = model.generate(**inputs, streamer=streamer, max_new_tokens=128)

[<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
17
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support