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
Upload folder using huggingface_hub
Browse filesFiles changed (8)
- added_tokens.jsonAdded+11
- config.jsonAdded+26
- generation_config.jsonAdded+6
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+61
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+126
1234567891011{ "<image>": 32007, "<pad>": 32008, "<|ASSISTANT|>": 32003, "<|USER|>": 32004, "<|bos|>": 32000, "<|endoftext|>": 32001, "<|endthought|>": 32006, "<|startthought|>": 32005, "[PAD]": 32002}1234567891011121314151617181920212223242526{ "_name_or_path": "LeroyDyer/Mixtral_AI_Tiny", "architectures": [ "MistralForCausalLM" ], "attention_dropout": 0.0, "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 1024, "initializer_range": 0.02, "intermediate_size": 4096, "max_position_embeddings": 32768, "model_type": "mistral", "num_attention_heads": 32, "num_hidden_layers": 12, "num_key_value_heads": 8, "rms_norm_eps": 1e-06, "rope_theta": 10000.0, "sliding_window": 32, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.38.2", "use_cache": true, "vocab_size": 32009}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.38.2"}123version https://git-lfs.github.com/spec/v1oid sha256:509a35240f574603a0de059228a777d95e77f79c74b9d1a1b7f90715c2b1e052size 116652094412345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "additional_special_tokens": [ { "content": "<|startthought|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, { "content": "<|endthought|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, { "content": "<|startthought|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, { "content": "<image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false } ], "bos_token": { "content": "<|bos|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:cc460a0129515b7579ec9f63218012601729de4fbd1b5de8d56dc47e8a204a29size 493449123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32000": { "content": "<|bos|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32001": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32002": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32003": { "content": "<|ASSISTANT|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32004": { "content": "<|USER|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32005": { "content": "<|startthought|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32006": { "content": "<|endthought|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32007": { "content": "<image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32008": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<|startthought|>", "<|endthought|>", "<|startthought|>", "<image>", "<pad>" ], "bos_token": "<|bos|>", "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "legacy": true, "max_length": 1536, "model_max_length": 1000000000000000019884624838656, "pad_token": "<|endoftext|>", "padding_side": "right", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "stride": 0, "tokenizer_class": "LlamaTokenizer", "truncation": true, "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>", "use_default_system_prompt": true}added_tokens.jsonAdded+11
config.jsonAdded+26
generation_config.jsonAdded+6
model.safetensorsAdded+3
special_tokens_map.jsonAdded+61
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+126