Skip to content

Add interface is_model_splitted() to check the c-graph is splited or not#63

Open
zhaixuejun1993 wants to merge 1 commit intoravi9:dev_backend_openvinofrom
zhaixuejun1993:xuejun/add_is_model_splited
Open

Add interface is_model_splitted() to check the c-graph is splited or not#63
zhaixuejun1993 wants to merge 1 commit intoravi9:dev_backend_openvinofrom
zhaixuejun1993:xuejun/add_is_model_splited

Conversation

@zhaixuejun1993
Copy link
Collaborator

No description provided.

bool model_is_splitted = is_model_splitted(cgraph);

if (is_naive(cgraph) && !model_is_splitted) {
return naive_compute(cgraph, core, device, config);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this impact any of the CI tests if the model is splitted?

Copy link
Collaborator Author

@zhaixuejun1993 zhaixuejun1993 Mar 11, 2026

Choose a reason for hiding this comment

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

Yes, after split the sub c-graph node size maybe < 20, which will be handled as the CI test. That is not we want. This is to avoid the sub c-graph from fallback are handled by naive compute.
BTW, I had verified the test-backend-ops it PASS.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh ok, I was thinking about the embedding test which has partitioning.

@zhaixuejun1993 zhaixuejun1993 force-pushed the xuejun/add_is_model_splited branch from 5f3afb2 to 2fbffd4 Compare March 11, 2026 02:04
@cavusmustafa
Copy link
Collaborator

I see a failure in MUL_MAT_VEC_FUSION test. It needs a rebase maybe?

@ggerganov ggerganov force-pushed the dev_backend_openvino branch from 76e4057 to e73b4d4 Compare March 13, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants