8000 zig : fix build by introducing train.cpp (#3539) · CodeLinaro/llama.cpp@7d8b249 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d8b249

Browse files
authored
zig : fix build by introducing train.cpp (ggml-org#3539)
1 parent b0ec521 commit 7d8b249

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ pub fn build(b: *std.build.Builder) !void {
111111
const common = make.obj("common", "common/common.cpp");
112112
const console = make.obj("common", "common/console.cpp");
113113
const grammar_parser = make.obj("grammar-parser", "common/grammar-parser.cpp");
114+
const train = make.obj("train", "common/train.cpp");
114115

115116
_ = make.exe("main", "examples/main/main.cpp", &.{ ggml, ggml_alloc, llama, common, console, grammar_parser });
116117
_ = make.exe("quantize", "examples/quantize/quantize.cpp", &.{ ggml, ggml_alloc, llama, common });
117118
_ = make.exe("perplexity", "examples/perplexity/perplexity.cpp", &.{ ggml, ggml_alloc, llama, common });
118119
_ = make.exe("embedding", "examples/embedding/embedding.cpp", &.{ ggml, ggml_alloc, llama, common });
119-
_ = make.exe("train-text-from-scratch", "examples/train-text-from-scratch/train-text-from-scratch.cpp", &.{ ggml, ggml_alloc, llama, common });
120+
_ = make.exe("finetune", "examples/finetune/finetune.cpp", &.{ ggml, ggml_alloc, llama, common, train });
121+
_ = make.exe("train-text-from-scratch", "examples/train-text-from-scratch/train-text-from-scratch.cpp", &.{ ggml, ggml_alloc, llama, common, train });
120122

121123
const server = make.exe("server", "examples/server/server.cpp", &.{ ggml, ggml_alloc, llama, common, grammar_parser });
122124
if (server.target.isWindows()) {

0 commit comments

Comments
 (0)
0