char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
0024a69b7
char/aliceai-t5-moe
1#!/bin/sh 2# vim: set ts=4 sw=4 et: 3 4FILE ="winogrande-debiased-eval.csv" 5URL ="https://huggingface.co/datasets/ikawrakow/winogrande-eval-for-llama.cpp/raw/main/ $ FILE " 6 7die () { 8printf "%s\n" " $ @" >&2 9exit 1 10} 11 12have_cmd () { 13for cmd ;do 14command -v " $ cmd " > /dev/null ||return 15done 16} 17 18dl () { 19 [ -f" $ 2 " ]&& return 20if have_cmd wget;then 21wget " $ 1 " -O " $ 2 " 22elif have_cmd curl;then 23curl -L " $ 1 " -o " $ 2 " 24else 25die "Please install wget or curl" 26fi 27} 28 29if [ ! -f" $ FILE " ];then 30dl " $ URL " " $ FILE " ||exit 31fi 32 33cat <<EOF 34Usage: 35 36llama-perplexity -m model.gguf -f $ FILE --winogrande [--winogrande-tasks N] [other params] 37 38EOF