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

yale-nlp
/
MDCure-FlanT5-Base

Summarization
Transformers
Safetensors
English
t5
text2text-generation
multi-document
long-context
Long Context
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use yale-nlp/MDCure-FlanT5-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use yale-nlp/MDCure-FlanT5-Base with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "summarization" 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("summarization", model="yale-nlp/MDCure-FlanT5-Base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("yale-nlp/MDCure-FlanT5-Base")
    model = AutoModelForSeq2SeqLM.from_pretrained("yale-nlp/MDCure-FlanT5-Base")
  • Notebooks
  • Google Colab
  • Kaggle
MDCure-FlanT5-Base
576 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 15 commits
pybeebee's picture
pybeebee
nielsr's picture
nielsr HF Staff
Improve model card: Add pipeline tag and library name (#1)
95762e6 verified 11 months ago
  • .gitattributes
    1.61 kB
    Upload fig1.png over 1 year ago
  • README.md
    5.54 kB
    Improve model card: Add pipeline tag and library name (#1) 11 months ago
  • config.json
    1.69 kB
    Upload T5ForConditionalGeneration over 1 year ago
  • fig1.png
    1.76 MB
    xet
    Upload fig1.png over 1 year ago
  • generation_config.json
    142 Bytes
    Upload T5ForConditionalGeneration over 1 year ago
  • model.safetensors
    571 MB
    xet
    Upload T5ForConditionalGeneration over 1 year ago
  • special_tokens_map.json
    2.54 kB
    Upload tokenizer over 1 year ago
  • spiece.model
    792 kB
    xet
    Upload tokenizer over 1 year ago
  • tokenizer.json
    2.42 MB
    Upload tokenizer over 1 year ago
  • tokenizer_config.json
    21 kB
    Upload tokenizer over 1 year ago