fixed: naming of binary

This commit is contained in:
daboe01 2023-06-14 12:42:12 +02:00
parent 1e9980e20a
commit addd592828
3 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View file

@ -32,7 +32,7 @@ models/*
/result /result
/perplexity /perplexity
/embedding /embedding
/finetune /train-text-from-scratch
/benchmark-matmult /benchmark-matmult
/vdot /vdot
/Pipfile /Pipfile

View file

@ -1,5 +1,5 @@
# Define the default target now so that it is always the first target # Define the default target now so that it is always the first target
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot finetune BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch
ifdef LLAMA_BUILD_SERVER ifdef LLAMA_BUILD_SERVER
BUILD_TARGETS += server BUILD_TARGETS += server
@ -289,7 +289,7 @@ save-load-state: examples/save-load-state/save-load-state.cpp build-info.h ggml.
server: examples/server/server.cpp examples/server/httplib.h examples/server/json.hpp build-info.h ggml.o llama.o common.o $(OBJS) server: examples/server/server.cpp examples/server/httplib.h examples/server/json.hpp build-info.h ggml.o llama.o common.o $(OBJS)
$(CXX) $(CXXFLAGS) -Iexamples/server $(filter-out %.h,$(filter-out %.hpp,$^)) -o $@ $(LDFLAGS) $(CXX) $(CXXFLAGS) -Iexamples/server $(filter-out %.h,$(filter-out %.hpp,$^)) -o $@ $(LDFLAGS)
finetune: examples/train-text-from-scratch/train-text-from-scratch.cpp build-info.h ggml.o llama.o $(OBJS) train-text-from-scratch: examples/train-text-from-scratch/train-text-from-scratch.cpp build-info.h ggml.o llama.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS) $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
build-info.h: $(wildcard .git/index) scripts/build-info.sh build-info.h: $(wildcard .git/index) scripts/build-info.sh

View file

@ -7,7 +7,7 @@ Basic usage instructions:
wget https://github.com/brunoklein99/deep-learning-notes/blob/master/shakespeare.txt wget https://github.com/brunoklein99/deep-learning-notes/blob/master/shakespeare.txt
# train # train
../../finetune \ ../../train-text-from-scratch \
--vocab-model ../models/ggml-vocab.bin \ --vocab-model ../models/ggml-vocab.bin \
--ctx 64 --embd 256 --head 8 --layer 16 \ --ctx 64 --embd 256 --head 8 --layer 16 \
--checkpoint-in chk-shakespeare-256x16.bin \ --checkpoint-in chk-shakespeare-256x16.bin \