0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

optimum-cliがDLL初期化ルーチンの実行に失敗しました。って出る時の対処法。

0
Last updated at Posted at 2025-10-19

どうしてそうなった

事の発端

発端はとあるロボットを作ろうとしてその一環でこの記事を参考にVLM(Visual Large Laungurage Model)を動かそうと思った時です。
https://huggingface.co/blog/openvino-vlm
この記事の環境構築の時に

optimum-cli export openvino -m HuggingFaceTB/SmolVLM2-256M-Video-Instruct smolvlm_ov/

を実行したときのこと。

エラー内容

こんなエラーをはいてきました。

error
OSError: [WinError 1114] ダイナミック リンク ライブラリ (DLL) 初期化ルーチンの実行に 失敗しました。 Error loading "{プログラムのパス}.venv\Lib\site-packages\torch\lib\c10.dll" or one of its dependencies.

エラー退治

なんやこいつ。
調べてみたところWindowsによくあるエラーのことで、エンジニアのまねっこをしている未熟な私には微塵もわかりませんでした。
google先生に聞いてみたら、tensorflow 2.4xは3.9以降対応とのこと。
ということで、

uv
uv venv --python 3.9

実行。

やつたあ
processor_config.json: 100%|█████████████████████████████████████████████████████████████| 68.0/68.0 [00:00<00: hogehoge...

結論

pythonを3.9にダウングレードしよう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?