utsav@homelab:~$ ./learn --at-your-pace

LEARN AI

AI is useful technology worth understanding. Start with one task and choose how much control you want. You do not need to operate a server to begin.

// CHOOSE HOW TO USE AI

Cloud AI

A hosted chat app is a convenient first step. An API lets your own software send requests to a hosted model. You can use capable models without buying local inference hardware. Providers manage the computing; you manage the choice, permissions and recurring cost.

Check the provider's retention, training, regional processing and privacy policies before submitting sensitive information. A dashboard benchmark does not describe those policies. Provider outages, rate limits and model changes affect your workflow.

Local AI

A runtime loads a downloadable model on your computer. You can experiment with versions, prompts and formats, and compatible setups may work offline after installation and downloads. Hardware limits the model size, context and speed.

Local inference still uses electricity, storage, memory and your time. An application may connect to cloud models, search, telemetry or external tools. Audit the whole path before treating a task as private or offline. Local models can produce incorrect answers just as hosted models can.

Self-hosted AI

Run an inference service or interface on a machine you operate, such as a home server. Your phone or other devices can connect to it. Self-hosted describes who operates the service; the model may still be hosted elsewhere.

You take responsibility for authentication, updates, backups where needed, permissions and uptime. Keep inference services private by default. Remote access should use private networking and appropriate authentication. Do not expose a runtime's unauthenticated port to the public internet.

Hybrid AI

Use local inference for suitable everyday tasks, and explicitly choose a hosted model for demanding work. You can trade capability, latency, cost and privacy on a task basis.

A fallback can send a prompt outside your computer. Make that choice visible and intentional, especially for documents or private data. A hybrid design is not automatically cheaper or more private; measure your usage and review which services receive each request.

// THE PARTS OF AN AI SYSTEM

Model
Learned weights and associated configuration that generate outputs.
Inference runtime
Software that loads a compatible model and runs it on hardware.
Web interface
A browser UI that sends prompts to an inference endpoint.
API provider
A service operating models and offering network access, usually with usage charges.
API gateway
A layer managing access, routing and policies across providers.
Model router
A rule or service choosing an endpoint for a request. Routing does not itself perform inference.

A browser interface alone does not add compute capacity. A hosted model ID does not establish that the weights can be downloaded. A quantisation is a particular weight representation; its memory use and quality may differ from the hosted benchmark configuration.

// SOFTWARE AND SENSIBLE STACKS

Ollama: an accessible local starting point

Ollama manages supported model downloads and runs inference. Start with its native application for your OS and a small reviewed model. Select a local model rather than a cloud listing. Verify context and memory use with a short prompt before increasing workload.

On Apple Silicon, use native inference for GPU access; Docker Desktop does not provide the same GPU path. GPU support on Windows and Linux depends on the specific card, backend and drivers. More context and parallel requests consume more memory.

Ollama documentation · Hardware support · Context and concurrency

Open WebUI: an optional browser interface

Open WebUI connects to Ollama and supported provider endpoints. It is useful when you want a browser chat experience, saved conversations and multiple connections. It does not replace the inference runtime or make an oversized model fit your hardware.

  1. First confirm your local runtime works on its own.
  2. Follow the official quick start for your OS and chosen installation method.
  3. Configure the runtime endpoint and select a local model.
  4. Check the connection with a harmless prompt and inspect where the request ran.
  5. Keep authentication enabled and access private. Add hosted connections only when you want them.

Open WebUI quick start · Connect Ollama

MLX / MLX LM: Apple Silicon native inference

MLX is Apple's machine learning framework; MLX LM supports compatible language model inference and model conversion. This is an alternative inference path for Apple Silicon, not a browser chat UI. Choose an explicitly compatible MLX model format. An Ollama GGUF listing is not automatically an MLX model.

Follow MLX LM's documented installation and generation instructions, verify a small model locally, then consider its server mode and a compatible client if you need one. Do not add a second runtime simply to match a diagram.

MLX LM official project

LiteLLM: optional gateway complexity

LiteLLM provides a common API layer and routing features across supported providers. Consider it when you need central routing, fallbacks or budget administration for several clients. A direct runtime or provider connection is simpler for one user.

It does not run a local model itself. Review which features need persistent storage and how budget enforcement works before treating a spending limit as guaranteed. Keep keys out of frontend code and configure access controls if you operate a gateway.

LiteLLM documentation · Routing · Budgets and enforcement requirements

Other paths: LM Studio, llama.cpp and vLLM

LM Studio offers a desktop experience for supported local models and hardware. Review its OS requirements if you prefer a GUI.

llama.cpp is a flexible inference engine with CPU and GPU backends and GGUF models. It suits users who want explicit control over builds, offloading and serving.

vLLM focuses on efficient serving and supported accelerator environments. Evaluate it for service workloads after checking hardware, platform and model support; it is unnecessary for a first personal chat setup.

Start with the smallest stack that solves your task
GoalStackCheck first
One local modelOllamaCompatible OS, memory and model
Browser local assistantOpen WebUI + OllamaRuntime works before adding UI
Apple native experimentsMLX LM + optional compatible clientApple Silicon and MLX weights
Hybrid assistantLocal runtime + optional Open WebUI + hosted providerExplicit data routing and costs
Advanced multi-provider accessOptional LiteLLM + inference endpoints + clientsActual gateway need and operational responsibility

// YOUR FIRST EXPERIMENT

  1. Choose a harmless everyday task. Decide whether cloud processing is acceptable.
  2. Use the Setup Advisor if considering local inference. Its small catalogue is a starting point, not every possible model.
  3. Install from the official project documentation yourself. Check disk space, licence and exact model version.
  4. For a reviewed Ollama trial, verify the listing and run ollama run qwen3:4b. Compare the model manifest with the advisor record; tags can change. Start with a modest context and one request at a time.
  5. Test your task, observe memory and latency, and verify the answer independently. Try disconnecting the network if offline operation is required.
  6. Add an interface, a larger model or a cloud fallback only when the first experiment shows a need.

For APIs, choose a provider yourself, set its spending limits and keep credentials in your application's private configuration. This dashboard does not run prompts or accept API keys. Explore workload estimates before committing to regular use.

Agents can act on files and services. Begin with restricted permissions, review consequential actions and check results. A high agentic benchmark is not permission to give an agent unrestricted access.