Download runpod/bootstrap.sh from Infinity08/KAWK50M-Project: direct link, hf CLI and curl.
- Browser
- Download file 916 Bytes
-
https://huggingface.co/datasets/Infinity08/KAWK50M-Project/resolve/main/runpod/bootstrap.sh
- Command line
-
hf download hf://datasets/Infinity08/KAWK50M-Project/runpod/bootstrap.sh
-
curl -L -o bootstrap.sh https://huggingface.co/datasets/Infinity08/KAWK50M-Project/resolve/main/runpod/bootstrap.sh
916 Bytes
| set -euo pipefail | |
| PROJECT_DIR="${PROJECT_DIR:-/workspace/KAWK50M}" | |
| VENV_DIR="${VENV_DIR:-${PROJECT_DIR}/.venv}" | |
| if [[ ! -d "${PROJECT_DIR}" ]]; then | |
| echo "Project directory not found: ${PROJECT_DIR}" >&2 | |
| exit 1 | |
| fi | |
| cd "${PROJECT_DIR}" | |
| if [[ ! -x "${VENV_DIR}/bin/python" ]]; then | |
| python -m venv --system-site-packages "${VENV_DIR}" | |
| fi | |
| # Keep the CUDA-enabled PyTorch bundled with the RunPod image available while | |
| # installing this project into an isolated environment (PEP 668 compatible). | |
| source "${VENV_DIR}/bin/activate" | |
| python -m pip install --upgrade pip | |
| python -m pip install -e . | |
| mkdir -p data/raw data/clean data/tokenized artifacts runs | |
| nvidia-smi | |
| python -m scripts.model_info --config configs/model_50m.yaml | |
| echo | |
| echo "Bootstrap complete." | |
| echo "Virtual environment: ${VENV_DIR}" | |
| echo "After tokenizer and token binaries are present, run:" | |
| echo " bash runpod/train_5090.sh" | |