Skip to content

Latest commit

 

History

History
74 lines (40 loc) · 2.52 KB

README.md

File metadata and controls

74 lines (40 loc) · 2.52 KB

Cerebras ModelZoo Training Workflows

This repository contains example Pegasus workflows that execute on the Cerebras machine at PSC called Neocortex. The examples are for some of the models in the modelzoo that Cerebras has made availble for users to run.

The workflows in this repository validate, compiles and trains the model.

At the moment we have example workflows for

  • Tensor Flow
  • PyTorch

The workflow is based on the example at Running Jobs on Neocortex .

Dependencies

  1. Install HTCondor
  2. Install Pegasus WMS

You can also refer to the overview on deployment options and select what works best for your setup.

Container

All the jobs are run via a Cerebras provided singularity container that is available on the shared filesystem.

Logging onto Open OnDemand for Jupyter Notebooks

The workflows also have an associated jupyter notebook that you can be executed via the Open OnDemand instance on Neocortex. Login using your PSC credentials there.

Launching the notebook

After logging in, you would see a home page similar to one below

Open OnDemand Home

Click on the Jupyter System Installed Apps. That will take you to launch page for the Jupyter Notebook.

Take note of the extra slurm argments that are passed

  • account - that should be your account. not the one in the image below
  • partition - we need to launch the notebook on a slurm partition called pegasus. This is required to ensure your notebook runs on a node, where Pegasus and HTCondor are installed and preconfigured.

Open OnDemand Launch

Once your JupyterLab Session starts, Click Connect to Jupyter button.

Open OnDemand Connect

From there, Click on File -> New and then click on Terminal to get the terminal

Open OnDemand Terminal

Once in the terminal, clone this GitHub Repository.

git clone https://github.com/pegasus-isi/cerebras-modelzoo.git

Then, in Jupyter, navigate to the example you are interested in, and step through the notebook.