Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,18 @@ This project is based on the [llama.cpp](https://github.com/ggerganov/llama.cpp)
git clone --recursive https://github.com/microsoft/BitNet.git
cd BitNet
```

1.a Before building the project, you must generate the `include/bitnet-lut-kernels.h` and `include/kernel_config.ini` files. These files are not included in the repository and are required for the CMake build to succeed.

Run the code generation script from the repository root:

```bash
python utils/codegen_tl1.py \
--model bitnet_b1_58-3B \
--BM 160,320,320 \
--BK 64,128,64 \
--bm 32,64,32

2. Install the dependencies
```bash
# (Recommended) Create a new conda environment
Expand Down