Skip to content

Setup Repository

Advaith S Rao edited this page Nov 25, 2023 · 1 revision

Setup Repository

Step 1: Install Poetry

curl -sSL https://install.python-poetry.org | python3 -

Step 2: Install the Poetry Environment

poetry install

Fix poety hang issue

Note: If you face an issue of poetry hanging during installation (Specially on Ubuntu systems), do the below

echo 'export PATH="~/.local/bin:$PATH"' >> ~/.bashrc
echo 'export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring' >> ~/.bashrc
source ~/.bashrc
poetry install

Step 3: Activate Poetry Shell

poetry shell

Step 4: Store weight and biases keys to env

Follow the steps here to do so

Step 5: For GPU-Specific Runs

If you are running the fraud detector on a GPU job, kindly run the below line to update torch for GPU. We will be using CUDA=11.8 version of the package, so kindly upgrade your CUDA version to 11.8. You can check your CUDA version using nvcc --version.

poetry run pip3 uninstall scipy torch torchvision torchtext \
&& poetry run pip3 install --force-reinstall --no-cache-dir scipy==1.11.3 \
&& poetry run pip3 install --no-cache-dir --force-reinstall torch==2.1.0+cu118 torchvision==0.16.0+cu118 torchtext -f https://download.pytorch.org/whl/torch_stable.html