Files
TinyTorch/activate.sh
Vijay Janapa Reddi 319260e5cb Update TinyTorch CLI: consistent tagline, milestones naming, and auto-install
- Update tagline across all commands to 'Don't just import it. Build it.'
- Rename milestone command to milestones for better consistency
- Remove duplicate milestones.py file
- Add auto-install of tito CLI in activate.sh
- Add command metadata structure to BaseCommand
- Clean up command registration with single source of truth
2025-11-28 21:29:12 +01:00

27 lines
837 B
Bash
Executable File

#!/bin/bash
# TinyTorch activation helper
if [ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "arm64" ]; then
# On Apple Silicon, ensure arm64
export TINYTORCH_ARCH="arm64"
alias python='arch -arm64 .venv/bin/python3'
alias pip='arch -arm64 .venv/bin/pip'
source .venv/bin/activate
echo "🔥 TinyTorch environment activated (arm64)"
else
source .venv/bin/activate
echo "🔥 TinyTorch environment activated"
fi
# Check if tito command is available, if not install package
if ! command -v tito &> /dev/null; then
echo "📦 Installing TinyTorch CLI..."
if [ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "arm64" ]; then
arch -arm64 .venv/bin/pip install -e . -q
else
pip install -e . -q
fi
echo "✅ TinyTorch CLI installed"
fi
echo "💡 Try: tito system health"