Skip to content

Instantly share code, notes, and snippets.

@briansp2020
briansp2020 / StableDiffusionControlNetPipeline.ipynb
Created September 16, 2023 21:03
Stable Diffusion Control Net Pipeline
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
:~/audio# python3 setup.py bdist_wheel
/root/audio/setup.py:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.command.clean
-- Git branch: main
-- Git SHA: 4bbf65e44e5730d4b7deba745ba11375c1665db8
-- Git tag: None
-- PyTorch dependency: torch
-- Building version 2.2.0a0+4bbf65e
running bdist_wheel
running build
@briansp2020
briansp2020 / gist:484f639aa59ccb308f35cf9ad6542881
Created September 16, 2023 15:08
torch audio build error
(pt) root@rocm:~/audio# python3 setup.py bdist_wheel
/root/audio/setup.py:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.command.clean
-- Git branch: main
-- Git SHA: 4bbf65e44e5730d4b7deba745ba11375c1665db8
-- Git tag: None
-- PyTorch dependency: torch
-- Building version 2.2.0a0+4bbf65e
running bdist_wheel
running build
@briansp2020
briansp2020 / mnist.py
Created September 7, 2023 16:03
mnist.py output running on 7900XTX
(venv) root@rocm-ubuntu:~/tmp# python mnist.py
[W interface.cpp:47] Warning: Loading nvfuser library failed with: Error in dlopen: libnvfuser_codegen.so: cannot open shared object file: No such file or directory (function LoadingNvfuserLibrary)
CUDA/ROCm installed!
CUDA/ROCm devices: 1
0 CUDA/ROCm device: Radeon RX 7900 XTX
CUDA/ROCm device set to: 0
Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to ../data/MNIST/raw/train-images-idx3-ubyte.gz
100.0%
Extracting ../data/MNIST/raw/train-images-idx3-ubyte.gz to ../data/MNIST/raw
@briansp2020
briansp2020 / 3080ti
Last active September 16, 2023 13:39
ai-benchmark comparison between 7900XTX (ROCm) and 3080ti (WSL2) (9/4/2023)
:~/tmp$ python benchmark.py
>> AI-Benchmark - 0.1.3.cm
>> Let the AI Games begin
* TF Version: 2.13.0
* Platform: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
* CPU: AMD Ryzen 9 5950X 16-Core Processor
* CPU RAM: 8 GB
* GPU/0: NVIDIA GeForce RTX 3080 Ti
* GPU RAM: 9.1 GB
* CUDA Version: 11.5
This file has been truncated, but you can view the full file.
-- The CXX compiler identification is Clang 7.1.0
-- The C compiler identification is Clang 7.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
Building wheel torch-1.0.0a0+dcfa620
running install
setup.py::run()
running build_deps
+ SYNC_COMMAND=cp
++ command -v rsync
+ '[' -x '' ']'
+ CMAKE_COMMAND=cmake
++ command -v cmake3
+ [[ -x '' ]]
Building wheel torch-1.0.0a0+dcfa620
running install
setup.py::run()
running build_deps
+ SYNC_COMMAND=cp
++ command -v rsync
+ '[' -x '' ']'
+ CMAKE_COMMAND=cmake
++ command -v cmake3
+ [[ -x '' ]]
Excluding c10d on ROCm
Excluding cpp_extensions on ROCm
Excluding distributed on ROCm
Excluding multiprocessing on ROCm
Excluding nccl on ROCm
Excluding thd_distributed on ROCm
Selected tests: autograd, cuda, cuda_primary_ctx, dataloader, distributions, expecttest, indexing, jit, nn, numba_integration, optim, sparse, torch, type_info, utils
Running test_autograd ...
test___getitem__ (__main__.TestAutograd) ... ok
test___getitem___adv_index (__main__.TestAutograd) ... ok
Excluding c10d on ROCm
Excluding cpp_extensions on ROCm
Excluding distributed on ROCm
Excluding multiprocessing on ROCm
Excluding nccl on ROCm
Excluding thd_distributed on ROCm
Selected tests: autograd, cuda, cuda_primary_ctx, dataloader, distributions, expecttest, indexing, jit, nn, numba_integration, optim, sparse, torch, type_info, utils
Running test_autograd ...
test___getitem__ (__main__.TestAutograd) ... ok
test___getitem___adv_index (__main__.TestAutograd) ... ok