Files

63 lines
4.4 KiB
Markdown
Raw Permalink Normal View History

2026-11-16 16:59:09 +01:00
# Automated AI Testing
A planned self-hosted tool for testing and comparing chat models served through an OpenAI-compatible API, starting with a llama.cpp server. It will combine repeatable test suites, quality scoring, performance measurements, and a local dashboard.
> **Status:** Planning. The runner, CLI, dashboard, and benchmark imports are not implemented yet. See [PLAN.md](PLAN.md) for the architecture, milestones, and open decisions.
## What this project will do
- Run the same prompts against different models or inference settings.
- Track correctness, instruction following, response quality, errors, latency, and throughput.
- Score objective cases with deterministic checks and subjective cases with a separate local judge model and human review.
- Keep raw responses and score details so every result can be inspected.
- Compare runs in a LAN-only dashboard, with a CLI for repeatable execution.
- Import fixed subsets of public benchmarks while keeping their results distinct from personal test suites.
## Planned setup
```text
Proxmox host
+---------------------------------------------------------------+
| Testing LXC (~8 CPU cores, ~8 GB RAM) |
| CLI + runner + SQLite database + LAN-only dashboard |
| | |
| LAN/API calls |
| v |
| Model LXC (~128 GB RAM, RTX 3060 12 GB) |
| llama.cpp server: model under test |
| separate CPU-only Docker container: judge model |
+---------------------------------------------------------------+
```
The judge runs after a model test, so its CPU and memory use do not affect the measured performance of the model under test. The dashboard will initially be accessible only on the local network. Authentication can be added before any future internet exposure.
## How a test run will work
1. Select a suite and one or more model/settings profiles.
2. The runner sends each case to the configured endpoint and records the request, response, settings, timing, and errors.
3. Deterministic scorers evaluate cases with checkable answers or formats.
4. A separate CPU judge scores saved subjective responses using a recorded rubric; a human can review or override those scores.
5. The dashboard shows category-level results, individual cases, response comparisons, and changes between runs.
Quality runs and performance runs will be separate. Performance runs will include warm-up, repeated requests, and a documented concurrency level. Results will show distributions rather than relying on a single timing sample.
## Initial evaluation scope
The first hand-written suite will cover instruction following, reasoning/math, and practical writing/summarization. Model-specific suites can be added later; common suites will enable fair comparisons across models. The first public benchmark candidates are [IFEval](https://huggingface.co/datasets/google/IFEval) and [GSM8K](https://huggingface.co/datasets/openai/gsm8k). Benchmark versions, selected cases, prompts, and scoring rules will be pinned and recorded.
For subjective scoring, the initial candidate is [Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507) in a CPU-friendly quantization. Its scores will be checked against human ratings before they are treated as useful. The judge model will remain configurable.
## Roadmap
| Milestone | Outcome |
| --- | --- |
| 1. CLI and storage | Run a small suite against one model; store complete results in SQLite. |
| 2. Comparisons and performance | Compare models/settings and collect repeatable latency and throughput measurements. |
| 3. Dashboard and review | Inspect runs, compare responses, and review subjective scores in a browser. |
| 4. Benchmarks and deployment | Import selected benchmark subsets and document LXC deployment and backups. |
See [PLAN.md](PLAN.md) for acceptance criteria and implementation details.
## Contributing and development
There is no runnable application or installation procedure yet. The first implementation step is to create a few representative test cases and build the CLI-to-database path. As code is added, this README will gain setup, configuration, and command examples that have been tested against the actual implementation.