Skip to content

Commit

Permalink
update readme with vastai instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
truonghm committed Sep 22, 2023
1 parent 7d9041f commit 6234d47
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,35 @@ Response:
```bash
./scripts/inference_codebert_unimodal.sh
./scripts/inference_codebert_bimodal.sh
```
```

## Setting up remote machine on Vast.ai

1. Use the `pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel` image
2. SSH into the remote server, then install poetry and enable conda:

```bash
curl -sSL https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/main/install-poetry.py | python3
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

# enable conda env
conda init

# restart terminal by sourcing bashrc
source ~/.bashrc

# export requirements.txt
poetry export -f requirements.txt --without-hashes --output requirements.txt

pip install -r requirements.txt

# config git
git config --global user.email "[email protected]"
git config --global user.name "truonghm"

# clone this repo
git clone https://github.com/truonghm/malicious-code-detection.git
cd malicious-code-detection
```

Then open the repo in a VSCode remote window.

0 comments on commit 6234d47

Please sign in to comment.