Translations:Tutoriel Apprentissage machine/40/en: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
* [[Python#Creating_and_using_a_virtual_environment|Create and activate a virtual environment]] in <tt>$SLURM_TMPDIR</tt> (this variable points to a directory on the local disk, directly attached to the compute node). [[AI_and_Machine_Learning#Avoid_Anaconda|Do not use Anaconda]]. For example:
* Activate your virtual environment.
 
$ virtualenv --no-download $SLURM_TMPDIR/env
* Install the modules that you will need. For ''TensorFlow'', install the module <tt>tensorflow_gpu</tt>; it is a version of this software optimized for Compute Canada clusters.  
* Try to run your program.  
* Try to run your program.  
* Install any missing modules if necessary. (Since the compute nodes don't have internet access, some packages won't be available. In that case, contact us for support.)
* Install any missing modules if necessary. Since the compute nodes don't have internet access, you will have to install them from a login node. Please refer to our documentation on [[Python#Creating_and_using_a_virtual_environment|virtual environments]].
* Create a file <tt>requirements.txt</tt> in order to recreate this virtual environment:
* Note the steps that you took to make your program work.
(env) $ pip freeze > ~/requirements.txt
cc_staff
353

edits