From f3a5d119af2c1a2c88d23ef50d67a1ad907ebbf9 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 14 Nov 2024 12:58:06 -0500 Subject: [PATCH] fix env var extraction (#2043) [skip ci] --- scripts/cloud-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cloud-entrypoint.sh b/scripts/cloud-entrypoint.sh index 5b0337f2b2..2d3e29181a 100755 --- a/scripts/cloud-entrypoint.sh +++ b/scripts/cloud-entrypoint.sh @@ -2,7 +2,7 @@ # Export specific ENV variables to /etc/rp_environment echo "Exporting environment variables..." -printenv | grep -E '^RUNPOD_|^PATH=|^_=' | sed 's/^\(.*\)=\(.*\)$/export \1="\2"/' >> /etc/rp_environment +printenv | grep -E '^HF_|^BNB_|^CUDA_|^NCCL_|^NV|^RUNPOD_|^PATH=|^_=' | sed 's/^\([^=]*\)=\(.*\)$/export \1="\2"/' | grep -v 'printenv' >> /etc/rp_environment echo 'source /etc/rp_environment' >> ~/.bashrc add_keys_to_authorized() {