Skip to main content

PADL

License

Pipeline Abstractions for Deep Learning

Full documentation here: https://lf1-io.github.io/padl/

PADL:

  • is a pipeline builder for PyTorch.
  • may be used with all of the great PyTorch functionality you're used to for writing layers.
  • allows users to build pre-processing, forward passes, loss functions and post-processing into the pipeline.
  • models may have arbitrary topologies and make use of arbitrary packages from the python ecosystem.
  • allows for converting standard functions to PADL components using a single keyword transform.

PADL was developed at LF1, an AI innovation lab based in Berlin, Germany.

Getting Started

Installation

pip install padl

PADL currently supports python 3.7, 3.8 and 3.9.

Python version >= 3.8 is preferred because creating and loading transforms (not execution) can be slower in 3.7.

Your first PADL program

from padl import transform, batch, unbatch
import torch
from torch import nn
nn = transform(nn)

@transform
def prepare(x):
    return torch.tensor(x)

@transform
def post(x):
    return x.topk(1)[1].item()

my_pipeline = prepare >> batch >> nn.Linear(10, 20) >> unbatch >> post

Try out PADL in Colab notebooks

  1. MNIST
  2. Simple NLP example
  3. Sentiment Analysis - NLP

Resources

Contributing

Code of conduct: https://github.com/lf1-io/padl/blob/main/CODE_OF_CONDUCT.md

If your interested in contributing to PADL please look at the current issues: https://github.com/lf1-io/padl/issues

Licensing

PADL is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Metadata

Release files for padl 0.2.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 padl 0.2.0
File Size Uploaded
padl-0.2.0.tar.gz 126.2 kB Details

Release files / padl-0.2.0.tar.gz

Download URL padl-0.2.0.tar.gz
Size 126.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c957b147679304d3bf1d886eb5469a1bbe03f1a8397a3579a84ae525f381fba9
BLAKE2b-256 checksum
How to use checksums
bec10e3cdcbe0d7f3987bb4bce893167a15cadbfea2dcdd194ad260ea41b201f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
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