-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support INFERENCE_NUM_THREADS options in LLAMA_CPP #898
Conversation
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
num_threads = it->second.as<int>(); | ||
if (num_threads < 0) { | ||
OPENVINO_THROW("INFERENCE_NUM_THREADS cannot be negative"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OPENVINO_ASSERT(num_threads > 0, "INFERENCE_NUM_THREADS should be positive")
if (ov::inference_num_threads == map_entry.first) { | ||
int num_threads = map_entry.second.as<int>(); | ||
if (num_threads < 0) { | ||
OPENVINO_THROW("INFERENCE_NUM_THREADS cannot be negative"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use OPENVINO_ASSERT
@@ -0,0 +1,8 @@ | |||
project(llama_cpp_test_common) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, add copyright
Both plugin and model settings should be working now. Removed the
openvino::funcSharedTests
from the test build since the majority of the shared tests are irrelevant or incompatible with theLLAMA_CPP
plugin flow right now.