Blog

The Owl

A collection of my thoughts and insights on machine learning.

89 articles·45 categories·170 tags
K
MathematicsAlgorithms

Prove that 2^n + 1 is divisible by 3 for all odd integers n >= 1

April 7, 20261 min read

#integer#mathematics#proof#math-induction
Read article
GitVersion Control

Updating your Local Branch from a Specific Remote Branch in Git

March 17, 20262 min read

#github#git
Read article
Web DevelopmentDeveloper Tools

Understanding multipart/form-data: How to Send Text + Binary Data in HTTP Requests

March 2, 20269 min read

#llm#https#fastapi#llama-cpp+1
Read article
Large Language ModelsDeployment

Hosting Your Own LLM Server

February 28, 20266 min read

#gguf#fastapi#llama-cpp#llm+1
Read article
Large Language ModelsDeployment

⚙️ How to Start Using llama-server

February 28, 20263 min read

#llm#gguf#hugging-face#llama-server+1
Read article
Medical AILarge Language Models

Running MedGemma-4B on a Small GPU (<16GB) Using BitsAndBytes

February 27, 20269 min read

#gemma#llm#genai#transformers+1
Read article
Medical AILarge Language Models

Running MedGemma-4B on CPU or Using GGUF + llama-cpp

February 27, 202610 min read

#llama-cpp#gemma#llm#genai+1
Read article
Computer VisionVision-Language Models

Cross-Dataset Label Mapping with Vision–Language Embeddings

February 25, 20264 min read

#deep-learning#vision-language-model#transformers#ai+1
Read article
PyTorchDeep Learning

The “Ghost in the Machine”: Tracking Variable Names and Metadata in PyTorch

February 10, 20264 min read

#deep-learning#pytorch#machine-learning#python-programming+1
Read article
GitVersion Control

How to Pull Changes from a Remote Git Repository

February 9, 20265 min read

#machine-learning#git#github#version-control+1
Read article
GitVersion Control

How to Remove Large Files from Git History

January 29, 20265 min read

#git#git-filter-repo#github#troubleshooting
Read article
GitVersion Control

Why .gitignore Didn’t Work

January 29, 20263 min read

#git#gitignore#version-control#troubleshooting
Read article
Machine LearningData Science

Mastering Logistic Regression: Tackling Non-Linear Data with Feature Transformation

January 14, 20267 min read

#machine-learning#logistic-regression#feature-engineering#data-science
Read article
PythonDeveloper Tools

Keeping Your Mac Lean: A Guide to Upgrading and Cleaning Python (2026 Edition)

January 6, 20263 min read

#macos#python#pyenv#package-management+1
Read article
AutomationResearch

🚀 Introducing the awesome-topics Blog Series

January 3, 20262 min read

#awesome-topics#research#curation#announcement
Read article
GitVersion Control

Git Basics Explained — Part 1

January 2, 20265 min read

#git#version-control#github#tutorial
Read article
Developer ToolsShell

Writing Multi-Line Commands Across Operating Systems

December 31, 20254 min read

#bash#powershell#command-line#cross-platform+1
Read article
AutomationResearch

awesome-topics: Fully Automated Research Paper Curation on GitHub Pages — Part 5

December 29, 20257 min read

#github-actions#automation#research#awesome-topics
Read article
AutomationResearch

awesome-topics: Fully Automated Research Paper Curation on GitHub Pages — Part 4

December 28, 20258 min read

#github-actions#automation#research#awesome-topics
Read article
AutomationResearch

awesome-topics: Fully Automated Research Paper Curation on GitHub Pages — Part 1

December 27, 20256 min read

#github-actions#automation#research#awesome-topics
Read article
Web DevelopmentDeployment

Deploying a Next.js Static Site to GitHub Pages

December 22, 20254 min read

#nextjs#github-pages#web-development#deployment+1
Read article
LinuxDeveloper Tools

The Smart Way to Copy: How to Use rsync to Exclude Folders, Ignore or Update Existing Files

October 3, 20255 min read

#linux#rsync#bash#file-management
Read article
LaTeXProductivity

Generating a Gantt Chart in LaTeX

August 29, 20256 min read

