Spaces:
Build error
Build error
File size: 463 Bytes
0c79708 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/bin/bash
# Check if WANDB_API_KEY is provided
if [ -z "$WANDB_API_KEY" ]; then
echo "Error: WANDB_API_KEY environment variable is not set"
echo "Please set it using: export WANDB_API_KEY=your_key_here"
exit 1
fi
# Build the Docker image
docker build -t nanogpt-trainer .
# Run the container with GPU support and environment variables
docker run --gpus all \
-e WANDB_API_KEY=$WANDB_API_KEY \
-v $(pwd)/out:/app/out \
nanogpt-trainer
|