From ae2d505a2fa758bf8a452e0bc1ffc620b6608d63 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Thu, 24 Aug 2023 14:55:23 +0100 Subject: [PATCH] use std mutex instead of boost mutex --- include/turbopilot/model.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/turbopilot/model.hpp b/include/turbopilot/model.hpp index 3fcf28a..1dfe160 100644 --- a/include/turbopilot/model.hpp +++ b/include/turbopilot/model.hpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include typedef void (*offload_func_t)(struct ggml_tensor * tensor); void ggml_nop(struct ggml_tensor * tensor); @@ -64,7 +64,7 @@ protected: virtual std::stringstream predict_impl(std::string prompt, int max_length, bool include_prompt) = 0; ModelConfig config; std::mt19937 &rng; - boost::mutex model_lock; + std::mutex model_lock; }; #endif //__TURBOPILOT_MODEL_H \ No newline at end of file