#latex#gantt-chart#project-management#visualization
Read article
Deep LearningModel Efficiency

Low-Bit Precision Training in PyTorch: Techniques and Code Examples

August 21, 20254 min read

#deep-learning#pytorch#quantization#mixed-precision+1
Read article
Federated LearningData Science

How to Split a Centralized Dataset for Federated Learning Simulation

August 7, 20258 min read

#federated-learning#machine-learning#data-science#privacy
Read article
Developer ToolsAI Tools

Instantly Supercharge Your IDE with GitHub MCP & GitMCP: Real-Time Docs & Code for Your AI…

August 5, 20253 min read

#mcp#github#ide#developer-tools+1
Read article
Developer ToolsShell

Unlocking the Power of `%%shell` in Google Colab

August 1, 20254 min read

#colab#shell#bash#jupyter+1
Read article
GitVersion Control

Pushing Changes to a New Private Repository: A Step-by-Step Guide

July 28, 20253 min read

#git#github#version-control
Read article
GitVersion Control

The Importance of Branching in Git

July 28, 20253 min read

#git#version-control#github#best-practices
Read article
High Performance ComputingGPU

How Slurm Assigns GPUs to Your Jobs

July 23, 20255 min read

#slurm#hpc#gpu#cluster-computing
Read article
Distributed TrainingDeep Learning

The Practical Guide to Distributed Training using PyTorch — Part 5: Distributing Everything using…

July 11, 20259 min read

#deep-learning#pytorch#distributed-training#fsdp+1
Read article
Distributed TrainingHigh Performance Computing

The Practical Guide to Distributed Training using PyTorch — Part 4: On Multiple Nodes using SLURM

June 26, 20257 min read

#deep-learning#pytorch#distributed-training#slurm+1
Read article
Distributed TrainingPyTorch

The Practical Guide to Distributed Training using PyTorch — Part 3: On Multiple Nodes using…

June 19, 20257 min read

#deep-learning#pytorch#distributed-training#multi-node
Read article
Distributed TrainingPyTorch

The Practical Guide to Distributed Training using PyTorch — Part 2: On a Single Node using Torchrun

June 9, 20254 min read

#deep-learning#pytorch#distributed-training#torchrun+1
Read article
Distributed TrainingPyTorch

The Practical Guide to Distributed Training using PyTorch — Part 1: On a Single Node using torch.mul

June 8, 20257 min read

#deep-learning#pytorch#distributed-training#gpu
Read article
Computer VisionPython

Comprehensive Guide to Overlaying Segmentation Masks in Python

May 30, 20255 min read

#computer-vision#image-segmentation#python#opencv+1
Read article
Deep LearningModel Efficiency

Understanding and Calculating MACs and FLOPs in PyTorch Models

May 20, 20255 min read

#deep-learning#pytorch#model-profiling#flops+1
Read article
Medical AIMedical Imaging

Compressing .nii Files to .nii.gz: A Guide to Efficient Data Management with NiBabel and SimpleITK

May 12, 20253 min read

#medical-imaging#nibabel#simpleitk#python+1
Read article
Data SciencePython

Row by Row: A Guide to Iterating Over Pandas DataFrames with iterrows() and loc[]

May 1, 20253 min read

#python#pandas#data-science#data-manipulation
Read article
Generative AIDiffusion Models

Generative Models — Diffusion Chapter — Part 1—Likelihood and Score

February 26, 20254 min read

#generative-ai#diffusion-models#deep-learning#mathematics
Read article
Deep LearningNeural Networks

Neural Networks — Part 0: A Journey Through Neural Network Architecture

February 14, 20256 min read

#deep-learning#neural-networks#machine-learning#architecture
Read article
AlgorithmsGame AI

Chess — Part 1: Establishing Communication Between Chess Engine and GUI

January 16, 20254 min read

#chess#uci#ipc#python+1
Read article
AlgorithmsGame AI

Chess — Part 0: Introduction to Chess Programming Basics

January 10, 20256 min read

#chess#python#ai#game-dev+1
Read article
PythonPerformance

Profiling different algorithms using the built-in timeit module in Python

December 27, 20244 min read

#python#profiling#performance#algorithms+1
Read article
Data VisualizationOptimization

