Instructions to use Sayan01/T5-Flan-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sayan01/T5-Flan-Small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sayan01/T5-Flan-Small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Sayan01/T5-Flan-Small") model = AutoModelForSeq2SeqLM.from_pretrained("Sayan01/T5-Flan-Small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sayan01/T5-Flan-Small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sayan01/T5-Flan-Small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sayan01/T5-Flan-Small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sayan01/T5-Flan-Small
- SGLang
How to use Sayan01/T5-Flan-Small 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 "Sayan01/T5-Flan-Small" \ --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": "Sayan01/T5-Flan-Small", "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 "Sayan01/T5-Flan-Small" \ --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": "Sayan01/T5-Flan-Small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sayan01/T5-Flan-Small with Docker Model Runner:
docker model run hf.co/Sayan01/T5-Flan-Small
Commit History
-
Upload tokenizer
c6feb19 -
Upload T5ForConditionalGeneration
b78ea97 -
Upload tokenizer
0fd9a8e -
Upload T5ForConditionalGeneration
aa93692 -
Upload tokenizer
79ce6ec -
Upload T5ForConditionalGeneration
71a578d -
Upload tokenizer
2332c8c -
Upload T5ForConditionalGeneration
975e560 -
Upload tokenizer
2d4c6f4 -
Upload T5ForConditionalGeneration
094e76f -
Upload tokenizer
2a2168d -
Upload T5ForConditionalGeneration
4f9285e -
Upload tokenizer
423b74a -
Upload T5ForConditionalGeneration
529ff4c -
Upload tokenizer
039ad12 -
Upload T5ForConditionalGeneration
183388a -
Upload tokenizer
1fa2558 -
Upload T5ForConditionalGeneration
612ab42 -
Upload tokenizer
75f0626 -
Upload T5ForConditionalGeneration
e65d800 -
Upload tokenizer
89f4e3c -
Upload T5ForConditionalGeneration
d96f482 -
Upload tokenizer
0f4a0be -
Upload T5ForConditionalGeneration
45a68b4
-
Upload tokenizer
b4b461c -
Upload T5ForConditionalGeneration
cf686fd -
Upload tokenizer
66d06b2 -
Upload T5ForConditionalGeneration
22639e1 -
Upload tokenizer
98f2b3d -
Upload T5ForConditionalGeneration
f35d393 -
Upload tokenizer
955d3d0 -
Upload T5ForConditionalGeneration
6023351 -
Upload tokenizer
a16834d -
Upload T5ForConditionalGeneration
f953373 -
Upload tokenizer
f216354 -
Upload T5ForConditionalGeneration
71a198c -
Upload tokenizer
b2dc707 -
Upload T5ForConditionalGeneration
80aed34 -
Upload tokenizer
2827023 -
Upload T5ForConditionalGeneration
094b486 -
Upload tokenizer
3cdc917 -
Upload T5ForConditionalGeneration
1e1219a -
Upload tokenizer
c1b7940 -
Upload T5ForConditionalGeneration
834b017 -
Upload tokenizer
e4f0d9b -
Upload T5ForConditionalGeneration
af37bb6 -
Upload tokenizer
6704a7a -
Upload T5ForConditionalGeneration
a9fe0c2 -
Upload tokenizer
1b100e4 -
Upload T5ForConditionalGeneration
16a9739