Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/scripts/compare-commits.sh from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/scripts/compare-commits.sh
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/scripts/compare-commits.sh
-
curl -L -o compare-commits.sh https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/scripts/compare-commits.sh
676 Bytes
| if [ $# -lt 2 ]; then | |
| echo "usage: ./scripts/compare-commits.sh <commit1> <commit2> [additional llama-bench arguments]" | |
| exit 1 | |
| fi | |
| set -e | |
| set -x | |
| bench_args="${@:3}" | |
| rm -f llama-bench.sqlite | |
| # to test a backend, call the script with the corresponding environment variable (e.g. LLAMA_CUDA=1 ./scripts/compare-commits.sh ...) | |
| git checkout $1 | |
| make clean && make -j32 $make_opts llama-bench | |
| ./llama-bench -o sql $bench_args | tee /dev/tty | sqlite3 llama-bench.sqlite | |
| git checkout $2 | |
| make clean && make -j32 $make_opts llama-bench | |
| ./llama-bench -o sql $bench_args | tee /dev/tty | sqlite3 llama-bench.sqlite | |
| ./scripts/compare-llama-bench.py -b $1 -c $2 | |