Instructions to use c2p-cmd/GPT2-Summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use c2p-cmd/GPT2-Summarizer 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="c2p-cmd/GPT2-Summarizer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("c2p-cmd/GPT2-Summarizer") model = AutoModelForCausalLM.from_pretrained("c2p-cmd/GPT2-Summarizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download GPT2-Summarizer.mlpackage/Data/com.apple.CoreML/model.mlmodel from c2p-cmd/GPT2-Summarizer: direct link, hf CLI and curl.
- Browser
- Download file 134 kB
-
https://huggingface.co/c2p-cmd/GPT2-Summarizer/resolve/main/GPT2-Summarizer.mlpackage/Data/com.apple.CoreML/model.mlmodel
- Command line
-
hf download hf://c2p-cmd/GPT2-Summarizer/GPT2-Summarizer.mlpackage/Data/com.apple.CoreML/model.mlmodel
-
curl -L -o model.mlmodel https://huggingface.co/c2p-cmd/GPT2-Summarizer/resolve/main/GPT2-Summarizer.mlpackage/Data/com.apple.CoreML/model.mlmodel
134 kB
- Xet hash:
- 86482bab62a1caeb1e092279892bbcda4f5b3123483adb4ee537289aec3b3a61
- Size of remote file:
- 134 kB
- SHA256:
- e22a3c4f382ba51edbc07b5c1731f5bf21a792ba7d37b2b9f1d766f877f7e50c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.