Instructions to use faisalahmad/summarizer2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use faisalahmad/summarizer2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("faisalahmad/summarizer2") model = AutoModelForSeq2SeqLM.from_pretrained("faisalahmad/summarizer2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from faisalahmad/summarizer2: direct link, hf CLI and curl.
- Browser
- Download file 763 Bytes
-
https://huggingface.co/faisalahmad/summarizer2/resolve/main/README.md
- Command line
-
hf download hf://faisalahmad/summarizer2/README.md
-
curl -L -o README.md https://huggingface.co/faisalahmad/summarizer2/resolve/main/README.md
763 Bytes
| tags: autotrain | |
| language: en | |
| widget: | |
| - text: "I love AutoTrain 🤗" | |
| datasets: | |
| - faisalahmad/autotrain-data-nsut-nlp-project-textsummarization | |
| co2_eq_emissions: 4444.804304528572 | |
| # Model Trained Using AutoTrain | |
| - Problem type: Summarization | |
| - Model ID: 791824381 | |
| - CO2 Emissions (in grams): 4444.804304528572 | |
| ## Validation Metrics | |
| - Loss: 1.4599040746688843 | |
| - Rouge1: 46.5461 | |
| - Rouge2: 23.8595 | |
| - RougeL: 38.526 | |
| - RougeLsum: 38.5219 | |
| - Gen Len: 23.468 | |
| ## 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/faisalahmad/autotrain-nsut-nlp-project-textsummarization-791824381 | |
| ``` |