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.
- Selection standard: the five basic checks, and what we look at for each kind of model
- How we test: the five rounds of testing, from public rankings to daily use
- Model lifecycle: how often we review, how we switch, how we go back, what we write down
- Decision record template: what we write down for each model change
- Data policy: which data we use, and how to run the tests on your own
| 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.
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.shstarts the container for you, andocr/serve_models.shstarts 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.shThe DCC AI team chooses and tests all models on the KDKP. We are setting up a governance board for these decisions.
Issues and pull requests are welcome. Please read the data policy first. Don't commit recordings, documents, results or model outputs from internal sources.
MIT, see LICENSE.
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.
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.