When attempting to generate a token: TypeError: Choice 'None' is not supported

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

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

評価

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

調査の方向性

The traceback ends in get_hyperparameters in pruna/algorithms/compilation/torch_compile.py (line 52), which builds a ConfigSpace categorical with a None choice, and the error is raised inside ConfigSpace's CategoricalHyperparameter. Start by reproducing with SmashConfig() and checking the installed ConfigSpace version against what pruna expects. Done means SmashConfig() constructs without the TypeError on a supported ConfigSpace version.

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

説明

getting this error when trying to generate a token. Please advise. Many thanks

python3 smash.py
Traceback (most recent call last):
File "/mnt/d/ComfyUI/smash.py", line 2, in
from pruna import smash, SmashConfig
File "pruna/init.py", line 3, in init pruna
File "pruna/smash.py", line 6, in init pruna.smash
smash_config = SmashConfig() # any SmashConfig, even an empty one, will do
File "pruna/algorithms/compilation/compile.py", line 19, in init pruna.algorithms.compilation.compile
File "pruna/algorithms/compilation/torch_compile.py", line 29, in pruna.algorithms.compilation.torch_compile.TorchCompileCompiler.init
File "pruna/algorithms/compilation/PrunaCompiler.py", line 13, in pruna.algorithms.compilation.PrunaCompiler.PrunaCompiler.init
File "pruna/algorithms/PrunaBase.py", line 11, in pruna.algorithms.PrunaBase.PrunaSmasherBase.init
File "pruna/algorithms/compilation/torch_compile.py", line 52, in pruna.algorithms.compilation.torch_compile.TorchCompileCompiler.get_hyperparameters
File "ConfigSpace/hyperparameters/categorical.pyx", line 81, in ConfigSpace.hyperparameters.categorical.CategoricalHyperparameter.init
TypeError: Choice 'None' is not supported

主要言語
Python
スター
67
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

PrunaAI/ComfyUI_pruna のほかの issue

PrunaAI/ComfyUI_pruna の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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