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
Download pytorch_model.bin from Lin0He/text-summary-gpt2-short: direct link, hf CLI and curl.
- Browser
- Download file 498 MB
-
https://huggingface.co/Lin0He/text-summary-gpt2-short/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://Lin0He/text-summary-gpt2-short/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/Lin0He/text-summary-gpt2-short/resolve/main/pytorch_model.bin
498 MB
- Xet hash:
- 7e12ff77fc4f573667ea11a1c57fb620f99352006745eb8a00303a3b92151821
- Size of remote file:
- 498 MB
- SHA256:
- 15597cc7cae00b2b84cac19b54e69c5cb439f51c1180605b70752b9b46767d5e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.