加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
INSTALLATION.md 1.29 KB
一键复制 编辑 原始数据 按行查看 历史

Installation Guidelines

Environment

Linux

SPU has been tested with the following settings:

  • Ubuntu 22.04
  • python3.10
  • 8c16g

MacOS

We have conducted some successful preliminary testings on macOS Monterey 14.1 with Apple Silicon.

Docker Image

Please check official Docker image.

Binaries

From PyPI

You could install SPU via the official PyPI package.

pip install spu

From Source

python setup.py bdist_wheel
pip install dist/*.whl --force-reinstall
  • Once GCC/bazel/python/Xcode version or other environment settings have changed, please run the following command to ensure a clean build
bazel clean --expunge

Build with GPU support

export ENABLE_GPU_BUILD=1 && python setup.py bdist_wheel
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化