运行 python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s,从 Hugging Face 下载模型并完成环境配置与量化。
运行 python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv 开始推理并进入对话模式。
核验依据
GitHub 项目简介: Official inference framework for 1-bit LLMs
README: 10/17/2024: 📣 bitnet.cpp 1.0 released.
README: bitnet.cpp is the official inference framework for 1-bit LLMs (e.g., BitNet b1.58). It offers a suite of optimized kernels that support **fast** and **lossless** inference of 1.58…
README: git clone --recursive https://github.com/microsoft/BitNet.git cd BitNet