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

anshuKr
/
sentence-compression

Summarization
Transformers
Safetensors
English
t5
text2text-generation
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use anshuKr/sentence-compression with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use anshuKr/sentence-compression 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="anshuKr/sentence-compression")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("anshuKr/sentence-compression")
    model = AutoModelForSeq2SeqLM.from_pretrained("anshuKr/sentence-compression")
  • Notebooks
  • Google Colab
  • Kaggle
sentence-compression
729 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
Anshu Kumar
Create config.json
507f6bd verified about 2 years ago
  • checkpoint-90000
    Upload 11 files about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • Makefile
    526 Bytes
    Update Makefile about 2 years ago
  • README.md
    1.86 kB
    Update README.md about 2 years ago
  • build_dataset.py
    3.01 kB
    Upload 8 files about 2 years ago
  • config.json
    1.21 kB
    Create config.json about 2 years ago
  • config.yaml
    289 Bytes
    Upload 8 files about 2 years ago
  • environment.yaml
    324 Bytes
    Upload 8 files about 2 years ago
  • fine-tuning.py
    2.88 kB
    Upload 8 files about 2 years ago
  • inference.py
    2.51 kB
    Upload 8 files about 2 years ago
  • utils.py
    1.99 kB
    Upload 8 files about 2 years ago