MojoLlama
Archived Mojo/MAX quantizer and serving research repository (read-only history)
Brought by drakestapleton
MojoLlama / test_eval_imports.py
| 1 | """Quick smoke test for eval module imports.""" |
| 2 | import sys |
| 3 | sys.path.insert(0, "src") |
| 4 | |
| 5 | from mojollama.eval.orchestrator import list_benchmarks, get_benchmark, BENCHMARKS |
| 6 | print("=== Benchmarks ===") |
| 7 | for b in list_benchmarks(): |
| 8 | print(f" {b['id']:15s} — {b['description']}") |
| 9 | print() |
| 10 | print(f"Total benchmark classes: {len(BENCHMARKS)}") |
| 11 | |
| 12 | from mojollama.eval.mmlu import MMLUBenchmark |
| 13 | m = MMLUBenchmark() |
| 14 | print(f"MMLU name: {m.name}") |
| 15 | |
| 16 | from mojollama.eval.gsm8k import GSM8KBenchmark |
| 17 | g = GSM8KBenchmark() |
| 18 | print(f"GSM8K name: {g.name}") |
| 19 | |
| 20 | from mojollama.eval.ceval import CEvalBenchmark |
| 21 | c = CEvalBenchmark() |
| 22 | print(f"CEval name: {c.name}") |
| 23 | |
| 24 | from mojollama.eval.hellaswag import HellaSwagBenchmark |
| 25 | h = HellaSwagBenchmark() |
| 26 | print(f"HellaSwag name: {h.name}") |
| 27 | |
| 28 | from mojollama.eval.arc import ARCBenchmark |
| 29 | a = ARCBenchmark() |
| 30 | print(f"ARC name: {a.name}") |
| 31 | |
| 32 | from mojollama.eval.bbh import BBHBenchmark |
| 33 | b2 = BBHBenchmark() |
| 34 | print(f"BBH name: {b2.name}, tasks: {len(b2.tasks)}") |
| 35 | |
| 36 | from mojollama.eval.humaneval import HumanEvalBenchmark |
| 37 | he = HumanEvalBenchmark() |
| 38 | print(f"HumanEval name: {he.name}") |
| 39 | |
| 40 | from mojollama.eval.dataset import list_available_datasets, DATASET_SOURCES |
| 41 | cached = list_available_datasets() |
| 42 | print(f"\nCached datasets: {list(cached.keys()) or 'none'}") |
| 43 | print(f"MMLU subjects: {len(DATASET_SOURCES['mmlu']['subjects'])}") |
| 44 | print(f"CEval subjects: {len(DATASET_SOURCES['ceval']['subjects'])}") |
| 45 | print(f"BBH tasks: {len(DATASET_SOURCES['bbh']['url_templates'])}") |
| 46 | print() |
| 47 | print("All imports OK!") |