Image-Text-to-Text
PEFT
Safetensors
English
llama
vision
science
stem
education
lora
qlora
unsloth
multimodal
conversational
Instructions to use Nalandadata/nalanda-image-vl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Nalandadata/nalanda-image-vl with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-11B-Vision-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Nalandadata/nalanda-image-vl") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use Nalandadata/nalanda-image-vl 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 Nalandadata/nalanda-image-vl 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 Nalandadata/nalanda-image-vl to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Nalandadata/nalanda-image-vl to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Nalandadata/nalanda-image-vl", max_seq_length=2048, )
File size: 550 Bytes
e51a3f0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | {
"image_processor": {
"do_convert_rgb": true,
"do_normalize": true,
"do_pad": true,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.48145466,
0.4578275,
0.40821073
],
"image_processor_type": "MllamaImageProcessor",
"image_std": [
0.26862954,
0.26130258,
0.27577711
],
"max_image_tiles": 4,
"resample": 2,
"rescale_factor": 0.00392156862745098,
"size": {
"height": 560,
"width": 560
}
},
"processor_class": "MllamaProcessor"
}
|