Basics to advanced PyTorch tutorials. We have accumulated the best references availble in one place to filter the best practice for fast and easy ML implmentation.
All dependencies are included in environment.yml file. We can either have environment setup in our own project directory
or in the envs directory of the miniconda folder. The advantage of installing in miniconda folder is that we can use same env
for different packages and it saves bandwidth and storage. The first method on the other hand is more robust. Prcedure is as follows
First of all if mamba do not exists then install it via
conda activate base
conda install mamba -n base -c conda-forgeTo setup env in project dir
mamba env create --prefix ./env --file environment.yml --forceor to setup in miniconda envs dir
mamba env create --name mlenv --file environment.yml --forceIf you add (remove) dependencies to (from) the environment.yml file or the requirements.txt file after the environment has already been created, then you can re-create the environment with the following command.
To update env in project ./env dir
conda activate base
mamba env update --prefix ./env --file environment.yml --pruneTo update in Miniconda envs dir
conda actiavte base
mamba env update --name mlenv --file environment.yml --pruneIf you are low on storage and want to completely remove the conda env. You can do it by
conda deactivate
conda env remove --prefix ./env
# or to remove from conda env dirs
conda env remove --name mlenv- Jovian : You can also access the full tutorial on Jovian. FreeCodeCamp Youtube channel has also provided the same tutorial on Youtube.
- MorvanZhou : Nice collection as initiated by Morvan on Github.