/ai-env

automate creating an environment for artificial intelligence development

GNU General Public License v3.0GPL-3.0

ai-env

This repo guides you to create an environment for AI developement

Machine Learning environment

  1. Install Miniconda from here.

  2. Clone this repository.

git clone https://github.com/SadeghPouriyanZadeh/ai-env.git

  1. Open a terminal with conda "base" environment activated in the ai-env directory.

conda activate base

  1. Create "ml" environment using "ml_requirements.txt" file.

conda create --name ml --file ml_requirements.txt --channel conda-forge --channel anaconda --channel pytorch

  1. Clone "ml" environment for each project.

conda create --name newenv --clone ml

Deep Learning Environment

  1. Create a new conda environment e.g. "torch" and activate it:

conda create --name torch

conda activate torch

  1. Go to PyTorch installation page from here.

  2. Choose your "OS", "Package", and "Compute Platform" and copy the installation command.

for example:

This is for test

conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

  1. Then install other recommended packages using "torch_requirements" file.

conda install --file torch_requirements.txt