Instructions to use ChijoTheDatascientist/summarization-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChijoTheDatascientist/summarization-model 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="ChijoTheDatascientist/summarization-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ChijoTheDatascientist/summarization-model") model = AutoModelForSeq2SeqLM.from_pretrained("ChijoTheDatascientist/summarization-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from ChijoTheDatascientist/summarization-model: direct link, hf CLI and curl.
- Browser
- Download file 1.79 kB
-
https://huggingface.co/ChijoTheDatascientist/summarization-model/resolve/main/README.md
- Command line
-
hf download hf://ChijoTheDatascientist/summarization-model/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/ChijoTheDatascientist/summarization-model/resolve/main/README.md
1.79 kB
| library_name: transformers | |
| license: mit | |
| language: | |
| - en | |
| pipeline_tag: summarization | |
| # BART Base Text Summarization Modeli | |
| <!-- Provide a quick summary of what the model is/does. --> | |
| This model is based on the Facebook BART (Bidirectional and Auto-Regressive Transformers) architecture. BART is particularly effective when fine-tuned for text generation tasks like summarization but also works well for comprehension tasks. | |
| BART is a transformer encoder-decoder (seq2seq) model with a bidirectional (BERT-like) encoder and an autoregressive (GPT-like) decoder. BART is pre-trained by (1) corrupting text with an arbitrary noising function, | |
| and (2) learning a model to reconstruct the original text. | |
| ## Model Details | |
| ### Model Description | |
| <!-- Provide a longer summary of what this model is. --> | |
| This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated. | |
| - **Architecture:** [BART Base] | |
| - **Pre-trained model:** [facebook/bart-base] | |
| - **Fine-tuned for:** [Summarization] | |
| - **License:** [MIT] | |
| - **Finetuned from model:** [facebook/bart-base] | |
| ## Uses | |
| <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> | |
| - **Installation:** | |
| pip install transformers | |
| ### Direct Use | |
| <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. --> | |
| Here is a simple snippet oon how to use the model directly. | |
| # Load model directly | |
| from transformers import AutoTokenizer, AutoModelForSeq2SeqLM | |
| tokenizer = AutoTokenizer.from_pretrained("ChijoTheDatascientist/summarization-model") | |
| model = AutoModelForSeq2SeqLM.from_pretrained("ChijoTheDatascientist/summarization-model") | |