- google glog https://github.com/google/glog
- google gtest https://github.com/google/googletest
- sentencepiece https://github.com/google/sentencepiece
- armadillo + openblas https://arma.sourceforge.net/download.html
openblas作为armadillo的后端数学库,加速矩阵乘法等操作,也可以选用Intel-MKL
# 假设已经装好上述的第三方依赖
mkdir build
cd build
cmake ..
make -j16
./llama_infer llama2_7b.bin tokenizer.model