This is the repository for the LinkedIn Learning course Running AI Locally: Tools, Assistants, and Coding on Your Own Hardware. The full course is available from LinkedIn Learning.
See the readme file in the main branch for updated instructions and information.
Explore the process of running AI models locally to establish control over your solutions with regards to privacy, latency, and cost. Learn how to set up a local AI stack, including understanding models, runtimes, and integration with your hardware. Discover ways to deploy feature-rich AI assistants and tools that enhance your coding workflows. Evaluate practical scenarios for using offline language models on mobile devices. This course is designed with developers, software engineers, and IT professionals in mind, offering intermediate-level insights suitable for technical professionals eager to experiment with AI-powered tools. By applying the knowledge gained, you can effectively incorporate AI into personal or professional workflows without cloud dependencies. This hands-on approach to local AI enhances understanding and skill in deploying systems tailored to specific needs.
This repository has resources and configuration files from the course.
Before starting Open WebUI, install Ollama from the official site only after you have approval to do so and have checked the installer's safety at the time of download. Only download software if you understand and accept the risks.
If approved and verified as safe at the time of download, you can install Ollama with:
curl -fsSL https://ollama.com/install.sh | shIf approved, you can also launch the local assistants with:
ollama launch claude
ollama launch codex-appUse the table below as a starting point when choosing a model for your device.
| Hardware tier | Suitable device | Suggested model | Ollama command | Notes |
|---|---|---|---|---|
| Mobile and low-resource computers | Phones, tablets, older laptops, and small mini PCs | gemma4:e4b |
ollama pull gemma4:e4b |
Best fit when memory and compute are limited. |
| 16 GB+ fast memory | Macs with 16 GB+ unified memory or GPUs with about 16 GB VRAM | gemma4:12b |
ollama pull gemma4:12b |
Good balance of speed and quality on mainstream local hardware. |
| 24 GB+ fast memory | High-end consumer GPUs or larger-memory Macs | gemma4:26b |
ollama pull gemma4:26b |
Better quality, but needs more memory and bandwidth. |
| 32 GB+ fast memory | Workstations with large VRAM pools or high-memory unified-memory systems | qwen3.6:35b |
ollama pull qwen3.6:35b |
Use when you can afford slower responses for a larger model. |
| Medium-resource hardware | Strong laptops and desktops with comfortable local headroom | Mistral 3.5 | Check the current Ollama library name before pulling. | Dense model that requires more resources. |
| High-resource hardware | Powerful workstations and servers with substantial VRAM or RAM | GLM 5.1, DeepSeek V4, Nemotron 3 Super, MiniMax 2.7, MiniMax 3, Kimi K2.7 | Check the current Ollama library names before pulling. | Generally best suited for large-memory systems. Some quantizations may work on one or two DGX Spark systems or high-end Macs with lots of fast memory. |
Always verify the exact model name and tag in the Ollama library before running a pull command, since availability and naming may change.
For llama-server (llama.cpp), Unsloth workflows, and deployment guides, see Unsloth model tutorials and NVIDIA Spark build guides.
This repository includes Ollama Modelfiles in modelfiles/ that you can build with ollama create.
From the repository root, run:
ollama create gemma4-agent -f modelfiles/Gemma4-Agent.Modelfile
ollama create gemma4-26b-agent -f modelfiles/Gemma4-26b-Agent.ModelfileThese commands create local Ollama models using the settings defined in the included Modelfiles.
To start the Open WebUI assistant from this repository:
cd open_webui
docker compose upThis starts the services defined in open_webui/docker-compose.yml. Use Ctrl+C to stop them, or run docker compose up -d if you want to keep them running in the background.
- To use these exercise files, you must have the following installed:
- Docker Desktop or another Docker engine with Compose support
- Ollama
- Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.
- Start the Open WebUI assistant by following the steps in the section above.
Ronnie Sheer
Check out my other courses on LinkedIn Learning. https://www.linkedin.com/learning/instructors/.