mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-14 02:28:06 -07:00
Rewrite allow re-use function
This commit is contained in:
parent
dbd75f5ff8
commit
f3b3a9cf83
1 changed files with 5 additions and 3 deletions
8
setup.sh
8
setup.sh
|
@ -61,9 +61,11 @@ echo "NUM_GPUS=${NUM_GPUS}" >> config.env
|
|||
echo "MODEL_DIR=${MODEL_DIR}" >> config.env
|
||||
|
||||
if [ -d "$MODEL_DIR"/"${MODEL}"-${NUM_GPUS}gpu ]; then
|
||||
echo "Converted model for ${MODEL}-${NUM_GPUS}gpu already exists, skipping"
|
||||
echo "Please delete ${MODEL_DIR}/${MODEL}-${NUM_GPUS}gpu if you want to re-convert it"
|
||||
exit 0
|
||||
echo "Converted model for ${MODEL}-${NUM_GPUS}gpu already exists."
|
||||
read -p "Do you want to re-use it? y/n: " REUSE_CHOICE
|
||||
if [ "${REUSE_CHOICE^^}" = "Y" ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create model directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue