Instructions to use Payoto/t5-small-finetuned-xsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Payoto/t5-small-finetuned-xsum with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Payoto/t5-small-finetuned-xsum")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Payoto/t5-small-finetuned-xsum") model = AutoModelForSeq2SeqLM.from_pretrained("Payoto/t5-small-finetuned-xsum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Payoto/t5-small-finetuned-xsum with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Payoto/t5-small-finetuned-xsum" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Payoto/t5-small-finetuned-xsum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Payoto/t5-small-finetuned-xsum
- SGLang
How to use Payoto/t5-small-finetuned-xsum with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Payoto/t5-small-finetuned-xsum" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Payoto/t5-small-finetuned-xsum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Payoto/t5-small-finetuned-xsum" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Payoto/t5-small-finetuned-xsum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Payoto/t5-small-finetuned-xsum with Docker Model Runner:
docker model run hf.co/Payoto/t5-small-finetuned-xsum
Commit History
-
End of training
a633ada -
Training in progress, step 3000
ef21e26 -
Training in progress, step 2500
1e5491e -
Training in progress, step 2000
e1c00de -
Training in progress, step 1500
ac3d5c6 -
Training in progress, step 1000
50170c1 -
Training in progress, step 500
2565da7
-
Training in progress, step 8000
fe2a753 -
Training in progress, step 7500
216280d -
Training in progress, step 7000
1cb71ed -
Training in progress, step 6500
dda1c52 -
Training in progress, step 6000
4223e5e -
Training in progress, step 5500
04dc693 -
Training in progress, step 5000
eeca8ed -
Training in progress, step 4500
850aa77 -
Training in progress, step 4000
10b0e6e -
Training in progress, step 3500
dd3061f -
Training in progress, step 3000
a4f7048 -
Training in progress, step 2500
2aeca13 -
Training in progress, step 2000
6723f5a -
Training in progress, step 1500
f83dd59 -
Training in progress, step 1000
4cd3809 -
Training in progress, step 500
8a6d2a2
-
End of training
9b4c870 -
Training in progress, step 12500
21aad9b -
Training in progress, step 12000
683c77e -
Training in progress, step 11500
b6044c2 -
Training in progress, step 11000
f5bebf2 -
Training in progress, step 10500
b6594c4 -
Training in progress, step 10000
c99fc6b -
Training in progress, step 9500
11cdef2 -
Training in progress, step 9000
86b703c -
Training in progress, step 8500
f8a39bf -
Training in progress, step 8000
0dcb3d5 -
Training in progress, step 7500
aa2715d -
Training in progress, step 7000
a67f676 -
Training in progress, step 6500
b463885 -
Training in progress, step 6000
343a94a -
Training in progress, step 5500
771dd8b -
Training in progress, step 5000
12a7870 -
Training in progress, step 4500
81c1063 -
Training in progress, step 4000
afc0350 -
Training in progress, step 3500
35741d7 -
Training in progress, step 3000
cef69cf -
Training in progress, step 2500
c6be71b -
Training in progress, step 2000
fffeb87 -
Training in progress, step 1500
d521d0c -
Training in progress, step 1000
f8d6ef0 -
Training in progress, step 500
f112925 -
End of training
868bc65