voice-model-rl-training / READY_TO_DEPLOY.md
mbellan's picture
Initial deployment
c3efd49
|
raw
history blame
3.61 kB

βœ… Your HuggingFace Space is Ready to Deploy!

🎯 Quick Deploy Commands

Run these commands in order:

# 1. Navigate to deployment directory
cd /Users/mbc/workspace/hackathonspace/iterate-hack-nov-2025/voice-RL-version2/voice-model-rl-training/deployment/huggingface-space

# 2. Initialize git
git init

# 3. Add all files
git add .

# 4. Commit
git commit -m "Initial deployment: Voice Model RL Training"

# 5. Add HuggingFace remote
git remote add space https://huggingface.co/spaces/iteratehack/voice-model-rl-training

# 6. Push to HuggingFace
git push space main --force

πŸ“ Your Space URL

After deployment, your Space will be live at:

https://huggingface.co/spaces/iteratehack/voice-model-rl-training

βš™οΈ Space Configuration

The README.md header is already configured:

sdk: gradio
hardware: t4-small  # GPU support
python_version: 3.11
license: mit

πŸ’° Cost Info

  • T4 Small: $0.60/hour (only when running)
  • Auto-sleep: 1 hour idle (configured)
  • Free tier: Switch to cpu-basic in settings

πŸ§ͺ Test Locally First (Optional)

# Install Gradio (already installed)
pip install gradio

# Run locally
python app.py

# Visit http://localhost:7860
# Press Ctrl+C to stop

πŸ“¦ What's Included

βœ… Production Gradio app (app.py) βœ… All dependencies (requirements.txt) βœ… Source code (voice_rl/ directory) βœ… GPU auto-detection βœ… Error handling βœ… Real-time progress tracking

πŸš€ Features Your Space Has

Training Tab:

  • Model selection (Wav2Vec2, WavLM)
  • Algorithm choice (PPO, REINFORCE)
  • Hyperparameter configuration
  • Real-time progress
  • Automatic checkpointing

Compare Results Tab:

  • Audio upload
  • Base vs trained model comparison
  • Side-by-side playback

Information Tab:

  • Feature overview
  • Usage instructions
  • Citation info

πŸ“Š After Deployment

  1. Check Build Logs:

    • Go to your Space > Logs tab
    • Wait for "Running on public URL"
  2. Test Your Space:

    • Open the Space URL
    • Try training with 5 episodes
    • Upload test audio
  3. Configure Hardware (if needed):

    • Settings > Hardware > Choose GPU type
    • For training: Keep T4 Small
    • For demos: Switch to CPU Basic (free)
  4. Set Sleep Time:

    • Settings > Sleep time > 1 hour
    • Prevents unexpected charges

πŸ”§ Quick Customization

Want to change something? Edit these files:

  • app.py - UI and functionality
  • requirements.txt - Dependencies
  • README.md - Space documentation

Then push updates:

git add .
git commit -m "Your changes"
git push space main

πŸ“š Documentation Files

  • TEST_LOCALLY.md - How to test before deploying
  • DEPLOY_TO_HF.md - Detailed deployment guide
  • DEPLOYMENT_SUMMARY.md - Quick reference
  • READY_TO_DEPLOY.md - This file!

πŸ†˜ Need Help?

Common Issues:

  • Build fails β†’ Check logs
  • Import errors β†’ Verify voice_rl/ structure
  • GPU not available β†’ Check hardware settings

Resources:

✨ You're All Set!

Your deployment directory is ready. Just run the commands above and your Space will be live!


Quick copy-paste:

cd /Users/mbc/workspace/hackathonspace/iterate-hack-nov-2025/voice-RL-version2/voice-model-rl-training/deployment/huggingface-space && git init && git add . && git commit -m "Initial deployment" && git remote add space https://huggingface.co/spaces/iteratehack/voice-model-rl-training && git push space main --force

πŸŽ‰ Happy Deploying!