mirror of
https://github.com/mudler/LocalAI.git
synced 2025-12-24 23:19:27 -05:00
* fix(README): Add device flags for Intel/XPU Signed-off-by: Richard Palethorpe <io@richiejp.com> * fix(diffusers/xpu): Set device to XPU and ignore CUDA request when on Intel Signed-off-by: Richard Palethorpe <io@richiejp.com> --------- Signed-off-by: Richard Palethorpe <io@richiejp.com>
16 lines
372 B
Bash
Executable File
16 lines
372 B
Bash
Executable File
#!/bin/bash
|
|
backend_dir=$(dirname $0)
|
|
if [ -d $backend_dir/common ]; then
|
|
source $backend_dir/common/libbackend.sh
|
|
else
|
|
source $backend_dir/../common/libbackend.sh
|
|
fi
|
|
|
|
if [ -d "/opt/intel" ]; then
|
|
# Assumes we are using the Intel oneAPI container image
|
|
# https://github.com/intel/intel-extension-for-pytorch/issues/538
|
|
export XPU=1
|
|
fi
|
|
|
|
startBackend $@
|