bankml: the verified CPU engine as backend, serve target and imprint probe

#1
pythai.net org

bankml (github.com/cryptoAGI/bankml) is reached over HTTP and its CLI only;
nothing is vendored.

  • operator/backends/bankml.py: @register_backend("bankml"), default
    MINDXTRAIN_BANKML_BASE_URL http://127.0.0.1:18093/v1; keeps the
    bankml_receipt (ChatResponse.receipt, last_receipt for streams); HTTP 400
    becomes BankmlRefusal(reason) and is never retried with altered params.
  • operator: backend_kwargs() replaces the duplicated per-backend branches in
    app.py and coach/api.py; GET /bankml + /v1/models health probes;
    auto-detect tries bankml only after ollama and vllm; the governance panel
    env chain gains MINDXTRAIN_BANKML_BASE_URL last, only when set.
  • deploy/bankml_push.py + serve --to bankml: merge -> Modelfile through
    bankml_sanitize (refuses ADAPTER, a foreign TEMPLATE, penalties, mirostat,
    typical_p, resource params; never drops them) -> bankml create; records
    the model sha256; refuses quantized configs and non-Llama archs; a bankml
    without create/convert (pre-0.3.5) is reported as bankml_too_old.
  • eval/imprint_bankml.py + imprint-bankml: seeded, unpenalised greedy
    probes with a receipt per utterance, tagged /bankml-greedy and
    marked not comparable with the canonical 1.3-penalty gate.
  • MEI engine literal += bankml; Gradio Serve room offers bankml; console
    omits penalty/mirostat options at the engine default; HF published
    Modelfile can omit repeat_penalty (default unchanged).
  • docs/bankml.md, README, CLAUDE.md, NAV, cli, development, CHANGELOG,
    llm.txt. Tests: 56 new (821 passed, 3 skipped); ruff unchanged.

Co-Authored-By: Professor Codephreak codephreak@pythai.net

made with luv.pythai.net

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment