Read-only mirror of https://github.com/DCC-BS/ai-model-evaluation — Basel-Stadt. Issues & pull requests at the source.
  • Python 77.8%
  • Shell 22.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] 6b573314d3
chore(deps): bump pygments from 2.19.2 to 2.20.0 in /stt (#47)
Bumps [pygments](https://github.com/pygments/pygments) from 2.19.2 to 2.20.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.19.2...2.20.0)

---
updated-dependencies:
- dependency-name: pygments
  dependency-version: 2.20.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-03 10:30:33 +01:00
decision-models docs: publish scores on the results page, keep own data private (#12) 2026-11-04 18:10:16 +01:00
docs docs: publish scores on the results page, keep own data private (#12) 2026-11-04 18:10:16 +01:00
ocr chore(deps): bump anyio from 4.11.0 to 4.14.2 in /ocr (#44) 2026-12-03 10:30:26 +01:00
pii-ner docs: publish scores on the results page, keep own data private (#12) 2026-11-04 18:10:16 +01:00
scripts feat: initial public release of AI model evaluation method and benchmark code 2026-10-19 15:10:51 +02:00
stt chore(deps): bump pygments from 2.19.2 to 2.20.0 in /stt (#47) 2026-12-03 10:30:33 +01:00
tests feat: initial public release of AI model evaluation method and benchmark code 2026-10-19 15:10:51 +02:00
tts chore(deps): bump pygments from 2.19.2 to 2.20.0 in /tts (#37) 2026-12-03 10:23:16 +01:00
.gitignore feat: initial public release of AI model evaluation method and benchmark code 2026-10-19 15:10:51 +02:00
LICENSE feat: initial public release of AI model evaluation method and benchmark code 2026-10-19 15:10:51 +02:00
pyproject.toml chore(deps): drop expired cooldown exemptions (#8) 2026-10-31 15:44:35 +01:00
README.md docs: publish scores on the results page, keep own data private (#12) 2026-11-04 18:10:16 +01:00
uv.lock chore(deps): drop expired cooldown exemptions (#8) 2026-10-31 15:44:35 +01:00

AI model evaluation

The Data Competence Center Basel-Stadt uses this repository to test AI models before they go into use. The DCC AI team chooses every model that runs on the KDKP, the canton's AI platform. Here we publish our rules, our steps and the test code for speech-to-text, OCR and text-to-speech, so that others can check our work and reuse it. The code for anonymisation and decision models will follow later. The scores of every model we tested are on the test results page. Our own test data stays private. For tests on that data we publish one total per model.

A plain-language overview is on the documentation site.

Our method

Test suites

Suite What it tests Where
STT Speech recognition in German and Swiss German (WER, CER, BLEU) stt/
OCR Reading German handwriting with vision-language models (CER, WER) ocr/
TTS Synthetic voices, judged by listening tts/
PII/NER Anonymisation models. Code not public yet pii-ner/
Decision models Language models on internal tasks. Code not public yet decision-models/
Document conversion Layout and conversion tests dcc-docling-serve/benchmarks
Speech API Transcription, telling speakers apart, load tests bentoml-faster-whisper
LLM load tests Load tests on the live services vllm-benchmark
TextMate Tests for the advice and simplification features text-mate-backend/evals
Transcription and translation apps Route, service and integration tests transcribo-backend, bs-translator-backend
Deep research Tests for the research assistant deep-research-evaluation

The documentation site lists the models we run and describes our hardware.

Quick start

Each suite is its own uv project.

You need:

  • uv for every suite.
  • For STT and OCR, a running model server with an OpenAI-compatible API. Running a model needs Docker with the NVIDIA runtime and a GPU. For STT, see "Running a model server" in stt/README.md. For OCR, ocr/run_benchmark.sh starts the container for you, and ocr/serve_models.sh starts one on its own.
  • For the TTS demo, a GPU and the vLLM install step described in tts/README.md.

The first STT sample run downloads the FLEURS dataset from Hugging Face.

# STT: download a small public sample, then test a model behind an OpenAI-compatible API
cd stt
uv sync --extra sample
uv run --extra sample python scripts/fetch_sample.py --out data/sample --n 10
uv run asr-eval openai_api --model <model-id> --data-dir data/sample

# OCR: start a model container, run the test, plot, stop (needs Docker and a CUDA GPU)
cd ocr
uv sync
./run_benchmark.sh <key> --limit 50

# TTS: install vLLM, then start the server and the listening demo
cd tts
uv sync
uv pip install vllm==0.14.0 --torch-backend=auto
./run_server.sh

Who decides

The DCC AI team chooses and tests all models on the KDKP. We are setting up a governance board for these decisions.

Contributing

Issues and pull requests are welcome. Please read the data policy first. Don't commit recordings, documents, results or model outputs from internal sources.

Licence

MIT, see LICENSE.

Third-party code

tts/main.py is based on example code from Qwen3-TTS, which is licensed under Apache-2.0. The licence header stays in the file. Everything else in this repository is MIT.

Development

A scan checks the repository for internal server names, secrets, personal names and result files before every commit. It reads a local list of names to block from ~/.config/ai-model-evaluation/denylist.txt. Put one term per line, and never commit that file.

Turn on the pre-commit hook:

ln -s ../../scripts/pre-commit .git/hooks/pre-commit

Run the scan by hand:

uv run python scripts/check_public_safety.py .

If you pass a single file instead of a folder, the scan only checks its text. It skips the checks on file paths and result files.