taagarwa commited on
Commit
fa0576d
·
0 Parent(s):

🎉 Reset repo

Browse files
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tflite filter=lfs diff=lfs merge=lfs -text
29
+ *.tgz filter=lfs diff=lfs merge=lfs -text
30
+ *.wasm filter=lfs diff=lfs merge=lfs -text
31
+ *.xz filter=lfs diff=lfs merge=lfs -text
32
+ *.zip filter=lfs diff=lfs merge=lfs -text
33
+ *.zst filter=lfs diff=lfs merge=lfs -text
34
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ scale-hf-logo.png filter=lfs diff=lfs merge=lfs -text
36
+ *.png filter=lfs diff=lfs merge=lfs -text
.github/workflows/sync-to-hf-space.yml ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync main to HF Space
2
+
3
+ # Mirrors every push to `main` on GitHub into the HF Space git remote so
4
+ # that the public coding-agent-leaderboard Space (https://huggingface.co/spaces/taagarwa/coding-agent-leaderboard)
5
+ # always tracks the source-of-truth repo.
6
+ #
7
+ # Required repository secrets (Settings -> Secrets and variables -> Actions):
8
+ # HF_TOKEN Hugging Face access token with write permission to the Space.
9
+ # Create at https://huggingface.co/settings/tokens
10
+ # (token type "Write" is sufficient; no organization scope needed).
11
+ # HF_USERNAME Optional fallback username if token introspection fails.
12
+ #
13
+ # Optional: set HF_SPACE_ID as a repo variable (not secret) to point the
14
+ # workflow at a different Space; defaults to "taagarwa/coding-agent-leaderboard".
15
+
16
+ on:
17
+ push:
18
+ branches: [main]
19
+ # Manual dispatch lets you re-mirror the latest main on demand from
20
+ # the Actions tab without pushing a new commit.
21
+ workflow_dispatch:
22
+
23
+ # Only one mirror job at a time so we never race ourselves into
24
+ # non-fast-forward pushes on the Space remote.
25
+ concurrency:
26
+ group: sync-to-hf-space
27
+ cancel-in-progress: false
28
+
29
+ jobs:
30
+ mirror:
31
+ runs-on: ubuntu-latest
32
+ timeout-minutes: 10
33
+ steps:
34
+ - name: Checkout GitHub main (full history + LFS)
35
+ uses: actions/checkout@v4
36
+ with:
37
+ fetch-depth: 0
38
+ lfs: true
39
+
40
+ - name: Verify required secrets
41
+ env:
42
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
43
+ run: |
44
+ if [ -z "$HF_TOKEN" ]; then
45
+ echo "::error::HF_TOKEN repository secret must be set."
46
+ echo " Create HF_TOKEN at https://huggingface.co/settings/tokens (type: Write)"
47
+ exit 1
48
+ fi
49
+
50
+ - name: Ensure HF Space exists
51
+ id: hf
52
+ env:
53
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
54
+ HF_USERNAME: ${{ secrets.HF_USERNAME }}
55
+ HF_SPACE_ID: ${{ vars.HF_SPACE_ID || 'taagarwa/coding-agent-leaderboard' }}
56
+ run: |
57
+ set -euo pipefail
58
+ python -m pip install --quiet 'huggingface_hub>=0.24,<2'
59
+ python - <<'PY'
60
+ import os
61
+
62
+ from huggingface_hub import HfApi
63
+
64
+ token = os.environ["HF_TOKEN"]
65
+ space_id = os.environ["HF_SPACE_ID"]
66
+ fallback_username = os.environ.get("HF_USERNAME", "").strip()
67
+
68
+ api = HfApi(token=token)
69
+ username = fallback_username
70
+ try:
71
+ info = api.whoami(token=token)
72
+ username = str(info.get("name") or username).strip()
73
+ except Exception as exc:
74
+ if not username:
75
+ raise RuntimeError("HF_USERNAME fallback is required when token introspection fails") from exc
76
+
77
+ api.create_repo(
78
+ repo_id=space_id,
79
+ repo_type="space",
80
+ space_sdk="docker",
81
+ token=token,
82
+ exist_ok=True,
83
+ )
84
+
85
+ with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as output:
86
+ output.write(f"username={username}\n")
87
+ print(f"HF Space ready: {space_id}")
88
+ PY
89
+
90
+ - name: Push to HF Space remote
91
+ env:
92
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
93
+ HF_USERNAME: ${{ steps.hf.outputs.username }}
94
+ HF_SPACE_ID: ${{ vars.HF_SPACE_ID || 'taagarwa/coding-agent-leaderboard' }}
95
+ run: |
96
+ set -euo pipefail
97
+ # Authenticate via token in the URL. HF Spaces accept the
98
+ # username + token basic-auth format over HTTPS git.
99
+ HF_REMOTE="https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE_ID}"
100
+
101
+ # Configure identity for any metadata operations. The actual
102
+ # commits come from GitHub unchanged; we only push refs.
103
+ git config user.name "github-actions[bot]"
104
+ git config user.email "github-actions[bot]@users.noreply.github.com"
105
+
106
+ echo "Pushing $(git rev-parse --short HEAD) to ${HF_SPACE_ID}..."
107
+
108
+ # --force is intentional: GitHub is the single source of truth
109
+ # for the Space's git history. Anything on the Space side that
110
+ # wasn't committed via GitHub is overwritten on the next sync.
111
+ # This prevents the drift situation where someone edits files
112
+ # in the HF Space UI and creates commits only visible there.
113
+ git push --force "${HF_REMOTE}" HEAD:main
114
+
115
+ echo "Sync complete."
116
+
117
+ - name: Summary
118
+ if: success()
119
+ run: |
120
+ echo "### HF Space mirror" >> "$GITHUB_STEP_SUMMARY"
121
+ echo "" >> "$GITHUB_STEP_SUMMARY"
122
+ echo "Pushed \`$(git rev-parse --short HEAD)\` to \`${{ vars.HF_SPACE_ID || 'taagarwa/coding-agent-leaderboard' }}\` Space." >> "$GITHUB_STEP_SUMMARY"
123
+ echo "" >> "$GITHUB_STEP_SUMMARY"
124
+ echo "View the Space: <https://huggingface.co/spaces/${{ vars.HF_SPACE_ID || 'taagarwa/coding-agent-leaderboard' }}>" >> "$GITHUB_STEP_SUMMARY"
.gitignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ auto_evals/
2
+ venv/
3
+ __pycache__/
4
+ .env
5
+ .ipynb_checkpoints
6
+ *ipynb
7
+ .vscode/
8
+
9
+ eval-queue/
10
+ eval-results/
11
+ eval-queue-bk/
12
+ eval-results-bk/
13
+ logs/
14
+ uv.lock
.pre-commit-config.yaml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ default_language_version:
16
+ python: python3
17
+
18
+ ci:
19
+ autofix_prs: true
20
+ autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
21
+ autoupdate_schedule: quarterly
22
+
23
+ repos:
24
+ - repo: https://github.com/pre-commit/pre-commit-hooks
25
+ rev: v4.3.0
26
+ hooks:
27
+ - id: check-yaml
28
+ - id: check-case-conflict
29
+ - id: detect-private-key
30
+ - id: check-added-large-files
31
+ args: ['--maxkb=1000']
32
+ - id: requirements-txt-fixer
33
+ - id: end-of-file-fixer
34
+ - id: trailing-whitespace
35
+
36
+ - repo: https://github.com/PyCQA/isort
37
+ rev: 5.12.0
38
+ hooks:
39
+ - id: isort
40
+ name: Format imports
41
+
42
+ - repo: https://github.com/psf/black
43
+ rev: 22.12.0
44
+ hooks:
45
+ - id: black
46
+ name: Format code
47
+ additional_dependencies: ['click==8.0.2']
48
+
49
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
50
+ # Ruff version.
51
+ rev: 'v0.0.267'
52
+ hooks:
53
+ - id: ruff
Makefile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .PHONY: style format
2
+
3
+
4
+ style:
5
+ python -m black --line-length 119 .
6
+ python -m isort .
7
+ ruff check --fix .
8
+
9
+
10
+ quality:
11
+ python -m black --check --line-length 119 .
12
+ python -m isort --check-only .
13
+ ruff check .
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Coding Agent Leaderboard
3
+ emoji: 🥇
4
+ colorFrom: green
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: true
9
+ license: mit
10
+ short_description: Compare coding agent models + harnesses
11
+ sdk_version: 5.43.1
12
+ tags:
13
+ - leaderboard
14
+ ---
15
+
16
+ # Coding Agent Leaderboard
17
+
18
+ ## Adding a New Leaderboard Entry
19
+
20
+ Create a PR adding a new entry into the `results/` folder.
21
+ Check out `results/qwen3-6-35b-nvfp4-claude-code.json`(./results/qwen3-6-35b-nvfp4-claude-code.json) for an example result.
22
+
23
+ ## Development
24
+
25
+ 1. Install dependencies
26
+
27
+ ```sh
28
+ pip install -r requirements.txt
29
+
30
+ # or
31
+
32
+ uv venv
33
+ uv pip install -r requirements.txt
34
+ ```
35
+
36
+ 2. Run the app
37
+
38
+ ```sh
39
+ python app.py
40
+ ```
app.py ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import re
3
+
4
+ import gradio as gr
5
+ from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns
6
+ from apscheduler.schedulers.background import BackgroundScheduler
7
+ from huggingface_hub import HfApi
8
+
9
+ from src.leaderboard import get_leaderboard_df, DISPLAY_BY_DEFAULT, SEARCH_COLUMNS
10
+ from src.display.text_blocks import (
11
+ INTRODUCTION_TEXT,
12
+ LLM_BENCHMARKS_TEXT,
13
+ CITATION_BUTTON_LABEL,
14
+ CITATION_BUTTON_TEXT,
15
+ )
16
+
17
+ REPO_ID = "taagarwa/coding-agent-leaderboard"
18
+ TOKEN = os.environ.get("HF_TOKEN")
19
+ API = HfApi(token=TOKEN)
20
+
21
+
22
+ def restart_space():
23
+ API.restart_space(repo_id=REPO_ID)
24
+
25
+
26
+ LEADERBOARD_DF = get_leaderboard_df()
27
+
28
+ def extract_body(s: str):
29
+ return re.match(r'\[(.*?)\]', s).group(1)
30
+
31
+
32
+ def init_leaderboard(dataframe):
33
+ if dataframe is None or dataframe.empty:
34
+ raise ValueError("Leaderboard DataFrame is empty or None.")
35
+
36
+ # Make ColumnFilter choices from md format
37
+ dataset_choices = sorted({(extract_body(v), v) for v in dataframe["dataset"]})
38
+
39
+ return Leaderboard(
40
+ value=dataframe,
41
+ select_columns=SelectColumns(
42
+ default_selection=DISPLAY_BY_DEFAULT,
43
+ label="Select Columns to Display:",
44
+ ),
45
+ datatype="markdown",
46
+ search_columns=SEARCH_COLUMNS,
47
+ filter_columns=[
48
+ ColumnFilter(label="Dataset", column="dataset", type="checkboxgroup", choices=dataset_choices),
49
+ ColumnFilter(label="Model License", column="model_license", type="checkboxgroup"),
50
+ ColumnFilter(label="Harness License", column="harness_license", type="checkboxgroup"),
51
+ ColumnFilter(label="Number of Parameters (B)", column="model_num_params", type="slider", min=0, max=4000, default=(0, 4000)),
52
+ ColumnFilter(label="Precision", column="precision", type="checkboxgroup"),
53
+ ],
54
+ interactive=False,
55
+ )
56
+
57
+ demo = gr.Blocks()
58
+ with demo:
59
+ gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
60
+
61
+ with gr.Tabs() as tabs:
62
+ with gr.TabItem("🏅 Coding Agent Benchmark"):
63
+ leaderboard = init_leaderboard(LEADERBOARD_DF)
64
+ gr.Markdown("\* `internal` refers to internal benchmarks performed by the model provider where the harness/environment were not made public")
65
+
66
+ with gr.TabItem("📝 About"):
67
+ gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
68
+
69
+ with gr.Row():
70
+ with gr.Accordion("📙 Citation", open=False):
71
+ citation_button = gr.Textbox(
72
+ value=CITATION_BUTTON_TEXT,
73
+ label=CITATION_BUTTON_LABEL,
74
+ lines=20,
75
+ elem_id="citation-button",
76
+ show_copy_button=True,
77
+ )
78
+
79
+ scheduler = BackgroundScheduler()
80
+ scheduler.add_job(restart_space, "interval", seconds=1800)
81
+ scheduler.start()
82
+ demo.queue(default_concurrency_limit=40).launch()
pyproject.toml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.ruff]
2
+ # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
3
+ select = ["E", "F"]
4
+ ignore = ["E501"] # line too long (black is taking care of this)
5
+ line-length = 119
6
+ fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
7
+
8
+ [tool.isort]
9
+ profile = "black"
10
+ line_length = 119
11
+
12
+ [tool.black]
13
+ line-length = 119
requirements.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ APScheduler
2
+ black
3
+ datasets
4
+ gradio
5
+ gradio[oauth]
6
+ gradio_leaderboard==0.0.13
7
+ gradio_client
8
+ huggingface-hub>=0.18.0
9
+ matplotlib
10
+ numpy
11
+ pandas
12
+ python-dateutil
13
+ tqdm
14
+ transformers
15
+ tokenizers>=0.15.0
16
+ sentencepiece
results/claude-opus-4-7-internal.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "name": "swe-bench-verified",
4
+ "repo": "SWE-bench/SWE-bench_Verified",
5
+ "num_tasks": 500,
6
+ "url": "https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified"
7
+ },
8
+ "harness": {
9
+ "name": "internal",
10
+ "skills": [],
11
+ "is_oss": false,
12
+ "url": "https://www.anthropic.com/news/claude-opus-4-7"
13
+ },
14
+ "model": {
15
+ "name": "Claude Opus 4.7",
16
+ "repo": "Claude Opus 4.7",
17
+ "is_oss": false,
18
+ "num_params": 4000,
19
+ "precision": "bf16",
20
+ "url": "https://www.anthropic.com/news/claude-opus-4-7"
21
+ },
22
+ "environment": {
23
+ "name": "internal",
24
+ "url": "https://www.anthropic.com/news/claude-opus-4-7"
25
+ },
26
+ "metrics": {
27
+ "score": 0.876,
28
+ "time": null,
29
+ "costUSD": null
30
+ }
31
+ }
results/qwen3-6-35b-internal.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "name": "swe-bench-verified",
4
+ "repo": "SWE-bench/SWE-bench_Verified",
5
+ "num_tasks": 500,
6
+ "url": "https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified"
7
+ },
8
+ "harness": {
9
+ "name": "internal",
10
+ "skills": [],
11
+ "is_oss": false,
12
+ "url": "https://qwen.ai/blog?id=qwen3.6-35b-a3b"
13
+ },
14
+ "model": {
15
+ "name": "Qwen3.6-35B-A3B",
16
+ "repo": "Qwen/Qwen3.6-35B-A3B",
17
+ "is_oss": true,
18
+ "num_params": 35,
19
+ "precision": "bf16",
20
+ "url": "https://huggingface.co/Qwen/Qwen3.6-35B-A3B"
21
+ },
22
+ "environment": {
23
+ "name": "internal",
24
+ "url": "https://qwen.ai/blog?id=qwen3.6-35b-a3b"
25
+ },
26
+ "metrics": {
27
+ "score": 0.734,
28
+ "time": null,
29
+ "costUSD": null
30
+ }
31
+ }
results/qwen3-6-35b-nvfp4-claude-code.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "name": "swe-bench-verified",
4
+ "repo": "SWE-bench/SWE-bench_Verified",
5
+ "num_tasks": 500,
6
+ "url": "https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified"
7
+ },
8
+ "harness": {
9
+ "name": "claude-code",
10
+ "skills": [],
11
+ "is_oss": false,
12
+ "url": "https://github.com/anthropics/claude-code"
13
+ },
14
+ "model": {
15
+ "name": "Qwen3.6-35B-A3B",
16
+ "repo": "RedHatAI/Qwen3.6-35B-A3B-NVFP4",
17
+ "is_oss": true,
18
+ "num_params": 35,
19
+ "precision": "nvfp4",
20
+ "url": "https://huggingface.co/RedHatAI/Qwen3.6-35B-A3B-NVFP4"
21
+ },
22
+ "environment": {
23
+ "name": "harbor",
24
+ "config": {
25
+ "path": null,
26
+ "name": "swe-bench/swe-bench-verified",
27
+ "version": null,
28
+ "ref": "sha256:235d6032d549851a936db3b5fe08807c4d385c12ee10e7be9c9786a1ff60563c",
29
+ "registry_url": null,
30
+ "registry_path": null,
31
+ "overwrite": false,
32
+ "download_dir": null,
33
+ "task_names": null,
34
+ "exclude_task_names": null,
35
+ "n_tasks": null
36
+ },
37
+ "url": "https://github.com/harbor-framework/harbor"
38
+ },
39
+ "metrics": {
40
+ "score": 0.632,
41
+ "time": 21600,
42
+ "costUSD": 48.00
43
+ }
44
+ }
results/qwen3-6-35b-nvfp4-opencode.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "name": "swe-bench-verified",
4
+ "repo": "SWE-bench/SWE-bench_Verified",
5
+ "num_tasks": 500,
6
+ "url": "https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified"
7
+ },
8
+ "harness": {
9
+ "name": "opencode",
10
+ "skills": [],
11
+ "is_oss": true,
12
+ "url": "https://github.com/anomalyco/opencode"
13
+ },
14
+ "model": {
15
+ "name": "Qwen3.6-35B-A3B",
16
+ "repo": "RedHatAI/Qwen3.6-35B-A3B-NVFP4",
17
+ "is_oss": true,
18
+ "num_params": 35,
19
+ "precision": "nvfp4",
20
+ "url": "https://huggingface.co/RedHatAI/Qwen3.6-35B-A3B-NVFP4"
21
+ },
22
+ "environment": {
23
+ "name": "harbor",
24
+ "config": {
25
+ "path": null,
26
+ "name": "swe-bench/swe-bench-verified",
27
+ "version": null,
28
+ "ref": "sha256:235d6032d549851a936db3b5fe08807c4d385c12ee10e7be9c9786a1ff60563c",
29
+ "registry_url": null,
30
+ "registry_path": null,
31
+ "overwrite": false,
32
+ "download_dir": null,
33
+ "task_names": null,
34
+ "exclude_task_names": null,
35
+ "n_tasks": null,
36
+ "accelerated_images": true
37
+ },
38
+ "url": "https://github.com/harbor-framework/harbor"
39
+ },
40
+ "metrics": {
41
+ "score": 0.548,
42
+ "time": 29940,
43
+ "costUSD": 66.53
44
+ }
45
+ }
results/qwen3-6-36b-nvfp4-pi.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "name": "swe-bench-verified",
4
+ "repo": "SWE-bench/SWE-bench_Verified",
5
+ "num_tasks": 500,
6
+ "url": "https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified"
7
+ },
8
+ "harness": {
9
+ "name": "pi",
10
+ "skills": [],
11
+ "is_oss": true,
12
+ "url": "https://github.com/earendil-works/pi/tree/main"
13
+ },
14
+ "model": {
15
+ "name": "Qwen3.6-35B-A3B",
16
+ "repo": "RedHatAI/Qwen3.6-35B-A3B-NVFP4",
17
+ "is_oss": true,
18
+ "num_params": 35,
19
+ "precision": "nvfp4",
20
+ "url": "https://huggingface.co/RedHatAI/Qwen3.6-35B-A3B-NVFP4"
21
+ },
22
+ "environment": {
23
+ "name": "harbor",
24
+ "config": {
25
+ "path": null,
26
+ "name": "swe-bench/swe-bench-verified",
27
+ "version": null,
28
+ "ref": "sha256:235d6032d549851a936db3b5fe08807c4d385c12ee10e7be9c9786a1ff60563c",
29
+ "registry_url": null,
30
+ "registry_path": null,
31
+ "overwrite": false,
32
+ "download_dir": null,
33
+ "task_names": null,
34
+ "exclude_task_names": null,
35
+ "n_tasks": null,
36
+ "accelerated_images": true
37
+ },
38
+ "url": "https://github.com/harbor-framework/harbor"
39
+ },
40
+ "metrics": {
41
+ "score": 0.650,
42
+ "time": 23160,
43
+ "costUSD": 51.47
44
+ }
45
+ }
src/__init__.py ADDED
File without changes
src/display/__init__.py ADDED
File without changes
src/display/text_blocks.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INTRODUCTION_TEXT = """
2
+ Welcome to the Coding Agent Leaderboard!
3
+ """
4
+
5
+ LLM_BENCHMARKS_TEXT = """
6
+ ## About
7
+
8
+ Evaluate and compare Coding Agents.
9
+
10
+ Coding Agent = Model + Harness + Skills.
11
+
12
+ Visit our [GitHub repo](https://github.com/redhat-et/coding_agent_bench) for more details about the project.
13
+ """
14
+
15
+ CITATION_BUTTON_TEXT = "TBD"
16
+
17
+ CITATION_BUTTON_LABEL = "Citation"
src/leaderboard.py ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ import json
3
+ import pandas as pd
4
+
5
+ from src.models import Result
6
+
7
+ RESULTS_DIR = Path(__file__).parent.parent / "results"
8
+
9
+ DISPLAY_BY_DEFAULT = [
10
+ "dataset",
11
+ "model",
12
+ "precision",
13
+ "harness",
14
+ "skills",
15
+ "environment",
16
+ "score",
17
+ ]
18
+
19
+ SEARCH_COLUMNS = [
20
+ "dataset",
21
+ "model",
22
+ "harness",
23
+ ]
24
+
25
+
26
+ def format_time(seconds: int):
27
+ if seconds is None:
28
+ return None
29
+ m, s = divmod(seconds, 60)
30
+ h, m = divmod(m, 60)
31
+ return f"{h}h{m}m{s}s"
32
+
33
+
34
+ def get_leaderboard_df():
35
+ results: list[Result] = []
36
+ for file in RESULTS_DIR.glob("*.json"):
37
+ with open(file, "r") as f:
38
+ data = json.load(f)
39
+ result = Result(**data)
40
+ results.append(result)
41
+
42
+ rows = []
43
+ for result in results:
44
+ rows.append(
45
+ {
46
+ "dataset": f'[{result.dataset.name}]({result.dataset.url})',
47
+ "model": result.model.name,
48
+ "model_id": f'[{result.model.repo}]({result.model.url})',
49
+ "precision": result.model.precision,
50
+ "harness": f'[{result.harness.name}]({result.harness.url})',
51
+ "skills": str(result.harness.skills) if result.harness.skills else "None",
52
+ "environment": f'[{result.environment.name}]({result.environment.url})',
53
+ "score": result.metrics.score,
54
+ "costUSD": result.metrics.costUSD,
55
+ "time": format_time(result.metrics.time),
56
+ "model_license": "FOSS" if result.model.is_oss else "Proprietary",
57
+ "harness_license": "FOSS" if result.harness.is_oss else "Proprietary",
58
+ "model_num_params": result.model.num_params,
59
+ }
60
+ )
61
+
62
+ leaderboard_df = pd.DataFrame(rows).sort_values(by="score", ascending=False)
63
+ return leaderboard_df
src/models.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Optional
2
+
3
+ from pydantic import BaseModel
4
+
5
+
6
+ class Dataset(BaseModel):
7
+ name: str
8
+ repo: str
9
+ num_tasks: int
10
+ url: str
11
+
12
+
13
+ class Harness(BaseModel):
14
+ name: str
15
+ skills: list[str]
16
+ is_oss: bool
17
+ url: str
18
+
19
+
20
+ class Model(BaseModel):
21
+ name: str
22
+ repo: str | None = None
23
+ is_oss: bool
24
+ num_params: int
25
+ precision: str
26
+ url: str
27
+
28
+
29
+ class Environment(BaseModel):
30
+ name: str
31
+ config: Optional[dict[str, Any]] = None
32
+ url: str
33
+
34
+
35
+ class Metrics(BaseModel):
36
+ score: float
37
+ time: Optional[int] = None
38
+ costUSD: Optional[float] = None
39
+
40
+
41
+ class Result(BaseModel):
42
+ dataset: Dataset
43
+ harness: Harness
44
+ model: Model
45
+ environment: Environment
46
+ metrics: Metrics