scripts : make the shell scripts cross-platform (#14341)

This commit is contained in:
Vedran Miletić 2025-06-30 10:17:18 +02:00 committed by GitHub
parent caf5681fcb
commit e9b6350e61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 46 additions and 46 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
./scripts/apple/validate-ios.sh
./scripts/apple/validate-macos.sh
./scripts/apple/validate-visionos.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# validate-ios.sh - Validate iOS Application with embedded llama.xcframework using SwiftUI
# Authentication options (optional) (can be set via environment variables)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# validate-macos.sh - Validate macOS Application with embedded llama.xcframework using SwiftUI
# Authentication options (optional) (can be set via environment variables)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# validate-tvos.sh - Validate tvOS Application with embedded llama.xcframework using SwiftUI
# Authentication options (optional) (can be set via environment variables)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# validate-visionos.sh - Validate visionOS Application with embedded llama.xcframework using SwiftUI
# Authentication options (optional) (can be set via environment variables)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
this=$(realpath "$0"); readonly this
cd "$(dirname "$this")"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ $# -lt 2 ]; then
echo "usage: ./scripts/compare-commits.sh <commit1> <commit2> [additional llama-bench arguments]"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
PROG=${0##*/}
build_dir="build-ci-debug"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
printf "# date: $(date)\n" > AUTHORS
printf "# this file is auto-generated by scripts/gen-authors.sh\n\n" >> AUTHORS

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
wget https://raw.githubusercontent.com/klosax/hellaswag_text_data/main/hellaswag_val_full.txt

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function usage {
echo "usage: <n>$0"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
wget https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
wget https://huggingface.co/datasets/ggml-org/ci/resolve/main/wikitext-2-raw-v1.zip
unzip wikitext-2-raw-v1.zip

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
wget https://huggingface.co/datasets/ikawrakow/winogrande-eval-for-llama.cpp/raw/main/winogrande-debiased-eval.csv

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Shortcut for downloading HF models
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
qnt=(q8_0 q6_k q5_k q5_1 q5_0 q4_k q4_1 q4_0 q3_k q2_k)
args=""

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
qnt=(f16 q8_0 q6_k q5_k q5_1 q5_0 q4_k q4_1 q4_0 q3_k q2_k)
args="-ngl 999 -n 64 -p 512"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
qnt=(f16 q8_0 q6_k q5_k q5_1 q5_0 q4_k q4_1 q4_0 q3_k q2_k)
args="-ngl 999 -t 8"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Synchronize ggml changes to llama.cpp
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cp -rpv ../ggml/CMakeLists.txt ./ggml/CMakeLists.txt
cp -rpv ../ggml/src/CMakeLists.txt ./ggml/src/CMakeLists.txt

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
cmake --build build -j