Text Generation
Transformers
Safetensors
English
t5
text2text-generation
seq2seq
flan-t5
lightweight
grounded-qa
text-generation-inference
Instructions to use teapotai/tinyteapot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use teapotai/tinyteapot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="teapotai/tinyteapot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("teapotai/tinyteapot") model = AutoModelForSeq2SeqLM.from_pretrained("teapotai/tinyteapot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use teapotai/tinyteapot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "teapotai/tinyteapot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "teapotai/tinyteapot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/teapotai/tinyteapot
- SGLang
How to use teapotai/tinyteapot 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 "teapotai/tinyteapot" \ --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": "teapotai/tinyteapot", "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 "teapotai/tinyteapot" \ --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": "teapotai/tinyteapot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use teapotai/tinyteapot with Docker Model Runner:
docker model run hf.co/teapotai/tinyteapot
Commit History
-
Update README.md
Verified signaturee2422bb -
Update README.md
Verified signature5bd6223 -
Upload model.safetensors
Verified signaturefb96f3b -
Upload 8 files
Verified signature60fd622 -
Upload 5 files
Verified signature659713d -
Update handler.py
Verified signature60ae096 -
Update handler.py
Verified signature33112c4 -
Upload spiece.model
Verified signature21be093 -
Delete requirements.txt
Verified signature25578b6 -
Update tokenizer_config.json
Verified signature982ba97 -
Update requirements.txt
Verified signature408af6e -
Update handler.py
Verified signature62aec62 -
Create requirements.txt
Verified signature43f4eb6 -
Update handler.py
Verified signaturea1f3d0f -
Update handler.py
Verified signature8a4e9e9 -
Update handler.py
Verified signature4e1ab77 -
Update handler.py
Verified signature8334c0b -
Create handler.py
Verified signature21235f2 -
Update README.md
Verified signature2dca1ac
-
Update README.md
Verified signatureb5b7bc4 -
Update README.md
Verified signature2ff38a6 -
Update README.md
Verified signature855a1f1 -
Update README.md
Verified signature96574b3 -
Update config.json
Verified signature2a12365 -
Update config.json
Verified signaturef5fdea2 -
Update README.md
Verified signature9d347fe
-
Upload tokenizer
Verified signature9fe51df -
Initial training completion
Verified signature71d855b -
Delete tokenizer.json
Verified signature7e475cc -
Delete tokenizer_config.json
Verified signaturefc1b615 -
Delete training_args.bin
Verified signatureb0ece9a -
Delete spiece.model
Verified signatureffb342f -
Delete special_tokens_map.json
Verified signaturebe13fc9 -
Delete ort_config.json
Verified signature98cfb6d -
Delete model.safetensors
Verified signature18598a9 -
Delete generation_config.json
Verified signaturebda2bd6 -
Delete encoder_model.onnx
Verified signature5626abf -
Delete config.json
Verified signatureb376e4e -
Delete decoder_with_past_model.onnx
Verified signature883745a -
Delete decoder_model.onnx
Verified signature0a8d485 -
Delete onnx_quantized
Verified signature35d3fcc -
Delete onnx
Verified signature6f7c055 -
Update README.md
Verified signature091d2b3 -
Update README.md
Verified signature21c1a3e -
Update README.md
Verified signature77dd57b
-
Add verified ONNX export
Verified signatureef98c9b -
Upload folder using huggingface_hub
Verified signaturef180ebd -
Upload folder using huggingface_hub
Verified signature538f6f3 -
Upload folder using huggingface_hub
Verified signature291e7c4
-
Delete onnx/tokenizer_config.json
Verified signaturee7c323b