Application Examples

This contains the example applications and component definitions for TorchX. These components and apps can be launched by themselves or part of a pipeline.

See the Pipelines Examples for how to use the components in a pipeline.

Data Preprocessing Example

This is a simple TorchX app that downloads some data via HTTP, normalizes the images via torchvision and then reuploads it via fsspec.

This examples has two Python files: the app which actually does the preprocessing and the component definition which can be used with TorchX to launch the app.

Lightning + Classy Vision Trainer Example

This example consists of model training and interpretability apps that uses PyTorch Lightning and ClassyVision. The apps have shared logic so are split across several files.

You can see the different component definitions for the apps in the components file.

Gallery generated by Sphinx-Gallery


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources