mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-01 09:32:34 -05:00
- Replace all 'python bin/tito.py' references with correct 'tito' commands
- Update command structure to use proper subcommands (tito system info, tito module test, etc.)
- Add virtual environment activation to all workflows
- Update Makefile to use correct tito commands with .venv activation
- Update activation script to use correct tito path and command examples
- Add Tiny🔥Torch branding to activation script header
- Update documentation to reflect correct CLI usage patterns
31 lines
948 B
Bash
Executable File
31 lines
948 B
Bash
Executable File
#!/bin/bash
|
|
# Tiny🔥Torch Environment Activation & Setup
|
|
|
|
# Check if virtual environment exists, create if not
|
|
if [ ! -d ".venv" ]; then
|
|
echo "🆕 First time setup - creating environment..."
|
|
python3 -m venv .venv || {
|
|
echo "❌ Failed to create virtual environment"
|
|
exit 1
|
|
}
|
|
echo "📦 Installing dependencies..."
|
|
.venv/bin/pip install -r requirements.txt || {
|
|
echo "❌ Failed to install dependencies"
|
|
exit 1
|
|
}
|
|
echo "✅ Environment created!"
|
|
fi
|
|
|
|
echo "🔥 Activating Tiny🔥Torch environment..."
|
|
source .venv/bin/activate
|
|
|
|
# Create tito alias for convenience
|
|
alias tito="python3 bin/tito"
|
|
|
|
echo "✅ Ready to build ML systems!"
|
|
echo "💡 Quick commands:"
|
|
echo " tito system info - Check system status"
|
|
echo " tito module test - Run tests"
|
|
echo " tito system doctor - Diagnose issues"
|
|
echo " tito system jupyter - Start Jupyter for interactive development"
|