Image-Text-to-Text
PEFT
Safetensors
English
vision-language
vlm
lora
unsloth
agriculture
crop-disease
smolvlm
image-to-text
conversational
Instructions to use W4ashabii/SmolVLM256M_CropDisease with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use W4ashabii/SmolVLM256M_CropDisease with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolVLM-256M-Instruct") model = PeftModel.from_pretrained(base_model, "W4ashabii/SmolVLM256M_CropDisease") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
| <|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance> | |
| {% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %} |