Prompt2model: Create a Large Language Model With Just a Prompt

The easiest way to get an expert LLM

Benjamin Marie
2 min readSep 5, 2023

Prompt2Model (Viswanathan et al, 2023) trains small expert models using just a prompt as input. Training datasets and a base model are automatically retrieved given your prompt. Additional training data are also generated.

Figure by Viswanathan et al, 2023

The chain of components required to achieve this is quite complex but the authors show that prompt2model generates expert models that are very cheap to build and run.

Here is another example:

Figure by Viswanathan et al, 2023

It looks quite impressive.

This is a work by NeuLab (CMU) so you can expect it to be well-maintained and improved in the future.

The implementation of prompt2model is on GitHub (Apache 2.0 license). You will need an OpenAI API key to run it. They have also published a notebook running prompt2model on Google Colab.

This article is an extract from The Weekly Kaitchup, my newsletter. To receive extensive analysis and tutorials on recent advances in AI, subscribe to The Kaitchup:

--

--

Benjamin Marie

Ph.D, research scientist in NLP/AI. Medium "Top writer" in AI and Technology. Exclusive articles and all my AI notebooks on https://kaitchup.substack.com/