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-wcep

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-wcep with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

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

    Detected Pickle imports (3)

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

    What is a pickle import?

    578 MB
    xet
    first almost 4 years ago
  • special_tokens_map.json
    239 Bytes
    first almost 4 years ago
  • tokenizer.json
    2.11 MB
    first almost 4 years ago
  • tokenizer_config.json
    399 Bytes
    first almost 4 years ago
  • vocab.json
    798 kB
    first almost 4 years ago