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

usakha
/
Pegasus_MedPaper_model

Summarization
Transformers
PyTorch
TensorBoard
Safetensors
English
pegasus
text2text-generation
Model card Files Files and versions
xet
Metrics Training metrics Community
2

Instructions to use usakha/Pegasus_MedPaper_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use usakha/Pegasus_MedPaper_model 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="usakha/Pegasus_MedPaper_model")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("usakha/Pegasus_MedPaper_model")
    model = AutoModelForSeq2SeqLM.from_pretrained("usakha/Pegasus_MedPaper_model", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
Pegasus_MedPaper_model / runs
29.3 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
usakha's picture
usakha
Training in progress, step 4000
f8f4566 over 3 years ago
  • Jun21_23-38-57_aa6ac386f927
    Training in progress, step 500 over 3 years ago
  • Jun21_23-42-27_aa6ac386f927
    Training in progress, step 500 over 3 years ago
  • Jun21_23-47-25_aa6ac386f927
    Training in progress, step 500 over 3 years ago
  • Jun26_00-20-14_1b7f47a4fdee
    Training in progress, step 4000 over 3 years ago