Repository navigation
Expand file tree
/
Copy pathcl-llama-cpp.asd
More file actions
288 lines (265 loc) · 9.72 KB
/
Copy pathcl-llama-cpp.asd
File metadata and controls
288 lines (265 loc) · 9.72 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
(defsystem "cl-llama-cpp"
:version "0.2.0"
:author "Jonathan Hustad"
:license "MIT"
:description "CFFI bindings to llama.cpp"
:depends-on ("cffi" "cffi-libffi" "trivial-garbage" "form-fiddle")
:serial t
:components ((:module "src"
:serial t
:components
((:file "packages")
(:file "library")
(:file "bindings")
(:file "conditions")
(:file "handles")
(:file "binding-deps")
(:file "introspection")
(:file "tokenization")
(:file "resource-planning")
(:file "lifecycle")
(:file "chat")
(:file "grammar")
(:file "batch")
(:file "generation")
(:file "kv-cache")
(:file "session")
(:file "chat-session")
(:file "lora")
(:file "gguf")))))
(defsystem "cl-llama-cpp/examples"
:description "Example programs for cl-llama-cpp"
:depends-on ("cl-llama-cpp" "cl-llama-cpp/common/json-schema")
:components ((:module "examples"
:components
((:file "simple-chat")
(:file "incremental-chat")
(:file "backend-lifecycle")
(:file "benchmark-hotpaths")
(:file "context-fork")
(:file "introspection")
(:file "kv-cache")
(:file "lora")
(:file "parallel")
(:file "parallel-threads")
(:file "perf-and-logging")
(:file "resource-planning")
(:file "sampler-comparison")
(:file "sampler-showcase")
(:file "tool-calling")
(:module "common"
:components
((:file "json-schema")))))))
(defsystem "cl-llama-cpp/generate"
:description "Binding generator for cl-llama-cpp (developers only)"
:depends-on ("claw" "cl-llama-cpp")
:components ((:module "generate"
:components
((:file "generate")))))
(defsystem "cl-llama-cpp/generate/tests"
:description "Tests for the binding generator (developers only)"
:depends-on ("cl-llama-cpp/generate" "rove")
:components ((:module "tests"
:components
((:file "generate"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/tests"
:description "Tests for cl-llama-cpp"
:depends-on ("cl-llama-cpp" "rove")
:components ((:module "tests"
:components
((:file "smoke")
(:file "integration"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp")
:components ((:module "common"
:components
((:file "common"))))
:description "Optional cl-llama-cpp extensions mirroring llama.cpp's common/ layer"
:in-order-to ((test-op (test-op "cl-llama-cpp/common/tests"))))
(defsystem "cl-llama-cpp/common/shim"
:description "Shared C++ shim build and load infrastructure for cl-llama-cpp/common"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp")
:serial t
:components ((:module "common/shim"
:serial t
:components
((:file "packages")
(:file "library")))))
(defsystem "cl-llama-cpp/common/json-schema"
:description "JSON Schema to GBNF grammar conversion for cl-llama-cpp"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim" "yason")
:serial t
:components ((:module "common/json-schema"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "json-schema")))))
(defsystem "cl-llama-cpp/common/json-schema/tests"
:description "Tests for cl-llama-cpp/common/json-schema"
:depends-on ("cl-llama-cpp/common/json-schema" "rove")
:components ((:module "tests"
:components
((:file "json-schema"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/json-partial"
:description "Streaming JSON healer — parse incomplete JSON mid-generation"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim" "yason")
:serial t
:components ((:module "common/json-partial"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "json-partial")))))
(defsystem "cl-llama-cpp/common/json-partial/tests"
:description "Tests for cl-llama-cpp/common/json-partial"
:depends-on ("cl-llama-cpp/common/json-partial" "rove")
:components ((:module "tests"
:components
((:file "json-partial"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/speculative"
:description "Speculative decoding for cl-llama-cpp"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim" "trivial-garbage")
:serial t
:components ((:module "common/speculative"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "speculative")))))
(defsystem "cl-llama-cpp/common/speculative/tests"
:description "Tests for cl-llama-cpp/common/speculative"
:depends-on ("cl-llama-cpp/common/speculative" "rove")
:components ((:module "tests"
:components
((:file "speculative"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/reasoning-budget"
:description "Reasoning token budget limiter for cl-llama-cpp"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim")
:serial t
:components ((:module "common/reasoning-budget"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "reasoning-budget")))))
(defsystem "cl-llama-cpp/common/reasoning-budget/tests"
:description "Tests for cl-llama-cpp/common/reasoning-budget"
:depends-on ("cl-llama-cpp/common/reasoning-budget" "rove")
:components ((:module "tests"
:components
((:file "reasoning-budget"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/ngram-map"
:description "N-gram speculative token drafting for cl-llama-cpp"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim" "trivial-garbage")
:serial t
:components ((:module "common/ngram-map"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "ngram-map")))))
(defsystem "cl-llama-cpp/common/ngram-map/tests"
:description "Tests for cl-llama-cpp/common/ngram-map"
:depends-on ("cl-llama-cpp/common/ngram-map" "rove")
:components ((:module "tests"
:components
((:file "ngram-map"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/chat"
:description "Chat template rendering and tool call parsing for cl-llama-cpp"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim" "yason" "trivial-garbage")
:serial t
:components ((:module "common/chat"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "chat")))))
(defsystem "cl-llama-cpp/common/chat/tests"
:description "Tests for cl-llama-cpp/common/chat"
:depends-on ("cl-llama-cpp/common/chat" "rove")
:components ((:module "tests"
:components
((:file "chat"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/imatrix-loader"
:description "Importance matrix loading for quantization workflows"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim")
:serial t
:components ((:module "common/imatrix-loader"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "imatrix-loader")))))
(defsystem "cl-llama-cpp/common/imatrix-loader/tests"
:description "Tests for cl-llama-cpp/common/imatrix-loader"
:depends-on ("cl-llama-cpp/common/imatrix-loader" "rove")
:components ((:module "tests"
:components
((:file "imatrix-loader"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/fit"
:description "Automatic GPU memory fitting for cl-llama-cpp"
:version "0.1.0"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common/shim")
:serial t
:components ((:module "common/fit"
:serial t
:components
((:file "packages")
(:file "bindings")
(:file "fit")))))
(defsystem "cl-llama-cpp/common/fit/tests"
:description "Tests for cl-llama-cpp/common/fit"
:depends-on ("cl-llama-cpp/common/fit" "rove")
:components ((:module "tests"
:components
((:file "fit"))))
:perform (test-op (op c) (symbol-call :rove :run c)))
(defsystem "cl-llama-cpp/common/tests"
:author "Jonathan Hustad"
:license "MIT"
:depends-on ("cl-llama-cpp/common"
"rove")
:components ((:module "tests"
:components
((:file "common"))))
:description "Test system for cl-llama-cpp/common"
:perform (test-op (op c) (symbol-call :rove :run c)))