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.1-Large

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

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

  • Libraries
  • Transformers

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