SLM, Small Language Model

OpenAI’s ChatGPT, Microsoft CoPilot, Midjourney, Google’s Gemini, and other AI tools are taking the tech industry by storm. The growth of these tools is exponential. ChatGPT became the fastest-growing consumer app by signing up 100 million users in 2 months. To compare this, it took TikTok 9 months and Instagram 2.5 years to reach 100 million users.

AI apps like ChatGPT use AI software and large data sets called large language models (LLM). That is where the magic happens. ChatGPT is merely a front-end tool. The LLMs do the real work behind the scenes.

Besides LLMs, a new model is emerging fast: a small language model. A small language model (SLM) is a miniaturized version of its larger cousin, the large language model (LLM). Compared to LLMs, which often boast hundreds of billions or even trillions of parameters, SLMs have a significantly smaller number, typically ranging from a few million to a few billion.

In the future, personal language models (PLMs) designed to understand and generate content about individual users will be needed. I will cover PLMs in my next article.
This "smaller" size comes with its own set of advantages and limitations:

Advantages of SLMs

Here are some of the key benefits of SLMs:

What are some of the most popular SLMs?

The popularity of SLMs is growing rapidly, making it a dynamic landscape. Here are some of the most notable players currently generating buzz:

Open-source models

Phi-3 is indeed a relatively new player in the field of Small Language Models (SLMs). It was developed by Microsoft and focuses on offering several key advantages:

Llama-2-13b and CodeLlama-7b (Meta): These models focus on general language understanding and code generation. They've gained traction for their open-source availability and strong performance on various benchmarks.

Mistral-7b and Mixtral 8x7b (Mistral): Mistral-7b has impressed with its ability to outperform larger models on specific tasks. In contrast, Mixtral, a mixture-of-experts model, shows exceptional promise in matching the performance of GPT-3.5 across various areas.

Phi-2 and Orca-2 (Microsoft): Known for their strong reasoning capabilities, these models shine in tasks requiring logical deduction and understanding. Orca-2, in particular, excels on zero-shot reasoning tasks.

Smaller models (under 1 billion parameters)

Can I create my own SLM for my company?

Yes, it is possible to create your own SLM for your company, but it depends on several factors:

Before embarking on your SLM model, consider existing open-source SLMs like those mentioned earlier. Fine-tuning an existing model to your specific needs can often be quicker and more cost-effective.
Here are some steps to consider if you decide to build your own SLM

Hire an expert SLM Expert

Are you planning to create your SLMs? Do you need an expert consultant or trainer? CSharp team provides AI consulting and training services.

You can contact an AI expert trainer here.