Text Generation
Transformers
PyTorch
English
t5
text2text-generation
Generated from Trainer
instruction fine-tuning
text-generation-inference
Instructions to use MBZUAI/LaMini-T5-223M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MBZUAI/LaMini-T5-223M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MBZUAI/LaMini-T5-223M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MBZUAI/LaMini-T5-223M") model = AutoModelForSeq2SeqLM.from_pretrained("MBZUAI/LaMini-T5-223M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MBZUAI/LaMini-T5-223M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MBZUAI/LaMini-T5-223M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MBZUAI/LaMini-T5-223M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MBZUAI/LaMini-T5-223M
- SGLang
How to use MBZUAI/LaMini-T5-223M 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 "MBZUAI/LaMini-T5-223M" \ --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": "MBZUAI/LaMini-T5-223M", "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 "MBZUAI/LaMini-T5-223M" \ --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": "MBZUAI/LaMini-T5-223M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MBZUAI/LaMini-T5-223M with Docker Model Runner:
docker model run hf.co/MBZUAI/LaMini-T5-223M
Commit History
-
Update README.md
80294ef
-
Update README.md
1c4da28 -
Update README.md
96e87cb -
Update README.md
94eff6b -
Update README.md
18f3dd8 -
auto-rename
b56df50 -
Update README.md
481a2b3 -
Update README.md (#1)
- Update README.md (14f098aba728b7915b84dc14e9ced9a480c9f5cc)55b86bd
-
update model card README.md
3638494 -
End of training
379ac68 -
Training in progress, step 25000
f6f39fb -
Training in progress, step 24000
5d17968 -
Training in progress, step 23000
a7cc420 -
Training in progress, step 22000
27af29a -
Training in progress, step 21000
4307ecf -
Training in progress, step 20000
b2a0691 -
Training in progress, step 19000
9424842 -
Training in progress, step 18000
e384ba8 -
Training in progress, step 17000
960ce94 -
Training in progress, step 16000
a396aa6 -
Training in progress, step 15000
d9594e0 -
Training in progress, step 14000
1fc2e0e -
Training in progress, step 13000
59ef133 -
Training in progress, step 12000
7756922 -
Training in progress, step 11000
726d919 -
Training in progress, step 10000
58b18cd
-
Training in progress, step 9000
2858710 -
Training in progress, step 8000
ca8835f -
Training in progress, step 7000
f849910 -
Training in progress, step 6000
989a385 -
Training in progress, step 5000
b888f0d -
Training in progress, step 4000
7f54233 -
Training in progress, step 3000
e56dea0 -
Training in progress, step 2000
d8e9b21 -
Training in progress, step 1000
43a12b8 -
initial commit
fb01d2c