From 1fffa5e8edc06cae4a37b0db7b9149b1cfb1d202 Mon Sep 17 00:00:00 2001 From: archie-joss Date: Sat, 21 Mar 2026 22:58:39 +0100 Subject: [PATCH] Update README.md 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. Thanks to Bijan Bowen on https://www.bijanbowen.com/bitnet-b1-58-on-raspberry-pi-4b/ --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3bb25596e..30a811084 100644 --- a/README.md +++ b/README.md @@ -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