Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

comfyui_therock_gpu_test.py --generate-cat derives checkpoint dir from 'folder:' instead of 'models path:' → checkpoint never found

オープン 初心者向け
#390 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli, testing-qa

調査の方向性

scripts/comfyui_therock_gpu_test.py の parse_comfyui_root(479 行目)と ensure_checkpoint(544 行目)から始め、その後、folder: と models path: を表示するインストールおよびステータス出力を確認します。--skip-install --generate-cat --no-download-checkpoint で再現します。完了条件は、checkpoint が報告された models path/checkpoints ディレクトリを使用し、--comfyui-root は引き続きオーバーライドとして機能し、harness が ComfyUI の生成ステップまで到達することです。

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

説明

Current behavior

scripts/comfyui_therock_gpu_test.py --generate-cat puts (or looks for) the test checkpoint in the wrong directory, so ComfyUI never lists it and the image-generation step fails:

  • After rocm comfyui install (default flow) it downloads the 2 GB checkpoint to ~/.rocm/envs/<runtime>/apps/comfyui/models/checkpoints/ and then fails with
    RuntimeError: ComfyUI does not list checkpoint 'sd-v1-5-tiny.safetensors'. ... Available checkpoints: []
  • With --skip-install it looks in ~/.rocm/envs/<runtime>/models/checkpoints/ and fails with
    RuntimeError: checkpoint is missing and downloads are disabled: ~/.rocm/envs/<runtime>/models/checkpoints/sd-v1-5-tiny.safetensors

ComfyUI's actual models folder, printed by both rocm comfyui install and rocm comfyui status, is ~/.rocm/envs/<runtime>/apps/comfyui/source/models.

Expected behavior

The harness should place the checkpoint under the models path: the product reports (<models path>/checkpoints/), so the default --generate-cat flow works without --comfyui-root.

Steps to reproduce

# 1. default flow (downloads 2 GB, then fails)
python scripts/comfyui_therock_gpu_test.py --rocm target/release/rocm --runtime-id <key> --generate-cat --timeout 1200

# 2. cheaper reproduction of the path derivation
python scripts/comfyui_therock_gpu_test.py --rocm target/release/rocm --runtime-id <key> --skip-install --generate-cat --no-download-checkpoint

Reproduced on a6fa76dbca5d767c1190ee47b765d16bad0e4a53 (current main).

Root cause (script)

parse_comfyui_root (line 479) takes the folder: line of the CLI output and ensure_checkpoint (line 544) assumes <folder>/models/checkpoints. But folder: is not the ComfyUI source folder:

  • rocm comfyui install prints folder: <env>/apps/comfyui (apps/rocm/src/comfyui.rs:287, app_root), and the source lives in <app_root>/source;
  • rocm comfyui status prints folder: <env> (apps/rocm/src/comfyui.rs:135, manifest.runtime_root).

The models path: line, which both commands print right after folder: and which is the correct location, is ignored by the harness. (The inconsistency of folder: itself is filed as #391.)

Possible solution

Parse models path: (^\s*models path:\s*(.+?)\s*$) and use <models path>/checkpoints for ensure_checkpoint; keep --comfyui-root as the override. Workaround today: pass --comfyui-root <env>/apps/comfyui/source explicitly.

Your environment

  • rocm-cli channel: nightly (TheRock 10.1.0a20260822, gfx120X-all)
  • rocm-cli version (rocm --version): rocm 0.1.0, built from a6fa76dbca5d767c1190ee47b765d16bad0e4a53
  • Platform: Linux
  • OS / Distro: CachyOS (Arch), kernel 7.2
  • GPU/APU: AMD Radeon AI PRO R9700 (gfx1201)
  • ComfyUI 0.34.0 installed by rocm comfyui install

Relevant log output

ComfyUI
  action: install
  ROCm install: 10.1.0a20260822 (build 2026-08-22)
  folder: ~/.rocm/envs/therock-10.1.0a20260822/apps/comfyui
  models path: ~/.rocm/envs/therock-10.1.0a20260822/apps/comfyui/source/models
  installed: yes
  AMD GPU: ready (2 devices)
[comfyui-gpu-test] Downloading checkpoint for the cat workflow (2.0 GB expected).
[comfyui-gpu-test] Using checkpoint ~/.rocm/envs/therock-10.1.0a20260822/apps/comfyui/models/checkpoints/sd-v1-5-tiny.safetensors.
...
RuntimeError: ComfyUI does not list checkpoint `sd-v1-5-tiny.safetensors`. If it was just downloaded, restart ComfyUI and run this test again.
Available checkpoints: []
ComfyUI

  installed: yes
  folder: ~/.rocm/envs/therock-10.1.0a20260822
  models path: ~/.rocm/envs/therock-10.1.0a20260822/apps/comfyui/source/models
...
RuntimeError: checkpoint is missing and downloads are disabled: ~/.rocm/envs/therock-10.1.0a20260822/models/checkpoints/sd-v1-5-tiny.safetensors

Additional context

With --comfyui-root <env>/apps/comfyui/source the harness gets past this step. On this machine it then fails inside ComfyUI with hipErrorInvalidValue in the CLIP text encoder; that is a separate problem in the TheRock nightly torch wheel (torch-2.15.0a0+rocm10.1.0a20260822 ships libaotriton_v2.so.0.13.0 without aotriton.images/, so flash/mem-efficient SDPA output is unusable on gfx1201; SDPBackend.MATH and ComfyUI --use-split-cross-attention work). Mentioned only so the GPU lane's red status is not attributed to this script bug; it is not a rocm-cli defect. Related harness issue: #389.

主要言語
Rust
スター
49
フォーク
14
平均マージ
3日 6時間
マージ済み PR(30日)
183

環境構築

はじめの一歩

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

ROCm/rocm-cli のほかの issue

ROCm/rocm-cli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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