Skip to content

AI & Machine Learning Engineering Notes

In-depth engineering references covering the full ML development stack: from statistical foundations through large-scale distributed training and transformer architectures, to production fine-tuning strategies for geospatial foundation models.

The articles follow a deliberate learning arc — building from mathematical fundamentals through architectural deep-dives to the practical challenges of adapting foundation models to domain-specific targets.


Foundations

  • Statistics to Deep Learning

    The conceptual bridge from classical statistics to neural network optimization — written for domain scientists transitioning from probabilistic modelling to deep learning.

  • Bias–Variance

    The central tension between model simplicity and flexibility: overfitting, underfitting, and the strategies (regularization, cross-validation, ensembles) that keep models generalizable.

  • Precision-Recall

    Building intuition for the confusion matrix from first principles, bridging ML vocabulary (false positive/negative) with remote-sensing accuracy assessment (omission/commission error, producer's/user's accuracy).

  • PyTorch Fundamentals

    Deep learning mechanics from first principles: tensors, gradient descent, training loops, and production model architectures in PyTorch.

Architectures

  • Transformers & Attention

    Inside self-attention, multi-head attention, key-query-value dimensions, positional encodings, and the structural foundations of large language and vision models.

  • Tokenization & Embeddings

    How raw text and spatial signals are encoded into dense vector representations: BPE, SentencePiece, and geospatial embedding strategies.

  • Embeddings Across Domains

    How a single vector representation and one formula (cosine similarity) make satellite pixels, biomedical records, and crop stress directly comparable — from geospatial foundation models (Prithvi, Clay, AlphaEarth, OlmoEarth) to the same pattern showing up far outside Earth science.

  • LLM Inference & KV-Cache

    Engineering lifecycle of transformer inference: embedding dimensions, QKV projection math, multi-head attention mechanics, and GPU memory footprint of the KV-cache at scale.

  • Temperature & Sampling

    How temperature controls token entropy via the Boltzmann distribution, the difference between standard and reasoning models, and how MCTS-based models like Kimi K2.6 use high entropy productively.

Scale & Infrastructure

Training-side scaling lives here. For the cluster itself — distributed execution, on-premise model serving, and environment configuration — see HPC & Infrastructure.

  • GPU & Distributed Training

    GPU memory management, single- and multi-GPU optimization, Distributed Data Parallel (DDP) configuration, and SLURM HPC integration for deep learning workloads.

Adaptation & Fine-Tuning

  • Fine-Tuning

    Full fine-tuning vs. linear probing vs. feature extraction — when to use each strategy and the computational trade-offs involved.

Computer Vision

  • Vision Transformers

    How ViT adapts the Transformer to image understanding: patch tokenization, positional encodings, and the conceptual shift from CNNs to attention-based vision models.

  • ViT Data Requirements

    Why Vision Transformers are more data-hungry than CNNs — the role of inductive bias, what CNNs encode by design vs. what ViTs must learn from data, and implications for transfer learning.