CoolFace
Datasetpublic

echodict/llama.cpp

version https://git-lfs.github.com/spec/v1 oid sha256:cfc44b7ba25614df70e6b65e3341cae0310163bd32fd31a6b928a542df433faf size 30786

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes773downloads
get-hellaswag.sh39 linesDownload Raw Back to scripts
1#!/bin/sh2# vim: set ts=4 sw=4 et:3 4FILE="hellaswag_val_full.txt"5URL="https://raw.githubusercontent.com/klosax/hellaswag_text_data/main/$FILE"6 7die() {8    printf "%s\n" "$@" >&29    exit 110}11 12have_cmd() {13    for cmd; do14        command -v "$cmd" >/dev/null || return15    done16}17 18dl() {19    [ -f "$2" ] && return20    if have_cmd wget; then21        wget "$1" -O "$2"22    elif have_cmd curl; then23        curl -L "$1" -o "$2"24    else25        die "Please install wget or curl"26    fi27}28 29if [ ! -f "$FILE" ]; then30    dl "$URL" "$FILE" || exit31fi32 33cat <<EOF34Usage:35 36  llama-perplexity -m model.gguf -f $FILE --hellaswag [--hellaswag-tasks N] [other params]37 38EOF39