Skip to content

Training environment must auto-bootstrap on any Grid node — zero manual intervention #359

Closed

Description

@joelteply

Problem

The Grid routes genome/train to the 5090 tower successfully. But training fails because the Python/PEFT environment isn't set up. Currently requires manual SSH + pip install + wrapper script creation. This violates the core principle: no manual intervention, ever.

What happened

  1. Grid routing works perfectly — gpu/stats --routingHint=max-compute transparently returns RTX 5090 data from the tower
  2. genome/train routed to tower → fails with "PEFT training environment not available"
  3. Tower has GPU (RTX 5090, 32GB, CUDA 13.1) but no Python training stack
  4. Manual workaround (SSH + pip install + wrapper script) is unacceptable

What should happen

When genome/train executes on ANY node:

  1. Check if training environment exists
  2. If not → auto-bootstrap it (install Python deps, create wrapper, verify GPU)
  3. Then proceed with training
  4. Zero human intervention. Zero SSH. Zero manual installs.

Implementation options

Option A: Smart train-wrapper.sh (quickest)

  • train-wrapper.sh checks for venv, creates if missing
  • pip install torch peft transformers on first run
  • Detects CUDA version and installs matching PyTorch wheel
  • Works with system Python, venv, or micromamba — whatever's available

Option B: Grid bootstrap command

  • grid/bootstrap command that sets up training environment on a remote node
  • Called automatically during grid/pair or first genome/train
  • Uses the existing install.sh logic but targeted at training deps only

Option C: Containerized training (long-term)

  • Training runs in a container with all deps pre-installed
  • Grid ships the container spec, node pulls and runs it
  • Eliminates environment management entirely

Context

  • RTX 5090 needs PyTorch nightly cu128 for Blackwell SM120 support
  • Standard pip install torch gives cu126 which doesn't support SM120
  • The installer (bootstrap.sh) handles this for initial setup but not for Grid-joined nodes
  • Memory: "No manual installs" (feedback_no_manual_install.md)
  • Memory: "One-command install + uninstall" (project_one_command_install.md)

Dependencies

  • Grid transport (feature/reticulum) — ✅ working
  • Transparent routing — ✅ working (gpu/stats proven)
  • Python environment detection — needs work
  • CUDA version → PyTorch wheel mapping — needs work

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Addressed by install.sh (PR #428 + #431). GPU-detected training dependencies auto-installed. The install script IS the bootstrap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions