apple在 MacOS 上安装 Unsloth

要在本地 Apple macOS 设备上安装 Unsloth,请按照以下步骤操作:

安装 Unsloth

对于 macOS,请确保您已安装 cmake 如果没有,请运行 brew install cmake.

brew install cmake
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv unsloth_studio --python 3.13
source unsloth_studio/bin/activate
uv pip install unsloth --torch-backend=auto
unsloth studio setup
unsloth studio -H 0.0.0.0 -p 8888

启动 Unsloth

每次想要再次启动 Unsloth 时:

source unsloth_studio/bin/activate
unsloth studio -H 0.0.0.0 -p 8888

有关 Unsloth Studio 安装说明和要求的详细信息, 查看我们的指南.

更新 Unsloth

uv pip install --force-reinstall --no-deps unsloth

卸载或重新安装

如果您仍然遇到 Unsloth 的依赖问题,许多用户通过强制卸载并重新安装 Unsloth 解决了这些问题:

最后更新于

这有帮助吗?