pip source change
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
agilex@xavier:~/workspace/cmake-3.28.0-linux-aarch64$ls
bin doc man share
# ~/.bashrc add this line to the end of file
export PATH=/home/agilex/workspace/cmake-3.28.0-linux-aarch64/bin:$PATH
# replace with the cmake-2.28 file location to
> source ~/.bashrc
> cmake --version
agilex@xavier:~/workspace/cmake-3.28.0-linux-aarch64$ cmake --version
cmake version 3.28.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
use RPA repo to get gcc-9 g++-9
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9 g++-9
set gcc and g++ version to gcc-9 g++-9 temporaily, these commands should be excuted at the same shell
> whereis gcc-9
gcc-9:/usr/bin/gcc-9
> whereis g++-9
g++-9:/usr/bin/g++-9
>export CC=/usr/bin/gcc-9
>export CXX=/usr/bin/g++-9
compile llama.cpp
cmake -B build
cmake --build build --config Release -j ./4
run the llama.cpp with single query
./build/bin/llama-cli -m {model/to/your/path} -p {query_word}