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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

genia-vdg
/
genia-model2-v2

Image-to-Text
Transformers
Safetensors
blip
image-text-to-text
Model card Files Files and versions
xet
Community

Instructions to use genia-vdg/genia-model2-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use genia-vdg/genia-model2-v2 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="genia-vdg/genia-model2-v2")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("genia-vdg/genia-model2-v2")
    model = AutoModelForMultimodalLM.from_pretrained("genia-vdg/genia-model2-v2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
genia-model2-v2
1.88 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 32 commits
Sanmvvm's picture
Sanmvvm
Upload tokenizer
88b09d8 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    5.19 kB
    Update README.md about 2 years ago
  • config.json
    836 Bytes
    Upload config about 2 years ago
  • generation_config.json
    141 Bytes
    Upload BlipForConditionalGeneration about 2 years ago
  • model.safetensors
    1.88 GB
    xet
    Upload BlipForConditionalGeneration about 2 years ago
  • preprocessor_config.json
    746 Bytes
    Upload processor about 2 years ago
  • special_tokens_map.json
    695 Bytes
    Upload tokenizer about 2 years ago
  • tokenizer.json
    711 kB
    Upload tokenizer about 2 years ago
  • tokenizer_config.json
    1.35 kB
    Upload tokenizer about 2 years ago
  • vocab.txt
    232 kB
    Upload tokenizer about 2 years ago