Skip to content

Commit d491318

Browse files
committed
Switch to AI benchmark task.
1 parent b08a7b1 commit d491318

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

benchmark/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'disk-benchmark.py',
1414
'top500.py',
1515
'sbc-general-benchmark.py',
16-
'ollama-benchmark.py',
16+
'ai-benchmark.py',
1717
]
1818

1919
local.include("tasks/setup.py")
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
)
3434

3535
git.repo(
36-
name="Clone ollama-benchmark with git.",
37-
src="https://github.com/geerlingguy/ollama-benchmark.git",
38-
dest="{}/ollama-benchmark".format(working_dir),
36+
name="Clone ai-benchmarks with git.",
37+
src="https://github.com/geerlingguy/ai-benchmarks.git",
38+
dest="{}/ai-benchmarks".format(working_dir),
3939
)
4040

4141
def ollama_loop_callback():
@@ -52,7 +52,7 @@ def ollama_loop_callback():
5252

5353
ollama_benchmark_result = server.shell(
5454
name="Benchmark Ollama model: {}".format(model),
55-
commands="{}/ollama-benchmark/obench.sh -m {} -c 3 --markdown".format(working_dir, model),
55+
commands="{}/ai-benchmarks/obench.sh -m {} -c 3 --markdown".format(working_dir, model),
5656
)
5757

5858
logger.info(f"\n{ollama_benchmark_result.stdout}\n\n")

benchmark/tasks/sbc-general-benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pyinfra.operations import files, python, server
33
from pyinfra.facts.server import Home
44

5-
php_version="8.2" # TODO Maybe map 8.x for different Ubuntu / Debian versions.
5+
php_version="8.4" # TODO Maybe map 8.x for different Ubuntu / Debian versions.
66
working_dir=host.get_fact(Home) + "/Downloads"
77

88
files.download(

benchmark/tasks/top500.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
# TODO: Make this dynamic based on CPU core count?
99
# See: https://gist.github.com/CJCShadowsan/94efdf21539f3156414c1224b1c76605
10-
hpl_ps=4
11-
hpl_qs=4
10+
hpl_ps=1
11+
hpl_qs=6
1212

1313
git.repo(
1414
name="Clone top500 with git.",

0 commit comments

Comments
 (0)