Skip to content

ModelForge 2.2.0

Choose a tag to compare

@CocoCopi CocoCopi released this 17 Nov 16:38
· 3 commits to production-hardening since this release

ModelForge 2.2.0

Correctness and safety fixes

  • Native thread-pool race fixed. Two threads entering the shared C++ worker pool at the same time could corrupt each other's completion state and crash. Per-call state now lives in a heap object, whole parallel regions are serialized, exceptions are captured and rethrown, and no task can escape the worker loop. The original crash repro now reports failures=0.
  • Input validation. Out-of-range token ids, invalid targets, empty or oversized batches and sequences longer than the context now fail closed with a clear error instead of reading or writing out of bounds. A rejected batch never applies stale gradients.
  • Optimizer resume. A weights-only recovery checkpoint keeps your progress counter but restarts AdamW bias correction from zero, because the moments were not saved with it.
  • Training service races fixed. Every service command (start, pause, resume, stop) is now serialized in arrival order, and each run owns its own control flags, so a stopped run can no longer clear or pause a newer one. Starting a different model cancels and joins the previous run and saves a checkpoint first.
  • Checkpoint recovery. If the newest checkpoint is unreadable or was written for a different architecture, the app falls back through recovery -> last -> best -> fresh instead of refusing to start.
  • Dataset cache collisions fixed. Every download writes to a UUID-named file, so two downloads of the same dataset can never overwrite each other. Partial files are deleted on failure, duplicate dataset/config/split pairs are rejected, and a stale dataset response cannot overwrite a newer selection.
  • Secure credentials. Token and API-key writes are committed synchronously and report failure. The app no longer claims "Token saved securely" when the keystore was unavailable.

New export formats

  • GGUF v3 with F32, F16, Q4_0 and Q8_0 tensors.
  • safetensors with F32 and F16, using the common Llama/PyTorch tensor names and a contiguous data section.
  • Both are written by the native engine from the best checkpoint and can be shared from the playground.
  • Honest compatibility note: ModelForge uses fixed sinusoidal positions and LayerNorm, so GGUF files carry a modelforge architecture tag and explicit metadata. They are archival/tooling containers, not numerically identical llama.cpp models - llama.cpp expects RoPE and RMSNorm.
  • Packed MFPK exports remain at 2/3/4/8-bit, which are the widths the exporter and QAT path actually implement. 16-bit and 32-bit are export choices in the GGUF/safetensors menus, not packed training widths.

More freedom where it matters

  • Row counts are Long end to end: any practical count, up to the real split size.
  • Mix weights accept 0.01x-1000x. An exact field allows any positive multiplier; the slider is a quick control.
  • Hugging Face page downloads now run 12 pages (max 16) in parallel, still written in order.
  • The AI dataset agent uses a larger budget (up to 12 model calls, 15 minutes) and may propose up to 16 dataset suggestions.
  • Training keeps running in the background until you stop it. Home cards and the dashboard now update live from the training bus, and the disk fallback is read off the main thread.

Repository and build

  • Apache License 2.0 (LICENSE) and NOTICE added; dependency licence and notice files are no longer stripped from the APK.
  • CI now triggers on pull requests, uses read-only default permissions, scopes signing secrets to the release job only, and fails instead of publishing an unsigned release.
  • Native host suite is 6/6 green (config, gradient, overfit, packed, concurrency, export). JVM suite: 95 tests green, plus Paparazzi screenshots and the x86_64 emulator job.
  • CI runs 44124950596 and 44132783459: build and emulator jobs green.

Signed artifacts

  • ModelForge-2.2.0-arm64.apk (arm64-v8a, minSdk 26, signed with the project's stable release key)
  • ModelForge-2.2.0.aab
  • APK SHA-256: e0dae4f37ff24b4c87dd2a1abd9223ace20bfe6455c23db18cb4edec3a59a9df
  • AAB SHA-256: d7fda84cda3acfdffbeb7485ce9e44a718f5d8001e2637d4798b03bbd03d875f

Known gaps (unchanged and honest)

  • No ONNX, TensorFlow Lite or CoreML export; the implemented set is MFPK, GGUF and safetensors.
  • NCM and the AI-designed architecture are planning paths only; they have no native trainer.
  • Models are tiny and trained from scratch on a phone: short, simple text with repetition is expected, not chatbot-level answers.