File size: 1,200 Bytes
48b1acd
 
0c7ad1d
 
3a2b4e0
 
 
 
0c7ad1d
4056112
 
0c7ad1d
d91e7cf
d6ab723
538ca27
5796f82
2b59313
a7e8a57
2292bb2
6a8d17c
e921aad
0c7ad1d
3a2b4e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0c7ad1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

echo "installing"

mkdir -p \
    ~/.local/bin \
    ~/.local/share/llama/characters \
    ~/.local/share/llama/prompts

install -C -v ./bin/llama.sh ~/.local/bin
install -C -v ./bin/llama-assistant.sh ~/.local/bin
install -C -v ./bin/llama-hf-to-q6_k.sh ~/.local/bin
install -C -v ./bin/llama-update.sh ~/.local/bin
install -C -v ./bin/llama-finetune.sh ~/.local/bin
install -C -v ./bin/llama-menu.sh ~/.local/bin
install -C -v ./bin/llama-server.sh ~/.local/bin
install -C -v ./bin/llama-koboldcpp.sh ~/.local/bin
install -C -v ./bin/llama-chat-ui.sh ~/.local/bin
install -C -v ./bin/llava-describe.sh ~/.local/bin
install -C -v ./bin/llama-prompt.sh ~/.local/bin
install -C -v ./bin/llama-clear-cache.sh ~/.local/bin

if [ -n "$(ls ./share/characters)" ]; then
    install -C -v ./share/characters/* ~/.local/share/llama/characters
fi

if [ -n "$(ls ./share/prompts)" ]; then
    install -C -v ./share/prompts/* ~/.local/share/llama/prompts
fi

if [ -n "$(ls ./local/characters)" ]; then
    install -C -v ./local/characters/* ~/.local/share/llama/characters
fi

if [ -n "$(ls ./local/prompts)" ]; then
    install -C -v ./local/prompts/* ~/.local/share/llama/prompts
fi

echo "done"