From c6f76034d7a27db871c3a65df240d3505f7c88f0 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 15 Aug 2025 00:03:32 +0800 Subject: [PATCH] updated android termux script (+1 squashed commits) Squashed commits: [1977086c] updated android termux script (+1 squashed commits) Squashed commits: [b7f2b92f] updated android termux script --- android_install.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/android_install.sh b/android_install.sh index 73511ca45..ce8721d87 100644 --- a/android_install.sh +++ b/android_install.sh @@ -19,10 +19,11 @@ elif [ -t 0 ]; then # Running interactively echo "[1] - Proceed to install and launch with default model Gemma3-1B" echo "[2] - Proceed to install without a model, you can download one later." - echo "[3] - Select existing model to load (Requires already installed)" - echo "[4] - Exit script" + echo "[3] - Download GGUF model from web URL (Requires already installed)" + echo "[4] - Load existing GGUF model from disk (Requires already installed)" + echo "[5] - Exit script" echo "--------------------------------------------" - read -p "Enter your choice [1-4]: " choice + read -p "Enter your choice [1-5]: " choice else # Non-interactive, default to choice 1 echo "Defaulting to normal install and model download. Run script interactively for other options. Install will start in 3 seconds." @@ -38,10 +39,10 @@ else fi # handle user choice -if [ "$choice" = "4" ]; then +if [ "$choice" = "5" ]; then echo "Exiting script. Goodbye!" exit 0 -elif [ "$choice" = "3" ]; then +elif [ "$choice" = "4" ]; then echo "[*] Searching for .gguf model files in $SCRIPT_DIR..." MODEL_FILES=$(find "$SCRIPT_DIR" -type f -maxdepth 1 -name "*.gguf" 2>/dev/null) if [ -z "$MODEL_FILES" ]; then @@ -65,7 +66,11 @@ elif [ "$choice" = "3" ]; then echo "Now launching with model $SELECTED_MODEL" python koboldcpp.py --model $SELECTED_MODEL exit 0 - +elif [ "$choice" = "3" ]; then + read -r -p "Please input FULL URL of model you wish to download and run: " SELECTED_MODEL + echo "Starting download of model $SELECTED_MODEL" + python koboldcpp.py --model $SELECTED_MODEL + exit 0 elif [ "$choice" = "2" ]; then echo "[*] Install without model download..." INSTALL_MODEL=false