This file contains hidden or 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
| USER_NAME="test_user_1" # 사용자 이름 | |
| DATA_DIR="/data01" # workspace 폴더를 연동할 폴더의 위치 | |
| SSH_PRIVATE_KEY="" | |
| useradd -s /bin/bash -m $USER_NAME -d /home/$USER_NAME | |
| usermod -aG sudo $USER_NAME | |
| mkdir /home/$USER_NAME/.ssh | |
| echo "$SSH_PRIVATE_KEY" > /home/$USER_NAME/.ssh/authorized_keys | |
| chmod -R 600 /home/$USER_NAME/.ssh | |
| chown -R $USER_NAME:$USER_NAME /home/$USER_NAME/.ssh | |
| mkdir $DATA_DIR/$USER_NAME |
This file contains hidden or 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
| # from argparse import ArgumentParser | |
| import time | |
| from pathlib import Path | |
| import numpy as np | |
| import requests | |
| import wandb |