diff --git a/Qwen3.6-27B-Uncensored.sh b/Qwen3.6-27B-Uncensored.sh index 1447aba..18ec94e 100755 --- a/Qwen3.6-27B-Uncensored.sh +++ b/Qwen3.6-27B-Uncensored.sh @@ -10,7 +10,12 @@ MMPROJ="huggingface/hub/models--HauhauCS--Qwen3.6-27B-Uncensored-HauhauCS-Aggres PORT=10987 -source ./env.sh +# 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" \ diff --git a/Qwen3.6-35B-A3B-Uncensored-Aggres-noThink.sh b/Qwen3.6-35B-A3B-Uncensored-Aggres-noThink.sh index 76556fd..759d11f 100755 --- a/Qwen3.6-35B-A3B-Uncensored-Aggres-noThink.sh +++ b/Qwen3.6-35B-A3B-Uncensored-Aggres-noThink.sh @@ -9,7 +9,12 @@ MODEL_MM="snapshots/f12a584fecbeb5f20001130d8ecd66c9327ae685/mmproj-Qwen3.6-35B- PORT=8355 -source ../env/llama_env.sh +# Check if llama_env.sh exists, if not run create_new_image.sh +if [ ! -f "./env/llama_env.sh" ]; then + echo "llama_env.sh not found, running create_new_image.sh..." + ./create_new_image.sh +fi +source ./env/llama_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" \ diff --git a/Qwen3.6-35B-A3B-Uncensored-Aggres.sh b/Qwen3.6-35B-A3B-Uncensored-Aggres.sh index 15396d5..f4c6060 100755 --- a/Qwen3.6-35B-A3B-Uncensored-Aggres.sh +++ b/Qwen3.6-35B-A3B-Uncensored-Aggres.sh @@ -9,7 +9,12 @@ MODEL_MM="snapshots/f12a584fecbeb5f20001130d8ecd66c9327ae685/mmproj-Qwen3.6-35B- PORT=8356 -source ../env/llama_env.sh +# Check if llama_env.sh exists, if not run create_new_image.sh +if [ ! -f "./env/llama_env.sh" ]; then + echo "llama_env.sh not found, running create_new_image.sh..." + ./create_new_image.sh +fi +source ./env/llama_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" \ diff --git a/gemma-4-26B-A4B-mxfp4-noThink.sh b/gemma-4-26B-A4B-mxfp4-noThink.sh index a8de5fb..036b595 100755 --- a/gemma-4-26B-A4B-mxfp4-noThink.sh +++ b/gemma-4-26B-A4B-mxfp4-noThink.sh @@ -9,7 +9,12 @@ MODEL_MM="snapshots/3365c68df1a83799b846d05324ebfadbb8cc70b3/mmproj-F16.gguf" PORT=10987 -source ../env/llama_env.sh +# Check if llama_env.sh exists, if not run create_new_image.sh +if [ ! -f "./env/llama_env.sh" ]; then + echo "llama_env.sh not found, running create_new_image.sh..." + ./create_new_image.sh +fi +source ./env/llama_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 \ @@ -29,3 +34,4 @@ docker container create --name $CONT_NAME --network llms -p $PORT:$PORT -v $MODE echo "Done!" echo $CONT_NAME + diff --git a/gemma-4-26B-A4B-mxfp4.sh b/gemma-4-26B-A4B-mxfp4.sh index cc995af..954a229 100755 --- a/gemma-4-26B-A4B-mxfp4.sh +++ b/gemma-4-26B-A4B-mxfp4.sh @@ -9,8 +9,13 @@ MODEL_MM="snapshots/3365c68df1a83799b846d05324ebfadbb8cc70b3/mmproj-F16.gguf" PORT=10987 -source ../env/llama_env.sh +# Check if llama_env.sh exists, if not run create_new_image.sh +if [ ! -f "./env/llama_env.sh" ]; then + echo "llama_env.sh not found, running create_new_image.sh..." + ./create_new_image.sh +fi +source ./env/llama_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" \ diff --git a/glm-5.1-IQ3_KS.sh b/glm-5.1-IQ3_KS.sh index e125235..ffb8ac9 100755 --- a/glm-5.1-IQ3_KS.sh +++ b/glm-5.1-IQ3_KS.sh @@ -9,6 +9,11 @@ MODEL_FOLDER="/sam4t/ENC/LLM/GLM-5.1" 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 diff --git a/qwen3.5-122b-IQ4_KSS.sh b/qwen3.5-122b-IQ4_KSS.sh index ad017dd..5ea63cf 100755 --- a/qwen3.5-122b-IQ4_KSS.sh +++ b/qwen3.5-122b-IQ4_KSS.sh @@ -8,7 +8,12 @@ MODEL_FOLDER="/sam4t/ENC/LLM/Qwen3.5" PORT=10987 -source ./ik_env.sh +# 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 \ diff --git a/qwen3.5-122b-IQ5_KS.sh b/qwen3.5-122b-IQ5_KS.sh index ebac406..b739c33 100755 --- a/qwen3.5-122b-IQ5_KS.sh +++ b/qwen3.5-122b-IQ5_KS.sh @@ -8,7 +8,12 @@ MODEL_FOLDER="/sam4t/ENC/LLM/Qwen3.5" PORT=10987 -source ./ik_env.sh +# 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" \ diff --git a/qwen3.5-397B-A17B-IQ4_KSS.sh b/qwen3.5-397B-A17B-IQ4_KSS.sh index 02deb49..8036375 100755 --- a/qwen3.5-397B-A17B-IQ4_KSS.sh +++ b/qwen3.5-397B-A17B-IQ4_KSS.sh @@ -8,7 +8,12 @@ MODEL_FOLDER="/home/jared/.cache" PORT=10987 -source ./ik_env.sh +# 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" \ diff --git a/qwen3.5-coder-next.sh b/qwen3.5-coder-next.sh index b880937..79b9cc7 100755 --- a/qwen3.5-coder-next.sh +++ b/qwen3.5-coder-next.sh @@ -8,7 +8,12 @@ MODEL_FOLDER="/sam4t/ENC/LLM/Qwen3-Coder-Next" PORT=10987 -source ./ik_env.sh +# 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" \