GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Untitled attachment

Download link

Notices where this attachment appears

  1. Embed this notice
    cohle (cohle@shitposter.club)'s status on Sunday, 15-Oct-2023 06:05:28 JST cohle cohle
    in reply to

    @kaia It used to be a bit harder, but I think now you basically just have to follow https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs#running-natively

    You have to install a bunch of rocm packages, I have these installed

    rocm-clang-ocl 5.6.1-1 rocm-cmake 5.6.1-1 rocm-core 5.6.1-1 rocm-device-libs 5.6.1-1 rocm-hip-libraries 5.6.1-1 rocm-hip-runtime 5.6.1-1 rocm-hip-sdk 5.6.1-1 rocm-language-runtime 5.6.1-1 rocm-llvm 5.6.1-1 rocm-opencl-runtime 5.6.1-1 rocm-smi-lib 5.6.1-1 rocminfo 5.6.1-1

    I also have python 3.11.5 installed via the AUR, since arch already upgraded to 3.12, but pytorch requires 3.11. So I created the venv with python3.11 -m venv to make sure it used 3.11 for the virtual environment. I also changed the url for rocm from the guide from https://download.pytorch.org/whl/rocm5.1.1 to https://download.pytorch.org/whl/rocm5.4.2 (apparently there’s now already rocm5.6, but I haven’t tried that)

    For launching I just use this shell script:

    #/bin/bash source venv/bin/activate git pull TORCH_COMMAND='pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.4.2'; python launch.py --opt-sub-quad-attention --no-half-vae --api

    Lastly I have these variables in /etc/environment

    HSA_OVERRIDE_GFX_VERSION=10.3.0 MIOPEN_DEBUG_COMGR_HIP_PCH_ENFORCE=0 PATH=/opt/rocm/bin:/opt/rocm/llvm/bin LLVM_PATH=/opt/rocm/llvm ROCM_PATH=/opt/rocm

    I’m not sure if they’re still required though. You can check whether the virtual environment is set up correctly by just opening a python shell and then running

    import torch torch.cuda.is_available()
    In conversation 2 years ago from gnusocial.jp permalink
  2. Embed this notice
    verita84 :Debian_logo: :firefox: :bing: :android: (verita84@poster.place)'s status on Saturday, 16-Sep-2023 04:52:19 JST verita84 :Debian_logo: :firefox: :bing: :android: verita84 :Debian_logo: :firefox: :bing: :android:
    in reply to

    @mint

    Cannot locate TCMalloc (improves CPU memory usage) Python 3.8.16 (default, Jun 12 2023, 18:09:05) [GCC 11.2.0] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Traceback (most recent call last): File "launch.py", line 48, in <module> main() File "launch.py", line 39, in main prepare_environment() File "/dockerx/stable-diffusion-webui/modules/launch_utils.py", line 356, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
    In conversation 2 years ago from poster.place permalink
  3. Embed this notice
    verita84 :Debian_logo: :firefox: :bing: :android: (verita84@poster.place)'s status on Saturday, 16-Sep-2023 04:26:49 JST verita84 :Debian_logo: :firefox: :bing: :android: verita84 :Debian_logo: :firefox: :bing: :android:
    in reply to

    @mint

    Same

    ################################################################ Cannot locate TCMalloc (improves CPU memory usage) Python 3.8.16 (default, Jun 12 2023, 18:09:05) [GCC 11.2.0] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Traceback (most recent call last): File "launch.py", line 48, in <module> main() File "launch.py", line 39, in main prepare_environment() File "/dockerx/stable-diffusion-webui/modules/launch_utils.py", line 356, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
    In conversation 2 years ago from poster.place permalink
  4. Embed this notice
    verita84 :Debian_logo: :firefox: :bing: :android: (verita84@poster.place)'s status on Friday, 15-Sep-2023 22:36:59 JST verita84 :Debian_logo: :firefox: :bing: :android: verita84 :Debian_logo: :firefox: :bing: :android:
    in reply to
    @mint

    are you supposed to start it with

    export TORCH_COMMAND="pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --index-url https://download.pytorch.org/whl/rocm5.4.2";


    or like the doc says


    REQS_FILE='requirements.txt' python launch.py --precision full --no-half
    In conversation 2 years ago from poster.place permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.

Embed this notice