plybench 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plybench-1.0.0/.env.example +19 -0
- plybench-1.0.0/.github/workflows/ci.yml +69 -0
- plybench-1.0.0/.github/workflows/publish.yml +48 -0
- plybench-1.0.0/.gitignore +225 -0
- plybench-1.0.0/.prettierignore +6 -0
- plybench-1.0.0/.prettierrc +4 -0
- plybench-1.0.0/.python-version +1 -0
- plybench-1.0.0/CHANGELOG.md +27 -0
- plybench-1.0.0/LICENSE +21 -0
- plybench-1.0.0/Makefile +19 -0
- plybench-1.0.0/PKG-INFO +306 -0
- plybench-1.0.0/README.md +263 -0
- plybench-1.0.0/experiments/benchmarks/connect_four.json +13 -0
- plybench-1.0.0/experiments/benchmarks/nim.json +33 -0
- plybench-1.0.0/experiments/benchmarks/ttt.json +34 -0
- plybench-1.0.0/pyproject.toml +81 -0
- plybench-1.0.0/scripts/_shared.py +36 -0
- plybench-1.0.0/scripts/_website_export.py +210 -0
- plybench-1.0.0/scripts/analyze.py +58 -0
- plybench-1.0.0/scripts/export.py +42 -0
- plybench-1.0.0/scripts/play.py +64 -0
- plybench-1.0.0/scripts/run.py +40 -0
- plybench-1.0.0/src/plybench/__init__.py +13 -0
- plybench-1.0.0/src/plybench/analysis/__init__.py +3 -0
- plybench-1.0.0/src/plybench/analysis/benchmark.py +31 -0
- plybench-1.0.0/src/plybench/analysis/extractors/__init__.py +0 -0
- plybench-1.0.0/src/plybench/analysis/extractors/base.py +18 -0
- plybench-1.0.0/src/plybench/analysis/extractors/moves.py +18 -0
- plybench-1.0.0/src/plybench/analysis/extractors/outcomes.py +19 -0
- plybench-1.0.0/src/plybench/analysis/extractors/quality.py +54 -0
- plybench-1.0.0/src/plybench/analysis/extractors/score.py +26 -0
- plybench-1.0.0/src/plybench/analysis/extractors/suite.py +24 -0
- plybench-1.0.0/src/plybench/analysis/extractors/tokens.py +37 -0
- plybench-1.0.0/src/plybench/analysis/replay.py +95 -0
- plybench-1.0.0/src/plybench/analysis/statistics/__init__.py +0 -0
- plybench-1.0.0/src/plybench/analysis/statistics/bundle.py +56 -0
- plybench-1.0.0/src/plybench/analysis/statistics/distribution.py +51 -0
- plybench-1.0.0/src/plybench/analysis/statistics/intervals.py +96 -0
- plybench-1.0.0/src/plybench/analysis/stats/__init__.py +0 -0
- plybench-1.0.0/src/plybench/analysis/stats/compute.py +50 -0
- plybench-1.0.0/src/plybench/analysis/stats/matchup_stats.py +59 -0
- plybench-1.0.0/src/plybench/analysis/stats/step_stats.py +33 -0
- plybench-1.0.0/src/plybench/app.py +28 -0
- plybench-1.0.0/src/plybench/callbacks/__init__.py +0 -0
- plybench-1.0.0/src/plybench/callbacks/benchmark_callbacks.py +84 -0
- plybench-1.0.0/src/plybench/callbacks/game_callbacks.py +76 -0
- plybench-1.0.0/src/plybench/common/__init__.py +0 -0
- plybench-1.0.0/src/plybench/common/enums.py +96 -0
- plybench-1.0.0/src/plybench/common/paths.py +78 -0
- plybench-1.0.0/src/plybench/common/progress.py +17 -0
- plybench-1.0.0/src/plybench/common/serializable.py +58 -0
- plybench-1.0.0/src/plybench/configs/__init__.py +0 -0
- plybench-1.0.0/src/plybench/configs/benchmark_config.py +51 -0
- plybench-1.0.0/src/plybench/configs/game_config.py +25 -0
- plybench-1.0.0/src/plybench/configs/game_params.py +35 -0
- plybench-1.0.0/src/plybench/configs/matchup.py +14 -0
- plybench-1.0.0/src/plybench/configs/parser.py +12 -0
- plybench-1.0.0/src/plybench/configs/player_config.py +32 -0
- plybench-1.0.0/src/plybench/configs/player_params.py +20 -0
- plybench-1.0.0/src/plybench/configs/toggle_item.py +20 -0
- plybench-1.0.0/src/plybench/core/__init__.py +0 -0
- plybench-1.0.0/src/plybench/core/engine.py +121 -0
- plybench-1.0.0/src/plybench/core/game.py +118 -0
- plybench-1.0.0/src/plybench/core/interface.py +121 -0
- plybench-1.0.0/src/plybench/core/llm_interface.py +108 -0
- plybench-1.0.0/src/plybench/core/minimax.py +125 -0
- plybench-1.0.0/src/plybench/core/output_strategy.py +25 -0
- plybench-1.0.0/src/plybench/core/prompt_adapter.py +140 -0
- plybench-1.0.0/src/plybench/games/__init__.py +0 -0
- plybench-1.0.0/src/plybench/games/breakthrough/__init__.py +0 -0
- plybench-1.0.0/src/plybench/games/breakthrough/breakthrough.py +158 -0
- plybench-1.0.0/src/plybench/games/builtins.py +36 -0
- plybench-1.0.0/src/plybench/games/connect_four/__init__.py +0 -0
- plybench-1.0.0/src/plybench/games/connect_four/connect_four.py +131 -0
- plybench-1.0.0/src/plybench/games/generators/__init__.py +0 -0
- plybench-1.0.0/src/plybench/games/generators/generator.py +25 -0
- plybench-1.0.0/src/plybench/games/generators/magic_squares.py +82 -0
- plybench-1.0.0/src/plybench/games/generators/nim.py +94 -0
- plybench-1.0.0/src/plybench/games/nim/__init__.py +0 -0
- plybench-1.0.0/src/plybench/games/nim/inverse_nim.py +107 -0
- plybench-1.0.0/src/plybench/games/nim/modified_nim.py +78 -0
- plybench-1.0.0/src/plybench/games/nim/nim.py +162 -0
- plybench-1.0.0/src/plybench/games/nim/story_nim.py +115 -0
- plybench-1.0.0/src/plybench/games/spec.py +17 -0
- plybench-1.0.0/src/plybench/games/tic_tac_toe/__init__.py +0 -0
- plybench-1.0.0/src/plybench/games/tic_tac_toe/magic_square.py +129 -0
- plybench-1.0.0/src/plybench/games/tic_tac_toe/modified_tic_tac_toe.py +87 -0
- plybench-1.0.0/src/plybench/games/tic_tac_toe/story_magic_square.py +108 -0
- plybench-1.0.0/src/plybench/games/tic_tac_toe/tic_tac_toe.py +134 -0
- plybench-1.0.0/src/plybench/harness/__init__.py +5 -0
- plybench-1.0.0/src/plybench/harness/benchmark.py +131 -0
- plybench-1.0.0/src/plybench/harness/matchup.py +110 -0
- plybench-1.0.0/src/plybench/harness/results.py +34 -0
- plybench-1.0.0/src/plybench/llm/__init__.py +53 -0
- plybench-1.0.0/src/plybench/llm/client.py +66 -0
- plybench-1.0.0/src/plybench/llm/concurrency.py +52 -0
- plybench-1.0.0/src/plybench/llm/llm_config.py +82 -0
- plybench-1.0.0/src/plybench/llm/message.py +27 -0
- plybench-1.0.0/src/plybench/llm/model.py +64 -0
- plybench-1.0.0/src/plybench/llm/model_config.py +11 -0
- plybench-1.0.0/src/plybench/llm/options.py +14 -0
- plybench-1.0.0/src/plybench/llm/providers/__init__.py +0 -0
- plybench-1.0.0/src/plybench/llm/providers/gemini/__init__.py +0 -0
- plybench-1.0.0/src/plybench/llm/providers/gemini/client.py +94 -0
- plybench-1.0.0/src/plybench/llm/providers/gemini/models.py +152 -0
- plybench-1.0.0/src/plybench/llm/providers/huggingface/__init__.py +0 -0
- plybench-1.0.0/src/plybench/llm/providers/huggingface/client.py +134 -0
- plybench-1.0.0/src/plybench/llm/providers/huggingface/models.py +21 -0
- plybench-1.0.0/src/plybench/llm/providers/metacentrum/__init__.py +0 -0
- plybench-1.0.0/src/plybench/llm/providers/metacentrum/client.py +103 -0
- plybench-1.0.0/src/plybench/llm/providers/metacentrum/models.py +67 -0
- plybench-1.0.0/src/plybench/llm/providers/openai/__init__.py +0 -0
- plybench-1.0.0/src/plybench/llm/providers/openai/client.py +116 -0
- plybench-1.0.0/src/plybench/llm/providers/openai/models.py +98 -0
- plybench-1.0.0/src/plybench/llm/providers/providers.py +8 -0
- plybench-1.0.0/src/plybench/llm/response.py +56 -0
- plybench-1.0.0/src/plybench/llm/router.py +89 -0
- plybench-1.0.0/src/plybench/llm/tokens.py +30 -0
- plybench-1.0.0/src/plybench/player/__init__.py +0 -0
- plybench-1.0.0/src/plybench/player/builtins.py +33 -0
- plybench-1.0.0/src/plybench/player/llm_player.py +135 -0
- plybench-1.0.0/src/plybench/player/output_strategies.py +76 -0
- plybench-1.0.0/src/plybench/player/player.py +75 -0
- plybench-1.0.0/src/plybench/player/simple/__init__.py +0 -0
- plybench-1.0.0/src/plybench/player/simple/human_player.py +50 -0
- plybench-1.0.0/src/plybench/player/simple/mcts_player.py +71 -0
- plybench-1.0.0/src/plybench/player/simple/optimal_player.py +89 -0
- plybench-1.0.0/src/plybench/player/simple/random_player.py +69 -0
- plybench-1.0.0/src/plybench/player/spec.py +20 -0
- plybench-1.0.0/src/plybench/py.typed +0 -0
- plybench-1.0.0/src/plybench/registry.py +66 -0
- plybench-1.0.0/src/plybench/trackers/__init__.py +0 -0
- plybench-1.0.0/src/plybench/trackers/game_tracker.py +184 -0
- plybench-1.0.0/src/plybench/trackers/player_tracker.py +21 -0
- plybench-1.0.0/src/plybench/trackers/result_tracker.py +163 -0
- plybench-1.0.0/src/plybench/utils/const.py +1 -0
- plybench-1.0.0/src/plybench/utils/enums.py +17 -0
- plybench-1.0.0/src/plybench/utils/text.py +45 -0
- plybench-1.0.0/src/plybench/visualization/__init__.py +0 -0
- plybench-1.0.0/src/plybench/visualization/characters.py +62 -0
- plybench-1.0.0/src/plybench/visualization/grid.py +98 -0
- plybench-1.0.0/src/plybench/visualization/piles.py +28 -0
- plybench-1.0.0/tests/test_analysis.py +166 -0
- plybench-1.0.0/tests/test_core_trackers.py +139 -0
- plybench-1.0.0/tests/test_export.py +121 -0
- plybench-1.0.0/tests/test_game_callbacks.py +100 -0
- plybench-1.0.0/tests/test_games_all.py +95 -0
- plybench-1.0.0/tests/test_games_tic_tac_toe.py +87 -0
- plybench-1.0.0/tests/test_harness.py +195 -0
- plybench-1.0.0/tests/test_huggingface_provider.py +84 -0
- plybench-1.0.0/tests/test_llm_router.py +101 -0
- plybench-1.0.0/tests/test_players.py +129 -0
- plybench-1.0.0/uv.lock +1752 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# openai configuration
|
|
2
|
+
OPENAI_ORGANIZATION=
|
|
3
|
+
OPENAI_PROJECT=
|
|
4
|
+
OPENAI_API_KEY=
|
|
5
|
+
|
|
6
|
+
# my key
|
|
7
|
+
# GEMINI_PROJECT=
|
|
8
|
+
# GEMINI_API_KEY=
|
|
9
|
+
|
|
10
|
+
# vilo's key
|
|
11
|
+
GEMINI_PROJECT=
|
|
12
|
+
GEMINI_API_KEY=
|
|
13
|
+
|
|
14
|
+
# metacentrum configuration
|
|
15
|
+
METACENTRUM_BASE_URL=
|
|
16
|
+
METACENTRUM_API_KEY=
|
|
17
|
+
|
|
18
|
+
# huggingface configuration (only needed for gated/private models)
|
|
19
|
+
HF_TOKEN=
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ci-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
lint:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v5
|
|
20
|
+
with:
|
|
21
|
+
enable-cache: true
|
|
22
|
+
|
|
23
|
+
- name: Sync dependencies
|
|
24
|
+
run: uv sync --group dev --python 3.13
|
|
25
|
+
|
|
26
|
+
- name: Ruff lint
|
|
27
|
+
run: uv run ruff check .
|
|
28
|
+
|
|
29
|
+
- name: Ruff format check
|
|
30
|
+
run: uv run ruff format --check .
|
|
31
|
+
|
|
32
|
+
- name: Prettier format check
|
|
33
|
+
run: npx --yes prettier@3.9.6 --check .
|
|
34
|
+
|
|
35
|
+
test:
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
strategy:
|
|
38
|
+
fail-fast: false
|
|
39
|
+
matrix:
|
|
40
|
+
python-version: ["3.12", "3.13"]
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v4
|
|
43
|
+
|
|
44
|
+
- name: Install uv
|
|
45
|
+
uses: astral-sh/setup-uv@v5
|
|
46
|
+
with:
|
|
47
|
+
enable-cache: true
|
|
48
|
+
|
|
49
|
+
- name: Sync dependencies
|
|
50
|
+
run: uv sync --group dev --python ${{ matrix.python-version }}
|
|
51
|
+
|
|
52
|
+
- name: Run tests
|
|
53
|
+
run: uv run --group dev --python ${{ matrix.python-version }} pytest -q
|
|
54
|
+
|
|
55
|
+
build:
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/checkout@v4
|
|
59
|
+
|
|
60
|
+
- name: Install uv
|
|
61
|
+
uses: astral-sh/setup-uv@v5
|
|
62
|
+
with:
|
|
63
|
+
enable-cache: true
|
|
64
|
+
|
|
65
|
+
- name: Build wheel and sdist
|
|
66
|
+
run: uv build
|
|
67
|
+
|
|
68
|
+
- name: Check package metadata
|
|
69
|
+
run: uvx twine check dist/*
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
# Publishes to PyPI when a GitHub Release is published.
|
|
4
|
+
# Uses PyPI Trusted Publishing (OIDC) — no API token is stored.
|
|
5
|
+
# One-time setup on PyPI: add a trusted publisher for project "plybench" with
|
|
6
|
+
# owner=radajakub, repository=plybench, workflow=publish.yml, environment=pypi.
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [published]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Install uv
|
|
18
|
+
uses: astral-sh/setup-uv@v5
|
|
19
|
+
|
|
20
|
+
- name: Build wheel and sdist
|
|
21
|
+
run: uv build
|
|
22
|
+
|
|
23
|
+
- name: Check package metadata
|
|
24
|
+
run: uvx twine check dist/*
|
|
25
|
+
|
|
26
|
+
- name: Upload build artifacts
|
|
27
|
+
uses: actions/upload-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
name: dist
|
|
30
|
+
path: dist/
|
|
31
|
+
|
|
32
|
+
publish:
|
|
33
|
+
needs: build
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
environment:
|
|
36
|
+
name: pypi
|
|
37
|
+
url: https://pypi.org/p/plybench
|
|
38
|
+
permissions:
|
|
39
|
+
id-token: write # required for trusted publishing
|
|
40
|
+
steps:
|
|
41
|
+
- name: Download build artifacts
|
|
42
|
+
uses: actions/download-artifact@v4
|
|
43
|
+
with:
|
|
44
|
+
name: dist
|
|
45
|
+
path: dist/
|
|
46
|
+
|
|
47
|
+
- name: Publish to PyPI
|
|
48
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
# Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
# Temporary file for partial code execution
|
|
204
|
+
tempCodeRunnerFile.py
|
|
205
|
+
|
|
206
|
+
# Ruff stuff:
|
|
207
|
+
.ruff_cache/
|
|
208
|
+
|
|
209
|
+
# PyPI configuration file
|
|
210
|
+
.pypirc
|
|
211
|
+
|
|
212
|
+
# Marimo
|
|
213
|
+
marimo/_static/
|
|
214
|
+
marimo/_lsp/
|
|
215
|
+
__marimo__/
|
|
216
|
+
|
|
217
|
+
# Streamlit
|
|
218
|
+
.streamlit/secrets.toml
|
|
219
|
+
|
|
220
|
+
.DS_Store
|
|
221
|
+
|
|
222
|
+
/analysis/
|
|
223
|
+
/results/
|
|
224
|
+
/cache/
|
|
225
|
+
/plots/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [1.0.0]
|
|
10
|
+
|
|
11
|
+
Initial release of PlyBench.
|
|
12
|
+
|
|
13
|
+
- Benchmark harness for LLMs, MCTS, optimal solvers, random, and human players.
|
|
14
|
+
- Built-in games: tic-tac-toe family, nim family, connect four, breakthrough.
|
|
15
|
+
- Analysis pipeline with confidence intervals and minimax-based optimality/regret.
|
|
16
|
+
- Open registries for adding custom games and players.
|
|
17
|
+
- LLM providers as optional extras (`openai`, `gemini`, `metacentrum`, `huggingface`, and
|
|
18
|
+
`all`); the core install pulls in no provider SDKs, and the router wires up only the providers
|
|
19
|
+
whose dependency is installed (and configured).
|
|
20
|
+
- HuggingFace provider that runs models locally (downloading them to the HuggingFace cache) and
|
|
21
|
+
exposes embeddings through `LLM.embed`. Declare the environment's models with
|
|
22
|
+
`PlyBench(hf_models=[...])`; they are downloaded/verified at bootstrap, and requesting a model
|
|
23
|
+
that was not bootstrapped raises a helpful error. Reads `HF_TOKEN` for gated/private models.
|
|
24
|
+
Ships one supported model: `sup-simcse-bert` (`princeton-nlp/sup-simcse-bert-base-uncased`).
|
|
25
|
+
|
|
26
|
+
[Unreleased]: https://github.com/radajakub/plybench/compare/v1.0.0...HEAD
|
|
27
|
+
[1.0.0]: https://github.com/radajakub/plybench/releases/tag/v1.0.0
|
plybench-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jakub Rada
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
plybench-1.0.0/Makefile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.PHONY: lint format check fix
|
|
2
|
+
|
|
3
|
+
# Check lint and formatting (same checks as CI)
|
|
4
|
+
lint:
|
|
5
|
+
uv run ruff check .
|
|
6
|
+
uv run ruff format --check .
|
|
7
|
+
npx --yes prettier@3.9.6 --check .
|
|
8
|
+
|
|
9
|
+
# Alias for lint
|
|
10
|
+
check: lint
|
|
11
|
+
|
|
12
|
+
# Autofix lint issues and reformat
|
|
13
|
+
format:
|
|
14
|
+
uv run ruff check --fix .
|
|
15
|
+
uv run ruff format .
|
|
16
|
+
npx --yes prettier@3.9.6 --write .
|
|
17
|
+
|
|
18
|
+
# Alias for format
|
|
19
|
+
fix: format
|