Back to all models
summarization mask_token: <mask>
Query this model
πŸ”₯ This model is currently loaded and running on the Inference API. ⚠️ This model could not be loaded by the inference API. ⚠️ This model can be loaded on the Inference API on-demand.
JSON Output
API endpoint  

⚑️ Upgrade your account to access the Inference API

Share Copied link to clipboard

Monthly model downloads

yuvraj/summarizer-cnndm yuvraj/summarizer-cnndm
400 downloads
last 30 days

pytorch

tf

Contributed by

yuvraj Yuvraj Raghuvanshi
2 models

How to use this model directly from the πŸ€—/transformers library:

			
Copy to clipboard
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("yuvraj/summarizer-cnndm") model = AutoModelForSeq2SeqLM.from_pretrained("yuvraj/summarizer-cnndm")

​

Summarization

​

Model description

​ BartForConditionalGeneration model fine tuned for summarization on 10000 samples from the cnn-dailymail dataset ​

How to use

​ PyTorch model available ​

from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline
​
tokenizer = AutoTokenizer.from_pretrained("yuvraj/summarizer-cnndm") 
AutoModelWithLMHead.from_pretrained("yuvraj/summarizer-cnndm")
​
summarizer = pipeline('summarization', model=model, tokenizer=tokenizer)
summarizer("<Text to be summarized>")
​
## Limitations and bias
Trained on a small dataset