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

Your First Prompt: Simple Questions

To interact with a Large Language Model (LLM), whether it's running locally using tools like Ollama or LM Studio, or a cloud-based service, the main method of communication is through a prompt.

As we mentioned in the chapter introduction, a prompt is simply the input text you provide to the model. It's your instruction, your question, your starting point. The LLM reads your prompt and then generates text based on it.

The most straightforward way to begin is by asking simple questions, just like you might ask a search engine or a knowledgeable assistant. Think of the chat interface in LM Studio or the command line interface in Ollama as a direct line to the model. You type your question, press Enter, and the model generates a response.

Let's try a basic factual question. If you're using Ollama in your terminal, after running a command like ollama run llama3, you'll get a prompt like >>>. You can type your question directly:

>>> What is the capital of France?

The LLM will process this input and generate a response, which might look something like this:

The capital of France is Paris.

If you're using a graphical tool like LM Studio, you'd type the same question into the chat input box and hit send. The principle is identical: your question is the prompt, and the model generates an answer.

Let's try another one, perhaps something less factual:

>>> Suggest a name for a pet dog.

The model might respond with:

Okay, here are a few popular and friendly dog names:
* Buddy
* Lucy
* Max
* Daisy
* Charlie

Notice that the model didn't just give one name; it understood the intent behind the prompt ("suggest" implies wanting options) and provided a list.

How Does it Work (Simply)?

You might wonder how the LLM "knows" the capital of France or comes up with dog names. Remember from Chapter 1, LLMs are trained on enormous amounts of text data. When you provide a prompt like "What is the capital of France?", the model essentially predicts the most likely sequence of words to follow that question, based on the patterns it learned during training. For common factual questions, the most statistically likely completion is the correct answer. For more open-ended questions like suggesting names, it predicts words that form common and relevant suggestions.

It's not "thinking" in the human sense, but rather performing incredibly sophisticated pattern matching and sequence prediction. Your prompt sets the context, and the model generates the most probable continuation.

Experimentation is Encouraged

The best way to get a feel for how your local LLM responds is to ask it various simple questions. Try asking about:

  • Historical facts ("When was the Python programming language first released?")
  • Definitions ("What is photosynthesis?")
  • Simple opinions ("What's a good color for a website button?")
  • General knowledge ("How many planets are in our solar system?")

Pay attention to how the model responds. Is the answer accurate? Is it detailed? Does it seem confident? This initial experimentation helps you understand the capabilities and personality of the specific model you've chosen to run.

Asking simple questions is the starting point for interacting with your local LLM. In the next sections, we'll look at giving more complex instructions and understanding how the model handles longer conversations.

  • Attention Is All You Need, Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin, 2017 Advances in Neural Information Processing Systems 30 (NIPS 2017) DOI: https://doi.org/10.48550/arXiv.1706.03762 - Foundational paper introducing the Transformer architecture, which is key to modern Large Language Models and their ability to process and generate text.
  • OpenAI Prompt Engineering Guide, OpenAI, 2023 (OpenAI) - Official guide offering practical advice and techniques for designing effective prompts to interact with large language models, beginning with initial concepts.
  • Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition, Daniel Jurafsky, James H. Martin, 2025 (Prentice Hall) - A widely used textbook for natural language processing, covering the theoretical basis of language models and text generation.

© 2026 ApX Machine Learning