ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Getting Started with Local LLMs
Chapter 1: Introduction to Large Language Models
What Is a Large Language Model (LLM)?
A Simple View of How LLMs Work
Understanding Tokens and Text Generation
Why Run LLMs Locally?
Local vs. Cloud-Based LLMs
Quiz for Chapter 1
Chapter 2: Preparing Your Local Environment
Hardware Considerations: CPU
Hardware Considerations: RAM
Hardware Considerations: GPU and VRAM
Checking Your System Specifications
Operating System Compatibility
Installing Python (Optional but Recommended)
Introduction to the Command Line / Terminal
Quiz for Chapter 2
Chapter 3: Finding and Selecting Local LLMs
Where to Find LLM Models: Hugging Face Hub
Understanding Model Sizes and Parameters
Model Formats: GGUF and Others
Quantization: Making Models Smaller
Reading Model Cards for Information
Model Licenses and Usage Restrictions
Choosing Your First Model
Quiz for Chapter 3
Chapter 4: Running Your First Local LLM
Introduction to Local LLM Runners
Setting up Ollama
Downloading a Model with Ollama
Running a Model with Ollama (Command Line)
Setting up LM Studio
Finding and Downloading Models in LM Studio
Loading and Chatting with a Model in LM Studio
Introduction to llama.cpp (Concept)
Hands-on Practical: Running a Model
Quiz for Chapter 4
Chapter 5: Basic Interaction and Prompting
What is a Prompt?
Your First Prompt: Simple Questions
Giving Instructions
Understanding Context Window
Basic Prompt Formatting Tips
Temperature and Creativity
Common Interaction Patterns
Practice: Simple Prompting Techniques
Quiz for Chapter 5
Building a Customized Local AI Assistant

What Is a Large Language Model (LLM)?

Essentially, a Large Language Model (LLM) is a sophisticated type of artificial intelligence (AI) program specifically designed to understand, generate, and work with human language. Think of it as a highly advanced text processor, capable of performing a wide range of tasks involving words and sentences.

Let's break down the term "Large Language Model":

Language Model

The "Language Model" part refers to the core function: predicting the next word in a sequence. Imagine you start typing "The quick brown fox jumps over the..." A language model's fundamental job is to figure out the most probable next word (in this case, likely "lazy"). It learns to do this by being trained on enormous amounts of text data – books, articles, websites, code, and more. By analyzing patterns, grammar, context, and common phrases within this data, the model builds an internal representation of how language works. This predictive ability is the foundation for generating coherent sentences, paragraphs, and even entire documents.

Large

The "Large" aspect is what sets modern LLMs apart. It refers primarily to two things:

The Size of the Training Data: LLMs are trained on datasets that can contain hundreds of billions or even trillions of words. This extensive exposure allows them to learn intricate language patterns, facts (as represented in the text), and different styles of writing. 2. The Number of Parameters: Parameters are the internal variables the model adjusts during its training process. You can think of them as the knobs and dials the model uses to store the knowledge it gains from the training data. LLMs have a massive number of parameters, often ranging from billions to trillions. For example, you might encounter models described as "7B" (7 billion parameters) or "70B" (70 billion parameters). A higher number of parameters generally allows the model to capture more complex patterns and nuances in language, leading to more sophisticated text understanding and generation capabilities.

This combination of extensive training data and a huge number of parameters enables LLMs to perform tasks that go far past simple next-word prediction. They can:

  • Answer questions based on the information they were trained on.
  • Summarize long documents.
  • Translate languages.
  • Write different kinds of creative text, like poems, code, scripts, or emails.
  • Engage in conversations.

Essentially, an LLM is a powerful AI tool trained on extensive text datasets, using billions of internal parameters to understand context and generate human-like text for various applications. Understanding this basic definition is the first step towards exploring how they function and how you can run them on your own computer.

  • Speech and Language Processing, Daniel Jurafsky and James H. Martin, 2025 - A comprehensive, continuously updated textbook providing foundational knowledge of natural language processing, including detailed explanations of language models.
  • Attention Is All You Need, Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin, 2017 Advances in Neural Information Processing Systems 30, Vol. 30 (Curran Associates, Inc.) - Introduces the Transformer architecture, a core innovation enabling the scale and capabilities of modern Large Language Models through its attention mechanism.
  • 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 - Presents GPT-3, a landmark Large Language Model, demonstrating how extreme scale in parameters and training data leads to impressive few-shot learning and diverse language generation capabilities.

© 2026 ApX Machine Learning