damerajee/Llava-pretrain-small
Viewer • Updated • 250k • 111 • 1
Run damerajee/GPT-Vision on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/damerajee/GPT-Vision. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/damerajee/GPT-Vision on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use damerajee/GPT-Vision with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import GPTVision
model = GPTVision.from_pretrained("damerajee/GPT-Vision", trust_remote_code=True, device_map="auto")A very small Vision-Lanaguge Model , Like Llava and Moondream This model has THREE components combined into one
Check the github for more information GPT-Vision-Github
from transformers import AutoModelForCausalLM
from PIL import Image
model = AutoModelForCausalLM.from_pretrained("damerajee/GPT-Vision", trust_remote_code=True)
image_path = "Your_image_path"
image = Image.open(image_path)
image = image.convert('RGB')
question = "Render a clear and concise summary of the photo."
answer = model.generate(image=image,question=question,max_new_tokens=40)
print("Answer:", answer)
A fair warning tho guys , this model is only able to generate very short response sometimes it can also repetitive generate the same tokens but even thought it will understands whats on the image
Further Fine-tuning will make this model better