Hprc banner tamu.png

Difference between revisions of "SW:PyTorch"

From TAMU HPRC
Jump to: navigation, search
(PyTorch)
(PyTorch)
Line 29: Line 29:
  
 
<font color=purple>This version can be run on any of the 64GB or 256GB compute nodes.</font>
 
<font color=purple>This version can be run on any of the 64GB or 256GB compute nodes.</font>
 +
 +
===TensorFlow on Terra (GPU-only)===
 +
 +
There is one version of Pytorch (0.1.12) using GPUs on Terra for module Anaconda/3-5.0.0.1.
 +
 +
To load pytorch-gpu-0.1.12 (python 3.6.2):
 +
 +
[NetID@terra ~]$ '''module load Anaconda/3-5.0.0.1'''
 +
[NetID@terra ~]$ '''source activate pytorch-gpu-0.1.12'''
 +
[NetID@terra ~]$ ''[run your Python program accessing Pytorch]''
 +
[NetID@terra ~]$ '''source deactivate'''
 +
 +
==Example TensorFlow Script==

Revision as of 16:25, 27 February 2018

PyTorch

Description

PyTorch is deep learning framework that puts Python first.

Access

Pytorch is open to all HPRC users.

Anaconda and Pytorch Packages

TAMU HPRC currently supports the user of Pytorch though the Anaconda modules. There are a variety of Anaconda modules available on Ada and Terra.

While several versions of Anaconda have some Pytorch environment installed, it is simplest to use exactly the versions in the following sections.

You can learn more about the module system on our SW:Modules page.

You can explore the available Anaconda environments on a per-module basis using the following:

[NetID@ada ~]$ module load Anaconda/[SomeVersion]
[NetID@ada ~]$ conda info --envs

Pytorch on Ada (CPU-only)

A single version of TensorFlow is currently available on Ada. This version is limited to the CPU only (no GPU).

To load this version (python 3.6):

[NetID@ada ~]$ module load Anaconda/3-5.0.0.1
[NetID@ada ~]$ source activate pytorch-0.2.0
[NetID@ada ~]$ [run your Python program accessing Pytorch]
[NetID@ada ~]$ source deactivate

This version can be run on any of the 64GB or 256GB compute nodes.

TensorFlow on Terra (GPU-only)

There is one version of Pytorch (0.1.12) using GPUs on Terra for module Anaconda/3-5.0.0.1.

To load pytorch-gpu-0.1.12 (python 3.6.2):

[NetID@terra ~]$ module load Anaconda/3-5.0.0.1
[NetID@terra ~]$ source activate pytorch-gpu-0.1.12
[NetID@terra ~]$ [run your Python program accessing Pytorch]
[NetID@terra ~]$ source deactivate

Example TensorFlow Script