Downloads · 30 days
4
11% of all-time downloads
RichardErkhov/Rewatiramans_-_Dermatech-Qwen2-VL-2B-awq
Rewatiramans_-_Dermatech-Qwen2-VL-2B-awq is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
4
11% of all-time downloads
All-time downloads
38
Public
Parameters
2.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
How the weights are stored.
I321.3B · 59%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Dermatech-Qwen2-VL-2B - AWQ
tags:
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].