Skip to content

What Is a Large Language Model?

A large language model, commonly abbreviated as LLM, is a type of artificial intelligence model trained to recognize and generate patterns in language.

Large language models can answer questions, generate text, summarize information, translate languages, write computer code, and perform many other language-related tasks.

How do large language models work?

Most modern large language models are based on a neural network architecture known as the transformer.

During training, the model learns statistical relationships between tokens by processing large quantities of data.

When you provide a prompt, the model uses these learned relationships to predict subsequent tokens and generate a response.

This process is known as inference.

What are tokens?

Tokens are units of information processed by a language model. A token may represent an entire word, part of a word, punctuation, or another sequence of characters.

Language models process prompts and generate responses using tokens rather than treating text as a continuous string of ordinary words.

The number of tokens a model can process at once is related to its context window.

What are model parameters?

Parameters are numerical values within a neural network that are adjusted during training.

Models are frequently described using their parameter counts:

  • 1B: Approximately one billion parameters.
  • 7B: Approximately seven billion parameters.
  • 14B: Approximately fourteen billion parameters.
  • 32B: Approximately thirty-two billion parameters.
  • 70B: Approximately seventy billion parameters.

Larger models often have greater capabilities, but parameter count alone does not determine model quality.

Training methods, architecture, training data, and specialization also influence performance.

Training versus inference

Training is the computationally intensive process of developing or adapting an AI model.

Inference is the process of using an existing model to generate responses.

Most individuals and businesses deploying local AI systems are primarily interested in inference rather than training models from scratch.

This distinction is important because inference generally requires substantially fewer computational resources than initial model training.

Can I download a language model?

Many AI developers distribute downloadable model weights that can be operated independently of their original infrastructure.

Examples of downloadable model families include:

  • Llama
  • Mistral
  • Qwen
  • Gemma
  • DeepSeek
  • Phi

Each model has its own capabilities, hardware requirements, and licensing terms.

Not every downloadable model is open source. Always review the applicable license before using a model in a commercial environment.

Are language models always accurate?

No. Language models generate responses based on learned patterns and can produce incorrect or fabricated information.

This behavior is commonly referred to as hallucination.

Important information should be independently verified, particularly when using AI for legal, medical, financial, or other consequential decisions.

Running an LLM locally

Software such as Ollama and llama.cpp allows users to run compatible language models on their own computers.

A web-based interface can then provide a familiar chatbot experience without requiring an external AI subscription.

Our installation guides explain how to configure these components and build a complete local AI environment.