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

thwri
/
CogFlorence-2.2-Large

Image-to-Text
Transformers
Safetensors
English
florence2
image-text-to-text
art
custom_code
Model card Files Files and versions
xet
Community
1

Instructions to use thwri/CogFlorence-2.2-Large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use thwri/CogFlorence-2.2-Large 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="thwri/CogFlorence-2.2-Large", trust_remote_code=True)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("thwri/CogFlorence-2.2-Large", trust_remote_code=True)
    model = AutoModelForImageTextToText.from_pretrained("thwri/CogFlorence-2.2-Large", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
CogFlorence-2.2-Large
1.65 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
thwri's picture
thwri
xianbao's picture
xianbao
Update metadata: Add library_name to Transformers (#1)
19f2c61 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    3.14 kB
    Update metadata: Add library_name to Transformers (#1) over 1 year ago
  • config.json
    2.45 kB
    Upload 11 files over 1 year ago
  • configuration_florence2.py
    15.1 kB
    Upload 11 files over 1 year ago
  • generation_config.json
    51 Bytes
    Upload 11 files over 1 year ago
  • model.safetensors
    1.65 GB
    xet
    Upload 11 files over 1 year ago
  • modeling_florence2.py
    127 kB
    Upload 11 files over 1 year ago
  • preprocessor_config.json
    631 Bytes
    Upload 11 files over 1 year ago
  • processing_florence2.py
    46.4 kB
    Upload 11 files over 1 year ago
  • tokenizer.json
    2.3 MB
    Upload 11 files over 1 year ago
  • tokenizer_config.json
    34 Bytes
    Upload 11 files over 1 year ago
  • vocab.json
    798 kB
    Upload 11 files over 1 year ago