Closed valden80 closed 1 year ago
run one of the commands below before starting the sever with --cpu
for linux
export CUDA_VISIBLE_DEVICES=""
for windows cmd
set CUDA_VISIBLE_DEVICES=""
for windows powershell
$env:CUDA_VISIBLE_DEVICES=""
this is my bash script for linux
#!/usr/bin/bash
# activates conda env
eval "$(conda shell.bash hook)"
conda activate extras
# tells pytorch that we do not have a gpu
export CUDA_VISIBLE_DEVICES=""
# run server on cpu
python server.py --enable-modules=summarize,classify,silero-tts,chromadb,caption --listen --cpu
There were updates to make chroma respect --cpu flag. Update and check, please
When I starting extras with this command line:
python server.py --cpu --enable-modules=caption,summarize,classify,chromadb
it still using GPU. (For chromaDB only, other modules use CPU.)This is intended behavior or bug? I already read help files to find info about this, but don't get any answer from them...