Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

Duplicated from  microsoft/Florence-2-large-ft

andito
/
Florence-2-large-ft

Image-to-Text
Transformers
PyTorch
florence2
image-text-to-text
vision
custom_code
Model card Files Files and versions
xet
Community
3

Instructions to use andito/Florence-2-large-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use andito/Florence-2-large-ft 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="andito/Florence-2-large-ft", trust_remote_code=True)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("andito/Florence-2-large-ft", trust_remote_code=True)
    model = AutoModelForMultimodalLM.from_pretrained("andito/Florence-2-large-ft", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
Florence-2-large-ft
1.55 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
andito's picture
andito HF Staff
Update README.md
8bc20ad verified over 2 years ago
  • .gitattributes
    1.56 kB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • CODE_OF_CONDUCT.md
    444 Bytes
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • LICENSE
    1.14 kB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • README.md
    14.6 kB
    Update README.md over 2 years ago
  • SECURITY.md
    2.66 kB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • SUPPORT.md
    1.24 kB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • config.json
    2.45 kB
    Update config.json over 2 years ago
  • configuration_florence2.py
    15.1 kB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • generation_config.json
    51 Bytes
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • modeling_florence2.py
    127 kB
    Update modeling_florence2.py over 2 years ago
  • preprocessor_config.json
    806 Bytes
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • processing_florence2.py
    46.4 kB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • pytorch_model.bin
    1.54 GB
    xet
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • tokenizer.json
    1.36 MB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • tokenizer_config.json
    34 Bytes
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago
  • vocab.json
    1.1 MB
    Duplicate from microsoft/Florence-2-large-ft over 2 years ago