Ana Sayfa / Kod ve Scriptler / DecisionTune LoRA Training and Evaluation

DecisionTune LoRA Training and Evaluation

DecisionTune, küçük karar modellerini LoRA ile eğitir, tutulmuş verilerle karşılaştırır ve yerel sunum yapar.

  • Yayın tarihi11 Kasım 2026
  • Paket içeriği.py, .json, .md
  • Son güncelleme11 Kasım 2026
  • Canlı demoVar
DecisionTune LoRA Training and Evaluation

Overview

DecisionTune fine-tunes a small open decision model on your own labeled examples and then proves the tuning worked. Your data is JSONL: a state, a set of typed questions, and the correct answers. The tool validates and splits it, LoRA-fine-tunes the model (default target Clef-flash 9B; any Hugging Face causal LM works), serves the result behind a Jev-API-compatible endpoint (POST /v1/systemone), and runs the eval that matters: tuned vs baseline on a held-out split.

Hosted fine-tuning services keep your model on their infrastructure and hand you a chart. DecisionTune runs the whole loop on your machine: the eval reports accuracy, agreement rate, latency p50/p95, calibration (ECE), Brier score, per-question fixed/regressed deltas, and a paired bootstrap 95% confidence interval on the accuracy gain — as text, Markdown, and a static HTML report. If the tuned model isn't better, the numbers say so.

What it does:

- CLI loop: validate → split → train (LoRA) → serve → evaluate, all local

- Jev-API-compatible server: POST /v1/systemone takes {state, questions}, returns calibrated per-option probabilities

- Eval rig: accuracy, agreement, latency p50/p95, calibration (ECE), Brier score, paired bootstrap 95% CI

- Reports in text, Markdown, and a static HTML page you can share

- Three ready datasets: guardrail allow/block (40 examples), ticket routing, lead qualification

- The tour needs no GPU and no torch — the base install is standard library only

- Real training is one extras install away: torch, transformers, peft, datasets, accelerate

- A --min-accuracy gate flag, so a training run can fail CI-style when the model isn't good enough

What's inside the download:

- DecisionTune source code (Python package: dataset, train, serve, evaluate, report)

- README.md — what it is and how to run it

- INSTALL.md — step-by-step setup, including the GPU path

- examples/ — three labeled datasets you can train on today

- docs/ — the GPU training guide

- The full test suite

- LICENSE — Apache License 2.0

How you run it: `pip install -e .`, then walk the quickstart above: validate the guardrail dataset, split it, and dry-run the training plan. Serve two mock endpoints and compare them before you spend any GPU time.

Open source, stated plainly: DecisionTune is my own code, and the same code is free on GitHub under the Apache-2.0 license. This package is the supported download — the tested release zipped with its docs, examples, and test suite, and email support from me if something in the package is broken. If you'd rather clone the repo, that door is open. I'd rather you knew before you paid.

You pay once — there is no subscription and no account to create.