| license | mit | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| language |
|
||||||||||
| base_model |
|
||||||||||
| pipeline_tag | reinforcement-learning | ||||||||||
| tags |
|
This workspace contains three related paths:
- A real fine-tuning path that uses ntkmirror to fit signed log-gate controllers on a frozen Hugging Face causal LLM, and
- A tinygrad-backed smoke demo that trains only gate parameters on a synthetic task so the controller idea can be validated locally and cheaply.
- A benchmark pipeline that records accuracy, loss, memory, process counts, predictability, and throughput, then renders a combined dashboard plus OpenBB-backed charts.
- A runtime GUI for live benchmark runs with current hardware specs baked into the view.
The trainer therefore targets any causal LLM that transformers can load, with OpenPeerAI/OpenPeerLLM as the primary model ID and a smaller fallback for local demos.
pip install -e .
pip install tinygrad
pip install git+https://github.com/leochlon/ntkmirror.gitIf you only want the local demo, install the demo extra instead:
pip install -e ".[demo]"To enable OpenBB-backed chart generation for benchmarks, install the chart extra too:
pip install -e ".[demo,charts]"To enable the runtime GUI, install the GUI extra:
pip install -e ".[gui]"python -m openpeer_trainer.cli demo --steps 100 --target-accuracy 0.99The demo stops early as soon as it reaches the requested accuracy target.
python -m openpeer_trainer.cli bench --steps 10 25 50 --target-accuracy 0.99The benchmark runner writes a CSV plus HTML charts under artifacts/benchmarks/. The main output is benchmark_dashboard.html, a multi-panel dashboard showing memory, processes, learned gates, loss, predictability, accuracy, training steps, time, and epoch in actual seconds. If the OpenBB charting extension is installed, the companion charts are rendered through OpenBB; otherwise the script falls back to Plotly with the same data.
python -m openpeer_trainer.cli guiThe GUI shows the same dashboard, a live benchmark runner, and a hardware-spec table for this computer.
python -m openpeer_trainer.cli fit --model OpenPeerAI/OpenPeerLLM --train-jsonl train.jsonl --out runs/openpeer_controller.ptPreferred schema:
{"prompt":"Question: 14 + 27 = ?\nAnswer:","completion":" 41"}
{"prompt":"Question: 36 + 18 = ?\nAnswer:","completion":" 54"}The trainer also accepts instruction/response, question/answer, or text records when the underlying ntkmirror loader supports them.
- OpenPeer AI / Riemann Computing Inc. / Andrew Magdy Kamal Nassief
- ntkmirror: https://github.com/leochlon/ntkmirror
- Tinygrad: https://github.com/tinygrad/tinygrad
Data | Hugging Face | Kaggle
@misc{openpeer_ai_2026,
author = { OpenPeer AI and Mentors4EDU },
title = { OpenPeer-AI-NTK-Trainer (Revision 9a9cece) },
year = 2026,
url = { https://huggingface.co/OpenPeerAI/OpenPeer-AI-NTK-Trainer },
doi = { 10.57967/hf/8985 },
publisher = { Hugging Face }
}
