-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme with vastai instruction
- Loading branch information
Showing
1 changed file
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |