AI-assisted fine-tuning for exploring maintenance decision support.
Explore how Laya can turn maintenance context into structured choices, scores and probabilities. This project brings together a domain fine-tune, synthetic research data and an interactive playground for trying maintenance-assistance workflows.
| Part of the project | What it covers |
|---|---|
| Trained in this version | Reading synthetic timestamped reports to identify the latest explicitly reported flag for a target sensor |
| Explore in the Space | Inspection priority, the potential disruption of a proposed maintenance window, scheduling readiness, and custom Choice, Score or Noul requests |
| Roadmap | Equipment service triage and requests for missing diagnostic evidence; later, warranty and service-claim evidence review |
The current trained task is one part of that larger direction. The Space runs the model on the broader requests too; their availability does not establish that this fine-tune has generalized reliably to them. Roadmap capabilities are proposals that require suitable data and separate validation; no delivery dates are promised.
Target sensor: S-42. At 08:00, S-42 reported FAULT. At 09:00, S-42 reported OK.
This fictional example illustrates the input format. Run example_request.json to obtain an actual model prediction; no result is hard-coded here.
AI-assisted fine-tuning: using Codex and Claude to help build and evaluate domain-specific versions of an existing model. The work produced two separately trained Laya checkpoints and interactive demos, using synthetic examples, with recorded comparisons against the base model and a rule-based parser.
Human direction → AI-assisted data and tooling → local Laya fine-tuning → evaluation → interactive demos.
| Contributor | Role |
|---|---|
| Human project owner | Goals, constraints, approvals and release decisions |
| Codex | Synthetic fact generators; deterministic English for the v3 cases; sampled-case and dispute review; training and evaluation code and runs; packaging |
| Claude | Prose for the earlier v2 cases (128 of 256 training cases); separate blind-label and fact-fidelity reviews; release reviews |
| Laya (Convai Innovations) | Base model, adapted into two separate domain checkpoints |
| Training software | Optimizer updates to encoder and decision-head weights on local hardware |
This experiment shows a working agent-assisted development process and measured gains over the base model on its synthetic Choice task. Agent reviews are not expert validation, and the results do not establish general decision-making reliability. The released v3 checkpoints were trained only on Choice; the native Score and Noul interfaces remain available.
This repository contains a separate maintenance fine-tune of the shared Laya base model. Its training and evaluation records are specific to this domain; it is not a merged product-and-maintenance checkpoint.
| Output | What you receive | Evidence for this release |
|---|---|---|
| Choice | One of your supplied options, with probabilities and confidence | Fine-tuned and evaluated on the four-option task above |
| Score | A probability-weighted position on an ordered rubric | Native interface retained; broader task quality is not established |
| Noul | Probability that a supplied proposition is true | Native interface retained; broader task quality is not established |
Confidence is not accuracy. A concentrated prediction can still be wrong. The model returns structured values, not written advice or explanations. Auxiliary action probabilities do not authorize an action.
The companion Space offers guided examples and custom Choice, Score and Noul forms. Broader decision scenarios are exploratory demonstrations, not additional validated capabilities. The hosted demo is linked below.
Open Maintenance Decision Assist. Pick an example or choose Choice, Score or Noul in Try your own decision. Review the facts, submit, and inspect the result and confidence. Results are experimental and may be wrong.
| Check | This published model |
|---|---|
| Accuracy, averaged over option orders | 57.4% |
| Same answer across all four option orders | 45/64 cases |
| Correct across all four option orders | 30/64 cases |
| Evaluation data | 64 synthetic cases in 16 contrast groups |
| Expert / real-world validation | None |
| Uniform four-option guessing | 25% expected accuracy |
| Original base Laya on the same cases | 39.8% |
| Exact-rule parser on the same controlled grammar | 100% (64/64); not general free-text validation |
On separate older synthetic tasks, Score accuracy was 25.0% and Noul accuracy was 48.5%. A balanced true/false guess has 50% expected accuracy; these older tasks do not validate the experimental demos. Two-option Choice was not separately recalibrated.
Four option orders are correlated views of the same cases, not 256 independent examples. These results measure the narrow trained task—not the broader demo decisions.
The study's full progress safeguard was not met: stuck_value recall fell from 65.1% to 57.3% across three training seeds versus the repetition comparison. This three-seed finding is distinct from the single published model's accuracy above.
Read the maintenance-only evaluation →
python predict.py from the downloaded folder.predict.py calls the native laya.Agent and prints the full response. Inputs use state and named questions with type, instructions and criteria. Generic Transformers pipeline compatibility is not claimed. Laya returns structured decisions with zero generated output tokens.
ModernBERT-large-based Laya, approximately 421M parameters, initialized from convaiinnovations/laya revision 55cf4c4ebb4ebe31b2550e8bdf3bd21b99753851. CE-only specialization, no RL reward or label smoothing, encoder learning rate 3e-6, head learning rate 1.5e-5, microbatch 1, accumulation 4, maximum 256 updates/1,024 exposures per cell; 256 unique targeted maintenance training cases. Development selects update 32/64/128/256 by raw NLL; representative seed 7601 was fixed before reserved evaluation. The selected weights here are update 64. Trained locally on an RTX A4500 Laptop GPU.
Choice temperature 1.774067 was already fitted on 32 separate synthetic calibration cases with four orders. It is applied to the shared native choice:3-5 bucket: 3/5-option questions were not independently calibrated. Score/Noul temperatures are unchanged. Metadata distinguishes actual local training from upstream_training_metadata; inference configuration is copied byte-for-byte. No fitting or reserved scoring occurred during packaging.
| File | Purpose |
|---|---|
| EVALUATION.md | Maintenance-only comparisons, errors and study method |
| LOCAL_ADAPTATION.json | Training selection, calibration and source/data hashes |
| example_request.json | Runnable fictional input |
| MANIFEST.json | File integrity hashes, excluding the manifest itself |
| LICENSE · ATTRIBUTION.md | License and upstream credit |
Documentation and demo changes do not retrain the model. Checkpoint identifiers in LOCAL_ADAPTATION.json keep the original experiment names (for example, targeted-7601).
Hugging Face counts requests to the top-level config.json, an exact copy of this checkpoint's native rl_agent_config.json. Native Laya loading continues to use rl_agent_config.json; the alias does not imply Transformers pipeline compatibility.
Complete repository downloads include this file. Selective downloads that omit it may not be counted. The counter measures qualifying file requests, including GET and HEAD—not unique people, completed model runs or Space visitors. Older pinned revisions without this alias are unaffected. See how Hugging Face counts downloads.
convaiinnovations/laya