From 8fd8599f613115279c6997d04b5636702c6834da Mon Sep 17 00:00:00 2001 From: xaedes Date: Tue, 30 May 2023 17:07:03 +0200 Subject: [PATCH] rename baby-llama-text to train-text-from-scratch --- examples/CMakeLists.txt | 1 + examples/baby-llama/CMakeLists.txt | 4 ---- examples/train-text-from-scratch/CMakeLists.txt | 4 ++++ .../train-text-from-scratch.cpp} | 0 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 examples/train-text-from-scratch/CMakeLists.txt rename examples/{baby-llama/baby-llama-text.cpp => train-text-from-scratch/train-text-from-scratch.cpp} (100%) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e4ce5aca7..e8eab351d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -37,6 +37,7 @@ else() add_subdirectory(save-load-state) add_subdirectory(benchmark) add_subdirectory(baby-llama) + add_subdirectory(train-text-from-scratch) if(LLAMA_BUILD_SERVER) add_subdirectory(server) endif() diff --git a/examples/baby-llama/CMakeLists.txt b/examples/baby-llama/CMakeLists.txt index c89dc792b..d2ce36367 100644 --- a/examples/baby-llama/CMakeLists.txt +++ b/examples/baby-llama/CMakeLists.txt @@ -2,7 +2,3 @@ set(TARGET baby-llama) add_executable(${TARGET} baby-llama.cpp) target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) target_compile_features(${TARGET} PRIVATE cxx_std_11) - -add_executable(${TARGET}-text baby-llama-text.cpp) -target_link_libraries(${TARGET}-text PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) -target_compile_features(${TARGET}-text PRIVATE cxx_std_11) diff --git a/examples/train-text-from-scratch/CMakeLists.txt b/examples/train-text-from-scratch/CMakeLists.txt new file mode 100644 index 000000000..1a44c4961 --- /dev/null +++ b/examples/train-text-from-scratch/CMakeLists.txt @@ -0,0 +1,4 @@ +set(TARGET train-text-from-scratch) +add_executable(${TARGET} train-text-from-scratch.cpp) +target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) +target_compile_features(${TARGET} PRIVATE cxx_std_11) diff --git a/examples/baby-llama/baby-llama-text.cpp b/examples/train-text-from-scratch/train-text-from-scratch.cpp similarity index 100% rename from examples/baby-llama/baby-llama-text.cpp rename to examples/train-text-from-scratch/train-text-from-scratch.cpp