Instructions to use mshoaibsarwar/pegasus-pdm-news with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mshoaibsarwar/pegasus-pdm-news with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("mshoaibsarwar/pegasus-pdm-news") model = AutoModelForSeq2SeqLM.from_pretrained("mshoaibsarwar/pegasus-pdm-news", device_map="auto") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Error:"tags" must be an array
Model Trained Using AutoTrain
- Problem type: Summarization
- Model ID: 982832610
- CO2 Emissions (in grams): 258.9123940027299
Validation Metrics
- Loss: 1.2983888387680054
- Rouge1: 39.1872
- Rouge2: 21.6625
- RougeL: 34.2362
- RougeLsum: 34.23
- Gen Len: 52.762
Usage
You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/mshoaibsarwar/autotrain-pdm-news-982832610
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support