Container_yard / quickstart.sh
Draken1606's picture
Initial Container Yard env submission
cc75d6e
#!/bin/bash
# Quick start guide for Container Yard Environment
echo "Container Yard Environment - Quick Start"
echo "=========================================="
echo ""
# Check if HF_TOKEN is set
if [ -z "$HF_TOKEN" ]; then
echo "⚠️ HF_TOKEN not set! This is required for inference.py"
echo ""
echo "Set it with:"
echo " export HF_TOKEN='your-hugging-face-token'"
echo ""
else
echo "βœ“ HF_TOKEN is set"
fi
# Show environment variable options
echo ""
echo "Optional environment variables:"
echo " API_BASE_URL (default: https://api.openai.com/v1)"
echo " MODEL_NAME (default: gpt-4o-mini)"
echo ""
# Test local environment
echo "Testing local environment..."
python -c "
import sys
sys.path.insert(0, '.')
try:
from server.Container_Yard_environment import ContainerYardEnvironment
from models import ContainerYardAction
print('βœ“ Environment imports OK')
except Exception as e:
print(f'βœ— Import error: {e}')
sys.exit(1)
# Quick environment test
env = ContainerYardEnvironment('easy')
obs = env.reset()
print(f'βœ“ Environment reset OK ({obs.total_containers} containers)')
" && echo "" && echo "βœ“ Ready to run inference!" || echo "βœ— Setup failed"
echo ""
echo "To run inference:"
echo " python inference.py"
echo ""
echo "To test Docker build:"
echo " docker build -t container-yard ."
echo " docker run -p 8000:8000 container-yard"