Downloads · 30 days
38
1% of all-time downloads
Rewatiramans/Dermatech-Qwen2-VL-2B
Dermatech-Qwen2-VL-2B is a text generation model from Rewatiramans. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of Qwen/Qwen2-VL-2B-Instruct using Low-Rank Adaptation (LoRA) for specialized dermatological diagnosis. It's designed to analyze images of skin conditions and provide insightful diag…
Downloads · 30 days
38
1% of all-time downloads
All-time downloads
4K
Public
Parameters
2.2B
4.4 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors4.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Qwen/Qwen2-VL-2B-Instruct using Low-Rank Adaptation (LoRA) for specialized dermatological diagnosis. It's designed to analyze images of skin conditions and provide insightful diagnostic descriptions, mimicking the expertise of a dermatologist. This model is a key component of the DermaTech project (GitHub Repo).
The base model, Qwen 2 VL, is a powerful multimodal model pre-trained on a massive dataset of text and image pairs. This LoRA adaptation focuses its capabilities on dermatology by training on a curated dataset of 1500 image-text pairs, where images depict various skin conditions and the text provides corresponding expert diagnoses. This targeted training allows for more accurate and relevant responses in the context of skincare analysis.
The model was resumed from checkpoint-205 and saved at checkpoint-618.
This model is intended for research and prototyping purposes as part of the DermaTech project. It's designed to assist in preliminary skin condition assessment and provide information, but it should not be considered a substitute for professional medical advice. Always consult with a qualified dermatologist for accurate diagnoses and treatment plans.
The model's performance might be limited by the size and diversity of the training data. It may not accurately diagnose all skin conditions, and its output should be interpreted with caution.
You can use this model with the transformers library. Refer to the DermaTech GitHub repository for detailed usage instructions and integration with the full application.
Formal evaluation is still pending, but initial results show promising performance on the training data. Further testing and benchmarking will be conducted to assess generalization and accuracy on unseen data.
from transformers import Qwen2VLForConditionalGeneration, Qwen2VLProcessor, GenerationConfig
# Load model and processor
model = Qwen2VLForConditionalGeneration.from_pretrained("Rewatiramans/Dermatech-Qwen2-VL-2B")
processor = Qwen2VLProcessor.from_pretrained("Rewatiramans/Dermatech-Qwen2-VL-2B")
# Load and process image
...
# Prepare inputs
...
# Generate text
generation_config = GenerationConfig(do_sample=True, temperature=0.7) # Adjust parameters as needed
outputs = model.generate(**inputs, generation_config=generation_config)
# Decode output
generated_text = processor.batch_decode(outputs, skip_special_tokens=True)[0]
print(generated_text)
Citation
If you use this model in your research, please cite the DermaTech project and the original Qwen 2 VL model.
Contact
For any inquiries regarding the model or the DermaTech project, please contact [your_email_address].