mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-08 08:09:06 +00:00
updated android termux script (+1 squashed commits)
Squashed commits: [1977086c] updated android termux script (+1 squashed commits) Squashed commits: [b7f2b92f] updated android termux script
This commit is contained in:
parent
5a921a40f9
commit
c6f76034d7
1 changed files with 11 additions and 6 deletions
|
@ -19,10 +19,11 @@ elif [ -t 0 ]; then
|
||||||
# Running interactively
|
# Running interactively
|
||||||
echo "[1] - Proceed to install and launch with default model Gemma3-1B"
|
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 "[2] - Proceed to install without a model, you can download one later."
|
||||||
echo "[3] - Select existing model to load (Requires already installed)"
|
echo "[3] - Download GGUF model from web URL (Requires already installed)"
|
||||||
echo "[4] - Exit script"
|
echo "[4] - Load existing GGUF model from disk (Requires already installed)"
|
||||||
|
echo "[5] - Exit script"
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
read -p "Enter your choice [1-4]: " choice
|
read -p "Enter your choice [1-5]: " choice
|
||||||
else
|
else
|
||||||
# Non-interactive, default to choice 1
|
# 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."
|
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
|
fi
|
||||||
|
|
||||||
# handle user choice
|
# handle user choice
|
||||||
if [ "$choice" = "4" ]; then
|
if [ "$choice" = "5" ]; then
|
||||||
echo "Exiting script. Goodbye!"
|
echo "Exiting script. Goodbye!"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "$choice" = "3" ]; then
|
elif [ "$choice" = "4" ]; then
|
||||||
echo "[*] Searching for .gguf model files in $SCRIPT_DIR..."
|
echo "[*] Searching for .gguf model files in $SCRIPT_DIR..."
|
||||||
MODEL_FILES=$(find "$SCRIPT_DIR" -type f -maxdepth 1 -name "*.gguf" 2>/dev/null)
|
MODEL_FILES=$(find "$SCRIPT_DIR" -type f -maxdepth 1 -name "*.gguf" 2>/dev/null)
|
||||||
if [ -z "$MODEL_FILES" ]; then
|
if [ -z "$MODEL_FILES" ]; then
|
||||||
|
@ -65,7 +66,11 @@ elif [ "$choice" = "3" ]; then
|
||||||
echo "Now launching with model $SELECTED_MODEL"
|
echo "Now launching with model $SELECTED_MODEL"
|
||||||
python koboldcpp.py --model $SELECTED_MODEL
|
python koboldcpp.py --model $SELECTED_MODEL
|
||||||
exit 0
|
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
|
elif [ "$choice" = "2" ]; then
|
||||||
echo "[*] Install without model download..."
|
echo "[*] Install without model download..."
|
||||||
INSTALL_MODEL=false
|
INSTALL_MODEL=false
|
||||||
|
|
Loading…
Add table
Reference in a new issue