marmal88/skin_cancer
Viewer • Updated • 13.4k • 4.31k • 42
How to use hssling/derm-analyzer-adapter with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
model = PeftModel.from_pretrained(base_model, "hssling/derm-analyzer-adapter")Fine-tuned LoRA adapter on top of Qwen2-VL-2B-Instruct for clinical dermatological diagnosis
with a specific focus on South Asian skin types (Fitzpatrick IV–VI) and Indian treatment protocols.
from transformers import AutoProcessor, Qwen2VLForConditionalGeneration
from peft import PeftModel
model = Qwen2VLForConditionalGeneration.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
model = PeftModel.from_pretrained(model, "hssling/derm-analyzer-adapter")
processor = AutoProcessor.from_pretrained("hssling/derm-analyzer-adapter")
Research use only. Not a substitute for clinical evaluation by a qualified dermatologist.