Update model cache for AgentQnA (#1627)
Signed-off-by: ZePan110 <ze.pan@intel.com>
This commit is contained in:
@@ -8,7 +8,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${AGENTQNA_TGI_SERVICE_PORT-8085}:80"
|
- "${AGENTQNA_TGI_SERVICE_PORT-8085}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/opea/agent-service/:/data
|
- ${HF_CACHE_DIR:-/var/opea/agent-service/}:/data
|
||||||
environment:
|
environment:
|
||||||
no_proxy: ${no_proxy}
|
no_proxy: ${no_proxy}
|
||||||
http_proxy: ${http_proxy}
|
http_proxy: ${http_proxy}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ echo "WORKDIR=${WORKDIR}"
|
|||||||
export ip_address=$(hostname -I | awk '{print $1}')
|
export ip_address=$(hostname -I | awk '{print $1}')
|
||||||
export host_ip=${ip_address}
|
export host_ip=${ip_address}
|
||||||
|
|
||||||
export HF_CACHE_DIR=$WORKDIR/hf_cache
|
export HF_CACHE_DIR=${model_cache:-"$WORKDIR/hf_cache"}
|
||||||
if [ ! -d "$HF_CACHE_DIR" ]; then
|
if [ ! -d "$HF_CACHE_DIR" ]; then
|
||||||
echo "Creating HF_CACHE directory"
|
echo "Creating HF_CACHE directory"
|
||||||
mkdir -p "$HF_CACHE_DIR"
|
mkdir -p "$HF_CACHE_DIR"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
|
|||||||
HF_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
|
HF_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
|
||||||
model="meta-llama/Llama-3.3-70B-Instruct" #"meta-llama/Meta-Llama-3.1-70B-Instruct"
|
model="meta-llama/Llama-3.3-70B-Instruct" #"meta-llama/Meta-Llama-3.1-70B-Instruct"
|
||||||
|
|
||||||
export HF_CACHE_DIR=/data2/huggingface
|
export HF_CACHE_DIR=${model_cache:-"/data2/huggingface"}
|
||||||
if [ ! -d "$HF_CACHE_DIR" ]; then
|
if [ ! -d "$HF_CACHE_DIR" ]; then
|
||||||
HF_CACHE_DIR=$WORKDIR/hf_cache
|
HF_CACHE_DIR=$WORKDIR/hf_cache
|
||||||
mkdir -p "$HF_CACHE_DIR"
|
mkdir -p "$HF_CACHE_DIR"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export ip_address=$(hostname -I | awk '{print $1}')
|
|||||||
export TOOLSET_PATH=$WORKDIR/GenAIExamples/AgentQnA/tools/
|
export TOOLSET_PATH=$WORKDIR/GenAIExamples/AgentQnA/tools/
|
||||||
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
|
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
|
||||||
|
|
||||||
export HF_CACHE_DIR=$WORKDIR/hf_cache
|
export HF_CACHE_DIR=${model_cache:-"$WORKDIR/hf_cache"}
|
||||||
if [ ! -d "$HF_CACHE_DIR" ]; then
|
if [ ! -d "$HF_CACHE_DIR" ]; then
|
||||||
mkdir -p "$HF_CACHE_DIR"
|
mkdir -p "$HF_CACHE_DIR"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user