Plotting Continuously Updating Gradient Vectors on Loss Landscape in Matplotlib — Part 1

December 19, 20244 min read

#python#matplotlib#optimization#deep-learning+1
Read article
MLOpsMachine Learning

How to log metrics and data at different lines in the code but at the same time-step using Wandb

December 5, 20244 min read

#wandb#mlops#logging#deep-learning
Read article
MLOpsMachine Learning

Managing Your Machine Learning Workflow with Weights & Biases Artifacts

November 22, 20243 min read

#wandb#mlops#artifacts#machine-learning+1
Read article
MLOpsDeveloper Tools

Sending Weights & Biases Alerts to WhatsApp Using Twilio

November 20, 20243 min read

#wandb#twilio#automation#monitoring+1
Read article
Natural Language ProcessingDeep Learning

Research Roundtable [Day 1][Paper 1]— BERT: Bidirectional Encoder Representations from Transformers

August 28, 20245 min read

#nlp#bert#transformers#paper-review+1
Read article
Self-Supervised LearningDeep Learning

Research Roundtable [Day 1][Paper 2] — Big Self-Supervised Models are Strong Semi-Supervised…

August 28, 20243 min read

#deep-learning#self-supervised-learning#simclr#paper-review
Read article
PythonDeveloper Tools

How to save both ‘logs’ and ‘print’ statement outputs in the same file using Python?

April 11, 20243 min read

#python#logging#debugging#io
Read article
Deep LearningPyTorch

The most PyTorch way to extract output from any intermediate layer in a pre-trained model

April 8, 20245 min read

#deep-learning#pytorch#feature-extraction#torchvision
Read article
Deep LearningDeveloper Tools

Automating Ablation Studies of Deep Learning Models using Batch Script

October 9, 20232 min read

#deep-learning#ablation-study#automation#batch-script
Read article
DockerDeveloper Tools

Does this occur even if you pull the nvidia docker image?

October 6, 20231 min read

#docker#nvidia#troubleshooting#gpu
Read article
Developer ToolsPython

Changing the Python version on Google Colab

September 27, 20231 min read

#python#colab#linux#troubleshooting
Read article
Machine LearningDeployment

Hosting Machine Learning Model Demos with Hugging Face Spaces and Streamlit

September 14, 202310 min read

#machine-learning#huggingface#streamlit#deployment+1
Read article
Computer VisionDeep Learning

Guide to fine-tuning a Pre-trained model for Object Detection tasks with Faster RCNN using…

September 1, 20235 min read

#deep-learning#detectron2#object-detection#faster-rcnn+1
Read article
Deep LearningFrameworks

The Art of Loading Custom Objects and Functions in Keras

August 28, 20233 min read

#deep-learning#keras#tensorflow#model-saving
Read article
Computer VisionDeveloper Tools

Installing detectron2 in 9 easy steps

August 24, 20233 min read

#detectron2#docker#wsl2#computer-vision+1
Read article
Data ScienceDeveloper Tools

An elegant way to split a Dataset into Train, Validation, and Test splits in Batch Script

June 9, 20232 min read

#batch-script#data-science#dataset-split#windows
Read article
Developer ToolsShell

How to run Shell scripts in Windows

January 31, 20231 min read

#windows#shell-script#bash#command-line
Read article
MathematicsLinear Algebra

QR Factorization: Gram-Schmidt Algorithm

November 25, 20224 min read

#linear-algebra#mathematics#python#algorithms
Read article
Data VisualizationPython

Quick Tips #2: Try Plotting an All 1s 2D Array in Matplotlib

October 21, 20222 min read

#python#matplotlib#data-visualization#numpy
Read article
Deep LearningPyTorch

How to get Model Summary in PyTorch

August 25, 20225 min read

#deep-learning#pytorch#model-summary#torchinfo
Read article
Data VisualizationPython

How to plot multiple 2D Series in 3D (Waterfall plot) in Matplotlib

March 21, 20223 min read

#python#matplotlib#data-visualization#3d-plots
Read article
PyTorchDeveloper Tools

Quick Tips #1: How to obtain environment information using PyTorch

January 25, 20221 min read

#python#pytorch#cuda#troubleshooting
Read article
PyTorchDeveloper Tools

