-
Notifications
You must be signed in to change notification settings - Fork 5
/
llama-2-7b.ggmlv3.q4_0.json
102 lines (102 loc) · 3.22 KB
/
llama-2-7b.ggmlv3.q4_0.json
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"run": [{
"method": "fs.download",
"params": {
"url": "https://huggingface.co/TheBloke/Llama-2-7B-GGML/resolve/main/llama-2-7b.ggmlv3.q4_0.bin",
"path": "../../models/llama-2/llama-2-7b.ggmlv3.q4_0.bin"
}
}, {
"method": "fs.write",
"params": {
"path": "../../example/llama-2-7b.ggmlv3.q4_0.json",
"json2": {
"run": [{
"method": "fs.write",
"params": {
"path": "prompt.txt",
"text": [
"### Instruction",
"",
"Give me three movie characters and why you like them. Be brief.",
"",
"### Response",
"",
""
],
"join": "{{os.EOL}}"
}
}, {
"method": "shell.start",
"params": {
"path": "https://github.com/cocktailpeanut/llamacpp.pinokio.git/bin/llamacpp/build/bin"
}
}, {
"method": "shell.enter",
"params": {
"message": {
"_": ["{{{ os.platform() === 'win32' ? 'main' : './main'}}}"],
"-f": "{{{path.resolve(cwd, 'prompt.txt')}}}",
"m": "../../../../models/llama-2/llama-2-7b.ggmlv3.q4_0.bin",
"n": 256,
"{{os.platform() === 'darwin' && os.arch() === 'arm64' ? '-ngl' : null}}": 1
},
"on": [{
"event": "/.*### Response[\r\n]*(.+?)[\r\n]*###/gs",
"return": "{{{event.matches[0][1]}}}"
}, {
"event": "/.*### Response[\r\n]*(.+?)\\[end of text\\]/gs",
"return": "{{{event.matches[0][1]}}}"
}, {
"event": "/.*### Response[\r\n]*(.+?)[\r\n]*llama_print_timings:/gs",
"return": "{{{event.matches[0][1]}}}"
}]
}
}]
}
}
}, {
"method": "fs.write",
"params": {
"path": "../../example/llama-2-b.ggmlv3.q4_0.json",
"json2": {
"run": [
{
"uri": "https://github.com/cocktailpeanut/llamacpp.pinokio.git/index.js",
"method": "query",
"params": {
"prompt": [
"### Instruction",
"",
"Give me three movie characters and why you like them. Be brief.",
"",
"### Response",
"",
""
],
"on": [{
"event": "/.*### Response[\r\n]*(.+?)[\r\n]*###/gs",
"return": "{{event.matches[0][1]}}"
}, {
"event": "/.*### Response[\r\n]*(.+?)\\[end of text\\]/gs",
"return": "{{event.matches[0][1]}}"
}, {
"event": "/.*### Response[\r\n]*(.+?)[\r\n]*llama_print_timings:/gs",
"return": "{{event.matches[0][1]}}"
}],
"model": "llama-2/llama-2-7b.ggmlv3.q4_0.bin",
"options": {
"-n": 256
}
}
}
]
}
}
}, {
"method": "notify",
"params": {
"html": "<p><i class='fa-regular fa-hand-point-right'></i> Click to try the demo!</p>",
"href": "../../example/llama-2-7b.ggmlv3.q4_0.json"
}
}]
}