Text Generation
Transformers
PyTorch
English
t5
text2text-generation
Generated from Trainer
instruction fine-tuning
text-generation-inference
Instructions to use MBZUAI/LaMini-T5-61M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MBZUAI/LaMini-T5-61M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MBZUAI/LaMini-T5-61M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MBZUAI/LaMini-T5-61M") model = AutoModelForSeq2SeqLM.from_pretrained("MBZUAI/LaMini-T5-61M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MBZUAI/LaMini-T5-61M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MBZUAI/LaMini-T5-61M" # 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-61M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MBZUAI/LaMini-T5-61M
- SGLang
How to use MBZUAI/LaMini-T5-61M 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-61M" \ --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-61M", "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-61M" \ --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-61M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MBZUAI/LaMini-T5-61M with Docker Model Runner:
docker model run hf.co/MBZUAI/LaMini-T5-61M
Commit History
-
Update README.md
916fd56
-
Update README.md
198aee1 -
Update README.md
74ea8c5 -
Update README.md (#3)
- Update README.md (718333c9db199ef816c743613232a8931b2fe0cd) Co-authored-by: chiyu_zhang <chiyuzhang@users.noreply.huggingface.co>4e7d929 -
auto-rename
e5a41f3 -
Update README.md
016caf9 -
Update README.md
b5be194 -
Update README.md
7483752 -
Update README.md
f7a9c56 -
Update README.md (#1)
- Update README.md (cf89bce8d741b13e245c1d5fc4b4f3a6ca1dd1f1)72b92c1
-
update model card README.md
f281e77 -
End of training
929f906 -
Training in progress, step 10000
d554fa7 -
Training in progress, step 9500
2fae633 -
Training in progress, step 9000
6c344a0 -
Training in progress, step 8500
c0c58f4 -
Training in progress, step 8000
87b4c93 -
Training in progress, step 7500
88d7f5f -
Training in progress, step 7000
9873763 -
Training in progress, step 6500
ea9816e -
Training in progress, step 6000
c00f4df -
Training in progress, step 5500
880bf01 -
Training in progress, step 5000
57866a0 -
Training in progress, step 4500
b901daa -
Training in progress, step 4000
da8ae5c -
Training in progress, step 3500
1d2da77 -
Training in progress, step 3000
fcc2a33 -
Training in progress, step 2500
b4f1821 -
Training in progress, step 2000
cc05de9 -
Training in progress, step 1500
f993363 -
Training in progress, step 1000
361de00 -
Training in progress, step 500
6c62d4f -
initial commit
5ba6054