feat(owner_eval): standalone owner eval pipeline (GSM8K/MMLU/PPL -> P… - #168
Open
present42 wants to merge 2 commits into
Open
feat(owner_eval): standalone owner eval pipeline (GSM8K/MMLU/PPL -> P…#168present42 wants to merge 2 commits into
present42 wants to merge 2 commits into
Conversation
isabella618033
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…rometheus)
feat(owner_eval): standalone owner eval pipeline (GSM8K / MMLU / PPL → Prometheus)
Summary
Adds
connito.owner_eval, a daemon the subnet owner runs independently of anyminer or validator. Every N cycles it loads the latest merged full model and runs
a pluggable benchmark suite — GSM8K perplexity, GSM8K task accuracy, MMLU
accuracy — publishing the results as Prometheus metrics for the leaderboard
backend to scrape.
Today the only signal is validator scoring's relative
(baseline_loss − val_loss)deltas per miner; there's no independent, absolute view of how good the
collectively-trained model actually is on real benchmarks. This fills that gap.
What's added
registry.py) — add a metric by dropping a file inmetrics/, decorating with@register, and listing its name in config. Eachevaluator returns
dict[str, float], so one can emit several scalars.metrics/):gsm8k_ppl(reusesshared/evaluate.evaluate_model),gsm8k_task(greedy generation + numericextraction),
mmlu(per-choice log-likelihood argmax, seeded representativesampling across all 57 subjects).
run.py) — polls the cycle API (get_phase_from_api),runs when
cycle_index % N == 0.--once/OWNER_EVAL_FORCE_RUNforone-shot; deferred heavy imports keep the gate unit-testable.
bootstrap.py) —chain(read-only fetch of the latestvalidator HF checkpoint via
load_model, no wallet keys required) orbase(pretrained model, wallet-free canary).EvalPipelineCfg+OwnerEvalConfiginshared/config.py(
model_source,n_samples_per_metric,eval_interval_cycles,telemetry_port,sample_seed).owner_eval_metric{metric},owner_eval_status{metric},owner_eval_run_info{model_revision,cycle_index},owner_eval_last_run_timestamp,owner_eval_loop_heartbeat_total+best-effort helpers in
shared/telemetry.py;mycelia_owner_evalscrape jobin
observability/prometheus.yml.connito/owner_eval/OBSERVABILITY.md: how the backend API consumesthe metrics (PromQL recipes, response shapes, alerts).
weightnet-owner-eval; exampleowner_eval.canary.yaml.