AIToday
AI Coding AssistantsOpen-Source AIHacker NewsPublished: Aug 5, 2026, 19:00 JST2 min read

Picodl: numpy-only deep learning framework from scratch

Picodl: numpy-only deep learning framework from scratch

Key takeaway

  • A developer has released picodl, a deep learning framework built entirely from numpy without external dependencies.

  • Every operation—from gradient computation to neural network layers to optimizers—is implemented from scratch and readable as plain code, making it useful for anyone wanting to understand how deep learning frameworks actually work.

  • The library is available now on pip.

3 Key Points

  1. What happened

    A developer created picodl, a deep learning library built entirely from scratch using only numpy, with no external framework dependencies. The library includes a 25+ operation autograd engine, seven core modules (tensor, layers, loss, optimizers, neural network stack, data, and training loop), and is installable via pip.

  2. Why it matters

    Picodl makes every gradient computation and operation fully transparent and readable—no hidden framework underneath. For learners and developers who want to understand how deep learning actually works, every layer, loss function, and optimizer is code they can read start to finish, rather than a black box.

  3. What to watch

    The library is available now at pip install picodl-nn and supports standard components: loss functions (MSE, CrossEntropyLoss, NLLLoss, BinaryCrossEntropy), optimizers (SGD, RMSprop, Adam, AdamW with decoupled weight decay), and layer types (Linear, Conv2D, Embedding, LayerNorm, BatchNorm2D, pooling, dropout, GELU, and attention primitives).

Ask the AI about this article →

Context & Analysis

Picodl represents a pedagogical approach to deep learning frameworks—prioritizing transparency and readability over performance optimization. By building on numpy alone and hand-tracing every gradient into a computation graph that is topologically sorted on backward passes, the framework eliminates abstraction layers that obscure how neural networks actually function. This design choice makes it well-suited for learners and researchers who want to see the machinery beneath popular frameworks like PyTorch or TensorFlow.

The modular structure—seven focused modules (tensor, layers, loss, optimizers, NeuralNet, and data/training utilities)—allows each component to be understood in isolation while remaining composable. The inclusion of modern features like decoupled weight decay in AdamW and attention primitives suggests the framework is not merely a toy, but capable of supporting contemporary architectures. The ability to save and load weights to any file format and the support for both raw numpy arrays and Tensor inputs indicates a pragmatic design that does not sacrifice usability for simplicity.

FAQ

What dependencies does picodl have?
Picodl has zero dependencies—it is built entirely on numpy only.
What optimizers and loss functions does picodl support?
Optimizers include SGD, RMSprop, Adam, and AdamW (with decoupled weight decay). Loss functions are MSE, BinaryCrossEntropy, NLLLoss, and CrossEntropyLoss.
How many differentiable operations does the autograd engine support?
The autograd engine supports 25+ differentiable operations, including matmul, conv2d, softmax, and attention primitives.

Get the latest AI Coding Assistants news every morning

For example, today's edition would include:

  • OpenClaw 2.0 launches, targeting enterprise AI teamsVentureBeat AI · 7h ago
  • AI Coding Shifts from Prompts to Context to HarnessITmedia AI+ · 14h ago
  • Workday brings AI agents into Gmail, keeping ERP guardrailsSiliconANGLE AI · 16h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleWispr Adds Meeting Recorder, Joining AI Notetaker Rush