AIToday
AI Coding AssistantsOpen-Source AIHacker NewsPublished: Aug 5, 2026, 19:00 JST

Picodl: numpy-only deep learning framework from scratch

Picodl: numpy-only deep learning framework from scratch

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).

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

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.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleWispr Adds Meeting Recorder, Joining AI Notetaker Rush