Repository navigation
Releases
ModelForge 2.4.1
KV-cached streaming generation with Stop, series versions and arbitrary extended training, measured 1.27-1.35x faster large training matrices, read-only Bench provider, series scores and eval-driven next-version advice, and a generated Colab notebook for cloud training. Signed with the v2.4.0 certificate; existing installs update in place. Checksums in SHA256SUMS.txt.
ModelForge v2.4.0
Direct APK for sideloading. Install over v2.3.0 in place - the signing
certificate is unchanged (9404779b...4b03490), so there is no uninstall step.
| file | bytes | SHA-256 |
|---|---|---|
ModelForge-2.4.0-arm64.apk |
3,591,955 | 7e851b3bb90a98cab9a56fcc48f192fd70f3ff7b180728d0cb8afd47a050ee99 |
ModelForge-2.4.0.aab |
5,444,226 | 2d453ecc6d6f8d7f99e3fb8daf6906f77a916a355a1d414af2ef099978f55755 |
ModelForge-2.4.0-arm64.apk is the arm64-v8a APK for this device (minSdk 26).
ModelForge-2.4.0.aab is the Play Store bundle. Both come from the same
verified CI run (44786838503) and carry the release signature.
What this fixes
"Rate limited every 5 seconds" while training. Dataset repository files
(JSONL/JSON/CSV/TSV/TXT, optionally gzipped) are downloaded straight through
resolver URLs, so a 100k-row corpus is one file request instead of a thousand
viewer calls; the viewer is still the fallback for parquet-only repositories.
Every request now also passes through one adaptive pacing gate per host:
requests are spaced to the published quota, a 429 pauses every worker together
and honours Retry-After/RateLimit, and a failure is retried three times
before a visible Retry button appears.
"Stopped training says the checkpoint is saved, but the playground says the
checkpoint is missing." A run stopped before its first periodic checkpoint
only saved last.mfck, while the playground, the identity check and every
exporter read best.mfck - so the app claimed success while the file it loads
did not exist. best.mfck is now written whenever it is missing, the stop
message reports the truth when that write fails, and every reader falls back to
last.mfck (models trained with v2.3.0 work without retraining). Checkpoint
sizes are rounded up, so a checkpoint below 1 MB is no longer shown as missing.
Speed. The two gradient matrix multiplies spent about half of every step
moving scratch memory instead of multiplying. They now keep their accumulators
in NEON registers (8x8 tile for the weight gradients, 4x8 tile for the input
gradients) and the bias gradient is summed contiguously. Measured on the
development phone with both engines in one process, 1.06M parameters, batch 8,
sequence 128: 2,620 ms/step against 3,343 ms/step, about 1.28x faster.
Honest limitations
- Parquet-only repositories still use the dataset viewer, one page of rows at a
time. - Training is still on-device only; there is no cloud or multi-device option.
- ARM64 only. There is no armv7, x86 or x86_64 APK.
- Tokenizer vocabulary is built locally from the dataset; it is not a pretrained
BPE. - The bundled aapt2 in the local build environment is x86_64, so this APK was
produced by CI rather than by building on the phone.
ModelForge v2.3.0 - training speed, a stop that stops, diverse AI datasets
ModelForge v2.3.0 - training speed, a stop that stops, diverse AI datasets
Direct APK/sideload install (arm64-v8a, Android 8.0+). The signing key is
unchanged, so this updates over v2.2.0 without uninstalling and keeps your
models, datasets and checkpoints.
What was reported
- A 50M-parameter model trained at roughly one hour per step on v2.2.0.
- Stop training showed "stopping and saving checkpoint" forever, and the run
restarted by itself when the app was reopened.
Training speed (native kernels)
- The matrix multiplies were the bottleneck, not the configuration. The
backward pass walked both operands with a stride and could not vectorize.
The three kernels are now tiled and contiguous, and the NEON dot product uses
four independent accumulators so the FMA pipeline is not latency-bound. - Measured on an aarch64 Cortex-A55 host (4 usable cores, 256 tokens per
step): 1.06M parameters went from 1.15 s/step to 0.54 s/step, and 112.6M
parameters went from 205 s/step (previously over a 280 s timeout) to about
14.6 s/step. - The corpus size is now derived from the step count and free RAM (up to 128M
characters) instead of a fixed 4,000,000-character clamp, so a long run no
longer replays the same few thousand rows every epoch. - The review screen now shows the estimated seconds per step and the total
on-device compute for the chosen size before training starts.
Stop that stops
- Stop reaches into the running native step and aborts it at the next layer
boundary, so a large model stops in seconds instead of after the full step. - The aborted step never reaches AdamW, so the saved weights stay consistent
with the last checkpoint. - Stopping clears the active marker immediately, and a stopped run is never
auto-resumed when the app is reopened or the phone reboots. - Stopping during corpus, tokenizer or token-cache preparation is detected
too and reports a clean stopped state.
Datasets
- Downloads keep up to 24 page requests in flight (64 maximum), request the
next page while the current one is written, still write in order, and stop
at the real end of the split. - The AI architect is told to pick distinct, complementary sources. Repeated
dataset ids are collapsed, fewer than three distinct sources are topped up
with verified complementary datasets, and each AI-chosen dataset is retried
three times automatically before a visible "Retry N failed dataset(s)"
button appears.
Other
- The step field states that there is no maximum step count, and a 100,000-step
preset was added.
Honest limitations
- These are still tiny models trained from scratch on a phone. Expect short,
simple text with repetition, not chatbot-level answers. - The step-time numbers above come from an A55 host, not from your phone. The
app keeps reporting measured tokens per second and a live ETA. - A stopped run keeps the weights of the last completed step; the interrupted
step is repeated when training is resumed. - GGUF exports remain archival/tooling containers, not llama.cpp-compatible
models, and ONNX/TFLite/CoreML exports are still not implemented.
Checksums
- APK SHA-256: 0a9cd688c08c4c5343e0c958984ff5e3bd09421339330f01fbc7c4f0122b6185
- AAB SHA-256: 3ce4c7891a33e8d13d7bfcd08027c14e08fa158ffba148f1fedc3ced9d928fee
Licence: Apache License 2.0.
ModelForge 2.2.0
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 -> freshinstead 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_0andQ8_0tensors. - safetensors with
F32andF16, 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
modelforgearchitecture tag and explicit metadata. They are archival/tooling containers, not numerically identical llama.cpp models - llama.cpp expects RoPE and RMSNorm. - Packed
MFPKexports 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
Longend 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) andNOTICEadded; 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.
ModelForge 2.1.0
ModelForge 2.1.0
Full dataset rows and faster downloads
- The row field no longer stops at 5,000. Enter any exact count, use a quick preset, or tap Entire split.
- Split sizes are read from Hugging Face metadata (
dataset_info.splits[].num_examples); when that is absent, one lightweight rows request supplies the total. - Dataset pages download six-at-a-time in 100-row chunks, are written in order, and no longer wait on an artificial page delay. OkHttp's per-host connection limit was raised for this.
- Downloads stop at the end of the split or at the free-space guard (
availableBytes - 64 MiB, minimum 1 MB).
Up to 1,000,000-token context
- A logarithmic slider and presets span 128 to 1,000,000 tokens.
- Learned absolute position embeddings were replaced by fixed sinusoidal positions. Context length no longer adds parameters or a context-sized position table.
- A 1M-token capacity is a positional ceiling. Training still uses the device sequence length (usually 128-256), and full attention cost grows with tokens², so practical inference remains limited by phone RAM and time.
User-editable training steps
- Enter an exact optimizer step count, pick a preset, or let the AI architect propose one.
- The old 100-2,000 step clamps and the 5,000-row AI suggestion cap were removed.
Compatibility and tests
- Legacy v1 checkpoints and packed models still load; their learned position table is skipped and sinusoidal positions are used.
- Native tests cover a 1M-token config, context-independent parameter count and a forward pass.
- Unit tests cover split sizes and ordered concurrent dataset downloads.
- CI run 43692528303: build and x86_64 emulator jobs green.
Signed artifacts
ModelForge-2.1.0-arm64.apk(arm64-v8a, minSdk 26, signed with the project's stable release key)ModelForge-2.1.0.aab- APK SHA-256:
b33fb70111b41c0b03754856fc5467dae07b361725f41f7b3c80ccb7085a9d0d - AAB SHA-256:
7aaf10ab6e124373e3c8d1cefd310192583fcc2084a4cf802c29e7b8b6a1df39
NCM and AI-designed architectures remain planning paths, and text is still the only native training modality.
ModelForge 2.0.9
ModelForge 2.0.9
Diagnostics and reliability
- Added an in-app Diagnostics screen with device/build facts, storage and memory figures, explicit Hugging Face and NVIDIA credential checks, and copy/share report actions.
- Added a global uncaught-exception handler that stores the last crash locally so it survives an app restart.
- Added bounded structured logs with token/key redaction. Credentials are never written to the log or a shared report.
- Added explicit Hugging Face
whoamivalidation and NVIDIA/v1/modelskey validation.
CI and tests
- Debug builds now include
x86_64for emulator testing; release APKs remainarm64-v8a. - Added an Android emulator job that launches the app and opens Diagnostics.
- Added unit tests for secret redaction.
Notes
- This release does not yet include the planned full architecture/modality engine. NCM and AI-designed architectures remain planning paths; text is still the only native training modality.
- The release APK is signed with the project's stable release key.
ModelForge 2.0.8
ModelForge 2.0.8 fixes the NVIDIA HTTP 503 failure:
{"error":{"message":"content safety screening is temporarily unavailable"}}
This is a temporary NVIDIA-side outage, not a bad API key or prompt.
What changed
- Automatic NVIDIA retry:
429and all5xxhosted responses are retried
up to four attempts. - Backoff: server errors wait 5s, 15s and 30s; rate limits wait 20s, 45s and
60s. A validRetry-Afterheader takes priority. - Visible progress: the AI screen shows
NVIDIA is temporarily unavailable; retrying in Xs. - Actionable final error: if every attempt fails, the message says NVIDIA is
temporarily unavailable and asks you to wait a minute and retry. - No duplicate stream text: retries only happen before plan text is emitted.
- Keeps the v2.0.7 Hugging Face
429backoff, metadata cache, paced downloads
and Retry dataset downloads button.
Install
Download ModelForge-2.0.8-arm64.apk directly. It updates over 2.0.0-2.0.7
without losing app data. Requirements: arm64-v8a, Android 8.0+ (minSdk 26).
Checksums
- APK SHA-256:
4f74e072268fe814664aff2e7a2761ba23fd5f8b9d8e3ffa088a0bd98c7736d7 - AAB SHA-256:
a9ac1b810cfe0924dee431270af8d0312e654c42c7d9d88d3ac9f0ccdd988e37
Notes
- A persistent 503 still depends on NVIDIA restoring the safety screening
service. Waiting and retrying is the only client-side remedy. - Native training remains text-to-text only. NCM and AI-designed architectures
are planning paths without native engines. - See PRIVACY.md.
CI run: https://github.com/CocoCopi/modelforge/actions/runs/43401231533
ModelForge 2.0.7
ModelForge 2.0.7 fixes AI dataset downloads that failed when Hugging Face
returned HTTP 429 rate limits.
What changed
- Rate-limit backoff: requests honor
Retry-Afterand otherwise wait
5s, 20s, then 60s before retrying. The current wait is shown in the AI stage. - Metadata cache: dataset details and structure are reused for 10 minutes,
so the AI research step, final verification and downloads no longer fetch the
same configs/splits repeatedly. - Paced row downloads: row pages have a short delay between requests to
avoid bursting the datasets-server limit. - Stop instead of hammering: if the limit still persists after retries, the
app keeps the AI plan, stops trying further datasets, and explains what to do. - Retry dataset downloads: a new button retries downloads with the existing
plan and cached metadata, without paying for another AI request. - Lower request pressure: automatic downloads are capped at six suggestions
with 100-1000 rows each. - Clearer 429 guidance: the error suggests waiting, adding a Hugging Face
token on Home for higher limits, or switching networks. - Includes the 2.0.6 tolerant action parsing, direct-plan retry and readable
diagnostics.
Install
Download ModelForge-2.0.7-arm64.apk directly. It updates over 2.0.0-2.0.6
without losing app data. Requirements: arm64-v8a, Android 8.0+ (minSdk 26).
Checksums
- APK SHA-256:
b09d62743c8961cb43b4e01e3dd0408b86f380b4f2917a50b8bda4b7999a13c0 - AAB SHA-256:
40d0587d778b345a849d243842d935efb1943105a762f20eb98f189a3c40816a
Notes
- HTTP 429 is enforced by Hugging Face, not the app. A Hugging Face token on
Home is the most reliable way to raise the limit. - This is still a bounded tool loop, not unrestricted shell access. It cannot
browse arbitrary sites or write outside app-private storage. - Native training remains text-to-text only. NCM and AI-designed architectures
are planning paths without native engines. - See PRIVACY.md.
CI run: https://github.com/CocoCopi/modelforge/actions/runs/43381804014
ModelForge 2.0.6
ModelForge 2.0.6 fixes "The AI sent an unreadable tool action" failures when the
model answers in a slightly different JSON shape.
What changed
- Tolerant action parsing: the agent now finds the first valid JSON object
even when the model adds prose, several objects, fenced blocks, arrays, an
actionobject, OpenAI-styletool_calls, or stores the final plan as a JSON
string. - Direct-plan retry: if the model cannot follow the tool protocol after the
research loop, the app retries with the standard plan prompt instead of
failing immediately. - Readable plans are never blocked on tool syntax: if the model returns a
normal plan directly, it is accepted and verified against real Hugging Face
metadata. - Better diagnostics: an unreadable response now includes a short sanitized
snippet in the error, so the next report identifies what the model actually
sent. - Cancellation-safe tools: interrupting a search or inspect now cancels the
agent instead of being swallowed as an empty tool result. - Keeps the live search/inspect tools, verified final plans, verified starter
fallbacks and automatic downloads from 2.0.5.
Install
Download ModelForge-2.0.6-arm64.apk directly. It updates over 2.0.0-2.0.5
without losing app data. Requirements: arm64-v8a, Android 8.0+ (minSdk 26).
Checksums
- APK SHA-256:
d4fab67250bc259d75fbbb5e862961606074139ee0283b968a18e7a54c5530db - AAB SHA-256:
6a7354be90baed8ca3f8b1a48ae0e734c5f344339abfd5a15de603d6481476ad
Notes
- This is still a bounded tool loop, not unrestricted shell access. It cannot
browse arbitrary sites or write outside app-private storage. - Native training remains text-to-text only. NCM and AI-designed architectures
are planning paths without native engines. - See PRIVACY.md.
CI run: https://github.com/CocoCopi/modelforge/actions/runs/43374392558
ModelForge 2.0.5
ModelForge 2.0.5 gives the AI architect a real Hugging Face tool loop instead of
one-shot guessing.
What changed
- Live dataset tools: the AI can now call
searchandinspecttools while
designing the model. Search returns real Hugging Face dataset ids, download
counts and licences. Inspect returns the real configs, splits, text columns
and licence for a dataset. - Tool-grounded plans: the AI must use a tool before finalizing a dataset
plan. When it finalizes, the app resolves every chosen dataset against its
actual metadata, corrects config/split/columns, and drops anything that cannot
be verified. Invented dataset ids or configs no longer survive. - Bounded background loop: at most 6 model turns and a 7-minute research
budget, with visible stages (Searching Hugging Face,Inspecting ...,
Verifying ...). Cancel still works immediately. - Automatic download after verification: verified text datasets are
downloaded into the mix as before, with the 2.0.4 fallback list if every AI
choice fails. - Safer than shell access: the AI never gets arbitrary OS/shell commands. It
can only call typed Hugging Face search/metadata tools, and downloads stay in
the app's private model directory.
Install
Download ModelForge-2.0.5-arm64.apk directly. It updates over 2.0.0-2.0.4
without losing app data. Requirements: arm64-v8a, Android 8.0+ (minSdk 26).
Checksums
- APK SHA-256:
e0cc9de00dbb38b7046a8600ef91fd2268e8dc5444f1b1cc7a1f9efdd47fe0e3 - AAB SHA-256:
07505971ccf52ea03ce1b58618f01262e36262cbc751969b5409b12ab37e39e6
Notes
- This is a bounded tool loop, not an unrestricted agent. It cannot browse
arbitrary sites, run shell commands, or write outside app-private storage. - Native training remains text-to-text only. NCM and AI-designed architectures
are planning paths without native engines. - See PRIVACY.md.
CI run: https://github.com/CocoCopi/modelforge/actions/runs/43372121583