char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Adrien Gallouëtscripts : update get-hellaswag.sh and get-winogrande.sh (#20542)0024a69b7

char/aliceai-t5-moe
684 B38 linesraw
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() {
8    printf "%s\n" "$@" >&2
9    exit 1
10}
11
12have_cmd() {
13    for cmd; do
14        command -v "$cmd" >/dev/null || return
15    done
16}
17
18dl() {
19    [ -f "$2" ] && return
20    if have_cmd wget; then
21        wget "$1" -O "$2"
22    elif have_cmd curl; then
23        curl -L "$1" -o "$2"
24    else
25        die "Please install wget or curl"
26    fi
27}
28
29if [ ! -f "$FILE" ]; then
30    dl "$URL" "$FILE" || exit
31fi
32
33cat <<EOF
34Usage:
35
36  llama-perplexity -m model.gguf -f $FILE --winogrande [--winogrande-tasks N] [other params]
37
38EOF