BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

Official inference framework for 1-bit LLMs

Results 227 BitNet issues
Sort by recently updated
recently updated
newest added

I need a few flags to successfully install dependencies.

I tried to follow the help instructions given by the setup_env.py script and ran the following command: ``` python setup_env.py --hf-repo microsoft/BitNet-b1.58-2B-4T -q i2_s INFO:root:Compiling the code using CMake. INFO:root:Downloading...

Using the latest version, I'm trying to setup BitNet following the setup_env.py help instructions: ``` python .\setup_env.py -help usage: setup_env.py [-h] [--hf-repo {1bitLLM/bitnet_b1_58-large,1bitLLM/bitnet_b1_58-3B,HF1BitLLM/Llama3-8B-1.58-100B-tokens,tiiuae/Falcon3-7B-Instruct-1.58bit,tiiuae/Falcon3-7B-1.58bit,tiiuae/Falcon3-10B-Instruct-1.58bit,tiiuae/Falcon3-10B-1.58bit,tiiuae/Falcon3-3B-Instruct-1.58bit,tiiuae/Falcon3-3B-1.58bit,tiiuae/Falcon3-1B-Instruct-1.58bit,microsoft/BitNet-b1.58-2B-4T}] [--model-dir MODEL_DIR] [--log-dir LOG_DIR] [--quant-type {i2_s,tl2}] [--quant-embd]...

A few days ago i could run the inference as normal. Today is just doesn't work anymore. I downloaded the model and then setup according to the docs. LOGS: ```...

I downloaded and built the model (`microsoft/BitNet-b1.58-2B-4T-gguf`) using my Intel Mac following the instructions on README. I installed llvm using brew. ``` $ which clang /usr/local/opt/llvm/bin/clang $ clang --version Homebrew...

I used microsoft/bitnet-b1.58-2B-4T-gguf model Setup the environment: `python setup_env.py -md ./models/BitNet-b1.58-2B-4T/ -q i2_s` usage with: `python run_inference.py -m ./models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv -n 1024` and output...

``` export CC=clang export CXX=clang++ cmake -B build -DGGML_BITNET_ARM_TL1=ON -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 CC=/usr/bin/clang CXX=/usr/bin/clang++ python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s ```

![Image](https://github.com/user-attachments/assets/5bf769ec-abf2-482b-ae92-4bb5470ac817)

Hi I am unable to build the project (bitnet-cpp) PS C:\Users\anuthakur\Documents\msbitnet\BitNet> python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s Traceback (most recent call last): File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 232, in main() File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py",...

I used my own dataset to finetune the model `bitnet-b1.58-2B-4T-bf16` for downstream task. The saved checkpoint directory is as follows: ``` shell path/to/my/ckpt ├── chat_template.jinja ├── config.json ├── generation_config.json ├──...