Skip to main content

picodl.

A tiny deep learning library built from scratch in Python - autograd engine, layers, losses, optimizers, and a training loop, all on top of plain numpy. No PyTorch, no TensorFlow, no hidden framework underneath.

Documentation

Documentation

Installation

Install picodl with pip

  pip install picodl-nn

Demo

A sample model

from picodl.nn import NeuralNet
from picodl.layers import Linear, GELU
from picodl.loss import CrossEntropyLoss
from picodl.optim import AdamW
from picodl.train import train

net = NeuralNet([
    Linear(784, 128),
    GELU(),
    Linear(128, 10),
])

train(net, x_train, y_train,
      num_epochs=10,
      loss=CrossEntropyLoss(),
      optimizer=AdamW(lr=0.001, weight_decay=0.01))

net.save("model.picodl")

Authors

License

MIT

Metadata

Release files for picodl-nn 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for picodl-nn 0.1.0
File Size Uploaded Provenance Actions
picodl_nn-0.1.0.tar.gz 9.1 kB Without provenance Details for picodl_nn-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for picodl-nn 0.1.0
File Interpreter ABI Platform Actions
picodl_nn-0.1.0-py3-none-any.whl Python 3 none any Details for picodl_nn-0.1.0-py3-none-any.whl

Total release size: 19.3 kB

Release files / picodl_nn-0.1.0.tar.gz

Download URL picodl_nn-0.1.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
10a041048b85901eccdd62724d225d986bc2b49afe74c4658e34479a1ec00a0e
BLAKE2b-256 checksum
How to use checksums
5ff003a28e4e6162ffbee5d7d55346dc1fb4727196bbbf80dea60198e3ad8341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / picodl_nn-0.1.0-py3-none-any.whl

Download URL picodl_nn-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
336bbafb5130754350330bda50628d577d265b07f7c071d6fe17f50969c4f5de
BLAKE2b-256 checksum
How to use checksums
3c48b66d6b49e5b219e7f88a731887612f892f58e7f4ab8442a7451b96e687d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for picodl-nn 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page