Views
No views yet
| Base model | LaMini-LM series (#parameters) | |||
|---|---|---|---|---|
| T5 | LaMini-T5-61M | LaMini-T5-223M | LaMini-T5-738M | |
| Flan-T5 | LaMini-Flan-T5-77M✩ | LaMini-Flan-T5-248M✩ | LaMini-Flan-T5-783M✩ | |
| Cerebras-GPT | LaMini-Cerebras-111M | LaMini-Cerebras-256M | LaMini-Cerebras-590M | LaMini-Cerebras-1.3B |
| GPT-2 | LaMini-GPT-124M✩ | LaMini-GPT-774M✩ | LaMini-GPT-1.5B✩ | |
| GPT-Neo | LaMini-Neo-125M | LaMini-Neo-1.3B | ||
| GPT-J | coming soon | |||
| LLaMA | coming soon |
pipeline().1# pip install -q transformers
2from transformers import pipeline
3
4checkpoint = "{model_name}"
5
6model = pipeline('text2text-generation', model = checkpoint)
7
8input_prompt = 'Please let me know your thoughts on the given place and why you think it deserves to be visited: \n"Barcelona, Spain"'
9generated_text = model(input_prompt, max_length=512, do_sample=True)[0]['generated_text']
10
11print("Response", generated_text)1@article{lamini-lm,
2 author = {Minghao Wu and
3 Abdul Waheed and
4 Chiyu Zhang and
5 Muhammad Abdul-Mageed and
6 Alham Fikri Aji
7 },
8 title = {LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions},
9 journal = {CoRR},
10 volume = {abs/2304.14402},
11 year = {2023},
12 url = {https://arxiv.org/abs/2304.14402},
13 eprinttype = {arXiv},
14 eprint = {2304.14402}
15}