-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pp_serving example to serving image (#11433)
* init pp * update * update * no clone ipex-llm again
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
source /opt/intel/oneapi/setvars.sh --force | ||
export no_proxy=localhost | ||
export FI_PROVIDER=tcp | ||
export OMP_NUM_THREADS=32 | ||
|
||
export LD_PRELOAD=${LD_PRELOAD}:${CONDA_PREFIX}/lib/libtcmalloc.so | ||
basekit_root=/opt/intel/oneapi | ||
source $basekit_root/setvars.sh --force | ||
source $basekit_root/ccl/latest/env/vars.sh --force | ||
|
||
export USE_XETLA=OFF | ||
if [[ $KERNEL_VERSION != *"6.5"* ]]; then | ||
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 | ||
fi | ||
export TORCH_LLM_ALLREDUCE=0 | ||
|
||
export IPEX_LLM_QUANTIZE_KV_CACHE=1 | ||
export num_gpus=2 | ||
export model_path="/llm/models/Llama-2-7b-chat-hf" | ||
export low_bit="fp8" | ||
# max requests = max_num_reqs * rank_num | ||
export max_num_seqs="4" | ||
cd /llm/pp_serving | ||
CCL_ZE_IPC_EXCHANGE=sockets torchrun --standalone --nnodes=1 --nproc-per-node $num_gpus pipeline_serving.py --repo-id-or-model-path $model_path --low-bit $low_bit --max-num-seqs $max_num_seqs |