Running a Python Program on the Expanse Cluster

Running a Python/PyTorch Program on Expanse

This page describes an example of running a Python program with PyTorch on Expanse using an interactive mode.

The Python environment was pre-installed by a PhD student (Yifan) in /expanse/lustre/projects/csb176/yifanq/share-env/pytorch-env. Using this shared environment reduces the storage space usage.

Example 1: Data classification with a neural network model


We will run a Python program that uses a neural network model for a machine learning task described by this PyTorch tutorial webpage.

Example 2: Document search with Pyserini on a CPU-only node

We will run a Python program that conducts document search based on Pyserini. The package was pre-installed in Yifan's shared Python environment.