From 9f26df575abeebef6aad21a5a8d87e1ab64c6d64 Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 6 Feb 2024 19:51:54 +0100 Subject: [PATCH 1/6] Update installation instructions --- docs/source/installation.mdx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index 26c63d374..1bb47fcdf 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -23,10 +23,12 @@ pip install bitsandbytes ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ -cmake -B build -DBUILD_CUDA=ON -S . +pip install -r requirements-dev.txt +cmake -DCOMPUTE_BACKEND=cuda +make pip install . ``` -Note support for non-CUDA GPUs (e.g. AMD, Intel), is also coming soon. +Note support for non-CUDA GPUs (e.g. AMD, Intel, Apple Silicon), is also coming soon. For a more detailed compilation guide, head to the [dedicated page on the topic](./compiling) @@ -38,8 +40,8 @@ Currently for Windows users, you need to build bitsandbytes from source: ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ -cmake -B build -DBUILD_CUDA=ON -S . -cmake --build build --config Release +cmake -DCOMPUTE_BACKEND=cuda +cmake --build . --config Release python -m build --wheel ``` From d9543c2f2286284506dbd81dfa1e24bc07cb0df8 Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 6 Feb 2024 19:54:54 +0100 Subject: [PATCH 2/6] Update docs/source/installation.mdx Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> --- docs/source/installation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index 1bb47fcdf..fcac5e8dc 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -40,7 +40,7 @@ Currently for Windows users, you need to build bitsandbytes from source: ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ -cmake -DCOMPUTE_BACKEND=cuda +cmake -DCOMPUTE_BACKEND=cuda -S . cmake --build . --config Release python -m build --wheel ``` From 7b50e4db3031099ff2dbcbf4b23c0079eed80a06 Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 6 Feb 2024 19:59:00 +0100 Subject: [PATCH 3/6] Update installation.mdx --- docs/source/installation.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index fcac5e8dc..03fc7bee8 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -21,6 +21,8 @@ pip install bitsandbytes ### From source +You need CMake and Python installed. For Linux, make sure to install a compiler (`apt install build-essential`, for example). + ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ pip install -r requirements-dev.txt @@ -36,6 +38,8 @@ For a more detailed compilation guide, head to the [dedicated page on the topic] ## Windows +Windows builds require Visual Studio with C++ support, as well as the Cuda SDK installed. + Currently for Windows users, you need to build bitsandbytes from source: ```bash From 5ae133f3e32710232fc93931391b003bad83eaef Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 6 Feb 2024 19:59:24 +0100 Subject: [PATCH 4/6] Update docs/source/installation.mdx Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> --- docs/source/installation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index 03fc7bee8..5bdcfc367 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -26,7 +26,7 @@ You need CMake and Python installed. For Linux, make sure to install a compiler ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ pip install -r requirements-dev.txt -cmake -DCOMPUTE_BACKEND=cuda +cmake -DCOMPUTE_BACKEND=cuda -S . make pip install . ``` From bd219a0a89c94144afcf8bee7d3c662c1a2bb2b6 Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 6 Feb 2024 20:23:22 +0100 Subject: [PATCH 5/6] Update installation.mdx --- docs/source/installation.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index 5bdcfc367..a0961ca39 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -25,6 +25,7 @@ You need CMake and Python installed. For Linux, make sure to install a compiler ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ +pip install -r requirements-dev.tx pip install -r requirements-dev.txt cmake -DCOMPUTE_BACKEND=cuda -S . make From 16cf29af9f89152d674d4438e38628e69f74a249 Mon Sep 17 00:00:00 2001 From: Rickard Date: Tue, 6 Feb 2024 20:23:37 +0100 Subject: [PATCH 6/6] Update installation.mdx --- docs/source/installation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/installation.mdx b/docs/source/installation.mdx index a0961ca39..af65a3c7f 100644 --- a/docs/source/installation.mdx +++ b/docs/source/installation.mdx @@ -25,7 +25,6 @@ You need CMake and Python installed. For Linux, make sure to install a compiler ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ -pip install -r requirements-dev.tx pip install -r requirements-dev.txt cmake -DCOMPUTE_BACKEND=cuda -S . make @@ -45,6 +44,7 @@ Currently for Windows users, you need to build bitsandbytes from source: ```bash git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ +pip install -r requirements-dev.txt cmake -DCOMPUTE_BACKEND=cuda -S . cmake --build . --config Release python -m build --wheel