frost-rolf
commited on
Commit
•
9f4c937
1
Parent(s):
622223a
Update on_startup.sh
Browse files- on_startup.sh +2 -9
on_startup.sh
CHANGED
@@ -2,13 +2,6 @@
|
|
2 |
# Write some commands here that will run on root user before startup.
|
3 |
# Activate a virtual environment if needed (optional)
|
4 |
# source /path/to/venv/bin/activate
|
5 |
-
# Check if GPU is available
|
6 |
-
if python -c "import torch; assert torch.cuda.is_available(), 'No GPU found!'"; then
|
7 |
-
echo "GPU is available. Proceeding..."
|
8 |
-
else
|
9 |
-
echo "No GPU available. Exiting..."
|
10 |
-
exit 1
|
11 |
-
fi
|
12 |
# For example, to clone transformers and install it in dev mode:
|
13 |
-
|
14 |
-
|
|
|
2 |
# Write some commands here that will run on root user before startup.
|
3 |
# Activate a virtual environment if needed (optional)
|
4 |
# source /path/to/venv/bin/activate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# For example, to clone transformers and install it in dev mode:
|
6 |
+
git clone https://github.com/huggingface/transformers.git
|
7 |
+
cd transformers && pip install -e ".[dev]"
|