OpenNMT / OpenNMT/CTranslate2

Enabling oneDNN and OpenBLAS backends at the same time breaks downstream applications

Open
#1,294 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
4.7k
Forks
536
Avg merge
12h 12m
Merged PRs (30d)
4

Description

When oneDNN and OpenBLAS are enabled the wyoming-faster-whisper does not start and works only with OpenBLAS enabled: https://github.com/NixOS/nixpkgs/pull/237788#issuecomment-1592070847

On the other hand, the libretranslate also breaks when oneDNN and OpenBLAS are enabled and works only with oneDNN enabled:

[2023-06-15 09:09:43.116] [ctranslate2] [thread 535123] [warning] The compute type inferred from the saved model is int8, but the target device or backend do not support efficient int8 computation. The model weights have been automatically converted to use the float32 compute type instead.
[1]    535079 segmentation fault (core dumped)

Here's a little table:

x86_64-linux only oneDNN only OpenBLAS both oneDNN & oneDNN
libretranslate works segmentation fault segmentation fault
wyoming-faster-whisper RuntimeError works RuntimeError

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failures with oneDNN and OpenBLAS enabled using the libretranslate and wyoming-faster-whisper cases described in the report. Trace backend initialization and inference behavior for the combined configuration; done means both applications start and run without the reported segmentation fault or RuntimeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.