Model reference · open weights

LaMini-Flan-T5

LLMs MBZUAI Text gen 1 build Non-commercial 4k dl/mo

LaMini-Flan-T5 is an open-weight language model from MBZUAI. LaMini-Flan-T5-77M (BF16) weighs 308 MB; the smallest configuration that runs it is RTX 3060 12 GB.

  • LaMini-Flan-T5 is a 77M parameter text-generation model developed by MBZUAI as part of the LaMini-LM series.
  • It is a fine-tuned version of google/flan-t5-small trained on the LaMini-instruction dataset, which contains 2.58M samples.
  • The model supports English with a context length of 512 tokens and is released under the cc-by-nc-4.0 licence.

Summary of the MBZUAI/LaMini-Flan-T5-77M model card, 2026-10-01

What it is

Released byMBZUAI
Released2023-04-10
VRAM308 MB for the weights

What it runs on

Memory and cards for LaMini-Flan-T5-77M (BF16)

308 MBweights, file size
16 MBcache per 1K tokens
488 MBruntime overhead, at least
512 tokenscontext max
CardRequests at onceContext maxMemory
512 each
RTX 3060 12 GB1000+all 51211.6 GB
RTX 4060 Ti 16 GB1000+all 51215.4 GB
RTX 3090 24 GB1000+all 51223.4 GB
RTX 4090 24 GB1000+all 51223.4 GB
RTX 5090 32 GB1000+all 51231.0 GB
L40S 48 GB1000+all 51244.0 GB
A100 80 GB1000+all 51278.2 GB
H100 80 GB1000+all 51278.1 GB
RTX PRO 6000 Blackwell 96 GB1000+all 51293.8 GB
DGX Spark (GB10) 128 GB unified1000+all 512107 GB
H200 141 GB1000+all 512138 GB
B200 180 GB1000+all 512176 GB
Memory needed at each load
Requests at once512 tokens each
1804 MB
5837 MB
8863 MB
16930 MB
321.1 GB
641.3 GB

One card, with vLLM's small-card settings.

From the model card

What MBZUAI says about LaMini-Flan-T5

Read the model card

This model is one of our LaMini-LM model series in paper "LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions". This model is a fine-tuned version of google/flan-t5-small on LaMini-instruction dataset that contains 2.58M samples for instruction fine-tuning. For more information about our dataset, please refer to our project repository. You can view other models of LaMini-LM series as follows. Models with ✩ are those with the best overall performance given their size/architecture, hence we recommend using them. More details can be seen in our paper.

Use

Intended use

We recommend using the model to response to human instructions written in natural language.

We now show you how to load and use our model using HuggingFace pipeline().

# pip install -q transformers
from transformers import pipeline

checkpoint = "{model_name}"

model = pipeline('text2text-generation', model = checkpoint)

input_prompt = 'Please let me know your thoughts on the given place and why you think it deserves to be visited: \n"Barcelona, Spain"'
generated_text = model(input_prompt, max_length=512, do_sample=True)[0]['generated_text']

print("Response", generated_text)

Training Procedure

We initialize with google/flan-t5-small and fine-tune it on our LaMini-instruction dataset. Its total number of parameters is 77M.

Training Hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0005
  • train_batch_size: 128
  • eval_batch_size: 64
  • seed: 42
  • gradient_accumulation_steps: 4
  • total_train_batch_size: 512
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 5

Evaluation

We conducted two sets of evaluations: automatic evaluation on downstream NLP tasks and human evaluation on user-oriented instructions. For more detail, please refer to our paper.

Limitations

More information needed

Citation

@article{lamini-lm,
  author       = {Minghao Wu and
                  Abdul Waheed and
                  Chiyu Zhang and
                  Muhammad Abdul-Mageed and
                  Alham Fikri Aji
                  },
  title        = {LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions},
  journal      = {CoRR},
  volume       = {abs/2304.14402},
  year         = {2023},
  url          = {https://arxiv.org/abs/2304.14402},
  eprinttype   = {arXiv},
  eprint       = {2304.14402}
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms