2
0

gguf 461 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -e
  3. pushd $(cd $(dirname ${0})/..; pwd) > /dev/null
  4. clean() {
  5. echo "mslite clean"
  6. rm -rf "./third_party/source/llama.cpp"
  7. }
  8. sync() {
  9. echo "ggml sync"
  10. [ -d "./third_party/source/llama.cpp" ] || git clone --quiet https://github.com/ggerganov/llama.cpp.git "./third_party/source/llama.cpp"
  11. }
  12. while [ "$#" != 0 ]; do
  13. command="$1" && shift
  14. case "${command}" in
  15. "clean") clean;;
  16. "sync") sync;;
  17. esac
  18. done