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

ccdv
/
lsg-bart-base-4096-pubmed

Summarization
Transformers
PyTorch
English
bart
text2text-generation
custom_code
Model card Files Files and versions
xet
Community
2

Instructions to use ccdv/lsg-bart-base-4096-pubmed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ccdv/lsg-bart-base-4096-pubmed 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="ccdv/lsg-bart-base-4096-pubmed", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("ccdv/lsg-bart-base-4096-pubmed", trust_remote_code=True)
    model = AutoModelForSeq2SeqLM.from_pretrained("ccdv/lsg-bart-base-4096-pubmed", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
lsg-bart-base-4096-pubmed
582 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 26 commits
ccdv's picture
ccdv
small fix
658800c over 2 years ago
  • .gitattributes
    1.17 kB
    initial commit about 4 years ago
  • README.md
    4.57 kB
    small fix over 2 years ago
  • attn.png
    50.1 kB
    readme about 4 years ago
  • config.json
    2.58 kB
    add mask_first_token almost 4 years ago
  • merges.txt
    456 kB
    readme about 4 years ago
  • modeling_lsg_bart.py
    41.9 kB
    small fix over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    578 MB
    xet
    update almost 4 years ago
  • special_tokens_map.json
    239 Bytes
    readme about 4 years ago
  • tokenizer.json
    2.11 MB
    readme about 4 years ago
  • tokenizer_config.json
    404 Bytes
    readme about 4 years ago
  • vocab.json
    798 kB
    readme about 4 years ago