Learn how to build a memory system for AI, and how to evaluate a memory system.
Category: ai
LLM Inference Engine (chapter 7): LLM-Based AI System
Explore how an LLM-based AI system works, including RAG, memory, embeddings, vector databases, agent orchestration, tool calling, and open-source tools.
LLM Inference Engine (chapter 6): Transformer Architecture From Scratch – Next Token Prediction
Understand how Transformer models predict the next token using embeddings, causal self-attention, KV caching, and autoregressive decoding.
LLM Inference Engine (chapter 5): Transformer Architecture From Scratch – Feed Forward Sub-Layer
Learn how the Transformer FFN works, including RMSNorm, Gate and Up projections, SiLU activation, element-wise multiplication, Down projection, and residual connections.
LLM Inference Engine (chapter 4): Transformer Architecture From Scratch – Attention Scores
Learn how to calculate Transformer attention scores step by step.
LLM Inference Engine (chapter 3): Transformer Architecture From Scratch – Token Embedding
Learn how the Transformer embedding layer converts token IDs into numerical vectors, builds embedding matrices, and prepares text for LLM processing using Llama 3 as an example.
LLM Inference Engine (chapter 2): Transformer Architecture From Scratch – Tokenization
Learn about Decoder-only Transformer Architecture, foundational matrix operations, and Tokenization step with llama3 model
LLM Inference Engine (chapter 1): Transformer Architecture From Scratch – GGUF Format
Introduction to Inference Engine and GGUF format (LLM model)
Build a Private RAG System with Local Llama
Learn how to build a private RAG (Retrieval-Augmented Generation) system using a locally deployed Llama model. This step-by-step guide covers document processing, embeddings, vector databases, semantic search, and prompt construction to help an AI assistant answer questions using sensitive internal documents without sending data to external AI services.
History Of Artificial Intelligence
Explore the history of artificial intelligence, from Hobbes and Boolean logic to neural networks, Transformers, GPT, and ChatGPT.
