RuntimeError: Triton Error [CUDA]: an illegal memory access was encountered

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

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

評価

難易度
4/5
見積もり時間
1週間以上
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

The crash is raised from the Triton launcher during a kernel call in the sagesla attention path, reached from turbodiffusion/inference/wan2.1_t2v_infer.py with --attention_type sagesla and --quant_linear. Start by reproducing with the reported command on a B200 and reading the traceback to find which Triton kernel is launched. The reporter says editing core.py made it run but produced invalid video, so the real fix is a memory-safety or shape bug in the kernel, not a workaround. Done means the illegal access is gone and the output video matches a known-good run.

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

説明

I encountered the following issue when running the code below

python turbodiffusion/inference/wan2.1_t2v_infer.py
--model Wan2.1-1.3B
--dit_path checkpoints/TurboWan2.1-T2V-1.3B-480P-quant.pth
--resolution 480p
--prompt "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
--num_samples 1
--num_steps 4
--quant_linear
--attention_type sagesla
--sla_topk 0.1

The platform is an NVIDIA B200 GPU. The Triton version is :
pytorch-triton 3.2.0+git4b3bb1f8b.nvinternal
triton 3.4.0

File "TurboDiffusion/lib/python3.12/site-packages/triton/runtime/jit.py", line 617, in run
kernel.run(grid_0, grid_1, grid_2, stream, kernel.function, kernel.packed_metadata, launch_metadata,
File "/envs/TurboDiffusion/lib/python3.12/site-packages/triton/backends/nvidia/driver.py", line 708, in call
self.launch(gridX, gridY, gridZ, stream, function, self.launch_cooperative_grid, self.launch_pdl,
RuntimeError: Triton Error [CUDA]: an illegal memory access was encountered

After modifying core.py to make the code run, the generated video was invalid. Could you please advise me on how to resolve this issue? Thank you very much!

主要言語
Python
スター
3.9k
フォーク
280
平均マージ
5日 2時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

thu-ml/TurboDiffusion のほかの issue

thu-ml/TurboDiffusion の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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