iandennismiller
commited on
Commit
•
4056112
1
Parent(s):
d443dcd
new assistant script is just a second profile
Browse files- bin/llama-assistant.sh +25 -0
- bin/llama-update.sh +3 -0
- install.sh +2 -1
bin/llama-assistant.sh
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
function llama_init_environment {
|
4 |
+
# if conf does not exist, create it
|
5 |
+
if [ ! -f "$HOME/.config/llama/llama-assistant.conf" ]; then
|
6 |
+
mkdir -p "$HOME/.config/llama"
|
7 |
+
cat <<EOF > "$HOME/.config/llama/llama-assistant.conf"
|
8 |
+
LLAMA_MODEL_NAME=teknium/OpenHermes-2.5-Mistral-7B/openhermes-2.5-mistral-7b-f16.gguf
|
9 |
+
LLAMA_TEMPLATE=chatml
|
10 |
+
LLAMA_MODELS_PATH=$HOME/.ai/models/llama
|
11 |
+
LLAMA_PROMPT_PATH=$HOME/.local/share/llama/prompts
|
12 |
+
LLAMA_CACHE_PATH=$HOME/.cache/llama
|
13 |
+
LLAMA_CONTEXT_SIZE=4096
|
14 |
+
LLAMA_TEMPERATURE=1.6
|
15 |
+
LLAMA_TOP_P=1.0
|
16 |
+
LLAMA_MIN_P=0.1
|
17 |
+
LLAMA_TOP_K=0
|
18 |
+
LLAMA_REPETITION_PENALTY=1.15
|
19 |
+
EOF
|
20 |
+
fi
|
21 |
+
|
22 |
+
source $HOME/.config/llama/llama-assistant.conf
|
23 |
+
}
|
24 |
+
|
25 |
+
llama.sh $LLAMA_MODEL_NAME $LLAMA_TEMPLATE $LLAMA_CONTEXT_SIZE $LLAMA_TEMPERATURE
|
bin/llama-update.sh
CHANGED
@@ -48,3 +48,6 @@ fi
|
|
48 |
cd "$KOBOLDCPP_GIT" || exit
|
49 |
make clean
|
50 |
make LLAMA_METAL=1 # LLAMA_CLBLAST=1
|
|
|
|
|
|
|
|
48 |
cd "$KOBOLDCPP_GIT" || exit
|
49 |
make clean
|
50 |
make LLAMA_METAL=1 # LLAMA_CLBLAST=1
|
51 |
+
|
52 |
+
echo "Clear cache"
|
53 |
+
find ~/.cache/llama -name "*.cache" -delete
|
install.sh
CHANGED
@@ -7,10 +7,11 @@ mkdir -p \
|
|
7 |
~/.local/share/llama/characters \
|
8 |
~/.local/share/llama/prompts
|
9 |
|
|
|
|
|
10 |
install -C -v ./bin/llama-hf-to-q6_k.sh ~/.local/bin
|
11 |
install -C -v ./bin/llama-update.sh ~/.local/bin
|
12 |
install -C -v ./bin/llama-finetune.sh ~/.local/bin
|
13 |
-
install -C -v ./bin/llama.sh ~/.local/bin
|
14 |
install -C -v ./bin/llama-menu.sh ~/.local/bin
|
15 |
install -C -v ./bin/llama-server.sh ~/.local/bin
|
16 |
install -C -v ./bin/llama-koboldcpp.sh ~/.local/bin
|
|
|
7 |
~/.local/share/llama/characters \
|
8 |
~/.local/share/llama/prompts
|
9 |
|
10 |
+
install -C -v ./bin/llama.sh ~/.local/bin
|
11 |
+
install -C -v ./bin/llama-assistant.sh ~/.local/bin
|
12 |
install -C -v ./bin/llama-hf-to-q6_k.sh ~/.local/bin
|
13 |
install -C -v ./bin/llama-update.sh ~/.local/bin
|
14 |
install -C -v ./bin/llama-finetune.sh ~/.local/bin
|
|
|
15 |
install -C -v ./bin/llama-menu.sh ~/.local/bin
|
16 |
install -C -v ./bin/llama-server.sh ~/.local/bin
|
17 |
install -C -v ./bin/llama-koboldcpp.sh ~/.local/bin
|