This video discusses the practicality and setup of running AI models locally.
Local AI Advancement: Local AI models have evolved significantly, now offering competitive performance, sometimes even surpassing commercial cloud providers like ChatGPT for specific tasks, especially coding.
Hardware Essentials: Memory bandwidth is paramount for AI inference. GPUs with high VRAM (e.g., NVIDIA RTX 4090/3090) offer superior speeds compared to CPUs. Multi-GPU setups (like three used RTX 3090s) can provide significant VRAM (72GB) and performance for larger models, despite NVIDIA no longer supporting NVLink on newer consumer cards. AMD Strix Halo and Apple M3 Ultra also show promising token generation rates for their cost.
Software for Local LLMs: LM Studio is recommended as a user-friendly platform for downloading, configuring, and running local language models (LLMs) on Windows, macOS, and Linux. It allows for easy adjustment of GPU offload and context length.
Model Selection and Quantization: Many "open-source" models are technically "open-weight" models, meaning their parameters can be downloaded and run locally. Quantization helps reduce model size and increase speed by reducing the precision of parameters. Users can select different quantization levels to fit their GPU memory.
Practical Applications: Local LLMs excel in tasks like RAG (Retrieval Augmented Generation), where users can chat with their private documents without uploading them to the cloud. They can also be integrated into code editors like VS Code for programming assistance.
Limitations: Local models typically don't have built-in internet search capabilities, which can affect accuracy for general knowledge queries compared to advanced cloud LLMs.
NVIDIA's DGX Spark is a compact AI supercomputer with 128GB unified memory.
Benchmarks (from external sources) show that for token generation, the DGX Spark (38.55 tokens/sec for GPT-OSS 120B) is outperformed by a 3x RTX 3090 setup (124.03 tokens/sec) and even Apple M3 Ultra (70.79 tokens/sec).
AMD Strix Halo also performs comparably to the DGX Spark in token generation (34.13 tokens/sec) at a lower price point (~1800 EUR).
Note: DGX Spark excels in prompt processing (compute-intensive stage) and has lower power consumption.
For general LLM usage, Macs with Apple Silicon are a good alternative due to their unified, fast memory.
A MacBook Pro with an M3 Max chip (over two and a half years old) can achieve 40 tokens/sec for GPT-OSS 120B.
For text-based AI tasks, AMD graphics cards can also be a viable option, though NVIDIA cards are generally better for image/video generation due to CUDA.
The speaker uses an AMD Ryzen 9 7950X3D CPU with 128GB DDR5 RAM and an RTX 4090 GPU, achieving 14 tokens/sec for GPT-OSS 120B when offloading 13 out of 36 layers to the GPU. This shows that even with less aggressive offloading, acceptable speeds can be achieved.
Initially, local AI models were "unusable" (e.g., Open Llama 3B provided nonsensical answers).
DeepSeek (from China), released earlier in the year, was the first locally runnable LLM that could compete with cloud-based US models, but it required over 700GB of (preferably fast) memory.
Recent advancements have made even small models perform well, especially for coding.
LM Studio is a free application for Windows, macOS, and Linux that simplifies running local AI models.
It allows users to download various models (e.g., GPT-OSS, Qwen, Gemma, DeepSeek) and manage their parameters.
LM Studio is currently the speaker's preferred platform over others like Oobabooga's Web UI or O-Llama due to its ease of use and ability to adjust GPU offload and context window size.
O-Llama started incorporating cloud support and accounts, which detracts from the local-first philosophy.
Coding Example: A prompt to create an HTML webpage displaying world times in Hanover, New York, and Tokyo.
Qwen3 4B (2.5GB model from Alibaba) generated clean HTML/CSS/JavaScript.
The generated webpage featured a visually appealing design with an animated starry background (added with a follow-up prompt).
This small model, running on a standard GPU, produced a better visual result than larger cloud models like ChatGPT with GPT-5 Thinking, Google Gemini 2.5 Flash, or Claude Sonnet 4.5.
LM Studio supports RAG (Retrieval Augmented Generation), allowing users to upload documents (PDF, DOCX, TXT, CSV) and chat with them locally.
This maintains data privacy as the documents are not sent to cloud servers.
Example: Uploading a VDE Tec Summit program PDF and asking for Jan-Keno Janssen's presentation schedule yielded a quick and accurate response.
More complex queries, like analyzing the gender ratio of speakers from the document, also worked effectively, demonstrating the model's ability to process and extract information from local files.
The number of parameters in a model doesn't always directly correlate with its file size (in GB).
This is due to quantization, a process of reducing the precision of model parameters (e.g., from 32-bit floating-point to 8-bit or 4-bit integers).
Quantization reduces memory footprint and increases inference speed, but excessive quantization can degrade model quality.
LM Studio displays different quantization levels (e.g., Q3_K_L, Q4_K_M, Q6_K, Q8_0) for each model, allowing users to choose one that balances performance and quality based on their hardware.
LM Studio displays icons indicating special capabilities of models:
Hammer icon: Signifies "Tool Use," meaning the model can interact with external tools or systems (e.g., browsing the internet via Model Context Protocol or controlling software like Blender).
Yellow eye icon: Signifies "Vision," meaning the model can process and understand image inputs (e.g., Google's Gemma 3 (12B) successfully "roasted" a person from a thumbnail).
Local LLMs can be integrated into code editors like Visual Studio Code via extensions like "Continue" or "Code Llama" as an LM Studio provider, offering local AI assistance for programming tasks.