OVMS GPU Memory Allocation Issue - Crashes on model load
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- cpp
調査の方向性
まず、記載されている ovms.exe コマンド、Qwen3-Coder-30B-A3B-Instruct-int4-ov モデル、target_device GPU を使って失敗を再現します。リンクされている 12900HK.txt ログを、報告されている Intel GPU ProgramBuilder エラーおよび USM 割り当てエラーと併せて読み、その後 GPU 実行と CPU 実行を比較します。12900HK iGPU 上で、CPU メモリ使用量が制御不能に増加したりクラッシュしたりすることなくモデルが読み込まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When attempting to load various models, OVMS has some type of runaway memory issue when attempting to use the GPU. For example attempting to load OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov with the CPU flag works fine, CPU RAM usage is as expected and model functions correctly. Attempting to use the GPU the GPU RAM is not utilized, CPU RAM appears to fill instead until it far exceeds the model size and the system runs out of RAM crashing OVMS.
To Reproduce
Steps to reproduce the behavior:
- Use https://huggingface.co/OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov
- .\ovms.exe --source_model OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov --model_repository_path models --rest_port 8000 --task text_generation --target_device GPU --metrics_enable --log_level DEBUG
- Error: Exception from src\inference\src\dev\plugin.cpp:53:
Check 'false' failed at src\plugins\intel_gpu\src\plugin\program_builder.cpp:163:
[GPU] ProgramBuilder build failed!
[CL ext] Can not allocate 402653184 bytes for USM Device. ptr: 0000000000000000, error: 0
Expected behavior
I would expect the model to be loaded into GPU memory and consume a parity level of memory as running on the CPU.
Logs
12900HK.txt
Configuration
- OVMS version: 2026
- OVMS config.json file: Default
- CPU, accelerator's versions if applicable: Attempting to run on the 12900HK iGPU
- Model repository directory structure: Default from HF
- Model or publicly available similar model that reproduces the issue: https://huggingface.co/OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov
Additional context
This is what it looks like in Task Manager
Where as loading the model on the CPU uses a normal amount of RAM and performs as expected
This also occurs with
OpenVINO/Qwen3-Coder-30B-A3B-Instruct-int4-ov
OpenVINO/gpt-oss-20b-int4-ov
- 主要言語
- C++
- スター
- 932
- フォーク
- 278
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 70
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openvinotoolkit/model_server のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
openvinotoolkit/model_server#4613 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
openvinotoolkit/model_server#4609 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`/v3/models` lists every model twice when `group_name` and `--idle_unload_timeout_seconds` are combined対応中かも @atobiszei が 5 日前に担当しました。 オープン
openvinotoolkit/model_server#4604 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Idle unload never happens again if the client disconnects while a sleeping graph is waking up対応中かも @atobiszei が 5 日前に担当しました。 オープン
openvinotoolkit/model_server#4603 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
openvinotoolkit/model_server#4599 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
openvinotoolkit/model_server の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/onnxruntime#33018 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
customer-reported needs-triage question
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/azure-sdk-for-cpp#7435 ·
メンテナーはふだん 1 日以内に返信
-
ChromieCraft Generic Confirmed World Event
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
azerothcore/azerothcore-wotlk#27882 ·
メンテナーはふだん 1 日以内に返信
-
MacOS build failureオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aristocratos/btop#1874 ·
メンテナーはふだん 1 日以内に返信