mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
New --backend auto|native|wasm flag on neural train: - auto (default): the LoRA training leg runs on @ruvector/ruvllm's TrainingPipeline when the module resolves — real epochs, loss history, early stopping, EWC registration — with the checkpoint taken from the TRAINED pipeline (the old best-effort block saved a freshly-constructed adapter's untrained weights) - native: explicit; fails loudly if the pipeline can't run - wasm: pre-3.19 behavior (RuVector MicroLoRA/InfoNCE) Batch formulation: pattern-alignment pairs (input=emb[i], target=emb[i+1 mod n]) — the MSE analogue of the WASM path's anchor→positive contrastive objective. SONA/ReasoningBank persistence runs regardless of backend. New src/services/native-training.ts is graceful (null on any failure → WASM fallback). E2E: auto → native backend, finalLoss 4.25e-3, trained checkpoint on disk; wasm → unchanged behavior; native → explicit. Tests 6/6.