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

philschmid
/
donut-base-finetuned-cord-v2

Image-to-Text
Transformers
PyTorch
vision-encoder-decoder
image-text-to-text
donut
vision
endpoints-template
Model card Files Files and versions
xet
Community
1

Instructions to use philschmid/donut-base-finetuned-cord-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use philschmid/donut-base-finetuned-cord-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="philschmid/donut-base-finetuned-cord-v2")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("philschmid/donut-base-finetuned-cord-v2")
    model = AutoModelForMultimodalLM.from_pretrained("philschmid/donut-base-finetuned-cord-v2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
donut-base-finetuned-cord-v2
812 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 15 commits
philschmid's picture
philschmid
readme
74473b1 almost 4 years ago
  • .gitattributes
    1.38 kB
    initial commit almost 4 years ago
  • README.md
    2.56 kB
    readme almost 4 years ago
  • added_tokens.json
    1.52 kB
    Upload added_tokens.json almost 4 years ago
  • config.json
    4.74 kB
    Upload config.json almost 4 years ago
  • create_handler.ipynb
    4.43 kB
    readme almost 4 years ago
  • handler.py
    1.59 kB
    add hadnler almost 4 years ago
  • preprocessor_config.json
    362 Bytes
    Upload preprocessor_config.json almost 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.LongStorage",
    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    806 MB
    xet
    Upload pytorch_model.bin with git-lfs almost 4 years ago
  • sample.png
    380 kB
    add hadnler almost 4 years ago
  • sentencepiece.bpe.model
    1.3 MB
    xet
    Upload sentencepiece.bpe.model with git-lfs almost 4 years ago
  • special_tokens_map.json
    335 Bytes
    Upload special_tokens_map.json almost 4 years ago
  • tokenizer.json
    4.02 MB
    Upload tokenizer.json almost 4 years ago
  • tokenizer_config.json
    536 Bytes
    Upload tokenizer_config.json almost 4 years ago