/
vshmidt
/
llama.cpp
Обзор
Документация
Войти
/
vshmidt
/
llama.cpp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/get-hellaswag.sh
38 строк
661 B
Adrien Gallouët
scripts : update get-hellaswag.sh and get-winogrande.sh (#20542)
14 мар 2026, 13:21
Не верифицирован
14 мар 2026, 13:21
0024a69
Код
Авторство
О чём код?
#!/bin/sh # vim: set ts=4 sw=4 et: FILE="hellaswag_val_full.txt" URL="https://raw.githubusercontent.com/klosax/hellaswag_text_data/main/$FILE" die() { printf "%s\n" "$@" >&2 exit 1 } have_cmd() { for cmd; do command -v "$cmd" >/dev/null || return done } dl() { [ -f "$2" ] && return if have_cmd wget; then wget "$1" -O "$2" elif have_cmd curl; then curl -L "$1" -o "$2" else die "Please install wget or curl" fi } if [ ! -f "$FILE" ]; then dl "$URL" "$FILE" || exit fi cat <<EOF Usage: llama-perplexity -m model.gguf -f $FILE --hellaswag [--hellaswag-tasks N] [other params] EOF