Skip to content
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

Callback with reload2 #2710

Merged
merged 5 commits into from
Sep 27, 2024
Merged

Callback with reload2 #2710

merged 5 commits into from
Sep 27, 2024

Conversation

rasapala
Copy link
Collaborator

@rasapala rasapala commented Sep 24, 2024

JIRA CVS-151523
Current Async implementation does not handle online modifications - we need to move unlaod guard into callback in model instance async implementation.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Makefile Outdated
@@ -672,7 +672,7 @@ cpu_extension:
run_unit_tests:
./prepare_llm_models.sh ${TEST_LLM_PATH}
./prepare_gpu_models.sh ${GPU_MODEL_PATH}
docker run -v $(shell realpath ./rununittests.sh):/ovms/./rununittests.sh -v $(shell realpath ${GPU_MODEL_PATH}):/ovms/src/test/face_detection_adas:ro -v $(shell realpath ${TEST_LLM_PATH}):/ovms/src/test/llm_testing:ro -e https_proxy=${https_proxy} -e RUN_TESTS=1 -e JOBS=$(JOBS) -e debug_bazel_flags=${BAZEL_DEBUG_FLAGS} $(OVMS_CPP_DOCKER_IMAGE)-build:$(OVMS_CPP_IMAGE_TAG)$(IMAGE_TAG_SUFFIX) ./rununittest.sh > test.log 2>&1 ; exit_status=$$? ; tail -200 test.log ; exit $$exit_status
docker run -v $(shell realpath ./rununittests.sh):/ovms/./rununittests.sh:ro -v $(shell realpath ${GPU_MODEL_PATH}):/ovms/src/test/face_detection_adas:ro -v $(shell realpath ${TEST_LLM_PATH}):/ovms/src/test/llm_testing:ro -e https_proxy=${https_proxy} -e RUN_TESTS=1 -e JOBS=$(JOBS) -e debug_bazel_flags=${BAZEL_DEBUG_FLAGS} $(OVMS_CPP_DOCKER_IMAGE)-build:$(OVMS_CPP_IMAGE_TAG)$(IMAGE_TAG_SUFFIX) ./rununittest.sh > test.log 2>&1 ; exit_status=$$? ; tail -200 test.log ; exit $$exit_status
Copy link
Collaborator

@dkalinowski dkalinowski Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you adding ro here? This parameter does not work at all, I have noticed it in my task. rununittests.sh does not exist. Lookup the end of the command (it does not have s):

... ./rununittest.sh > test.log ...

ci/cppclean.sh Outdated
@@ -54,7 +54,7 @@ fi
if [ ${NO_WARNINGS_TEST_NOTUSED} -gt 0 ]; then
errors+="Failed probably due to unnecessary forward includes: ${NO_WARNINGS_TEST_NOTUSED}"$'\n'
fi
if [ ${NO_WARNINGS} -gt 166 ]; then
if [ ${NO_WARNINGS} -gt 174 ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to increase number of code smells?

} catch (const std::exception& e) {
SPDLOG_DEBUG("got exception in ov::InferRequest callback: {}", e.what());
// TODO created filter based on what is in request, then perform casual serialization for what was NOT in request, and rewrite tensors from request to response for those that were
auto status = serializePredictResponse(outputGetter, getName(), getVersion(), getOutputsInfo(), requestProto, res.get(), getTensorInfoName, useSharedOutputContentFn(requestProto)); // TODO FIXME handle status
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rasapala should we return error when serialization fails? why is it ignored?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// TODO FIXME handle status - this will be done in another task.

@rasapala rasapala merged commit a2ffd6b into main Sep 27, 2024
8 checks passed
@rasapala rasapala deleted the callback_with_reload2 branch October 29, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants