Skip to content

Commit

Permalink
refactor: update tmp_dir
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Nov 12, 2024
1 parent b575d3b commit b7909d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target=$(uname -m)
# represents the directory where the script is located
cwd=$(pwd)

repo_branch="main"
repo_branch="test-node"
version="0.4.11"
rag_api_server_version="0.9.15"
llama_api_server_version="0.14.15"
Expand All @@ -35,6 +35,7 @@ config_url=""
gaianet_base_dir="$HOME/gaianet"
# tmp directory
tmp_dir="$gaianet_base_dir/tmp"
tmp_dir_updated=0
# specific CUDA enabled GGML plugin
ggmlcuda=""
# 0: disable vector, 1: enable vector
Expand Down Expand Up @@ -82,6 +83,9 @@ while [[ $# -gt 0 ]]; do
exit 1
fi
gaianet_base_dir=$(cd "$gaianet_base_dir" && pwd)
if [ "$tmp_dir_updated" -eq 0 ]; then
tmp_dir="$gaianet_base_dir/tmp"
fi
shift 2
;;
--reinstall)
Expand Down Expand Up @@ -114,6 +118,7 @@ while [[ $# -gt 0 ]]; do
;;
--tmpdir)
tmp_dir="$2"
tmp_dir_updated=1
shift 2
;;
--ggmlcuda)
Expand Down

0 comments on commit b7909d0

Please sign in to comment.