Add README
Browse files
README.md
CHANGED
|
@@ -1,3 +1,101 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-4.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- visual-question-answering
|
| 7 |
+
- automatic-speech-recognition
|
| 8 |
+
- text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- evaluation
|
| 11 |
+
- benchmark
|
| 12 |
+
- multimodal
|
| 13 |
+
- edge-inference
|
| 14 |
+
- on-device
|
| 15 |
+
- litert-lm
|
| 16 |
+
- image
|
| 17 |
+
- audio
|
| 18 |
+
- text
|
| 19 |
+
- multi-turn
|
| 20 |
+
size_categories:
|
| 21 |
+
- n<1K
|
| 22 |
+
configs:
|
| 23 |
+
- config_name: default
|
| 24 |
+
data_files:
|
| 25 |
+
- split: test
|
| 26 |
+
path: data/test/metadata.jsonl
|
| 27 |
+
pretty_name: EdgeMMEval
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# EdgeMMEval
|
| 31 |
+
|
| 32 |
+
Minimal multimodal evaluation dataset for on-device inference testing.
|
| 33 |
+
Covers functional correctness, accuracy, latency stress, and memory
|
| 34 |
+
pressure across image, audio, text, multi-turn, combination, structured
|
| 35 |
+
output, and tool-calling cases.
|
| 36 |
+
|
| 37 |
+
## Dataset summary
|
| 38 |
+
|
| 39 |
+
The test split is defined in `data/test/metadata.jsonl` (**200** rows). Each
|
| 40 |
+
row has a `test_id` (for example `IMG-001`, `STO-020`) and a `modality`.
|
| 41 |
+
|
| 42 |
+
| Modality | Samples | Focus |
|
| 43 |
+
|----------------------|--------:|--------|
|
| 44 |
+
| Image | 34 | VQA, OCR, description, classification, resolution / loop stress |
|
| 45 |
+
| Audio | 33 | Transcription, spoken QA, translation, noise and edge cases |
|
| 46 |
+
| Text | 39 | QA, translation, summarization, reasoning-style prompts |
|
| 47 |
+
| Multi-turn | 24 | Context retention, KV-cache stress |
|
| 48 |
+
| Combination | 28 | Cross-modal alignment |
|
| 49 |
+
| Structured output | 30 | JSON schema, regex, grammar-style constraints (`constraint_type`) |
|
| 50 |
+
| Tool call | 12 | Correct tool name, arguments, or valid refusal text |
|
| 51 |
+
| **Total** | **200** | |
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
from datasets import load_dataset
|
| 57 |
+
|
| 58 |
+
ds = load_dataset("CortexSwarm/EdgeMMEval", split="test")
|
| 59 |
+
print(ds[0])
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Scoring
|
| 63 |
+
|
| 64 |
+
Each sample includes a `reference` field and usually `reference_variants` for
|
| 65 |
+
automatic scoring. The scorer lives in this repo at `scripts/score.py`.
|
| 66 |
+
|
| 67 |
+
**Pipeline**
|
| 68 |
+
|
| 69 |
+
1. Run your model on each `test_id` and collect the model’s output string.
|
| 70 |
+
2. Write a JSON object to **`results.json`** at the repo root: keys are
|
| 71 |
+
`test_id` values, values are the raw model outputs (strings).
|
| 72 |
+
3. Run `python scripts/score.py`. It reads `data/test/metadata.jsonl` and
|
| 73 |
+
`results.json`, then writes **`report.json`**.
|
| 74 |
+
|
| 75 |
+
**Metrics and pass rules** (see constants at the top of `score.py`)
|
| 76 |
+
|
| 77 |
+
- Most tasks: **BLEU-1** vs `reference_variants`; pass if score **≥ 0.5**.
|
| 78 |
+
- Summarization-style tasks (`task` in `summarization` / `summarize`): **ROUGE-L**;
|
| 79 |
+
pass if **≥ 0.4**.
|
| 80 |
+
- **Structured output**: format check (JSON Schema, regex, or grammar-style
|
| 81 |
+
heuristic) plus content BLEU; pass if format is valid and BLEU **≥ 0.3**.
|
| 82 |
+
- **Tool call**: compares expected tool/args or valid text-only refusal;
|
| 83 |
+
separate logic in `score_tool_call`.
|
| 84 |
+
|
| 85 |
+
**`report.json` shape**
|
| 86 |
+
|
| 87 |
+
- `summary`: `total_scored`, `total_passed`, `overall_avg`, `pass_rate_pct`,
|
| 88 |
+
`verdict` (`✓ INFERENCE WORKING` if pass rate ≥ 80%, else
|
| 89 |
+
`✗ ISSUES DETECTED`), and `skipped` (test IDs with **no** entry in
|
| 90 |
+
`results.json`).
|
| 91 |
+
- `by_modality`: average score and pass counts per modality (empty if nothing
|
| 92 |
+
was scored).
|
| 93 |
+
- `samples`: per-test rows with scores, metrics, and pass/fail.
|
| 94 |
+
|
| 95 |
+
If **`total_scored` is 0**, every test ID was skipped—typically **`results.json`
|
| 96 |
+
is missing or does not map test IDs to outputs**. Fix the results file and
|
| 97 |
+
re-run the scorer.
|
| 98 |
+
|
| 99 |
+
## License
|
| 100 |
+
|
| 101 |
+
CC BY 4.0 — free to use with attribution.
|