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

From Alliance Doc
Jump to navigation Jump to search
(Created page with "* Create and activate a virtual environment in <tt>$SLURM_TMPDIR</tt> (this variable points to a directory on the local dis...")
 
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:
* [[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:


$ virtualenv --no-download $SLURM_TMPDIR/env
$ 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.  
* 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.
* Install any missing modules if necessary.
* Create a file <tt>requirements.txt</tt> in order to recreate this virtual environment:
* Create a file <tt>requirements.txt</tt> in order to recreate this virtual environment:
(env) $ pip freeze > ~/requirements.txt
(env) $ pip freeze > ~/requirements.txt

Revision as of 14:20, 8 October 2019

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Tutoriel Apprentissage machine)
* Activez votre environnement virtuel Python
* Tentez d'exécuter votre programme
* Installez les paquets manquants s'il y a lieu. Les noeuds de calcul n'ayant d'accès à Internet, vous devrez faire l'installation à partir d'un noeud de connexion. Référez-vous à notre [[Python/fr#Cr.C3.A9er_et_utiliser_un_environnement_virtuel|documentation sur les environnements virtuels Python]] pour plus de détails.
* Notez les étapes qui ont été nécessaires pour faire fonctionner le votre programme
$ virtualenv --no-download $SLURM_TMPDIR/env
  • Install the modules that you will need. For TensorFlow, install the module tensorflow_gpu; it is a version of this software optimized for Compute Canada clusters.
  • Try to run your program.
  • Install any missing modules if necessary.
  • Create a file requirements.txt in order to recreate this virtual environment:
(env) $ pip freeze > ~/requirements.txt