Image-to-Text
Transformers
Safetensors
English
mistral
text-generation
vision
VISION-ENCODER-DECODER-MODEL
text-generation-inference
Run this model with HF Jobs
Run LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m 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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m. 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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m 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.
Instructions to use LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m") model = AutoModelForCausalLM.from_pretrained("LeroyDyer/SpydazWebAI_VisionEncoderDecoderModel_Mini548m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files5 unmodified lines67899101112131415161718192021222324252627282930313233343536375 unmodified linespipeline_tag: image-text-to-texttags:- vision------
# ADD HEAD```
print('Add Vision...')# ADD HEAD# Combine pre-trained encoder and pre-trained decoder to form a Seq2Seq model
Vmodel = VisionEncoderDecoderModel.from_encoder_decoder_pretrained( "google/vit-base-patch16-224-in21k", "LeroyDyer/Mixtral_AI_Tiny")_Encoder_ImageProcessor = Vmodel.encoder_Decoder_ImageTokenizer = Vmodel.decoder_VisionEncoderDecoderModel = Vmodel# Add Pad tokemsLM_MODEL.VisionEncoderDecoder = _VisionEncoderDecoderModel# Add Sub ComponentsLM_MODEL.Encoder_ImageProcessor = _Encoder_ImageProcessorLM_MODEL.Decoder_ImageTokenizer = _Decoder_ImageTokenizerLM_MODEL
```README.md+29-1