Install dependencies static files
- On MacOS with Apple silicon
./install_deps.sh
- On Windows
cmake -S ./nitro_deps -B ./build_deps/nitro_deps cmake --build ./build_deps/nitro_deps --config Release
This will create a build_deps folder, just ignore it
Generate build file
-
On MacOS, Linux, and Windows
mkdir build && cd build cmake ..
-
On MacOS with Intel processors
mkdir build && cd build cmake -DLLAMA_METAL=OFF ..
-
On Linux with CUDA:
mkdir build && cd build cmake -DLLAMA_CUBLAS=ON ..
Build the app
-
On MacOS and Linux
# MacOS make -j $(sysctl -n hw.physicalcpu) # Linux make -j $(%NUMBER_OF_PROCESSORS%)
-
On Windows
cmake --build . --config Release
- On MacOS and Linux run ./nitro to start the process.
- On Windows:
cd Release # add zlib dynamic lib copy ..\..\build_deps\_install\bin\zlib.dll . nitro.exe
To see if the build was successful, visit localhost:8080/test