Compile new cmap-example

This commit is contained in:
pudepiedj 2023-10-09 22:49:57 +01:00
parent bddd099edf
commit 301f13cf9b
2 changed files with 2 additions and 1 deletions

View file

@ -30,6 +30,7 @@ else()
add_subdirectory(embd-input) add_subdirectory(embd-input)
add_subdirectory(llama-bench) add_subdirectory(llama-bench)
add_subdirectory(beam-search) add_subdirectory(beam-search)
add_subdirectory(cmap-example)
if (LLAMA_METAL) if (LLAMA_METAL)
add_subdirectory(metal) add_subdirectory(metal)
endif() endif()

View file

@ -36,7 +36,7 @@ std::unordered_map<std::string, std::vector<std::string>> extractParameters() {
std::unordered_map<std::string, std::vector<std::string>> parameters; std::unordered_map<std::string, std::vector<std::string>> parameters;
parameters["logit_bias"] = {"logit_bias", "0", "//", "way", "to", "alter", "prob", "of", "word", "being", "chosen"}; parameters["logit_bias"] = {"logit_bias", "0", "//", "way", "to", "alter", "prob", "of", "word", "being", "chosen"};
bool inside = false; bool inside = false;
for (const std::string& line : lines) { for (const std::string& line : lines) {
std::vector<std::string> nonWhitespaceElements = splitString(line, " "); std::vector<std::string> nonWhitespaceElements = splitString(line, " ");
std::cout << "nwe = \033[33m"; std::cout << "nwe = \033[33m";