mindXtrain for mindX β the Hugging Face fork. This repository is the mindX-specific line of mindXtrain, forked on 2026-09-14 from the agnostic upstream github.com/Professor-Codephreak/mindXtrain at commit
661bd41(provenance inFORK.json). mindXtrain continues here. The GitHub repository is archived for posterity β the read-only record of the pioneering work of Professor Codephreak. All new work lands on the Hub:git clone https://huggingface.co/PYTHAI/mindXtrainWhat this line trains for: the mindX lineage (
PYTHAI/mindXascension), built from mindX's doctrine (PYTHAI/mindX-docs, with the mapping); the last accepted generation isPYTHAI/mindXtrain39. The Hub footprint is mapped inexamples/mindx/HUGGINGFACE_MAP.md. The upstream README follows unchanged.
mindxtrain
Production training framework for fine-tuning open-weight LLMs on AMD MI300X
and serving them through an OpenAI-compatible API. Single ordered package,
canonical layout per docs/blueprints/mindXtrain2.md
Β§Part 4.
The single architectural feature that distinguishes mindxtrain from Axolotl, LLaMA-Factory, Unsloth, torchtune and Primus is its 60-second AOT autotune probe: CK-vs-Triton attention, hipBLASLt heuristic, RCCL config β the plan is fixed at training start, JIT autotune is forbidden in the production loop.
Status: production deployment in progress. The CPU-only base install passes
its full pytest suite (ruff + mypy clean); with the training extras installed the
suite is 672 green. Many modules ship as real Python on a CPU-only laptop;
heavyweight training, eval, and quantization paths gate on opt-in extra dep
groups. See docs/actualization_status.md for the
per-module map and HANDOFF.md for the operator checklist.
Where this runs
- Operator + Coach UI: https://mindx.pythai.net/coach
- Public training-jobs API:
https://mindx.pythai.net/v1/training/jobs(bearer auth viaMINDXTRAIN_API_KEY) - mindX self-training loop: mindX's dream cycle writes JSONL training
data; this framework consumes it via the
mindx_dreamsdata source and fine-tunes a small fallback model on a single MI300X.
Prove it trains
mindXtrain doesn't just assert that training works β it proves recall. The
dcoach proof loop (/coach/dcoach) imprints a persona onto a
tiny model on CPU, then measures whether the model recalls it: the classroom
scores recall before vs after training, the boardroom rules success or failure,
and the verdict feeds an autotune feedback loop that tunes the next run. A clean
CPU run reports a positive imprint Ξ (e.g. recall 0.07 β 0.28) and an approved
verdict. docs/NAV.md is the full documentation hub.
Quickstart
uv sync # base install
uv run pytest -q # β 564 passed
uv run mindxtrain --help # 9 verbs
uv run mindxtrain init --template qwen3_8b_sft_lora --out run.yaml
uv run mindxtrain bench --dry-run --out plan.json
uv run uvicorn mindxtrain.operator.app:app --host 0.0.0.0 --port 8080
# open http://localhost:8080/coach/ for the interactive UI
To unlock training / eval / quantize / publish, install the matching dep group:
uv sync --extra ml --extra eval --extra data # train + eval + curate
# or
uv sync --all-extras # everything except amd-quark
GPU steps (bench without --dry-run, train, quantize, serve) require
an AMD MI300X with ROCm 7.2.1; run inside rocm/primus:v26.2. The full
operator checklist lives in HANDOFF.md.
Layout
mindxtrain/{cli,config,data,models,train,eval,autotune,
operator,storage,provenance,deploy,budget}/ # 99 modules
contracts/ Foundry workspace for ERC-8004 attestation registry
ops/ containerfiles, compose, k8s, vmm, gensyn
tests/ pytest suite β 566 tests, CPU-only smoke
examples/ demo YAML configs
docs/ user-facing documentation + frozen blueprints
scripts/ dev helpers
Documentation
| Doc | What it covers |
|---|---|
HANDOFF.md |
Operator checklist β ordered steps from local setup to live deployment. |
docs/quickstart.md |
Install + base-vs-extras command tour. |
docs/architecture.md |
Canonical layout + 5-layer architecture + MI300X invariants. |
docs/actualization_status.md |
Per-module map of what's real vs. requires extras. |
docs/autotune.md |
The 60-second AOT probe β the architectural differentiator. |
docs/coach.md |
Interactive /coach/ web UI bundled in the operator. |
docs/dcoach.md |
The dcoach proof loop β prove a CPU model recalls its training; decentralized-training fit. |
docs/cli.md |
Every mindxtrain verb with synopsis, options, exit codes. |
docs/yaml_schema.md |
Every field of the 10-section XTrainConfig. |
docs/benchmarks.md |
Target metrics + the 7-cell framework comparison. |
docs/development.md |
Toolchain, optional-deps, lazy-import pattern, invariants. |
docs/blueprints/ |
Source design briefs (frozen specification). |
llm.txt |
Orientation for another model β what is measured, what is not, the traps. |
examples/mindx/ |
Example consumer β mindX on the Hugging Face Hub: its lineage, docs dataset + mapping, Spaces and licence-pinned base models. The framework stays agnostic. |
License
Apache-2.0. See LICENSE, NOTICE, and the upstream-license
notices in LICENSE-MIT-upstream-glm51 and
LICENSE-NOTICE.md. Version history in
CHANGELOG.md.