Skip to content

Commit d97b9ad

Browse files
authored
correct working directory for all builds
..and change cache file name as per suggestion.
1 parent 0fe7183 commit d97b9ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ llama_test(test-tokenizer-0 NAME test-tokenizer-0-refact ARGS ${CMAKE
9999
llama_test(test-tokenizer-0 NAME test-tokenizer-0-starcoder ARGS ${CMAKE_CURRENT_SOURCE_DIR}/../models/ggml-vocab-starcoder.gguf)
100100

101101
if (LLAMA_CURL)
102-
llama_build_and_test(test-tokenizers-remote.cpp WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
102+
llama_build_and_test(test-tokenizers-remote.cpp WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
103103
endif()
104104

105105
if (LLAMA_LLGUIDANCE)

tests/test-tokenizers-remote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static json get_hf_repo_dir(const std::string & hf_repo_with_branch, bool recurs
4747
}
4848

4949
// we use "=" to avoid clashing with other component, while still being allowed on windows
50-
std::string cached_response_fname = "tree=" + hf_repo + "/" + repo_path + "=" + branch + ".json";
50+
std::string cached_response_fname = "test_vocab=" + hf_repo + "/" + repo_path + "=" + branch + ".json";
5151
string_replace_all(cached_response_fname, "/", "_");
5252
std::string cached_response_path = fs_get_cache_file(cached_response_fname);
5353

0 commit comments

Comments
 (0)