sodcalculator

10 Tech How-To

Run AI Models on Your Computer: Setup Guide

Guide 10-32302 · Updated · Step by step

Running AI models locally lets you use large language models, image generators, and other AI tools without sending data to a cloud service. You get privacy, offline access, and no per-use fees, but you need a reasonably modern computer and some patience. This guide walks you through choosing a setup and getting your first model running.

What You’ll Need

  • A computer with at least 8 GB of RAM (16 GB or more recommended)
  • For faster performance, a dedicated GPU with at least 4 GB of VRAM (NVIDIA works best)
  • 20–50 GB of free storage for models and software
  • An internet connection for downloading software and model files
  • Basic comfort with command-line tools (some options have graphical installers)

Step-by-Step

  1. Decide what you want to run. Large language models (like Llama or Mistral) need 4–16 GB of RAM/VRAM depending on size. Image generators (like Stable Diffusion) need a GPU with at least 4 GB VRAM. Audio or video models are heavier. Start with a text model—it’s the easiest.
  2. Check your hardware. On Windows, open Task Manager (Ctrl+Shift+Esc) and look at the Performance tab for CPU, RAM, and GPU. On macOS, click the Apple menu > About This Mac. On Linux, run lscpu and free -h. Note your RAM and GPU VRAM.
  3. Install a launcher or runtime. The simplest option for beginners is LM Studio (graphical, works on Windows/macOS/Linux). For more control, install Ollama (command-line, cross-platform). If you want to run image models, install Stable Diffusion WebUI (Automatic1111 or Forge).
  4. Download a model. In LM Studio, use the built-in search to find a model like Llama 3.2 3B or Mistral 7B. In Ollama, run ollama pull llama3.2. For Stable Diffusion, download a checkpoint file (e.g., SD 1.5 or SDXL) from Hugging Face and place it in the models folder.
  5. Run the model. In LM Studio, click the model in the left panel and press “Load Model,” then open the chat tab. In Ollama, type ollama run llama3.2 and start chatting. For Stable Diffusion, launch the web UI and enter a prompt.
  6. Adjust settings for your hardware. If the model is slow or crashes, reduce the context length (e.g., 2048 tokens), lower the “GPU offload” percentage, or choose a smaller quantized version (e.g., Q4 instead of Q8).
  7. Test and iterate. Try different models and settings. A 7B model with 4-bit quantization runs on 8 GB RAM, while a 13B model needs 16 GB. Use the built-in benchmarks in LM Studio to see tokens per second.

Common Mistakes

  • Downloading a model too large for your RAM/VRAM—it will crash or swap to disk.
  • Ignoring VRAM vs. system RAM. A GPU with 6 GB VRAM can run a 7B model, but a 13B model needs more.
  • Using the wrong quantization. Q8 is more accurate but uses more memory; Q4 is smaller but slightly less accurate.
  • Not updating GPU drivers. Old drivers cause crashes or poor performance.
  • Assuming all models work on all hardware—some need AVX2 or specific CUDA versions.

Tips

  • Start with a 3B or 7B model—they’re fast and run on most machines.
  • Use LM Studio’s “Model Search” to filter by size and quantization.
  • For NVIDIA GPUs, install the latest CUDA toolkit if a launcher asks for it.
  • Keep models on an SSD for faster loading.
  • Use a “system prompt” to steer the model’s behavior—it’s like giving it instructions.
  • If you have an AMD GPU, use the Vulkan or ROCm versions of the software—they work but need extra setup.

Troubleshooting

  • Model fails to load: Check that the file isn’t corrupted (re-download). Reduce the context length or switch to a smaller quant.
  • Very slow responses: Lower the GPU offload if you have little VRAM, or use a smaller model. Close other programs.
  • “CUDA out of memory” error: Your VRAM is full. Reduce batch size (for images) or use a 4-bit quantized model. Restart the app.
  • No output or blank responses: The model may be too large for your RAM. Try a smaller one. Also check that the model file is complete—some downloads are truncated.
  • App crashes on startup: Update your GPU drivers and reinstall the app. On Windows, make sure you have the latest Visual C++ Redistributable.
  • Model gives gibberish: This often happens with a mismatched tokenizer or a corrupted file. Re-download and try a different quantization.

Frequently Asked Questions

Do I need a high-end GPU?

No. Many 3B and 7B models run on CPU alone, though slowly (2–5 tokens/sec). A GPU with 6+ GB VRAM gives 20–50 tokens/sec. For image generation, a GPU with at least 4 GB VRAM is required.

What’s the difference between RAM and VRAM for AI?

RAM is system memory; VRAM is on the GPU. Models load into VRAM for fast inference. If the model fits in VRAM, it’s fast. If not, it uses system RAM, which is slower but still works.

Can I run AI models on a Mac?

Yes. Apple Silicon Macs (M1/M2/M3) run models well using the Metal API. LM Studio and Ollama both support macOS. Unified memory means the GPU can use system RAM, so 16 GB unified memory is a good starting point.

How much storage do I need?

A 7B model is about 4–8 GB depending on quantization. A 70B model is 40+ GB. Plan for at least 20 GB total, but more if you want multiple models.

What does “quantization” mean?

It’s a way to compress the model to use less memory. Q4 means 4-bit precision, Q8 means 8-bit. Lower bits use less RAM but can slightly reduce quality. Q4 is a good balance for most users.

Is it legal to run any AI model locally?

Most open-source models (Llama, Mistral, Stable Diffusion) come with permissive licenses for personal use. Always check the model’s license page—some restrict commercial use or have other conditions.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →