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
-
Adding ONNX file of this model
Verified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [zakerytclarke](https://huggingface.co/zakerytclarke), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!c058604
-
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 -
Delete onnx/tokenizer.json
Verified signaturebff3a25 -
Delete onnx/spiece.model
Verified signatureba82dbd -
Delete onnx/special_tokens_map.json
Verified signature58d22fc -
Delete onnx/ort_config.json
Verified signaturec3161f2 -
Delete onnx/generation_config.json
Verified signatureaf7c016 -
Delete onnx/encoder_model_quantized.onnx
Verified signature0fe9292 -
Delete onnx/encoder_model.onnx
Verified signaturebac6191 -
Delete onnx/decoder_with_past_model_quantized.onnx
Verified signature4ce7ea7 -
Delete onnx/decoder_with_past_model.onnx
Verified signatureaab8d2c -
Delete onnx/decoder_model_quantized.onnx
Verified signature03f7a18 -
Delete onnx/decoder_model.onnx
Verified signature998c28d -
Delete onnx/config.json
Verified signature1bc9af0 -
Fix structure for Transformers.js (move to onnx/ subfolder)
Verified signature0be48d8 -
Create README.md
Verified signaturef38408b -
Upload quantized ONNX model from best checkpoint
Verified signature92e2df4
-
Delete onnx/encoder_model_quantized.onnx
Verified signatured1b0cc8 -
Delete onnx/decoder_model_merged_quantized.onnx
Verified signature0e6f0bf -
Upload decoder_model_merged_quantized.onnx
Verified signature1fab9b2 -
Upload encoder_model_quantized.onnx
Verified signatureb35cd23
-
Upload folder using huggingface_hub
Verified signature61f03c4 -
Upload folder using huggingface_hub
Verified signature29503f4 -
initial commit
Verified signature70f7da6