Installing PyTorch XLA in Google Colab without errors!!

September 11, 20212 min read

#pytorch#colab#tpu#deep-learning
Read article
Deep LearningTensorFlow

Creating a TF Dataset using a Data Generator

August 21, 20212 min read

#deep-learning#tensorflow#data-pipeline#python
Read article
Data VisualizationPython

Plotting Stacked Bar Chart in Python using Matplotlib

August 1, 20212 min read

#python#matplotlib#data-visualization#data-science
Read article
Explainable AIComputer Vision

GradCAM in PyTorch

July 31, 20213 min read

#deep-learning#pytorch#explainable-ai#gradcam+1
Read article
Data VisualizationPython

Plotting Grouped Bar Chart in Matplotlib

July 30, 20212 min read

#python#matplotlib#data-visualization#data-science
Read article
Self-Supervised LearningDeep Learning

SimCLR in PyTorch

June 30, 20216 min read

#deep-learning#pytorch#self-supervised-learning#simclr+1
Read article
Machine LearningMathematics

Statistical Learning Theory Part 4

June 21, 20214 min read

#machine-learning#statistical-learning#mathematics#vapnik
Read article
Deep LearningPyTorch

Using forward_hooks to Extract Intermediate Layer Outputs from a Pre-trained ResNet Model in…

January 9, 20216 min read

#deep-learning#pytorch#feature-extraction#hooks
Read article
Deep LearningPyTorch

Extracting Features from an Intermediate Layer of a Pretrained VGG-Net in PyTorch

January 7, 20213 min read

#deep-learning#pytorch#computer-vision#vgg+1
Read article
Deep LearningPyTorch

Extracting Features from an Intermediate Layer of a Pretrained ResNet Model in PyTorch (Hard Way)

December 20, 20205 min read

#deep-learning#pytorch#computer-vision#resnet+1
Read article
AlgorithmsPython

Solving Integer Partitioning Problem using Python

September 8, 20204 min read

#python#algorithms#mathematics#combinatorics
Read article
Data VisualizationPython

Magnifying Dense regions in Matplotlib plots

August 1, 20201 min read

#python#matplotlib#data-visualization#data-science
Read article
Deep LearningComputer Vision

Imbalanced Multilabel Scene Classification using Keras

July 29, 20207 min read

#deep-learning#keras#computer-vision#classification
Read article
Deep LearningFrameworks

Keras vs PyTorch

July 24, 20205 min read

#deep-learning#pytorch#keras#python
Read article
Machine LearningMathematics

Statistical Learning Theory Part 1

June 25, 20206 min read

#machine-learning#statistical-learning#mathematics#probability
Read article
Machine LearningData Science

Evaluation Metrics Part 1

June 20, 20204 min read

#machine-learning#data-science#evaluation-metrics#statistics
Read article
Artificial IntelligenceResearch

Welcome to The Owl Newsletters

June 6, 20201 min read

#newsletter#the-owl#machine-learning#deep-learning
Read article
Deep LearningDeveloper Tools

Using Telegram bot to receive Deep Learning model training updates on your mobile device

April 11, 20204 min read

#deep-learning#tensorflow#keras#telegram-bot+1
Read article
Deep LearningMachine Learning

K-Fold Cross Validation for Deep Learning using Keras

March 20, 20205 min read

#deep-learning#keras#machine-learning#cross-validation
Read article
Deep LearningComputer Vision

Building Inception-Resnet-V2 in Keras from scratch

April 10, 20194 min read

#deep-learning#keras#computer-vision#cnn
Read article
Computer VisionPython

Converting MNIST dataset for Handwritten digit recognition in IDX Format to Python Numpy Array

February 22, 20186 min read

#python#numpy#mnist#machine-learning
Read article
Machine LearningFederated Learning

Understanding Federated Learning: Privacy-Preserving Distributed Training

October 15, 20244 min read

#privacy#distributed-systems#pytorch#transformers+1
Read article
Medical AISelf-Supervised Learning

Self-Supervised Learning in Medical Imaging: From Pretext Tasks to Foundation Models

July 10, 20205 min read

#contrastive-learning#vision-transformers#medical-imaging#representation-learning+1
Read article