-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
78 lines (60 loc) · 1.49 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
py_exe := `uv run which python`
# This is what I can do
default:
just --list
# Install the project
[group('Begin Here')]
init:
uv venv --allow-existing
uv sync
# Download model quality benchmark results and Elo ratings from LMArena (formally LMSYS)
[group('Benchmarks')]
lmsys:
uv run lmsys
# Download model cost benchmarks from https://github.com/BerriAI/litellm/
[group('Benchmarks')]
litellm:
uv run litellm
# Download model speed benchmark results from https://thefastest.ai/
[group('Benchmarks')]
thefastestai:
uv run thefastestai
alias download := download-benchmarks
# Download all benchmark results
download-benchmarks: lmsys litellm thefastestai
alias score := score-benchmarks
alias scoring := score-benchmarks
# Score the benchmark results
score-benchmarks:
uv run scoring
alias update := all
# Download all benchmark results and score
all: sync download-benchmarks score-benchmarks
# Check python version (How to run python scripts)
[group('Developer Tools')]
pyversion:
#!{{py_exe}}
import sys
print(sys.version)
# Sync the dependencies
[group('Developer Tools')]
sync:
uv sync
# Lint all files
[group('Developer Tools')]
lint: sync
uv run ruff check src tests
# Typecheck all files
[group('Developer Tools')]
typecheck: sync
uv run pyright src
# Run all tests -- NONE YET!
# test: sync
# uv run pytest tests -ra
# Run all checks
[group('Developer Tools')]
check: lint typecheck
# Ruff auto fixes
[group('Developer Tools')]
fix:
uv run ruff check --fix src tests