trial1 / SETUP.md
priyaaaaaasharmaaaaa's picture
Upload trained LoRA adapter from Kaggle
35e9f20 verified
|
Raw
History Blame Contribute Delete
6.5 kB

πŸ› οΈ Team Setup Guide β€” AI Sprint Manager OpenEnv

Complete setup instructions for Windows and Mac teammates.


πŸ“‹ Prerequisites

Windows

  1. Install Python 3.11

  2. Install Git

  3. Install Docker Desktop

  4. Install VS Code (recommended)

Mac

  1. Install Homebrew (package manager)

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Install Python 3.11

    brew install python@3.11
    

    Verify: python3.11 --version

  3. Install Git

    brew install git
    

    Verify: git --version

  4. Install Docker Desktop


πŸ“₯ Clone the GitHub Repo

# Both Windows (PowerShell) and Mac (Terminal)
git clone https://github.com/YOUR_GITHUB_USERNAME/ai-sprint-manager-openenv.git
cd ai-sprint-manager-openenv

🌿 Create Your Own Branch

# Replace "yourname" with your actual name
git checkout -b feature/yourname-improvements

Verify you're on your branch:

git branch
# Should show * feature/yourname-improvements

🐍 Set Up Virtual Environment

Windows

python -m venv venv
venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
pip install python-dotenv

Mac

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install python-dotenv

βš™οΈ Create Your .env File

Create a file called .env in the project root (never commit this!):

HF_TOKEN=hf_your_token_here
API_BASE_URL=https://router.huggingface.co/v1
MODEL_NAME=meta-llama/Llama-3.1-8B-Instruct
ENV_BASE_URL=http://localhost:7860

We'll get the HF_TOKEN in the next section.


πŸ€— Create Hugging Face Account & Token

  1. Go to https://huggingface.co and sign up
  2. Go to https://huggingface.co/settings/tokens
  3. Click New token
  4. Name: sprint-manager-token
  5. Type: Read
  6. Click Create token and copy it
  7. Paste it into your .env file as HF_TOKEN=hf_...

πŸš€ Run Locally & Test

Terminal 1 β€” Start the API + UI server

Windows

python ui.py

Mac

python ui.py

Terminal 2 β€” Test the API

Windows

Invoke-WebRequest -Uri http://localhost:7860/health -Method GET

Mac

curl http://localhost:7860/health
# Expected: {"status":"ok","env":"ai-sprint-manager"}

Test via Browser

Open http://localhost:7860 β€” you should see the Gradio sprint board UI.

Try:

  1. Select easy_sprint, click πŸ”„ Reset Sprint
  2. Set Action=assign, Task ID=T1, Dev ID=dev1
  3. Click ▢️ Take Action
  4. You should see a positive reward and T1 assigned to Alice

Run Inference Locally

# Make sure .env file has your HF_TOKEN
python inference.py

🐳 Test with Docker

docker build -t ai-sprint-manager .

Windows

docker run -p 7860:7860 ai-sprint-manager

Mac

docker run -p 7860:7860 ai-sprint-manager

Open http://localhost:7860 to verify.


☁️ Create Your Own HF Space & Deploy

  1. Go to https://huggingface.co/new-space

  2. Fill in:

    • Space name: ai-sprint-manager-yourname
    • SDK: Docker
    • Visibility: Public
  3. Click Create Space

  4. Add your HF token as a Secret:

    • Go to Space β†’ Settings β†’ Variables and secrets
    • Add secret: Name=HF_TOKEN, Value=your token
  5. Add HF as a git remote and push your branch:

git remote add myspace https://huggingface.co/spaces/YOUR_HF_USERNAME/ai-sprint-manager-yourname
git push myspace feature/yourname-improvements:main
  1. Wait 2-3 minutes for build. Test your live Space:

Windows

Invoke-WebRequest -Uri "https://YOUR_HF_USERNAME-ai-sprint-manager-yourname.hf.space/health" -Method GET

Mac

curl https://YOUR_HF_USERNAME-ai-sprint-manager-yourname.hf.space/health

πŸ”§ Run OpenEnv Validation

pip install openenv-core uv
uv lock
openenv validate
# Expected: [OK] ai-sprint-manager: Ready for multi-mode deployment

πŸ’‘ Suggested Improvements for Teammates

🟒 Easy (Good for getting started)

  1. Better skill matching UI β€” Show a skill-to-dev mapping table in the Gradio UI so users know which dev to pick
  2. Sprint history chart β€” Add a reward-over-time line chart using gr.Plot
  3. Add more tasks β€” Expand tasks.py with more realistic task names and types
  4. Auto-assign button β€” Add a Gradio button that automatically assigns all backlog tasks using a simple rule (best skill match)

🟑 Medium

  1. Session isolation β€” Currently all users share one env instance. Add session IDs so multiple users can use the UI simultaneously
  2. Sprint replay β€” Save the full episode history and add a "replay" feature to the UI
  3. Better reward visualization β€” Add a bar chart showing per-task completion status
  4. Configurable sprint length β€” Let users set sprint length (5/10/15 days) in the UI

πŸ”΄ Hard (Advanced)

  1. Real RL training loop β€” Add a train.py script using Stable-Baselines3 or TRL+GRPO to actually train a policy
  2. Multi-agent support β€” Let multiple AI agents collaborate on sprint management
  3. WebSocket support β€” Upgrade from HTTP to WebSocket for real-time updates per OpenEnv spec
  4. Custom sprint builder β€” Let users define their own tasks and team in the UI

πŸ“€ Submit Your Changes

git add .
git commit -m "feat: your improvement description"
git push origin feature/yourname-improvements

Then open a Pull Request on GitHub to merge into main.