Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DocSum/docker_compose/intel/hpu/gaudi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Some HuggingFace resources, such as some models, are only accessible if you have
To set up environment variables for deploying DocSum services, source the _set_env.sh_ script in this directory:

```
# Please set your HUGGINGFACE_API_TOKEN.
export HUGGINGFACEHUB_API_TOKEN="Your_HuggingFace_API_Token"

source ./set_env.sh
```

Expand Down
8 changes: 7 additions & 1 deletion DocSum/docker_compose/set_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ pushd "../../" > /dev/null
source .set_env.sh
popd > /dev/null

export host_ip=$(hostname -I | awk '{print $1}') # Example: host_ip="192.168.1.1"
export no_proxy="${no_proxy},${host_ip}" # Example: no_proxy="localhost, 127.0.0.1, 192.168.1.1"
export http_proxy=$http_proxy
export https_proxy=$https_proxy
export host_ip=$(hostname -I | awk '{print $1}') # Example: host_ip="192.168.1.1"
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}

export LLM_ENDPOINT_PORT=8008
export LLM_MODEL_ID="Intel/neural-chat-7b-v3-3"

export BLOCK_SIZE=128
export MAX_NUM_SEQS=256
export MAX_SEQ_LEN_TO_CAPTURE=2048
export NUM_CARDS=1

export MAX_INPUT_TOKENS=1024
export MAX_TOTAL_TOKENS=2048

Expand Down