How to Run Local LLMs With GPU Acceleration
Learn how to run local LLMs with GPU acceleration using Ollama. Set up NVIDIA CUDA, AMD ROCm, Apple Metal, and Vulkan, verify GPU usage, and troubleshoot common problems.
The big picture of artificial intelligence: what it actually is, how its subfields fit together, and where the field is heading. Start here if you are new to AI and want a clear mental model before diving into a specialism.
Learn how to run local LLMs with GPU acceleration using Ollama. Set up NVIDIA CUDA, AMD ROCm, Apple Metal, and Vulkan, verify GPU usage, and troubleshoot common problems.
Learn how cross-validation and K-fold work in machine learning: choosing K, stratified, repeated, group and time-series splits, data leakage, and complete scikit-learn examples with real outputs.
Learn how Support Vector Machines (SVM) work: hyperplanes, margins, support vectors, the C parameter, and the kernel trick, with a complete scikit-learn tutorial, diagrams and measured results.
Understand how the K-Nearest Neighbors (KNN) algorithm works, how to choose k and a distance metric, and how to build and tune a KNN classifier in Python with scikit-learn, with diagrams and real results.
Learn how feature scaling works, when to use normalization (Min-Max) or standardization (Z-score), and how to apply both correctly in Python with scikit-learn, with worked examples, charts, and real results on the Wine dataset.
Every time you send a prompt to a chatbot and receive an answer, a large language model (LLM) performs a
Learn how autoencoders work: encoder, decoder, latent space, reconstruction loss, a PyTorch example, anomaly detection, and their limitations.
Build a customer segmentation project in Python: explore wholesale data, scale features, choose K, run K-means, evaluate, and interpret segments.
Learn anomaly detection in machine learning: Isolation Forest, Local Outlier Factor, Python examples, evaluation challenges, and false positives.
Learn Gaussian mixture models: soft clustering, the EM algorithm, covariance types, choosing components with AIC and BIC, and Python code with scikit-learn.
Understand principal component analysis: variance, covariance, eigenvectors, explained variance, standardization, and PCA in Python with scikit-learn.
Learn DBSCAN clustering: epsilon, min_samples, core, border and noise points, choosing parameters with a k-distance plot, Python code, and limits.
Learn hierarchical clustering: agglomerative vs divisive methods, dendrograms, linkage types, Python code with SciPy, and how it compares with K-means.
Understand K-means clustering: centroids, assignment, initialization, the elbow method, silhouette score, limits, and full Python code from scratch.
See how unsupervised learning works: features, similarity, distance metrics, clustering, and dimensionality reduction find structure without labels.