model_server icon indicating copy to clipboard operation
model_server copied to clipboard

ONEDNN_VERBOSE=1 crashes the weekly image (2026.5.0 dev) while loading an embeddings servable; 2026.3.1 loads the same model fine

Open Asclepius9 opened this issue 1 month ago • 1 comments

Describe the bug With ONEDNN_VERBOSE=1 in the environment, the openvino/model_server:weekly image (OVMS 2026.5.0.3b33556ed, OpenVINO 2026.5.0-23594-7e507a4ca9a) terminates with exit code 139 while loading an embeddings servable. The CPU plugin throws could not execute a primitive on a Reorder node during graph compilation, right after the first verbose reorder lines are printed. The same model, config, image flags and environment load and serve normally on openvino/model_server:2026.3.1. ONEDNN_VERBOSE=profile_create and no verbose setting both work on the weekly image, so the crash is specific to the exec-level verbose path.

To Reproduce

  1. Model repository: the public OpenVINO/Qwen3-Embedding-0.6B-int8-ov from Hugging Face, with a graph.pbtxt generated by ovms --configure (2026.3.1) for an embeddings servable (EmbeddingsCalculatorOV, pooling: LAST, normalize_embeddings: true, truncate: true, plugin_config: '{"NUM_STREAMS":"1"}').
  2. OVMS launch command (fails):
    docker run --rm --user 1000:1000 --cpuset-cpus 0-31 --cpuset-mems 0 \
      -e ONEDNN_VERBOSE=1 \
      -v $PWD/models:/models:ro -v $PWD/config.json:/config.json:ro \
      -p 127.0.0.1:8011:8000 \
      openvino/model_server@sha256:f550bbc7c2a1323580053361a3c9dee2e03f7e0838b59e99462ac31bdeb1f8c5 \
      --config_path /config.json --rest_port 8000
    
    Same command with openvino/model_server:2026.3.1 (digest sha256:70596d34ff9358cfb5c47a287d07321d378c5ab90ade24ee6ab78bb6524fc87d) reaches qwen3-embedding-0.6b state changed to: AVAILABLE and serves /v3/embeddings.
  3. No client command needed; the crash happens during servable loading, before any request.
  4. See error below. Reproduced 3/3 on the weekly image, 0/1 on 2026.3.1.

Expected behavior Verbose oneDNN logging should not change execution. The servable should load and serve with ONEDNN_VERBOSE=1 as it does on 2026.3.1 and as it does on the weekly image with ONEDNN_VERBOSE=profile_create.

Logs Weekly image, default log level (the verbose lines are the last ones before the exception):

onednn_verbose,v1,info,oneDNN v3.13.0 (commit 885d61d768b7ddb950c3604ba6a44d8f3d2133b2)
onednn_verbose,v1,info,cpu,runtime:threadpool,nthr:32
onednn_verbose,v1,info,cpu,isa:Intel AVX10.1 and Intel AMX with bfloat16, float16 and 8-bit integer support
onednn_verbose,v1,info,gpu,runtime:none
onednn_verbose,v1,primitive,info,template:operation,engine,primitive,implementation,prop_kind,memory_descriptors,attributes,auxiliary,problem_desc,exec_time
onednn_verbose,v1,primitive,exec,cpu,reorder,jit_direct_copy:uni,undef,src:u8::blocked:a::f0 dst:u8::blocked:a::f0,,,1,0.00415039
... (8 more u8->u8 / u8->s32 direct-copy reorders of size 1) ...
onednn_verbose,v1,primitive,exec,cpu,reorder,jit:uni,undef,src:u8::blocked:ab::f0 dst:f32::blocked:ba::f0,,,2048x1,0.0400391
onednn_verbose,v1,primitive,exec,cpu,reorder,jit:uni,undef,src:u8::blocked:ab::f0 dst:f32::blocked:ba::f0,,,1024x1,0.000976562
terminate called after throwing an instance of 'ov::Exception'
  what():  Exception from src/inference/src/cpp/core.cpp:117:
Exception from src/inference/src/dev/plugin.cpp:54:
Exception from src/plugins/intel_cpu/src/graph.cpp:1628:
Node Constant_66965_u8_i32_Broadcast_66966 of type Reorder
could not execute a primitive

Container exit code: 139.

Configuration

  1. OVMS version: weekly image pulled 2026-10-26, digest sha256:f550bbc7c2a1323580053361a3c9dee2e03f7e0838b59e99462ac31bdeb1f8c5, reports OpenVINO Model Server 2026.5.0.3b33556ed, OpenVINO backend 2026.5.0-23594-7e507a4ca9a, OpenVINO GenAI backend 2026.5.0.0-3556-73c4b0db060. Works: openvino/model_server:2026.3.1.
  2. config.json:
    { "model_config_list": [],
      "mediapipe_config_list": [ { "name": "qwen3-embedding-0.6b", "base_path": "/models/Qwen3-Embedding-0.6B-int8-ov" } ] }
    
  3. CPU: Intel Xeon 6 (Granite Rapids, family 6 model 0xAD), AVX10.1 + AMX, 32 cores assigned to the container via cpuset, single NUMA node. Linux guest (CentOS Stream 9, kernel 5.14.0-759), running as a TDX guest; the crash is not TDX-specific as far as we can tell, but we have not yet reproduced it on bare metal.
  4. Model repository: /models/Qwen3-Embedding-0.6B-int8-ov/ with openvino_model.{xml,bin}, openvino_tokenizer.{xml,bin}, openvino_detokenizer.{xml,bin}, graph.pbtxt, tokenizer files, 1_Pooling/.
  5. Public model: https://huggingface.co/OpenVINO/Qwen3-Embedding-0.6B-int8-ov

Additional context The failing node is a u8 to i32 Broadcast constant reorder, which suggests the verbose path affects how constant-folding reorders are executed in the CPU plugin rather than anything in OVMS itself. Happy to transfer this to openvinotoolkit/openvino if that is the right home, or to run a build with extra logging on our side. We hit this while confirming AMX kernel selection for the same servable; ONEDNN_VERBOSE=profile_create was enough for that, so this is not blocking us.

We are investigating on our side and will send a PR if we find the cause.

Asclepius9 avatar Nov 01 '26 18:11 Asclepius9

Update: reproduced without OVMS, with the plain OpenVINO nightly wheel (openvino 2026.5.0-23697-32776832f8d, pip install --pre openvino from the nightly index) in a python:3.12-slim container on the same machine:

import openvino as ov
core = ov.Core()
m = core.read_model("/models/Qwen3-Embedding-0.6B-int8-ov/openvino_model.xml")
cm = core.compile_model(m, "CPU", {"NUM_STREAMS": "1"})

Without ONEDNN_VERBOSE this compiles. With ONEDNN_VERBOSE=1:

RuntimeError: Exception from src/inference/src/cpp/core.cpp:117:
Exception from src/inference/src/dev/plugin.cpp:54:
Exception from src/plugins/intel_cpu/src/graph.cpp:1628:
Node Constant_42475_u8_i32_Broadcast_42476 of type Reorder
could not execute a primitive

So this is in the CPU plugin (or in oneDNN's verbose exec path), not in model server. Feel free to transfer this to openvinotoolkit/openvino; we are bracketing the release that introduced it and will post the result here.

Asclepius9 avatar Nov 01 '26 18:11 Asclepius9