Instructions to use Lin0He/text-summary-gpt2-short with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lin0He/text-summary-gpt2-short 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="Lin0He/text-summary-gpt2-short")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Lin0He/text-summary-gpt2-short") model = AutoModelForCausalLM.from_pretrained("Lin0He/text-summary-gpt2-short", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature51c93fe -
Update README.md
Verified signature0f22ec4 -
Update README.md
Verified signaturef6c74b9 -
Update README.md
Verified signature194ef8d -
Update README.md
Verified signature2113cb3 -
Update README.md
Verified signatureb454f94 -
Update pipeline.py
Verified signature11ee141 -
Update pipeline.py
Verified signaturec5419b6 -
Update README.md
Verified signature0d5e589 -
Update README.md
Verified signaturec524717 -
Update README.md
Verified signaturee0e013b -
Update README.md
Verified signature9ca9d3e -
Update README.md
Verified signaturea5602ad -
Update README.md
Verified signatureba2d45b -
Update README.md
Verified signature8f65d97 -
Update README.md
Verified signatured3e7993 -
Update README.md
Verified signature0038f7e -
Update README.md
Verified signaturec660939
-
Update README.md
Verified signature077b6cd
-
Update README.md
Verified signature703be49
-
Update README.md
Verified signature4b658e0
-
Update README.md
354bc1c
-
Upload model
0e44cb8 -
Upload model
9b5f323 -
Upload text_summary_4sets.pth
6ecf95f -
Update README.md
3fc01cd -
Update README.md
d96c778 -
Update README.md
3775d97
-
Upload 2 files
74353d2 -
Update README.md
1a8668c -
Update README.md
6d2801b -
Update README.md
8042c99 -
Update pipeline.py
bf93966 -
Update pipeline.py
8b17b62 -
Update pipeline.py
c07c730 -
Update pipeline.py
6d55152 -
Update pipeline.py
e055f73 -
Update pipeline.py
e6739cb -
Update pipeline.py
4f3f5ac -
Update pipeline.py
f3398b7 -
Update pipeline.py
f928cbd -
Update pipeline.py
be51c66 -
Update pipeline.py
0d18729 -
Update pipeline.py
343d546 -
Update pipeline.py
899681c -
Update pipeline.py
5dc25dd -
Update pipeline.py
57795b3 -
Update pipeline.py
8a77317 -
Update requirements.txt
984d7ed -
Update README.md
99d627f