Summarization
Transformers
PyTorch
Safetensors
gpt2
text-generation
Generated from Trainer
text-generation-inference
Instructions to use Ssarion/gpt2-multi-news with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ssarion/gpt2-multi-news 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="Ssarion/gpt2-multi-news")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Ssarion/gpt2-multi-news") model = AutoModelForMultimodalLM.from_pretrained("Ssarion/gpt2-multi-news") - Notebooks
- Google Colab
- Kaggle
Training complete
Browse files- generation_config.json +6 -0
- pytorch_model.bin +1 -1
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.28.0"
|
| 6 |
+
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 510398013
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0f4e1a1b9967966e29fa95ce2f005605a381eee097c597302ace9314a12138f
|
| 3 |
size 510398013
|