ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Understanding LLM Model Sizes and Hardware Requirements
Chapter 1: Introduction to Large Language Models and Size
What is a Large Language Model (LLM)?
Understanding Model Parameters
How Model Size is Measured
Examples of Different Model Sizes
Quiz for Chapter 1
Chapter 2: Essential Hardware Components for AI
The Central Processing Unit (CPU)
Random Access Memory (RAM)
The Graphics Processing Unit (GPU)
Video RAM (VRAM)
Brief Overview of TPUs
Quiz for Chapter 2
Chapter 3: Connecting Model Size to Hardware Needs
Model Parameters and Memory Consumption
Data Types and Precision (FP16, INT8)
Introduction to Quantization
Compute Requirements (FLOPS)
Memory Bandwidth Importance
Quiz for Chapter 3
Chapter 4: Running LLMs: Inference vs. Training
What is Model Inference?
Hardware Needs for Inference
What is Model Training?
Hardware Needs for Training
Focus on Inference Requirements
Quiz for Chapter 4
Chapter 5: Estimating Hardware Needs
Rule of Thumb: Parameters to VRAM
Accounting for Activation Memory
Factors Influencing Actual Usage
Checking Hardware Specifications
Practice: Simple VRAM Estimations
Quiz for Chapter 5

Examples of Different Model Sizes

Large Language Models are primarily defined by their parameter count. Exploring examples of different model sizes helps illustrate the scale and common categorization of these models. Keep in mind that the field evolves rapidly; what's classified as 'large' today might seem moderate tomorrow.

Models can generally be grouped by their parameter counts. While there are no strict boundaries, here's a common way to think about them:

Small Models (< 1 Billion to ~7 Billion Parameters)

These models are the most accessible in terms of computational requirements.

  • Parameter Count: Typically range from a few hundred million up to around 7 billion (7B7B7B).
  • Examples:
    • BERT-Large: While not always called an "LLM" in the modern sense (it's an encoder model), it has around 340 million parameters and was foundational.
    • DistilBERT: A smaller, distilled version of BERT with about 66 million parameters, designed for efficiency.
    • Phi-2: A model from Microsoft with 2.7 billion parameters, known for strong performance relative to its size.
    • Gemma 2B: A smaller model from Google with 2 billion parameters.
  • Characteristics:
    • Relatively fast to run (inference).
    • Lower memory requirements; some can run on CPUs or consumer-grade GPUs with limited VRAM.
    • Often perform well on specific tasks they were trained or fine-tuned for.
    • May lack the broad knowledge or complex reasoning abilities of larger models.
    • Suitable for deployment on edge devices or applications where resource constraints are tight.

Medium Models (~7 Billion to ~70 Billion Parameters)

This category represents a popular middle ground, balancing capability with resource needs. Many widely used open-source models fall into this range.

  • Parameter Count: Roughly from 7 billion (7B7B7B) up to about 70 billion (70B70B70B).
  • Examples:
    • Llama 2 (7B, 13B, 70B): A family of popular open-source models from Meta, available in various sizes within this range.
    • Mistral 7B: A well-regarded open-source model with 7 billion parameters, known for its efficiency.
    • Falcon (7B, 40B): Another family of open-source models.
    • Gemma 7B: Google's 7 billion parameter open model.
  • Characteristics:
    • Offer significantly more capability than small models across a wider range of tasks (text generation, summarization, translation, basic reasoning).
    • Require capable GPUs with substantial VRAM (e.g., 16GB, 24GB, or more, especially for the larger end of this range).
    • Represent a good balance for many research and development purposes.

Large Models (~70 Billion to Several Hundred Billion Parameters)

These models demonstrate powerful capabilities but come with significant hardware demands.

  • Parameter Count: Generally starting around 70 billion (70B70B70B) and going up to a few hundred billion parameters.
  • Examples:
    • GPT-3 (175B): OpenAI's model (specifically the davinci version) has 175 billion parameters and was highly influential.
    • Falcon 180B: A very large open-source model.
    • BLOOM (176B): An open multilingual model.
  • Characteristics:
    • Exhibit strong performance in language understanding, generation, and reasoning.
    • Hardware requirements are substantial, often needing multiple high-end GPUs working together.
    • Less common for individuals to run locally; often accessed via cloud platforms or APIs.

Very Large / Frontier Models (Often > 500 Billion Parameters, Exact Counts Often Undisclosed)

These are the state-of-the-art models, often developed by major research labs and tech companies. Their exact parameter counts are frequently not publicly released, but they are understood to be significantly larger than the "Large" category, potentially reaching or exceeding a trillion parameters.

  • Parameter Count: Estimated to be in the high hundreds of billions or over a trillion (1T+1T+1T+). Specific numbers are usually not confirmed by the developers.
  • Examples:
    • GPT-4: OpenAI's successor to GPT-3. Parameter count is not public but widely believed to be very large, possibly using a "Mixture of Experts" (MoE) architecture which complicates a single parameter count.
    • Google Gemini (Ultra, Pro, Nano): Google's family of advanced models. Sizes are not specified in parameters.
    • Claude 3 (Opus, Sonnet, Haiku): Anthropic's family of models. Again, parameter counts are not public.
  • Characteristics:
    • Represent the cutting edge in AI capabilities, excelling at complex reasoning, creativity, and understanding.
    • Require massive computational resources (large clusters of GPUs or specialized hardware like TPUs) for both training and inference.
    • Primarily accessible through APIs or managed cloud services due to their immense resource requirements.

To help visualize the difference in scale, here are these approximate parameter counts:

Approximate parameter counts for selected LLMs on a logarithmic scale to show relative sizes across categories. Note that GPT-3 (175B) is significantly larger than Llama 2 (70B), which is much larger than Mistral (7B) and Phi-2 (2.7B).

Understanding these rough categories helps contextualize discussions about different LLMs. As you can see, the number of parameters directly influences a model's potential capabilities but also drastically changes the hardware needed to run it. In the following chapters, we will explore the specific hardware components involved and how their specifications relate to handling models of these varying sizes, focusing primarily on the requirements for inference (running the model).

  • BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova, 2019 Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) (Association for Computational Linguistics) DOI: 10.18653/v1/N19-1423 - Introduces BERT, a foundational model for contextual embeddings, including its 'Large' variant which is an example of a smaller LLM by modern standards.
  • Language Models are Few-Shot Learners, Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, Dario Amodei, 2020 arXiv DOI: 10.48550/arXiv.2005.14165 - Describes the architecture and scale of GPT-3, a seminal large language model with 175 billion parameters, showcasing its few-shot learning abilities.
  • Mistral 7B, Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed, 2023 arXiv preprint DOI: 10.48550/arXiv.2310.06825 - Presents the Mistral 7B model, an example of a highly efficient and capable model within the smaller-to-medium parameter range.

© 2026 ApX Machine Learning