iandennismiller commited on
Commit
41ab8d2
1 Parent(s): 10e91e5

include speculative scripts but do not install

Browse files
bin/speculative-html.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ input="$(< /dev/stdin)"
4
+ template="$(< $HOME/Work/ai-strategy/template-website.txt)"
5
+
6
+ llama-speculative \
7
+ --model $HOME/.ai/models/llama/idm/Nous-Hermes-13B-GGUF/nous-hermes-llama2-13b.gguf.q6_K.bin \
8
+ --model-draft $HOME/.ai/models/llama/TheBloke/orca_mini_v3_7B-GGUF/orca_mini_v3_7b.Q4_K_M.gguf \
9
+ --grammar-file ../../grammars/html5-basic.gbnf \
10
+ --escape \
11
+ --n-gpu-layers 1 \
12
+ --threads 4 \
13
+ --n-predict 512 \
14
+ --ctx-size 4096 \
15
+ --draft 16 \
16
+ --temp -1 \
17
+ --prompt "${input}\n\n${template}\n\n"
bin/speculative-news.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ input="$(< /dev/stdin)"
4
+ template="$(< $HOME/Work/ai-strategy/template-summary.txt)"
5
+
6
+ llama-speculative \
7
+ --model $HOME/.ai/models/llama/idm/Nous-Hermes-13B-GGUF/nous-hermes-llama2-13b.gguf.q6_K.bin \
8
+ --model-draft $HOME/.ai/models/llama/TheBloke/orca_mini_v3_7B-GGUF/orca_mini_v3_7b.Q4_K_M.gguf \
9
+ --grammar-file ../../grammars/json_arr.gbnf \
10
+ --escape \
11
+ --n-gpu-layers 1 \
12
+ --threads 4 \
13
+ --n-predict 512 \
14
+ --ctx-size 4096 \
15
+ --draft 16 \
16
+ --temp -1 \
17
+ --prompt "${input}\n\n${template}\n\n"
bin/speculative-story.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ input="$(< /dev/stdin)"
4
+ template="$(< $HOME/Work/ai-strategy/template-story.txt)"
5
+ # template="$(< $HOME/Work/ai-strategy/template-summary.txt)"
6
+
7
+ BIG_MODEL=$HOME/.ai/models/llama/idm/Nous-Hermes-13B-GGUF/nous-hermes-llama2-13b.gguf.q6_K.bin
8
+ SMALL_MODEL=$HOME/.ai/models/llama/TheBloke/orca_mini_v3_7B-GGUF/orca_mini_v3_7b.Q4_K_M.gguf
9
+
10
+ llama-speculative \
11
+ --model "$BIG_MODEL" \
12
+ --model-draft "$SMALL_MODEL" \
13
+ --grammar-file ../../grammars/json_arr.gbnf \
14
+ --escape \
15
+ --n-gpu-layers 1 \
16
+ --threads 6 \
17
+ --n-predict 2048 \
18
+ --ctx-size 4096 \
19
+ --draft 16 \
20
+ --temp -1 \
21
+ --prompt "${input}\n\n${template}\n\n"