Skip to content

Commit b03a984

Browse files
Disable mmap on s390x in llama-quant too
1 parent 46b9ec8 commit b03a984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-quant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static void llama_model_quantize_impl(const std::string & fname_inp, const std::
514514

515515
// mmap consistently increases speed Linux, and also increases speed on Windows with
516516
// hot cache. It may cause a slowdown on macOS, possibly related to free memory.
517-
#if defined(__linux__) || defined(_WIN32)
517+
#if (defined(__linux__) && !defined(__s390x__)) || defined(_WIN32)
518518
constexpr bool use_mmap = true;
519519
#else
520520
constexpr bool use_mmap = false;

0 commit comments

Comments
 (0)