【Diffusers】「bitsandbytes」がWindowsでも使えるようになっていたので、最近話題の画像生成AI「FLUX.1-dev」で試してみました

PC環境 Windows 11 CUDA 11.8 Python 3.12Python環境構築 pip install torch==2.4.0+cu118 --index-url https://download.pytorch.org/whl/cu118 pip install diffusers[torch] pip install transformers protobuf sentencepiece bitsandbytesPythonスクリプトVRAM使用量は12GB未満に抑えられました。 import time import …