File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ gpt2_124M.bin: llm.c
4343 if [ ! -f $@ ]; then ./llm.c/dev/download_starter_pack.sh ; \
4444 ln -s ./llm.c/gpt2_124M.bin ; \
4545 ln -s ./llm.c/gpt2_124M_debug_state.bin ; \
46- fi
46+ ln -s ./llm.c/gpt2_tokenizer.bin ; \
47+ fi
4748
4849build/test_gpt2 : llm.c build/unittest_kernels.o gpt2_124M.bin
4950 mkdir -p build
@@ -62,7 +63,8 @@ build/test_gpt2: llm.c build/unittest_kernels.o gpt2_124M.bin
6263 sed -i -e ' s/void gelu_backward(/void GELU_BACKWARD_CPU(/g' llm.c/train_gpt2.c
6364 sed -i -e ' s/void residual_backward(/void RESIDUAL_BACKWARD_CPU(/g' llm.c/train_gpt2.c
6465 sed -i -e ' s/void crossentropy_softmax_backward(/void CROSSENTROPY_SOFTMAX_BACKWARD_CPU(/g' llm.c/train_gpt2.c
65- grep -q " ^#include \" unittest_kernels.h\" " llm.c/train_gpt2.c || sed -i ' 1i#include \"unittest_kernels.h\"' llm.c/train_gpt2.c
66+ grep -q " ^#include \" unittest_kernels.h\" " llm.c/train_gpt2.c || \
67+ printf ' 1i\n#include "unittest_kernels.h"\n.\nw\nq\n' | ed -s llm.c/train_gpt2.c
6668 $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ llm.c/test_gpt2.c build/unittest_kernels.o
6769
6870build/train_gpt2 : llm.c build/unittest_kernels.o gpt2_124M.bin
You can’t perform that action at this time.
0 commit comments