Skip to content

danbev/learning-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,614 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

CPU

GPU

NPU / Other

Audio & Speech

Vision & Multimodal

Agents & Applications

Miscellaneous Topics


Code

Fundamentals

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

Project Description
GGML GGML C++ library exploration
Llama.cpp Llama.cpp library exploration (inference, finetuning)
Python Python ML examples
Rust Rust ML examples (llm-chains, tch-rs, etc.)
vLLM vLLM exploration
OpenVINO OpenVINO Python examples
OpenVINO C++ OpenVINO C++ examples
PyTorch PyTorch & pybind examples
SIMD SIMD instruction exploration
SIMD Assembly Low-level SIMD assembly
SVE ARM SVE exploration
NEON ARM NEON examples
AMX Intel AMX exploration
VNNI VNNI instruction exploration
BLAS OpenBLAS exploration
ROCm AMD ROCm examples
SYCL SYCL examples
KleidiAI KleidiAI examples
Grammars LLaGuidance grammar exploration
Tokenization Tokenization examples
Data Structures ML-relevant data structures
Image Processing Image processing examples
JavaScript TensorFlow.js examples
WASM WebAssembly NN examples
Whisper Whisper.cpp exploration
Templates Minja template engine

GPU Code

GPU compute exploration across multiple APIs.

Project Description
CUDA CUDA examples in C++
OpenCL OpenCL examples
Vulkan Vulkan examples
Kompute Kompute (Vulkan compute) examples
Metal Metal examples
ROCm AMD ROCm/HIP examples
WebGPU WebGPU examples
XRT XRT examples

NPU Code

Neural Processing Unit exploration (Hailo).

Project Description
Hailo Hailo-10H AI accelerator, Raspberry Pi AI HAT+

Vector Databases

Vector database examples and exploration.

Project Description
Qdrant Qdrant examples (Python, Rust)
LanceDB LanceDB examples (Python, Rust)

Embeddings

Word and sentence embedding examples.

Project Description
Rust Embeddings examples in Rust

Audio Code

Audio processing and speech-to-text.

Project Description
Silero VAD Silero Voice Activity Detection
Whisper.cpp Whisper.cpp submodule

Agents Code

AI agent frameworks and examples.

Project Description
llama-cpp-agent AI agent using llama.cpp

Huggingface API

Language Description
Python Huggingface API example
Rust Candle example

Notes Index

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

About

Notes and exploration code for learning about AI/ML

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors