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-base-patch16-224-turkish-gpt2-medium

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

Instructions to use atasoglu/vit-base-patch16-224-turkish-gpt2-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use atasoglu/vit-base-patch16-224-turkish-gpt2-medium 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-base-patch16-224-turkish-gpt2-medium")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForImageTextToText
    
    tokenizer = AutoTokenizer.from_pretrained("atasoglu/vit-base-patch16-224-turkish-gpt2-medium")
    model = AutoModelForImageTextToText.from_pretrained("atasoglu/vit-base-patch16-224-turkish-gpt2-medium")
  • Notebooks
  • Google Colab
  • Kaggle
vit-base-patch16-224-turkish-gpt2-medium
2.18 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
atasoglu's picture
atasoglu
Update README.md (#1)
387fadd verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    1.5 kB
    Update README.md (#1) about 2 years ago
  • config.json
    78.1 kB
    Upload model about 2 years ago
  • generation_config.json
    252 Bytes
    Upload model about 2 years ago
  • merges.txt
    585 kB
    Upload tokenizer about 2 years ago
  • model.safetensors
    2.17 GB
    xet
    Upload model about 2 years ago
  • preprocessor_config.json
    580 Bytes
    Upload feature extractor about 2 years ago
  • special_tokens_map.json
    470 Bytes
    Upload tokenizer about 2 years ago
  • tokenizer.json
    2.37 MB
    Upload tokenizer about 2 years ago
  • tokenizer_config.json
    574 Bytes
    Upload tokenizer about 2 years ago
  • vocab.json
    927 kB
    Upload tokenizer about 2 years ago