CTranslate2 4.7.0 Bug on NVIDIA GPU

オープン
#2,009 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, python

調査の方向性

指定された Windows NVIDIA セットアップで、pip install コマンドと python -c コマンドを使用して失敗を再現します。インポートの初期化処理とパッケージ化された依存関係のパスを調査し、なぜ _rocm_sdk_core/bin がチェックされるのかを突き止めます。完了の条件は、ROCm のインストールなしで ctranslate2 を正常にインポートできることです。

索引モデルが issue の本文から書いたものです。

説明

After updating to ctranslate2 4.7.0 on Windows with an NVIDIA GPU, importing the library fails with:
[WinError 3] The system cannot find the path specified: 'C:\Users...\AppData\Local\Programs\Python\Python311\Lib\site-packages\ctranslate2/../_rocm_sdk_core/bin'
The library appears to be checking for AMD ROCm SDK paths during initialization, even on systems with NVIDIA GPUs that have no ROCm installation.
Steps to reproduce:

Fresh Windows install with NVIDIA GPU
pip install ctranslate2==4.7.0
python -c "import ctranslate2"

Expected behavior:
The library should import successfully on NVIDIA CUDA systems without requiring ROCm paths.
Actual behavior:
Import fails with [WinError 3] because _rocm_sdk_core/bin directory doesn't exist.

主要言語
C++
スター
4.8k
フォーク
557
平均マージ
1日 6時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenNMT/CTranslate2 のほかの issue

OpenNMT/CTranslate2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。