37 lines
1.3 KiB
Bash
Executable File
37 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
#grab container image name
|
|
|
|
MODEL_NAME="Qwen3.6-27B-Uncensored"
|
|
CONT_NAME="llama-$MODEL_NAME"
|
|
|
|
MODEL_FOLDER="/home/jared/.cache"
|
|
MODEL="huggingface/hub/models--HauhauCS--Qwen3.6-27B-Uncensored-HauhauCS-Aggressive/snapshots/f2db94d03eccf3b133aeea3dea62388acf98e864/Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-Q8_K_P.gguf"
|
|
MMPROJ="huggingface/hub/models--HauhauCS--Qwen3.6-27B-Uncensored-HauhauCS-Aggressive/snapshots/f2db94d03eccf3b133aeea3dea62388acf98e864/mmproj-Qwen3.6-27B-Uncensored-HauhauCS-Aggressive-f16.gguf"
|
|
|
|
PORT=10987
|
|
|
|
# Check if llama_env.sh exists, if not run create_new_image.sh
|
|
if [ ! -f "./env/ik_env.sh" ]; then
|
|
echo "./env/ik_env.sh not found, running create_new_IK_image.sh..."
|
|
./create_new_IK_image.sh
|
|
fi
|
|
source ./env/ik_env.sh
|
|
echo $IMAGE
|
|
docker container create --name $CONT_NAME --network llms -p $PORT:$PORT -v $MODEL_FOLDER:/model --user $(id -u):$(id -g) --gpus=all --restart on-failure:3 \
|
|
--health-cmd "curl -f http://$CONT_NAME:$PORT/v1/models || exit 1" \
|
|
--health-interval 5s \
|
|
--health-timeout 5s \
|
|
--health-start-period 20s \
|
|
$IK_IMAGE \
|
|
/llama.cpp/build/bin/llama-server \
|
|
--model /model/$MODEL \
|
|
--alias $MODEL_NAME \
|
|
-ctk q8_0 -ctv q8_0 \
|
|
--image-min-tokens 2048 \
|
|
-mm /model/$MMPROJ \
|
|
--host $CONT_NAME \
|
|
--port $PORT --jinja --no-mmap -dio
|
|
|
|
echo "Done!"
|
|
echo $CONT_NAME
|