char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Daniel Beveniusserver : use pytest-xdist for server tests (#28298)42f0225fe

char/aliceai-t5-moe
507 B20 linesraw
1#!/usr/bin/env bash
2
3# make sure we are in the right directory
4SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5cd $SCRIPT_DIR
6
7set -eu
8
9WORKERS="${PYTEST_WORKERS:-auto}"
10
11if [ $# -lt 1 ]
12then
13    if [[ "${SLOW_TESTS:-0}" == 1 ]]; then
14        pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal
15    else
16        pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal -m "not slow"
17    fi
18else
19    pytest --durations=30 -n "${WORKERS}" --dist=worksteal "$@"
20fi