Fixes for QwQ training
This commit is contained in:
@@ -16,7 +16,11 @@ mkdir -p "/root/venvs"
|
|||||||
|
|
||||||
# Clone SIA repository
|
# Clone SIA repository
|
||||||
echo "Cloning SIA repository..."
|
echo "Cloning SIA repository..."
|
||||||
git clone "$SIA_REPO_URL" "/root/sia"
|
[ ! -d "/root/sia" ] && git clone "$SIA_REPO_URL" "/root/sia"
|
||||||
|
|
||||||
|
# Fixing permissions
|
||||||
|
echo "Fixing permissions..."
|
||||||
|
chmod +x /root/sia/scripts/*.sh
|
||||||
|
|
||||||
# Install Node.js if needed
|
# Install Node.js if needed
|
||||||
if ! command -v node &> /dev/null; then
|
if ! command -v node &> /dev/null; then
|
||||||
@@ -35,7 +39,6 @@ npm run build
|
|||||||
ln -s "/root/sia/web/dist" "/root/static"
|
ln -s "/root/sia/web/dist" "/root/static"
|
||||||
|
|
||||||
# Install SIA dependencies
|
# Install SIA dependencies
|
||||||
echo "Installing SIA dependencies..."
|
|
||||||
"/root/sia/scripts/install.sh"
|
"/root/sia/scripts/install.sh"
|
||||||
|
|
||||||
# Finetune model
|
# Finetune model
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export MSYS_NO_PATHCONV=1
|
|||||||
|
|
||||||
# =================== Configuration ===================
|
# =================== Configuration ===================
|
||||||
# These can be overridden by environment variables or .env file
|
# These can be overridden by environment variables or .env file
|
||||||
|
SIA_REPO_URL=${SIA_REPO_URL:-"git@git.nielsgeens.be:2222/llm/SIA.git"}
|
||||||
|
|
||||||
# Pod configuration
|
# Pod configuration
|
||||||
GPU_TYPE=${GPU_TYPE:-"NVIDIA GeForce RTX 3090"}
|
GPU_TYPE=${GPU_TYPE:-"NVIDIA GeForce RTX 3090"}
|
||||||
@@ -41,7 +42,7 @@ output=$(runpodctl create pod \
|
|||||||
--mem $MEMORY \
|
--mem $MEMORY \
|
||||||
--vcpu $CPU_COUNT \
|
--vcpu $CPU_COUNT \
|
||||||
--ports "8080/http,8888/http" \
|
--ports "8080/http,8888/http" \
|
||||||
--env "SIA_REPO_URL=git.nielsgeens.be/llm/SIA" \
|
--env "SIA_REPO_URL=$SIA_REPO_URL" \
|
||||||
--env "SIA_GITHUB_API_KEY=$SIA_GITHUB_API_KEY" \
|
--env "SIA_GITHUB_API_KEY=$SIA_GITHUB_API_KEY" \
|
||||||
--env "SIA_GITEA_API_KEY=$SIA_GITEA_API_KEY" \
|
--env "SIA_GITEA_API_KEY=$SIA_GITEA_API_KEY" \
|
||||||
--env "SIA_HF_API_KEY=$SIA_HF_API_KEY" \
|
--env "SIA_HF_API_KEY=$SIA_HF_API_KEY" \
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ fi
|
|||||||
|
|
||||||
mkdir -p "$OUTPUT_DIR"
|
mkdir -p "$OUTPUT_DIR"
|
||||||
|
|
||||||
/root/venvs/train/bin/python -m train.qwq "$@"
|
/root/venvs/train/bin/python -m train.qwq --output-dir "$OUTPUT_DIR"
|
||||||
Reference in New Issue
Block a user