Workflow for PyTorch on CS
On This Page
Workflow for PyTorch on CS¶
When you are targeting the Cerebras system for your neural network jobs, start with the high-level workflow described here.
Several PyTorch models, such as the following, and run scripts, are provided in Cerebras Reference Samples Git repository:
1. Port PyTorch to CS¶
See Porting PyTorch Model to CS for detailed documentation on how to port your PyTorch model to work on a Cerebras System.
2. Load the data¶
3. Compile on CPU¶
Before you run it on the Cerebras system, we recommend that you iterate until your model first compiles successfully on a CPU node. Make sure that this CPU node has the Cerebras Singularity container client software.
As described in Porting PyTorch Model to CS, you can verify that your model
will compile by passing in the
--compile_only flag to the