echodict/llama.cpp
version https://git-lfs.github.com/spec/v1 oid sha256:cfc44b7ba25614df70e6b65e3341cae0310163bd32fd31a6b928a542df433faf size 30786
0773
1#!/bin/sh2# vim: set ts=4 sw=4 et:3 4ZIP="wikitext-2-raw-v1.zip"5FILE="wikitext-2-raw/wiki.test.raw"6URL="https://huggingface.co/datasets/ggml-org/ci/resolve/main/$ZIP"7 8die() {9 printf "%s\n" "$@" >&210 exit 111}12 13have_cmd() {14 for cmd; do15 command -v "$cmd" >/dev/null || return16 done17}18 19dl() {20 [ -f "$2" ] && return21 if have_cmd wget; then22 wget "$1" -O "$2"23 elif have_cmd curl; then24 curl -L "$1" -o "$2"25 else26 die "Please install wget or curl"27 fi28}29 30have_cmd unzip || die "Please install unzip"31 32if [ ! -f "$FILE" ]; then33 dl "$URL" "$ZIP" || exit34 unzip -o "$ZIP" || exit35 rm -f -- "$ZIP"36fi37 38cat <<EOF39Usage:40 41 llama-perplexity -m model.gguf -f $FILE [other params]42 43EOF44 