- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 AMD GPU 在我的本地计算机上运行和部署 Dalle Playground,我在 Windows 11 上运行 WSL 实例。
Link to Dalle Playground repo
System OS: Windows 11 Pro - Version 21H1 - OS Build 22000.675
WSL Version: WSL 2
WSL Kernel: 5.10.16.3-microsoft-standard-WSL2
WSL OS: Ubuntu 20.04 LTS
GPU: AMD Radeon RX 6600 XT
CPU: AMD Ryzen 5 3600XT (32GB ram)
我已经能够成功部署后端和前端,但它在 CPU 上运行。
--> Starting DALL-E Server. This might take up to two minutes.
2022-06-12 01:16:33.012306: I external/org_tensorflow/tensorflow/core/tpu/tpu_initializer_helper.cc:259] Libtpu path is: libtpu.so
2022-06-12 01:16:37.581440: I external/org_tensorflow/tensorflow/compiler/xla/service/service.cc:174] XLA service 0x5a4e760 initialized for platform Interpreter (this does not guarantee that XLA will be used). Devices:
2022-06-12 01:16:37.581474: I external/org_tensorflow/tensorflow/compiler/xla/service/service.cc:182] StreamExecutor device (0): Interpreter, <undefined>
2022-06-12 01:16:37.587860: I external/org_tensorflow/tensorflow/compiler/xla/pjrt/tfrt_cpu_pjrt_client.cc:176] TfrtCpuClient created.
2022-06-12 01:16:37.588478: I external/org_tensorflow/tensorflow/stream_executor/tpu/tpu_platform_interface.cc:74] No TPU platform found.
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
我一直试图让我的 WSL 实例可以访问我的 GPU,但我无法弄清楚我做错了什么。为了与 GPU 一起使用,我从
pytorch 输入了以下命令:
pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm4.5.2
我通过运行
website 上提供的示例 PyTorch 代码确认 pytorch 安装正确。 .
$ /opt/rocm/bin/rocminfo
ROCk module is NOT loaded, possibly no GPU devices
$ /opt/rocm/opencl/bin/clinfo
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.1 AMD-APP (3423.0)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 0
根据这个回复,似乎肯定有某种可用的 AMD 兼容驱动程序,如果您查看随附的照片,您可以看到当我尝试查询 GPU 时出现的内容。在这个阶段我不知道 WSL 是否可以看到和/或访问我的 GPU,如
glxinfo 可以识别它,但没有其他东西可以。 (即使它弄错了我的 VRAM)
$ sudo apt list|grep -i gpu|grep installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libdrm-amdgpu1/focal-updates,focal-security,now 2.4.107-8ubuntu1~20.04.2 amd64 [installed]
libosdgpu3.4.0/focal,now 3.4.0-6build1 amd64 [installed,automatic]
已安装的 ROC 包:
$ apt list --installed | grep -i roc
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
hsa-rocr-dev/Ubuntu,now 1.5.0.50100-36 amd64 [installed,automatic]
hsa-rocr/Ubuntu,now 1.5.0.50100-36 amd64 [installed,automatic]
hsakmt-roct-dev/Ubuntu,now 20220128.1.7.50100-36 amd64 [installed,automatic]
hsakmt-roct/Ubuntu,now 20210520.3.071986.40301-59 amd64 [installed,automatic]
libopencv-imgproc4.2/focal,now 4.2.0+dfsg-5 amd64 [installed,automatic]
libpostproc55/focal-updates,focal-security,now 7:4.2.7-0ubuntu0.1 amd64 [installed,automatic]
libprocps8/focal-updates,now 2:3.3.16-1ubuntu2.3 amd64 [installed,automatic]
procps/focal-updates,now 2:3.3.16-1ubuntu2.3 amd64 [installed,automatic]
python3-ptyprocess/focal,now 0.6.0-1ubuntu1 all [installed,automatic]
rock-dkms-firmware/Ubuntu,now 1:4.3-59 all [installed,automatic]
rock-dkms/Ubuntu,now 1:4.3-59 all [installed,automatic]
rocm-clang-ocl/Ubuntu,now 0.5.0.50100-36 amd64 [installed,automatic]
rocm-cmake/Ubuntu,now 0.7.2.50100-36 amd64 [installed,automatic]
rocm-core/Ubuntu,now 5.1.0.50100-36 amd64 [installed,automatic]
rocm-dbgapi/Ubuntu,now 0.64.0.50100-36 amd64 [installed,automatic]
rocm-debug-agent/Ubuntu,now 2.0.3.50100-36 amd64 [installed,automatic]
rocm-dev/Ubuntu,now 5.1.0.50100-36 amd64 [installed,automatic]
rocm-device-libs/Ubuntu,now 1.0.0.50100-36 amd64 [installed,automatic]
rocm-dkms/Ubuntu,now 5.1.0.50100-36 amd64 [installed]
rocm-gdb/Ubuntu,now 11.2.50100-36 amd64 [installed,automatic]
rocm-llvm/Ubuntu,now 14.0.0.22114.50100-36 amd64 [installed,automatic]
rocm-ocl-icd/Ubuntu,now 2.0.0.50100-36 amd64 [installed,automatic]
rocm-opencl-dev/Ubuntu,now 2.0.0.50100-36 amd64 [installed,automatic]
rocm-opencl/Ubuntu,now 2.0.0.50100-36 amd64 [installed,automatic]
rocm-smi-lib/Ubuntu,now 5.0.0.50100-36 amd64 [installed,automatic]
rocm-utils/Ubuntu,now 5.1.0.50100-36 amd64 [installed,automatic]
rocminfo/Ubuntu,now 1.0.0.50100-36 amd64 [installed,automatic]
rocprofiler-dev/Ubuntu,now 1.0.0.50100-36 amd64 [installed,automatic
]
roctracer-dev/Ubuntu,now 1.0.0.50100-36 amd64 [installed,automatic]
$ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Microsoft Corporation (0xffffffff)
Device: D3D12 (AMD Radeon RX 6600 XT) (0xffffffff)
Version: 22.2.0
Accelerated: yes
Video memory: 24485MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.2
Max compat profile version: 4.2
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (AMD Radeon RX 6600 XT)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 22.2.0-devel (git-cbcdcc4 2022-06-11 focal-oibaf-ppa)
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.2 (Compatibility Profile) Mesa 22.2.0-devel (git-cbcdcc4 2022-06-11 focal-oibaf-ppa)
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.2.0-devel (git-cbcdcc4 2022-06-11 focal-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
更令人困惑的是,glmark2 似乎能够很好地使用我的 GPU,可能是 dalle 程序而不是 WSL 的问题?
最佳答案
看起来这是目前 WSL/Torch 的一个已知错误:
https://github.com/pytorch/pytorch/issues/73487
据我所见(和测试):
I can confirm the same. If you're stuck, try uninstalling and reinstalling your wsl2 distribution (e.g., Ubuntu). Make sure you've installed the Nvidia driver on the Windows side (follow the official wsl2 setup docs). Let conda manage cudatoolkit for you; don't follow Nvidia's guide for installing cudatoolkit system-wide.
关于ubuntu - 如何通过 WSL 使 AMD GPU 与 DALL-E Playground AI Sever 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72588819/
我按照 https://github.com/openai/DALL-E 上的说明安装了 DALL-E 并得到:---> 10 从 dall_e 导入 map_pixels、unmap_pixels、
我按照 https://github.com/openai/DALL-E 上的说明安装了 DALL-E 并得到:---> 10 从 dall_e 导入 map_pixels、unmap_pixels、
我知道可以在 google 表格中将 dall-e 实现为一个函数,但我需要你的帮助才能正确完成。 openai 没有定义,我不知道如何正确定义它。 function dalle() { var s
dall e 可以在时尚 gan 或深度时尚数据集上进行训练吗? 如果是,则需要进行哪些更改,因为需要所有电子图像-文本对,并且时尚 gan 或深度时尚是 .h5 格式。 最佳答案 FashionGA
我知道可以在 google 表格中将 dall-e 实现为一个函数,但我需要你的帮助才能正确完成。 openai 没有定义,我不知道如何正确定义它。 function dalle() { var s
dall e 可以在时尚 gan 或深度时尚数据集上进行训练吗? 如果是,则需要进行哪些更改,因为需要所有电子图像-文本对,并且时尚 gan 或深度时尚是 .h5 格式。 最佳答案 FashionGA
如何在 Unity C# 中使用 Dall-E 文本到图像 API 的 image 和 mask 参数? 对于背景,类似下面的内容适用于其他参数,如 prompt(完整代码在 GitHub 上): s
如何在 Unity C# 中使用 Dall-E 文本到图像 API 的 image 和 mask 参数? 对于背景,类似下面的内容适用于其他参数,如 prompt(完整代码在 GitHub 上): s
我正在尝试在我的 Next.js 项目中实现 OpenAI 的 Dall-E API,但每次重新加载都会返回 400 Bad Request。 我完全按照文档中的步骤进行操作,但我仍然收到此错误。 我
我正在尝试在我的 Next.js 项目中实现 OpenAI 的 Dall-E API,但每次重新加载都会返回 400 Bad Request。 我完全按照文档中的步骤进行操作,但我仍然收到此错误。 我
我正在尝试使用 AMD GPU 在我的本地计算机上运行和部署 Dalle Playground,我在 Windows 11 上运行 WSL 实例。 Link to Dalle Playground r
我有一张图像,我正在从 AWS S3 存储桶中检索该图像,然后将其传递给 Dall E/OpenAI API。当我尝试时收到此错误响应: message: "Invalid input image -
我有一张图像,我正在从 AWS S3 存储桶中检索该图像,然后将其传递给 Dall E/OpenAI API。当我尝试时收到此错误响应: message: "Invalid input image -
我是一名优秀的程序员,十分优秀!