EveryDev.ai
Subscribe
Home
Tools

3,804+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2782
  • Coding1973
  • Infrastructure825
  • Projects603
  • Marketing598
  • Research520
  • Analytics468
  • Design462
  • MCP419
  • Testing346
  • Security323
  • Data305
  • Integration224
  • Prompts220
  • Communication210
  • Extensions196
  • Learning179
  • Voice175
  • Commerce160
  • DevOps135
  • Web95
  • Finance31
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. Tiny-LLM
    Tiny-LLM icon

    Tiny-LLM

    AI Courses

    A hands-on, open-source course for systems engineers to build an LLM serving system from scratch using MLX on Apple Silicon, covering Qwen3 inference, KV caching, custom kernels, and coding agents.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open-source course under Apache 2.0 (code) and CC BY-NC-SA 4.0 (book). No cost to access, use, or contribute.

    Engagement

    Available On

    macOS
    Web
    API
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    AI CoursesLocal InferenceAI Development Libraries

    Alternatives

    tiny-vllmGenerative AI for BeginnersLLM From Scratch
    Developer
    Alex Chi Z. (skyzh)Bellevue, WA

    Listed Sep 2026

    About Tiny-LLM

    Tiny-LLM is a free, open-source hands-on course created by Chi (Alex Chi Z.) and Connor, two systems engineers who wanted to understand LLM inference end to end without wading through hundreds of thousands of lines of CUDA-optimized code. The course is published as an interactive book at skyzh.github.io/tiny-llm and is licensed under Apache 2.0 (code) and CC BY-NC-SA 4.0 (book content). It is designed for engineers who already understand deep learning basics and want to build a working LLM serving stack from first principles.

    What It Is

    Tiny-LLM is a four-week, project-based course that guides learners through implementing a complete LLM inference and serving system using Apple's MLX framework on Apple Silicon. Rather than calling high-level neural-network layers, students implement each operator — attention, RoPE, GQA, RMSNorm, KV cache, quantized kernels, paged attention, and more — in Python, C++, or Metal. MLX serves as the correctness oracle and performance baseline throughout. The course is explicitly positioned as an LLM-serving counterpart to CMU's Needle project from the Deep Learning Systems course.

    Four-Week Learning Path

    The course is structured as a cumulative four-week sequence, where each week builds on the interfaces and mechanisms established by the previous one:

    • Week 1 — From Matmul to Text: Build a Qwen3 model from raw mlx.core array operations, covering attention, RoPE, grouped-query attention, RMSNorm, MLP, sampling, and the autoregressive generation loop.
    • Week 2 — A Step Closer to vLLM: Add a KV cache, establish a synchronized MLX baseline, then implement quantized decode matvec, fused model kernels, tiled prefill, and split-K scheduling.
    • Week 3 — Build a Mini vLLM: Introduce continuous batching, chunked prefill, paged KV cache, direct paged attention, and paged FlashAttention. Optional chapters cover speculative decoding and Mixture of Experts.
    • Week 4 — Build a Coding Agent: Construct a bounded, validated agent loop connected to a local workspace, with sessions, context compaction, inspect-and-steer pauses, deterministic evaluation, and branch-and-select capabilities.

    Why MLX and Apple Silicon

    The course authors chose MLX and Apple Silicon because the unified memory architecture gives learners direct access to Metal kernels and the complete inference path on a single consumer machine, without requiring an expensive NVIDIA GPU setup. Qwen3-4B is the primary target model — large enough to expose real weight-bandwidth, attention, and cache costs, but small enough to iterate on locally. The course provides a model-size guidance table for MacBooks with 16 GB, 32 GB, and 64 GB of unified memory.

    Architecture and Implementation Design

    The repository separates the learner implementation (tiny_llm package) from the reference solution (tiny_llm_ref), which is used by tests and the benchmark appendix. The course does not use high-level neural-network layers from MLX; when a chapter teaches an operator, the student implements it directly. Week 2 introduces explicit "operator off-ramps" — documented seams where a learner can substitute an MLX built-in (e.g., mx.fast.scaled_dot_product_attention) instead of writing a custom Metal kernel, while preserving the surrounding course interfaces. The roadmap diagram in the book tracks which weeks depend on which interfaces and which optimizations are optional.

    Current Status and Roadmap

    The GitHub repository shows active development as of mid-2026. All 28 chapters across Weeks 1–4 (including Days 1–9 of Week 4) have completed code, tests, and documentation. Week 4 chapters are still undergoing the authors' editorial audit pass. The repository has accumulated over 4,500 GitHub stars and 369 forks since its creation in April 2025, reflecting significant community interest. A Discord community is available for learners to study together. Topics not yet covered by the course include quantized or compressed KV caches, cross-request prefix caching, fine-tuning, and long-context techniques.

    Tiny-LLM - 1

    Community Discussions

    Be the first to start a conversation about Tiny-LLM

    Share your experience with Tiny-LLM, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open-source course under Apache 2.0 (code) and CC BY-NC-SA 4.0 (book). No cost to access, use, or contribute.

    • Full four-week course content
    • All 28 chapters with code, tests, and documentation
    • Reference solution (tiny_llm_ref)
    • Discord community access
    • Apache 2.0 licensed source code

    Capabilities

    Key Features

    • Hands-on LLM inference course for systems engineers
    • Four-week cumulative learning path
    • Implements Qwen3 model from raw array operations
    • KV cache implementation and optimization
    • Custom C++ and Metal kernel development
    • Quantized model weights and decode matvec
    • Fused model kernels and decode attention
    • Continuous batching and chunked prefill
    • Paged KV cache and paged FlashAttention
    • Coding agent with tool use, sessions, and evaluation
    • MLX-based correctness oracle and performance baseline
    • Reference solution for comparison
    • Apple Silicon / Mac-optimized environment
    • Discord community for learners
    • Apache 2.0 licensed source code

    Integrations

    MLX (Apple machine learning framework)
    Qwen3 models
    Metal (Apple GPU compute)
    PDM (Python package manager)
    PyTorch (prerequisite knowledge)
    HuggingFace model checkpoints
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Tiny-LLM and help others make informed decisions.

    Developer

    Alex Chi Z. (skyzh)

    Alex Chi Z. (skyzh) builds open-source educational projects for systems engineers, publishing hands-on courses on database storage engines, vector databases, and LLM inference. The tiny-llm course was created together with Connor, a software engineer at PingCAP working on the TiKV distributed key-value database. Chi works as a systems software engineer at Neon (acquired by Databricks), focusing on storage systems, and created tiny-llm to explore how LLM inference works from first principles.

    Bellevue, WA
    Read more about Alex Chi Z. (skyzh)
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    tiny-vllm icon

    tiny-vllm

    A hands-on course and full source code for building a high-performance LLM inference engine in C++ and CUDA, implementing features like KV cache, PagedAttention, and continuous batching.

    Generative AI for Beginners icon

    Generative AI for Beginners

    A free 21-lesson open-source course by Microsoft teaching the fundamentals of building Generative AI applications with Python and TypeScript.

    LLM From Scratch icon

    LLM From Scratch

    A hands-on workshop where you write every piece of a GPT training pipeline yourself, building a ~10M parameter language model that trains on a laptop in under an hour.

    Browse all tools

    Related Topics

    AI Courses

    Structured courses, workshops, and comprehensive training programs for AI, machine learning, and development.

    70 tools

    Local Inference

    Tools and platforms for running AI inference locally without cloud dependence.

    184 tools

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    303 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions