Unverified Commit 88ab6303 authored by Rickard's avatar Rickard Committed by GitHub
Browse files

Update installation instructions (#1047)



* Update installation instructions

* Update docs/source/installation.mdx
Co-authored-by: default avatarYounes Belkada <49240599+younesbelkada@users.noreply.github.com>

* Update installation.mdx

* Update docs/source/installation.mdx
Co-authored-by: default avatarYounes Belkada <49240599+younesbelkada@users.noreply.github.com>

* Update installation.mdx

* Update installation.mdx

---------
Co-authored-by: default avatarYounes Belkada <49240599+younesbelkada@users.noreply.github.com>
parent 6e0f84d4
...@@ -21,12 +21,16 @@ pip install bitsandbytes ...@@ -21,12 +21,16 @@ pip install bitsandbytes
### From source ### From source
You need CMake and Python installed. For Linux, make sure to install a compiler (`apt install build-essential`, for example).
```bash ```bash
git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ 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 -S .
make
pip install . 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) For a more detailed compilation guide, head to the [dedicated page on the topic](./compiling)
</hfoption> </hfoption>
...@@ -34,12 +38,15 @@ For a more detailed compilation guide, head to the [dedicated page on the topic] ...@@ -34,12 +38,15 @@ For a more detailed compilation guide, head to the [dedicated page on the topic]
## Windows ## 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: Currently for Windows users, you need to build bitsandbytes from source:
```bash ```bash
git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/ git clone https://github.com/TimDettmers/bitsandbytes.git && cd bitsandbytes/
cmake -B build -DBUILD_CUDA=ON -S . pip install -r requirements-dev.txt
cmake --build build --config Release cmake -DCOMPUTE_BACKEND=cuda -S .
cmake --build . --config Release
python -m build --wheel python -m build --wheel
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment