Spaces:
Running
on
Zero
Running
on
Zero
File size: 2,370 Bytes
a178e35 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
#!/bin/bash
# Deploy PromptWizard training to HuggingFace Space
# This will create a public Space that can train the model
SPACE_NAME="promptwizard-qwen-training"
HF_USERNAME="promptwizard" # You can change this to your username
echo "=========================================="
echo "π Deploying to HuggingFace Space"
echo "=========================================="
echo ""
echo "Space will be created at:"
echo "https://huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME"
echo ""
# Initialize git repo in hf_training directory
cd /home/matt/prompt-wizard/nextjs-app/hf_training
if [ ! -d .git ]; then
echo "π¦ Initializing git repository..."
git init
git config user.email "[email protected]"
git config user.name "PromptWizard Bot"
fi
# Add all files
echo "π Adding files to git..."
git add -A
# Create commit
echo "πΎ Creating commit..."
git commit -m "Deploy PromptWizard Qwen training Space with GSM8K data" || echo "No changes to commit"
# Add HuggingFace remote
echo "π Setting up HuggingFace remote..."
git remote remove origin 2>/dev/null || true
git remote add origin https://huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME
echo ""
echo "=========================================="
echo "π Space Contents:"
echo "=========================================="
ls -la
echo ""
echo "=========================================="
echo "π― Next Steps:"
echo "=========================================="
echo ""
echo "1. Create a HuggingFace account at https://huggingface.co/join"
echo "2. Get your access token from https://huggingface.co/settings/tokens"
echo "3. Create the Space at https://huggingface.co/new-space"
echo " - Name: $SPACE_NAME"
echo " - SDK: Gradio"
echo " - Hardware: GPU (T4 small)"
echo ""
echo "4. Push the code:"
echo " cd /home/matt/prompt-wizard/nextjs-app/hf_training"
echo " git push origin main"
echo ""
echo "5. Monitor training at:"
echo " https://huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME"
echo ""
echo "The Space will:"
echo " β
Use real GSM8K data (100 train, 50 test)"
echo " β
Fine-tune Qwen with LoRA"
echo " β
Run on HuggingFace T4 GPU"
echo " β
Show progress in Gradio interface"
echo " β
Push trained model to HF Hub"
echo ""
echo "==========================================" |