We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a5667 commit 8c88434Copy full SHA for 8c88434
container/run.sh
@@ -269,7 +269,13 @@ get_options() {
269
270
if [ -n "$HF_CACHE" ]; then
271
mkdir -p "$HF_CACHE"
272
- VOLUME_MOUNTS+=" -v $HF_CACHE:/root/.cache/huggingface"
+ # Use /home/ubuntu for local-dev target, /root for dev target.
273
+ if [ "$TARGET" = "local-dev" ] || [[ "$IMAGE" == *"local-dev"* ]]; then
274
+ HF_CACHE_TARGET="/home/ubuntu/.cache/huggingface"
275
+ else
276
+ HF_CACHE_TARGET="/root/.cache/huggingface"
277
+ fi
278
+ VOLUME_MOUNTS+=" -v $HF_CACHE:$HF_CACHE_TARGET"
279
fi
280
281
if [ -z "${PRIVILEGED}" ]; then
0 commit comments