Instructions to use IDEA-CCNL/Randeng-Pegasus-238M-Chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IDEA-CCNL/Randeng-Pegasus-238M-Chinese 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="IDEA-CCNL/Randeng-Pegasus-238M-Chinese")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("IDEA-CCNL/Randeng-Pegasus-238M-Chinese") model = AutoModelForSeq2SeqLM.from_pretrained("IDEA-CCNL/Randeng-Pegasus-238M-Chinese", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from IDEA-CCNL/Randeng-Pegasus-238M-Chinese: direct link, hf CLI and curl.
- Browser
- Download file 477 MB
-
https://huggingface.co/IDEA-CCNL/Randeng-Pegasus-238M-Chinese/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://IDEA-CCNL/Randeng-Pegasus-238M-Chinese/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/IDEA-CCNL/Randeng-Pegasus-238M-Chinese/resolve/main/pytorch_model.bin
477 MB
- Xet hash:
- 59c7f4f1227face75c6d02f6ced8888c72c8068ffb20853934ae8e638740a3af
- Size of remote file:
- 477 MB
- SHA256:
- e0c62eb58e3b830401ddeda131be9e57d4d383324018e6605b3661c0773334d5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.