Instructions to use 0xAgamy/unsloth_Qwen3vl_finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0xAgamy/unsloth_Qwen3vl_finetune with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="0xAgamy/unsloth_Qwen3vl_finetune") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("0xAgamy/unsloth_Qwen3vl_finetune") model = AutoModelForMultimodalLM.from_pretrained("0xAgamy/unsloth_Qwen3vl_finetune", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 0xAgamy/unsloth_Qwen3vl_finetune with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0xAgamy/unsloth_Qwen3vl_finetune" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0xAgamy/unsloth_Qwen3vl_finetune", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/0xAgamy/unsloth_Qwen3vl_finetune
- SGLang
How to use 0xAgamy/unsloth_Qwen3vl_finetune with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "0xAgamy/unsloth_Qwen3vl_finetune" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0xAgamy/unsloth_Qwen3vl_finetune", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "0xAgamy/unsloth_Qwen3vl_finetune" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0xAgamy/unsloth_Qwen3vl_finetune", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Studio
How to use 0xAgamy/unsloth_Qwen3vl_finetune with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for 0xAgamy/unsloth_Qwen3vl_finetune to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for 0xAgamy/unsloth_Qwen3vl_finetune to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for 0xAgamy/unsloth_Qwen3vl_finetune to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="0xAgamy/unsloth_Qwen3vl_finetune", max_seq_length=2048, ) - Docker Model Runner
How to use 0xAgamy/unsloth_Qwen3vl_finetune with Docker Model Runner:
docker model run hf.co/0xAgamy/unsloth_Qwen3vl_finetune
Qwen3-VL-2B-Instruct Skin Lesion Extractor
This model is a specialized vision-language model fine-tuned from Qwen3-VL-2B-Instruct using Unsloth for efficient training. It is designed to analyze dermatological images (skin lesions) and extract structured, clinical features in a strict JSON format.
Model Description
This model takes an image of a skin lesion and a textual prompt as input, and outputs a structured JSON object containing key dermatological features. It was fine-tuned on a curated medical dataset of skin extracts to recognize and describe:
- Lesion Type: The clinical classification of the lesion (e.g., melanoma, nevus, basal cell carcinoma).
- Color: Predominant colors observed (e.g., brown, black, red, white, blue).
- Symmetry: Assessment of the lesion's symmetry (e.g., symmetric, asymmetric).
- Borders: Description of the lesion's edges (e.g., regular, irregular, scalloped).
- Texture: Surface characteristics (e.g., smooth, rough, scaly, ulcerated).
- Summary: A concise, professional clinical summary of the findings.
Training Details
- Base Model:
Qwen/Qwen3-VL-2B-Instruct - Training Framework: Unsloth (enabling up to 2x faster training and 50% less memory usage via optimized LoRA/QLoRA).
- Dataset: Skin_Extract
- Optimization: 4-bit quantization (QLoRA) with rank
r=16, alpha32, and dropout0.05(adjust these values to match your actual Unsloth config).
Evaluation Metrics
The model's extraction accuracy was evaluated using BERTScore to measure the semantic similarity between the model's generated JSON fields and the clinical ground truth annotations.
Below are the detailed BERTScore (F1) statistics for each extracted feature:
| Feature Field | Mean Score | Min Score | Max Score | Std Dev |
|---|---|---|---|---|
| Texture | 0.9449 | 0.8409 | 1.0000 | 0.0670 |
| Lesion Type | 0.9361 | 0.8490 | 1.0000 | 0.0378 |
| Borders | 0.9108 | 0.8433 | 1.0000 | 0.0377 |
| Symmetry | 0.9092 | 0.8397 | 1.0000 | 0.0417 |
| Summary | 0.9087 | 0.8498 | 0.9672 | 0.0227 |
| Color | 0.8972 | 0.8315 | 0.9647 | 0.0245 |
| Overall Average | ~0.9178 | - | - | - |
Note: The high mean scores (>0.89 across all fields) and low standard deviations indicate that the model consistently generates descriptions that are semantically highly aligned with the clinical ground truth, with minimal variance.
Limitations and Bias
- Not a Diagnostic Tool: The model can hallucinate or misclassify rare conditions. Human oversight is strictly required.
- Dataset Bias: Performance may vary depending on skin tones, image quality, lighting conditions, and the specific demographics represented in the training dataset.
- Scope: The model is strictly tuned for cutaneous/dermatological images and will perform poorly or unpredictably on non-skin medical imagery (e.g., X-rays, MRIs).
- Downloads last month
- 3
Model tree for 0xAgamy/unsloth_Qwen3vl_finetune
Base model
Qwen/Qwen3-VL-2B-Instruct