Skip to content
selective focus photography of brown camel

RAG with EmbeddingGemma with Python Code using Ollama

Retrieval-Augmented Generation (RAG) is a powerful technique that enhances the capabilities of Large Language Models (LLMs) by connecting them to external knowledge sources. According to Google Developer website, EmbeddingGemma is a compact, open‑source embedding model… 

AdamW optimization and implementation in PyTorch

The AdamW method was proposed in the paper “Decoupled Weight Decay Regularization” by Ilya Loshchilov and Frank Hutter. While the paper was officially published at the prestigious International Conference on Learning Representations (ICLR) in 2019,… 

Types of Pooling operations

“You said pooling operations in Convolutional Neural Networks (CNNs) are like the magical zoom-out buttons.” “They reduce the size of feature maps while keeping the juicy bits of information. But how?” Peter asked. “There are… 

Why CNNs are so effective

“Professor, why is CNN so effective?” “CNNs don’t just look at the whole image like a confused tourist—they zoom in on tiny patches (called kernels) and analyze them like Sherlock Holmes inspecting clues.” “Ok. This… 

The CNN Workflow

“What’s CNN workflow?” Alex asked. Peter replied, “If we have an input image represented as a tensor, like a 32×32 pixel image with 3 color channels (Red, Green, Blue) would have a shape of 32x32x3.”… 

ResNet – Residual Network

I’m building a super tall tower out of Lego blocks. Each block is a layer in a neural network. The taller the tower, the more complex patterns it can learn. But the problem is “Tall… 

AlexNet: The CNN That Changed Everything

“Hey Alex, do you know what AlexNet is?” The little spirit asked Alex. “AlexNet is a game changer. Many years ago, everyone were using basic machine learning models to recognize images — and they were… 

VGGNet in the Magic Canvas

“Wow. So this is the canvas that can do image classification and object detection?” Vixel asked. “Yes, I am VGG. VGG stands for Visual Geometry Group.” the Canvas replied. “More exactly, I’m VGG19, which means… 

Object Detection

“I love sortering, especially beautiful mushrooms like this.” Jon thought “But I heard something on object detection trying to micmic human ability. It combines object localization to create bounding boxes around each object and then… 

Convolution & Filtering

“The world was a dazzling mosaic of colors and shapes, but I wonder if the magical computer to see it differently.” The little fairy thought and flew to the house of the Great Wizard. “It’s… 

Image Transformations for Data Augmentation

“Professor Elara,” chirped the little kid, “Can show me the magic of Image Transformations?” and Professor Elara blinked slowly. “Ok. We begin with Scaling.” With a gentle wave of her wing, Professor Elara conjured a… 

Pixel Operations

Pixels are the smallest units of a digital image — think of them as the individual tiles in a mosaic. Each pixel holds color and intensity information, and by manipulating these values, we can transform… 

Image Formation: Pixels & Color Spaces

In a realm painted with light and shadow, there lived tiny sprites of light called Pixels. They were the weavers of the visual world, each a tiny, glowing dot of energy. The more Pixels that… 

Exploring Computer Vision & The Seeing Machine

“Professor Hoot,” Gizmo chirped, “how does this self-driving car see where it’s going?” Professor Hoot chuckled, his feathers ruffling. “Ah, that’s the magic of Computer Vision, my dear Gizmo! It’s how we teach machines to… 

Transformers Architectures: A Comprehensive Review

The Transformer architecture, introduced in the seminal “Attention Is All You Need” paper in 2017, has fundamentally reshaped the landscape of artificial intelligence. By exclusively leveraging self-attention mechanisms and entirely dispensing with traditional recurrent and… 

Interactive Cosine Annealing with Warmup Visualizer

Interactive Cosine Annealing with Warmup Visualizer Cosine Annealing with Linear Warmup Explore the two-phase learning rate schedule by adjusting the parameters. Controls Warmup Ratio 10% Peak Learning Rate (η_max) 0.01 Min Learning Rate (η_min) 0.0001… 

Download data from TSD via API

First To view guides on all topics, in the command line, type tacl –guide topics To view instructions on how to register, type tacl –guide config This displays the guide: Type tacl –register gives Choose… 

Knowledge Distillation Techniques: A Comprehensive Analysis

Knowledge Distillation (KD) has emerged as a critical model compression technique in machine learning, facilitating the deployment of complex, high-performing models in resource-constrained environments. This methodology involves transferring learned “knowledge” from a powerful, often cumbersome,… 

error: Content is protected !!