fix symlinks for axolotl outputs (#1625)

This commit is contained in:
Wing Lian
2024-05-15 19:41:45 -04:00
committed by GitHub
parent 039e2a0370
commit e6937e884b
3 changed files with 8 additions and 4 deletions

View File

@@ -36,5 +36,12 @@ if [ "$JUPYTER_DISABLE" != "1" ]; then
jupyter lab --port=8888 --ip=* --allow-root --ServerApp.allow_origin=* &
fi
if [ ! -d "/workspace/data/axolotl-artifacts" ]; then
mkdir -p /workspace/data/axolotl-artifacts
fi
if [ ! -L "/workspace/axolotl/outputs" ]; then
ln -sf /workspace/data/axolotl-artifacts /workspace/axolotl/outputs
fi
# Execute the passed arguments (CMD)
exec "$@"