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

aarushi-211
/
TOS-Longformer

Summarization
Transformers
Safetensors
English
led
text2text-generation
Model card Files Files and versions
xet
Community

Instructions to use aarushi-211/TOS-Longformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use aarushi-211/TOS-Longformer 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="aarushi-211/TOS-Longformer")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("aarushi-211/TOS-Longformer")
    model = AutoModelForSeq2SeqLM.from_pretrained("aarushi-211/TOS-Longformer")
  • Notebooks
  • Google Colab
  • Kaggle
TOS-Longformer
652 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
aarushi-211's picture
aarushi-211
Update README.md
9cb32c2 verified 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    1.15 kB
    Update README.md 10 months ago
  • config.json
    1.13 kB
    Upload folder using huggingface_hub 10 months ago
  • generation_config.json
    163 Bytes
    Upload folder using huggingface_hub 10 months ago
  • merges.txt
    456 kB
    Upload folder using huggingface_hub 10 months ago
  • model.safetensors
    648 MB
    xet
    Upload folder using huggingface_hub 10 months ago
  • special_tokens_map.json
    957 Bytes
    Upload folder using huggingface_hub 10 months ago
  • tokenizer.json
    3.56 MB
    Upload folder using huggingface_hub 10 months ago
  • tokenizer_config.json
    1.24 kB
    Upload folder using huggingface_hub 10 months ago
  • vocab.json
    798 kB
    Upload folder using huggingface_hub 10 months ago