danbev/learning-ai

Notes and exploration code for learning about AI/ML

C++

225

2,694 commits

updated Oct 18, 2026

See the code

README

Learning AI

This repository contains notes and code examples related to AI/ML, with a focus on understanding the fundamentals of large language models, inference engines, and hardware acceleration.

In-progress


Table of Contents

Notes

Code


Notes

Model Architectures

Model Formats & Quantization

Attention & Embeddings

Inference & Decoding

Training & Fine-tuning

Hardware & Acceleration

GPU

NPU / Other

Audio & Speech

Vision & Multimodal

Agents & Applications


Code

Fundamentals

Exploration code for core AI/ML concepts, libraries, and frameworks.

ProjectDescription
GGMLGGML C++ library exploration
Llama.cppLlama.cpp library exploration (inference, finetuning)
PythonPython ML examples
RustRust ML examples (llm-chains, tch-rs, etc.)
vLLMvLLM exploration
OpenVINOOpenVINO Python examples
OpenVINO C++OpenVINO C++ examples
PyTorchPyTorch & pybind examples
SIMDSIMD instruction exploration
SIMD AssemblyLow-level SIMD assembly
SVEARM SVE exploration
NEONARM NEON examples
AMXIntel AMX exploration
VNNIVNNI instruction exploration
BLASOpenBLAS exploration
ROCmAMD ROCm examples
SYCLSYCL examples
KleidiAIKleidiAI examples
GrammarsLLaGuidance grammar exploration
TokenizationTokenization examples
Data StructuresML-relevant data structures
Image ProcessingImage processing examples
WASMWebAssembly NN examples
WhisperWhisper.cpp exploration
TemplatesMinja template engine

GPU Code

GPU compute exploration across multiple APIs.

ProjectDescription
CUDACUDA examples in C++
OpenCLOpenCL examples
VulkanVulkan examples
KomputeKompute (Vulkan compute) examples
MetalMetal examples
ROCmAMD ROCm/HIP examples
WebGPUWebGPU examples
XRTXRT examples

NPU Code

Neural Processing Unit exploration (Hailo).

ProjectDescription
HailoHailo-10H AI accelerator, Raspberry Pi AI HAT+

Audio Code

Audio processing and speech-to-text.

ProjectDescription
Silero VADSilero Voice Activity Detection
Whisper.cppWhisper.cpp submodule


Notes Index

For a complete list of all notes, see the notes directory.

danbev/learning-ai

Notes and exploration code for learning about AI/ML

C++

225

2,694 commits

updated Oct 18, 2026

See the code

README

Learning AI

This repository contains notes and code examples related to AI/ML, with a focus on understanding the fundamentals of large language models, inference engines, and hardware acceleration.

In-progress


Table of Contents

Notes

Code


Notes

Model Architectures

Model Formats & Quantization

Attention & Embeddings

Inference & Decoding

Training & Fine-tuning

Hardware & Acceleration

GPU

NPU / Other

Audio & Speech

Vision & Multimodal

Agents & Applications


Code

Fundamentals

Exploration code for core AI/ML concepts, libraries, and frameworks.

ProjectDescription
GGMLGGML C++ library exploration
Llama.cppLlama.cpp library exploration (inference, finetuning)
PythonPython ML examples
RustRust ML examples (llm-chains, tch-rs, etc.)
vLLMvLLM exploration
OpenVINOOpenVINO Python examples
OpenVINO C++OpenVINO C++ examples
PyTorchPyTorch & pybind examples
SIMDSIMD instruction exploration
SIMD AssemblyLow-level SIMD assembly
SVEARM SVE exploration
NEONARM NEON examples
AMXIntel AMX exploration
VNNIVNNI instruction exploration
BLASOpenBLAS exploration
ROCmAMD ROCm examples
SYCLSYCL examples
KleidiAIKleidiAI examples
GrammarsLLaGuidance grammar exploration
TokenizationTokenization examples
Data StructuresML-relevant data structures
Image ProcessingImage processing examples
WASMWebAssembly NN examples
WhisperWhisper.cpp exploration
TemplatesMinja template engine

GPU Code

GPU compute exploration across multiple APIs.

ProjectDescription
CUDACUDA examples in C++
OpenCLOpenCL examples
VulkanVulkan examples
KomputeKompute (Vulkan compute) examples
MetalMetal examples
ROCmAMD ROCm/HIP examples
WebGPUWebGPU examples
XRTXRT examples

NPU Code

Neural Processing Unit exploration (Hailo).

ProjectDescription
HailoHailo-10H AI accelerator, Raspberry Pi AI HAT+

Audio Code

Audio processing and speech-to-text.

ProjectDescription
Silero VADSilero Voice Activity Detection
Whisper.cppWhisper.cpp submodule


Notes Index

For a complete list of all notes, see the notes directory.

Significant stargazers

Paul Irish

32,153 followers · starred Jul 2025

Georgi Gerganov

20,830 followers · starred Apr 2025

Borislav Stanimirov

529 followers · starred Apr 2025

Radoslav Gerganov

384 followers · starred Apr 2025