Skip to content

LLM: Large Language Model

Key idea:

LLM (Large Language Model) — a transformer neural network with tens of billions to trillions of parameters, trained on a massive text corpus. Generates human-like output for any NLP task: chat, code, summarise, translate. 2026 leaders: GPT-5 / GPT-5 Pro (OpenAI), Claude Opus 4.7 / Sonnet 4.6 (Anthropic), Gemini 2.5 (Google), Llama 3 (Meta open), DeepSeek R1 (open). Parameters: 8B → 1.8T. Context window: 200k → 2M tokens.

Below: details, example, related terms, FAQ.

Check your site →

Details

  • Architecture: Transformer (Vaswani et al 2017), decoder-only in most models
  • Training: pretrain on text corpus (TB) + RLHF + instruction tuning
  • Parameters (2026): small 8B, mid 70B, frontier 400B+ (sparse MoE equivalent of 1.8T)
  • Inference cost: $0.15-15 per 1M tokens (API) vs self-host (A100/H100/B100)
  • Context window 2026: Claude 1M stable, Gemini 2M, GPT-5 also 1M

Example

# OpenAI API call
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-5",
    "messages": [{"role": "user", "content": "Explain TCP vs UDP"}]
  }'

Related Terms

How LLMs Work: Architecture and Training

Large Language Models (LLMs) are primarily built on the transformer architecture, which utilizes self-attention mechanisms to process and generate text. This architecture allows LLMs to weigh the importance of different words in a sentence relative to each other, enabling them to capture context more effectively than previous models.

The training process involves two main phases: pre-training and fine-tuning. During pre-training, the model is exposed to a vast corpus of text, learning to predict the next word in a sentence given the preceding words. This phase is unsupervised and helps the model develop a general understanding of language structure, grammar, and factual knowledge.

Once pre-training is complete, the model undergoes fine-tuning on specific tasks or datasets. This phase is often supervised, involving labeled data that teaches the LLM to perform particular functions, such as sentiment analysis or question answering.

Key components of LLMs include:

  • Parameters: The weights and biases in the model, which can range from billions (e.g., 8B) to trillions (e.g., 1.8T), directly influencing the model's ability to learn and generalize.
  • Context Window: The number of tokens the model can consider at once, which has expanded from 200k to 2M tokens in advanced models, allowing for more coherent and contextually aware outputs.

Overall, LLMs represent a significant advancement in natural language processing, enabling a wide array of applications from chatbots to complex coding tasks.

Learn more

Frequently Asked Questions

Open-source LLM?

Llama 3 (Meta), Mistral Large, Qwen 2.5, DeepSeek R1 — free weights, MIT/Apache. Performance is approaching GPT-5.

Self-host cost?

70B model needs a server with 2× H100 (~$80k) or cloud GPU $5/h. ROI at > 10M tokens/day.

Hallucinations?

LLMs generate likely text, not facts. Mitigations: RAG (grounding) + fact-check output + low temperature (0.1-0.3 for facts).

Try the live tool that powered this guide

Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.