Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

atasoglu
/
vit-gpt2-flickr8k

Image-to-Text
Transformers
PyTorch
Safetensors
English
vision-encoder-decoder
image-text-to-text
image
vision
Model card Files Files and versions
xet
Community
1

Instructions to use atasoglu/vit-gpt2-flickr8k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use atasoglu/vit-gpt2-flickr8k 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="atasoglu/vit-gpt2-flickr8k")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("atasoglu/vit-gpt2-flickr8k")
    model = AutoModelForImageTextToText.from_pretrained("atasoglu/vit-gpt2-flickr8k")
  • Notebooks
  • Google Colab
  • Kaggle
vit-gpt2-flickr8k
1.97 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
atasoglu's picture
atasoglu
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
911bda6 almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    1.27 kB
    update README.md about 3 years ago
  • config.json
    4.96 kB
    upload files about 3 years ago
  • generation_config.json
    149 Bytes
    upload files about 3 years ago
  • merges.txt
    456 kB
    upload files about 3 years ago
  • model.safetensors
    982 MB
    xet
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • preprocessor_config.json
    327 Bytes
    upload files about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.BoolStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    982 MB
    xet
    upload files about 3 years ago
  • special_tokens_map.json
    131 Bytes
    upload files about 3 years ago
  • tokenizer.json
    2.11 MB
    upload files about 3 years ago
  • tokenizer_config.json
    234 Bytes
    upload files about 3 years ago
  • training_args.bin

    Detected Pickle imports (6)

    • "transformers.trainer_utils.HubStrategy",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.training_args_seq2seq.Seq2SeqTrainingArguments",
    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.training_args.OptimizerNames",
    • "torch.device"

    How to fix it?

    3.77 kB
    xet
    upload files about 3 years ago
  • vocab.json
    798 kB
    upload files about 3 years ago