char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
ec88c3cee
char/aliceai-t5-moe
1#!/bin/sh 2# 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 () { 9printf "%s\n" " $ @" >&2 10exit 1 11} 12 13have_cmd () { 14for cmd ;do 15command -v " $ cmd " > /dev/null ||return 16done 17} 18 19dl () { 20 [ -f" $ 2 " ]&& return 21if have_cmd wget;then 22wget " $ 1 " -O " $ 2 " 23elif have_cmd curl;then 24curl -L " $ 1 " -o " $ 2 " 25else 26die "Please install wget or curl" 27fi 28} 29 30have_cmd unzip ||die "Please install unzip" 31 32if [ ! -f" $ FILE " ];then 33dl " $ URL " " $ ZIP " ||exit 34unzip -o " $ ZIP " ||exit 35rm -f -- " $ ZIP " 36fi 37 38cat <<EOF 39Usage: 40 41llama-perplexity -m model.gguf -f $ FILE [other params] 42 43EOF