forked from fixie-ai/ai-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
48 lines (35 loc) · 1.26 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This is the main Justfile for the Fixie repo.
# To install Just, see: https://github.com/casey/just#installation
# Allow for positional arguments in Just recipes.
set positional-arguments := true
# Default recipe that runs if you type "just".
default: format check test
# Install dependencies for local development.
install:
pip install poetry==1.7.1
poetry install --sync
format:
poetry run autoflake . --remove-all-unused-imports --quiet --in-place -r --exclude third_party
poetry run isort . --force-single-line-imports
poetry run black .
check:
poetry run black . --check
poetry run isort . --check --force-single-line-imports
poetry run autoflake . --check --quiet --remove-all-unused-imports -r --exclude third_party
poetry run mypy .
deploy *FLAGS:
flyctl deploy {{FLAGS}}
server:
just python app.py
curl *FLAGS:
curl -X POST "https://ai-benchmarks.fly.dev/bench?max_tokens=20&{{FLAGS}}" -H fly-prefer-region:sea
curl_local *FLAGS:
curl -X POST "http://localhost:8000/bench?max_tokens=20&{{FLAGS}}"
test *FLAGS:
poetry run pytest {{FLAGS}}
python *FLAGS:
poetry run python {{FLAGS}}
llm *FLAGS:
poetry run python llm_benchmark.py {{FLAGS}}
llms *FLAGS:
poetry run python llm_benchmark_suite.py {{FLAGS}}