dsv4-flash-0731-vision / source /repository /docs /technical-report.md
sigilwen's picture
Back up private DSV4-VL source at 8fe605d19738
5f4cdbb verified
|
Raw History Blame Contribute Delete
39.9 kB
# Giving DeepSeek-V4 Eyes
## How we grafted a Google vision encoder onto a 284B sparse language model—and built the training run so it can survive failure
**Conway Research · living technical report · August 2026**
<!-- PUBLICATION-STATUS:START -->
> **Living result snapshot.** This block is generated from `docs/publication_state.json`; preliminary values are not final model claims.
| Field | Current value |
|---|---|
| Snapshot (UTC) | 2026-08-11T07:22:00Z |
| Phase | Step-7,268 BF16 inference live; 48-row semantic gate passed; full vision run paused for $105.63 approval |
| Release contract | Early stop at step 7,268 of the planned 7,813; 545 planned steps were not run |
| Stage-2 progress | 7,268/7,268 optimizer steps (100.00%) |
| Recovered log tail | source log reached step 7,293; 25 rows after the audited checkpoint were excluded from the release |
| Latest audited checkpoint | step 7,268 |
| Latest live metrics | loss 0.57059312; gradient norm 0.11410614 |
| Observed production pace | 42.463 s/optimizer step; 0.00 h (0.00 d) remaining; ETA Stage-2 training stopped by user decision at checkpoint 7,268 |
| Gate throughput | 58.382 s/optimizer step |
| Original guarded training projection | 158.38 h and $5,654.21 (includes 1.25x safety factor) |
| Checkpoint policy | every 46 steps (~44.76 min); retain newest 5 |
| Final Stage-2 checkpoint | step 7,268 |
| Verified merged export | 115 BF16 shards; 569,647,786,908 bytes; 12 direct LoRA-merge proofs |
<!-- PUBLICATION-STATUS:END -->
## Early-stop release amendment
On 11 August 2026, the user explicitly stopped Stage 2 and selected checkpoint
7,268 for release. No further optimizer steps may run. The original checkpoint
records `train_iters=7813`, preserving the actual planned schedule, while the
separate release gate records `release_mode=early-stop`,
`release_iteration=7268`, and `planned_target_iteration=7813`.
The source log contains 7,293 contiguous rows. Because rows 7,269–7,293 have no
complete matching checkpoint, they are archived outside the active release log
and never used to synthesize weights. The selected state contains exact
optimizer/RNG recovery data, a 344-tensor attention LoRA, 86 hybrid-control
tensors, and the matching four-tensor BF16 projector. Its private checkpoint
backup and clean restore are bound to revision
`fa0bc0327e99a5814fc912ec574ef1f54d96d9c7`.
The early-stop model is subject to the same merge proof, vision evaluation,
text-preservation, private upload, goal-completion, server, and held-out-image
trial gates as the originally planned model. It is not accepted merely because
an export directory or preliminary response exists. See
`EARLY_STOP_RELEASE_SPEC.md` for the normative contract.
The early-stop BF16 export now passes its full integrity gate. It contains
34,675 tensors in 115 shards totaling 569,647,786,908 bytes and passes 12
direct LoRA-merge equations. The generic Megatron-SWIFT HF saver first emitted
the four projector tensors as FP32 despite the sealed BF16 input. The verifier
rejected that output. A narrow atomic normalization proceeded only after
proving every FP32 tensor was an exact cast of the sealed BF16 value; it
restored those four dtypes, checked 625 other tensors in the shard unchanged,
retained the original shard, and reran the complete shard/merge verifier
successfully. The export and normalization receipt SHA-256 values are
respectively
`2f3484f62042df8a5e5bbbaf77b435dc42d714ee2d843a46b2140116330a7f7c` and
`917d79eb75a6cd2e032e7cfbf6d86fe1bc20bb2d3b4f49304a3377fdf0a71df5`.
The merged model now serves end to end through vLLM 0.25 on all eight H200s.
Two fail-closed serving mismatches were fixed without changing trained weights:
the generic vLLM length check did not understand DeepSeek-V4's nested RoPE
mapping, and its NVIDIA attention fast path assumed FP8 output-projection
weights. The serving adapter preserves the native FP8 path when scales exist
and uses vLLM's own BF16 inverse-RoPE/einsum reference otherwise. An exact CUDA
comparison passed on an H200 before the full relaunch.
The first held-out results are mixed. The direct code-image test passed; the
camera-brand test returned `Polaroid` rather than `Dakota Digital`. A bound
six-row smoke scored MMBench 2/2, TextVQA 0.45 over two rows, and MME OCR 50/200
over one pair. That is enough to prove inference works, but not enough to call
the early release quality-verified.
The larger semantic gate was more encouraging: 14/16 MMBench, 0.78125
TextVQA over 16 rows, and 1,000 MME points over eight complete pairs. A 300-row
cost probe measured 209.081 seconds. Projecting the full 11,703 rows with the
fixed 1.25x safety factor yields 2.832 hours and `$105.63` at the current pod
price. That crosses the automatic `$100` ceiling, so the full run is awaiting
explicit approval rather than starting silently.
A fresh three-suite spot check then excluded every row already present in the
48-row and 300-row inputs. It correctly returned `B` for MMBench row 252,
`Copenhagen` for TextVQA row 34603, and `Yes` for the selected MME code
reasoning row. Independent receipt verification bound each result to the live
served model, source-file hash, row index, image, prompt, and response hash.
The full current payload is now recoverable from the private Hub. Revision
`3eb33263963b27863ed17ae7ae8490c0d268c9ac` remotely verifies 142 merged-model
files totaling 569,657,046,672 bytes. All 115 shards match the sealed export
digests, and the provenance manifest binds the clean-restored checkpoint and
source/docs revisions plus all 20 current inference receipts. The uploader's
verify-only replay passed after completion and the endpoint stayed live. This
is deliberately labeled a preliminary early-release backup because the full
vision and text-preservation gates remain pending.
![Stage-2 optimization curves](figures/stage2-training-curves.svg)
*The latest Stage-2 traces: raw values plus a 50-step rolling mean. The graph is regenerated from every contiguous logged step, embeds the source-row digest, and becomes part of the hash-bound release bundle.*
DeepSeek-V4-Flash-0731 is a capable text model. It can reason, write code, use
tools, and work across very long contexts. But hand it an image and there is no
visual pathway into the model.
We are adding one.
The short version is simple: a frozen Google SigLIP 2 encoder turns an image
into 729 visual features, a small learned projector translates those features
into DeepSeek's hidden space, and DeepSeek reads them as part of the same stream
as text. The difficult part is making that work inside a 284B-parameter sparse
model without fine-tuning its experts, corrupting its text behavior, losing a
week of GPU time to a bad checkpoint, or declaring success from a pretty demo.
This report explains what has happened so far, including the failures. Its
shape is inspired by Standard Intelligence's FDM-1 report: start with the
working idea, show the recipe, expose the infrastructure, and make the
evaluation contract concrete [1]. The formal companion is the
[living research paper](research-paper.md).
## The model in one diagram
```mermaid
flowchart LR
IMG["384×384 image"] --> VIT["Frozen SigLIP 2 So400m"]
VIT --> PATCH["729 patch features × 1152"]
PATCH --> PROJ["Trainable 2-layer GELU projector<br/>1152 → 4096 → 4096"]
TXT["DeepSeek text tokens"] --> MERGE["Interleaved embedding sequence"]
PROJ --> MERGE
MERGE --> DSV4["DeepSeek-V4-Flash-0731<br/>frozen base + attention LoRA"]
DSV4 --> OUT["Text, reasoning, code, or tool calls"]
```
The vision encoder does not generate words. The projector does not understand
instructions. The language model does not see pixels. The graft works only if
the projector learns a useful translation between the visual feature space and
the language model's embedding space, then a small set of attention adapters
teaches the decoder how to use those translated features in real
conversations.
## First, the naming confusion
This is not a LLaVA model.
We use the **LLaVA Pretrain 558K dataset** for the first alignment stage because
it is a well-established image-caption bridge dataset [2]. The actual vision
encoder is **Google's SigLIP 2 So400m** [3]. The language backbone is
**DeepSeek-V4-Flash-0731**. “LLaVA” describes one source of alignment data and
the broad two-stage recipe, not the architecture we are deploying.
That distinction matters because the pieces are independently replaceable. If
fixed-resolution SigLIP 2 becomes the bottleneck, we can upgrade the visual
front end or add tiling without replacing DeepSeek. If the projector is weak,
we can retrain 43 MB of weights instead of hundreds of billions of parameters.
## What we are training—and what we refuse to touch
The base model is sparse: different tokens activate different routed experts.
It would be easy for a broad LoRA target such as “all linear layers” to attach
adapters to those experts. We explicitly avoid that.
Stage 2 changes only:
- four projector tensors; and
- 344 LoRA tensors on five named attention projections.
It does not change:
- the SigLIP 2 vision tower;
- the tokenizer or vocabulary;
- the DeepSeek base weights;
- routers, routed experts, or shared experts; or
- hybrid-attention control tensors.
The audited update surface is 175,087,616 trainable parameters—about 0.41% of
the loaded model representation on each expert-parallel rank.
## The two training stages
### Stage 1: teach the connector what visual features mean
We froze DeepSeek and SigLIP 2, then trained only the two-layer projector on
558,128 accepted image-caption pairs. The run completed 2,180 optimizer steps
in 16 hours, 41 minutes, and 33 seconds.
Before the full run, a 32-example overfit test drove its final-eight median loss
to 0.00199. This was not a quality benchmark; it was a wiring test. It proved
that real images reached the model, gradients reached only the projector, and
the connector could memorize a tiny set.
The finished projector is a 43,008,480-byte Safetensors file with four tensors.
Its SHA-256 begins `f191e25b…`. We loaded it through an eight-GPU audit with no
missing, unexpected, mismatched, meta, CPU, or disk-offloaded model tensors.
### Stage 2: teach DeepSeek to use vision in instructions
Stage 2 keeps training the projector and adds rank-64 attention LoRA. It sees a
million examples at a 4,096-token maximum length, global batch 128, and micro
batch one. The LoRA learning rate peaks at 2×10⁻⁴; the projector uses 2×10⁻⁵.
The run is exactly 7,813 optimizer steps.
Why exact steps instead of “one epoch”? Overlength examples are deleted rather
than chopped in the middle of an answer. If training length came from the
post-filter epoch, even one deleted row could move the final checkpoint. The
fixed schedule keeps cost, consumed samples, checkpoint identity, and final
evaluation bound to the same contract.
## The million-example mixture
We wanted vision breadth without turning DeepSeek into a worse text model.
Eighty-two percent of Stage 2 is multimodal; eighteen percent rehearses coding,
reasoning, and function calling.
| Training signal | Records | Why it is present |
|---|---:|---|
| General visual instruction | 370,000 | Objects, scenes, VQA, visual reasoning, math |
| Documents, charts, OCR | 200,000 | Small text, tables, forms, plots, rendered pages |
| GUI-agent traces | 150,000 | Ground screen state to structured actions |
| Screenshot-to-code | 100,000 | Translate visual layout into HTML/UI structure |
| Text tool use | 60,000 | Preserve DeepSeek's native function calling |
| Verified coding | 60,000 | Preserve code generation |
| Text reasoning | 60,000 | Preserve general non-visual reasoning |
There are 27 pinned source configurations. We downloaded 539.57 GB of immutable
source snapshots, validated each component independently, content-addressed
images, and excluded every normalized prompt used by the evaluation suites.
The final JSONL is 2.424 GB because images are referenced by local paths rather
than embedded as bytes.
One surprising problem appeared only at full scale. Tool definitions are JSON
Schema objects, and different tools can have different property names. Apache
Arrow tried to infer one nested structure for every row and failed before model
loading. The fix was deliberately boring: store heterogeneous tool definitions
as canonical JSON strings in the dataset, then parse them back immediately
before DeepSeek's DSML chat template renders the sample. We normalized 175,620
tool-bearing rows and kept the original file as a hard-linked audit copy.
## The infrastructure behind one training command
The active machine is one RunPod node with eight H200 SXM GPUs, roughly 2 TB of
system memory, and a 4 TB persistent volume. The source model, BF16 conversion,
obsolete conversion retained for safety, datasets, caches, Stage-2 state, and
eventual BF16 export all need to coexist. The original 2 TB volume was not
enough; RunPod's UI initially showed the requested resize while the live volume
remained smaller, so we verified capacity from inside the pod before trusting
it.
DeepSeek-V4 training support lives on development branches of Megatron-Core,
MCore Bridge, and MS-SWIFT [4]. That is powerful but sharp-edged. Every launch
therefore verifies exact package versions and the source markers for each
compatibility patch before it can allocate the model.
The production flow looks like this:
```mermaid
flowchart TD
DATA["Verify 1M-row mix + 27 receipts"] --> RUNTIME["Verify pinned runtime + behavioral probes"]
RUNTIME --> RECOVERY["3-step stop/save/reload gate"]
RECOVERY --> COST["Measure throughput and seal cost receipt"]
COST --> APPROVE{"Projection within approved ceiling?"}
APPROVE -- No --> PAUSE["Stop with GPUs idle"]
APPROVE -- Yes --> TRAIN["7,813-step Stage-2 run"]
TRAIN --> SAVE["Adapter + projector every 46 steps"]
SAVE --> AUDIT["Independent checkpoint auditor"]
AUDIT --> BACKUP["Periodic full stateful Hugging Face backup"]
BACKUP --> EXPORT["Merge against BF16 base"]
EXPORT --> EVAL["Full vision + text-regression gates"]
```
## Why checkpointing is part of the research method
A file named `checkpoint-46` is not automatically a checkpoint we can trust.
For this run, recoverability means all of the following exist and agree:
- the attention LoRA;
- the matching four-tensor projector;
- FP32 optimizer master weights and both Adam moments;
- scheduler and sharded RNG state;
- the exact optimizer iteration and consumed-sample counter; and
- the recipe and hashes used to create them.
An independent auditor watches the output directory and validates every pair.
We save every 46 steps—about 44.76 minutes at measured throughput—and retain the
newest five. That gives roughly a four-hour rolling recovery window on the
persistent volume. A live audit found that the pinned Swift implementation's
top-level `checkpoint-*` glob also matched `checkpoint-audits`, silently using
one retention slot and leaving only four numeric state directories. We did not
pause or mutate the trainer. Instead, the independent auditor now atomically
hard-links every validated state below `recovery-checkpoints`, which is outside
that top-level glob. The live filesystem proves source and mirror payloads have
identical device/inode pairs, so the mirror preserves five complete states
without duplicating their roughly 2.6 GB payloads. The installed-source patch
for future launches restricts rotation to `checkpoint-<digits>` and is enforced
by the runtime verifier and regression suite.
After a bootstrap full copy at step 138, every tenth local
save (460 optimizer steps) is copied off-volume with its distributed optimizer
and RNG state. That monitor deliberately excludes step 7,813. A canonical
final-backup path owns the final commit and writes a recovery/gate/mix-bound
receipt, allowing Phase 6 to reuse the successful backup without racing or
rehashing 2.7 GB. The bootstrap copy contains 17 files and 2,761,827,366 bytes;
the private Hub manifest and file tree were independently verified at revision
`6163fb2811b5da53083ae8877541e2a87f03e00e`.
We performed a clean-download drill from the step-138 revision, rehashed all
11 receipt-bound recovery files (2,411,581,179 bytes), and revalidated the
downloaded 344-LoRA/86-control adapter and four-tensor projector. The canonical
PASS receipt is `/workspace/evals/stage2_offsite_restore_0000138.json`.
The first periodic full state, checkpoint 460, is also present privately at
revision `511c014112aa15323e8445954f5076d8a2119a1d`. An exact-revision clean
restore rehashed the same 11 recovery files and revalidated the
344-LoRA/86-control adapter plus four-tensor projector. Its PASS receipt is
`evals/stage2_offsite_restore_0000460.json`; the temporary restore tree was
removed after verification.
Checkpoint 920 is privately committed at revision
`7fd33087ba55d1ff6f042a5bd50df16074a57098`. The monitor now clean-downloads
and revalidates every scheduled stateful upload automatically; the first such
PASS report is `evals/stage2_offsite_restore_0000920.json`. Successful
immutable receipts are processed once per monitor lifetime, with one complete
replay after a process restart; failures are not memoized and remain eligible
for retry. A live restart proved this behavior across steps 138, 460, and 920,
eliminating six redundant private-Hub queries from every one-minute scan.
Checkpoint 3,220 is the latest verified off-volume state at private revision
`5632b15acd856a3120b815500d5b372d553eb63d`. Its clean exact-revision restore
rehashed all 11 optimizer/RNG files (2,411,581,181 bytes), revalidated the
344-LoRA/86-control adapter and four-tensor projector, removed the temporary
tree, and wrote `evals/stage2_offsite_restore_0003220.json` with SHA-256
`e5e4302f28268f61a27fd2a8384e88cbcd8c20e8fe29f8d4a1ed497c65b5a56e`,
bound to backup-receipt SHA-256
`9142379e7b7b2565d63d437507ba81fdd4ab77c6112b32fa686d7b516603e669`.
Before the approximately 569 GB BF16 merge can begin, the unattended Phase-6
handoff must repeat that drill against the exact private revision created by
the canonical final backup. It downloads the step-7,813 tree into a clean
temporary directory, rehashes all 11 recovery files, revalidates the adapter
and projector, and writes a restore report cryptographically bound to the
final-backup receipt. Any missing, altered, or unbound artifact stops the state
machine before merge.
There is also a subtle end-of-run edge: 7,813 is not divisible by 46. The live
runtime gate now inspects the exact installed Swift callback and requires its
explicit `iteration >= train_iters` adapter save. Our projector callback has
the same final-iteration clause, so the handoff-required adapter/projector pair
is guaranteed even though the final step is outside the periodic cadence.
A separate diagnostic process now audits the entire training log every minute.
It checks contiguous iteration numbering, finite values, conservative hard
bounds, sustained loss/gradient divergence, MoE balance, throughput, and HBM
use, but it cannot terminate the trainer. At step 204 the report was PASS with
zero violations; recent 20-step loss/gradient/MoE means were
0.733238/0.100711/1.072757 versus 1.019983/1.088344/1.798841 initially.
Checkpoint 230 subsequently passed the same independent stateful audit. Its
receipt covers the eight optimizer/RNG shards, 344 attention-only LoRA entries,
global batch 128, and exactly 29,440 consumed samples. The receipt SHA-256 is
`71127f526571a28bf718d3d7ffb663c54c91e12bf32638d07153e61a9018ef28`.
Checkpoint 276 then passed with all eight state shards and exactly 35,328
consumed samples; training advanced to step 277. Its recovery receipt SHA-256
is `455fdc6f9867c493b285811e06c9f4ea914430a518fe829622a54ebfc186d0e7`.
The post-training state machine is also executable under deterministic stubs.
The simulation covers successful final-checkpoint backup and export, strict
re-verification when resuming from a complete export, rejection of a partial
export, checkpoint/audit binding, and the explicit
vision-evaluation cost pause. This test caught an `ERR`-trap interaction that
previously converted the intentional cost-approval exit into a terminal
failure. The corrected conditional capture preserves the resumable approval
state without weakening failure handling for other exits.
The merge now has an additional exact-source gate. It validates the 48
hard-linked 0731 language shards, hashes the HF wrapper controls and 452-tensor
SigLIP/projector shard, and checks the complete eight-file MCore layout plus
24,541 state/57,522 storage metadata entries, routing tables, projector
topology, EP=8, BF16, and zero MTP. Its live PASS receipt SHA-256 is
`a7cc21bb4e1a376a49af71fa75f0b6da1008736d7ea0ab8b0264dd70daeb2f80`.
The final merged-export verifier still computes full hashes for every output
weight shard. It also closes a semantic gap that shard topology alone cannot:
an exporter that silently ignored the adapter would contain no residual LoRA
keys. The verifier now reads the immutable BF16 MCore base and, for all four
adapted attention matrices in layers 0, 21, and 42, selects eight deterministic
high-effect coordinates and checks the exported value against
`base + (128/64) × B@A`. Every sample must be materially closer to that merged
value than to the base. A base-only synthetic export is a tested failure, and
release finalization requires the complete 12-record proof.
The export receipt now embeds the source receipt's exact path and SHA-256.
Release finalization validates that binding again, copies the source receipt
into `evaluation/PHASE6_SOURCE_INPUTS.json`, and includes it in the release
manifest. The release regression test mutates the source receipt after export
and confirms that finalization fails.
We also audited the test runner rather than trusting its green result. Python
files whose checks live only in `main()` are not collected by pytest. An AST
inventory now requires every no-argument main-only gate to appear in the
direct-execution list, with only two parameterized live gates exempted. The
active training environment passes eight pytest checks and all 70 standalone
gates. The first exhaustive run exposed stale Terminal-Bench source/fixture
drift on the pod; after synchronizing the exact source, a clean full rerun
passed. This turns test inclusion itself into a regression-tested invariant.
The unattended handoff repeats that suite after the final checkpoint audit,
writes `/workspace/logs/phase6_runtime_preflight.log`, and requires the exact
suite PASS marker with a positive executed-test count (currently 70) before
private backup or BF16 merge. Its state-machine test includes a missing-marker
case that must fail before backup. This prevents
source or environment drift accumulated during the multi-day run from being
silently carried into the expensive export.
The separate local sandbox host now has an executable dependency preflight as
well. It verifies and loads the pinned EvalPlus image/dataset and the complete
frozen Terminal-Bench environment without requiring the final endpoint or
adapted samples. Running it before Stage 2 ends proved that Docker, both source
revisions, both labeled base images, and all ten tasks are ready; it performs no
generated-code or terminal workload.
Final vision evaluation now uses two probes for different questions. The
existing 48 rows answer “does the merged model produce meaningful outputs on
all three suites?” A subsequent warmed 300 rows answer “what will the complete
run cost?” with 100 MMBench, 100 TextVQA, and 50 complete two-question MME
pairs. The latter sample size previously projected $82.93 on the same DP8/EP8
runtime at $35.43/hour, about $83.56 at the current rate. Phase 6 nevertheless
requires a fresh receipt bound to the final export before crossing the $100
automatic threshold. Timing is journaled inside every generated row with its
run-manifest hash and batch identity. If the 300-row probe is interrupted, the
restart reconstructs cumulative wall time from the completed rows rather than
measuring only the remaining suffix. The throughput artifact also binds the
exact input list and complete result SHA-256, preventing stale speed data from
authorizing a different run.
For operations, we budget four to eight hours between the final Stage-2 step
and a completion-audited image trial. The analogous 569 GB HF-to-MCore
conversion took 15 minutes, the measured DP8/EP8 vision projection is 2.34
hours, and the prior isolated EvalPlus/Terminal-Bench phase took about one
hour. Final export verification, release assembly, and the first full private
upload make up the remaining uncertainty; this range is planning evidence,
not a completed Phase-6 measurement.
Release assembly is also idempotent at a cryptographic boundary. A completed
bundle may be reused only after an independent verifier checks every indexed
BF16 shard, config/index/tokenizer hash, copied and original report, nested run
binding, raw generation file, source receipt, smoke report, and model card, and
reruns the same acceptance logic. Partial bundles and a synthetic mutation of
the copied final-vision report fail. This makes a post-finalization upload
retry safe without permitting silent replacement.
The stop/save/reload test is intentionally harsher than checking that a file
loads. We ran three steps without interruption, then independently ran two
steps, stopped, reloaded the saved state, and executed the third step. Before
restart, the adapter and all three 175,087,616-element FP32 optimizer tensors
matched bit-for-bit.
After restart, loss, learning rate, and MoE auxiliary loss matched exactly.
The BF16 parameters were not bitwise identical because restarting NCCL can
change collective reduction order. We measured and sealed a narrow numerical
envelope instead: one BF16 epsilon at ordinary magnitudes, a 3×10⁻⁵ absolute
allowance near zero for LoRA, and a tighter projector allowance. Crucially, the
same comparator still rejects the preserved bad run that resumed with a 0.1×
learning rate.
## Everything that broke before production
The preflight sequence may look excessive until you see what it caught.
1. **The first real loader failed before model weights loaded.** The pinned
MS-SWIFT code expected a Datasets feature that Datasets 4.0.0 did not export.
We added a version-aware fallback and a real four-row multiprocessing probe.
2. **The next run loaded the model but found zero trainable projector tensors.**
LoRA wrapping had ignored `freeze_aligner=false`. We patched the path and now
require exactly four projector tensors—never zero, never five.
3. **Micro batch two ran out of H200 memory on the first backward pass.** It had
103.61 GiB allocated and requested another 41.72 GiB. Micro batch one fits at
a measured 124.67 GiB peak while gradient accumulation preserves global
batch 128.
4. **Automatic output versioning hid the checkpoint under another directory.**
Stable paths are now mandatory.
5. **Resume state was incomplete.** We required sharded RNG, froze an
unserialized per-step MoE expert-bias update, and preserved parameter-group
identity so projector metadata could not overwrite the LoRA learning rate.
6. **The million-row tool schema broke Arrow materialization.** Canonical JSON
scalar storage fixed the loader without changing rendered DSML.
7. **The original post-restart numerical threshold was too brittle.** Exact
serialized state passed, but harmless BF16 collective-order drift crossed an
arbitrary boundary. We calibrated the boundary from production-shape runs
and retained a known-bad regression case.
No failed gate was promoted to production. No failed attempt produced an
accepted training checkpoint. We kept the evidence because the failure history
is part of the result.
## What the model can do today
After Stage 1—before instruction LoRA—the visual channel is real but weak:
| Benchmark | Stage-1 result |
|---|---:|
| MMBench EN dev | 0.385077 |
| TextVQA exact match | 0.04762 |
| MME | 847.5577 |
These numbers explain why Stage 2 matters. Caption alignment teaches a
connector to put visual features in approximately the right language space; it
does not teach the decoder the full distribution of visual questions, OCR,
charts, GUI actions, and code reconstruction.
We also froze the text baseline before multimodal instruction tuning:
| Benchmark | Unmodified DeepSeek-V4-Flash-0731 |
|---|---:|
| HumanEval pass@1 | 0.70122 |
| HumanEval+ pass@1 | 0.66463 |
| Calibrated 32K/64K retrieval | 8/8 |
| Pinned Terminal-Bench subset | 5/10 |
The final model must clearly beat the Stage-1 visual baseline and stay within
three percentage points of the text baseline. A successful screenshot demo is
not enough.
## Current training economics
The latest gate measured 58.381959 seconds per optimizer step. Multiplying by
7,813 steps and a 1.25 safety factor yields 158.381 projected hours, or about
6.60 days. At the live node price of $35.70/hour, the guarded ceiling is
$5,654.21. The approved receipt is capped at $5,655 and cryptographically bound
to this exact gate. A new gate with a higher estimate cannot inherit approval.
The safety factor is deliberately conservative. It covers checkpoint writes,
periodic stalls, loader variance, and other overhead that a three-step timing
sample cannot predict. Once the run has enough stable production steps, the
paper will report both the original guardrail and the actual wall-clock rate.
After two independently audited production checkpoints, the observed running
average is 43.16 seconds per optimizer step. At step 93 this implied roughly
92.6 hours of training remaining and an ETA near 2026-08-10 05:10 UTC, before
the final merge and evaluation stages. This observed estimate is operational,
not a replacement for the approved conservative cost ceiling.
The early optimization trace is behaving coherently rather than merely staying
finite. Across the first 114 unique iterations, mean loss moved from 1.019983
in steps 1–20 to 0.779023 in steps 95–114. Over the same windows, mean gradient
norm moved from 1.088344 to 0.112824 and the mean MoE auxiliary term from
1.798841 to 1.110286. The changing multimodal/text mixture makes this a health
signal, not a final learning curve or quality claim.
The live run later reached step 6,985 before exhausted RunPod credits stopped
the original container. RunPod's automatic volume migration to a replacement
8×H200 node was incomplete, so we treated it as a recovery event—not a normal
restart. The private off-volume backup worked: exact revision
`2230f42b46e7a220135d90bf549dd0954d9e3c42` restored and independently audited
all 17 step-6,900 artifacts (2,761,827,385 bytes), the matching projector and
optimizer/RNG state, and the original Stage-1 projector. We also rebuilt the
two original Stage-1 evaluation views and reproduced their sealed hashes. No
trainer was started during recovery; all eight replacement H200s stayed idle.
That was the recovery state before the source-volume audit. The source was then
recovered through step 7,293, with checkpoint 7,268 as the newest complete
audited adapter/projector/optimizer state. The user explicitly chose that state
for an early-stop release, so no remaining optimizer suffix will run. The
checkpoint is privately backed up and clean restored; the BF16 merge and first
held-out inference smoke now pass operationally. Current work is the complete
evaluation, text-preservation gates, private final upload, and final inference
handoff.
For final vision evaluation, the exact vLLM 0.25 source supports the merged
BF16 experts through its unquantized FusedMoE path under DP8/EP8. We added a
strict BF16 view and launcher so the final model can use the same class of
eight-GPU serving path as the Stage-1 baseline. A fresh 48-row semantic and
throughput smoke will decide the actual runtime and cost; if the measured full
projection exceeds $100, evaluation pauses for explicit approval. The slower
Transformers path remains a tested fallback.
## What “done” means
Training completion is only the middle of the release process.
1. The final adapter and projector must pass the independent checkpoint audit.
2. The adapter must merge into the immutable BF16 base—never the FP8 source.
3. Every exported shard must hash and reload cleanly.
4. The complete 11,703-row vision suite must beat Stage 1 by at least +0.01
MMBench, +0.01 TextVQA, and +10 MME.
5. HumanEval, HumanEval+, long-context retrieval, and Terminal-Bench must pass
the text-regression gate.
6. The complete merged directory must pass exact private-revision backup and
restore-verification checks.
7. Only then do we publish final scores, qualitative examples, and a release
manifest.
## What comes next
The most likely architectural follow-up is higher-resolution or AnyRes tiling.
Fixed 384×384 input is efficient, but small document text can disappear before
the language model ever sees it. We will let TextVQA, document/OCR subsets, and
error analysis decide whether that complexity is warranted.
A source review of WebBrain's MoonViT-based 0731 package sharpened this into a
specific v1.5 proposal. Its strongest choices are native-aspect NaViT sizing, a
learned 2x2 PatchMerger that accepts up to 2,048 source patches while emitting
at most 512 language tokens, and separate deterministic routing IDs for visual
embeddings. We should not copy its published palette: it is named for an older
V4 revision and is not accompanied by a 0731 route-coverage receipt. Our first
ablation will instead reuse the trained SigLIP2 tower, add a global thumbnail
plus bounded 384px detail tiles, merge each padded 2x2 feature neighborhood,
and derive spatial route IDs from our exact sealed 0731 hash tables. The full
comparison and promotion gates are in
[`webbrain-vision-design-comparison.md`](webbrain-vision-design-comparison.md).
Other useful ablations are projector-only instruction tuning, lower-rank LoRA,
different text-preservation ratios, and narrower attention target sets. They
are secondary to finishing one clean, fully audited run.
Like the FDM-1 report, which makes the encoder, training recipe, and evaluation
infrastructure part of the story rather than background machinery [1], this
report will keep the operational evidence visible. The status block at the top
is generated from one canonical state file, and the
[experiment ledger](experiment-ledger.md) is append-only. As checkpoints,
curves, evaluation results, and failure analyses arrive, both this report and
the [research paper](research-paper.md) will evolve without erasing what was
known at each stage.
The final artifact has its own durability gate. Once the approximately 569 GB
merged BF16 release passes its local checks, a detached resumable uploader sends
the entire loadable directory to the private Hugging Face repository. It pins
and verifies the remote revision by path, size, and SHA-256, commits a
hash-bound remote inventory, and verifies that final revision before writing a
PASS receipt. A final fail-closed auditor independently binds the exact
step-7,813 recovery tree, private Stage-2 clean restore, merged bundle,
vision/text/publication gates, and pinned private release revision into
`GOAL_COMPLETION.json`; only then may Phase 6 become
`FINAL_RELEASE_COMPLETE`. This is deliberately
distinct from the smaller adapter and
optimizer recovery backups used while training.
The private upload credential is deliberately not stored as a regular file on
the RunPod network volume, whose mode bits remain 0666 despite `chmod`. The
bootstrap keeps the large Hub cache on `/workspace` but directs authentication
to a root-owned 0600 token file; a symlink at the legacy cache path keeps the
already-running training parent and backup waiter compatible without copying
the token. Direct and legacy-path private-repository queries both passed, a
shared-cache scan found zero regular-file credential matches, and the trainer
remained uninterrupted. Finally, the exact legacy environment downloaded
private checkpoint 1,840 at its pinned revision, revalidated all 11 recovery
files and the adapter/projector, and removed the temporary tree. The resulting
PASS report has SHA-256
`0d3f444ea82fb72b9064ff814081c6fedf94b22c48ee374fd74beaafb49dd07b`.
The external orchestrator treats detached-process state as recoverable without
making all failures recoverable. It re-enters the idempotent finalizer from
`VERIFYING_FINAL_RELEASE_BACKUP` or `VERIFYING_GOAL_COMPLETION`. A `FAILED`
state is eligible only when its detail identifies the final backup or goal
audit and a verified local release manifest exists; failures from earlier
export or evaluation stages are refused. Runtime fixtures exercise live
session reuse, restart, immediate completion, and the refusal boundary.
The completed artifact also has a canonical interactive path. The persistent
vision launcher first replays the goal-completion audit, then creates or
verifies the zero-copy vLLM view and starts the DP8/EP8 loopback endpoint. Its
READY receipt binds the endpoint to the goal receipt, release manifest, and
view. A small standard-library client accepts a local image and prompt and can
write a hash-bound one-image trial receipt, making the final usability claim
replayable rather than an unrecorded manual chat. The launcher uses that client
on one real held-out MMBench row by default; repeat invocations verify the exact
existing endpoint/image/goal bindings instead of silently replacing the first
trial. Reuse also requires the same holdout JSONL hash and row index, prompt,
max-token/temperature request, and response hash. Any changed input or server
receipt forces a fresh multimodal endpoint call. We fixed that trial before
completion to row 0 of the 4,329-row MMBench dev file. The JSONL SHA-256 is
`6ce0945a1bb6a4e973fb9cd2e964b42ddef6d96df3cf7ba9ae49451c392e060a`;
its real 302x232 RGB PNG has SHA-256
`62bf93753940597e9298ae959eadf914168d2c2651399945dda99274addb731b`.
All generated variants of its prompt are in the immutable 22,106-entry
Stage-2 exclusion set, so the final usability example cannot have been selected
from the training mix.
For a local image on the configured Mac, `try_remote_vision_model.sh` invokes
that completion-gated launcher over strict-host-key SSH, downloads and rehashes
the exact goal/server receipt pair, opens a loopback-only tunnel, verifies the
served-model inventory, and then calls the same client. The local tunnel URL is
kept distinct from the remote endpoint recorded in the immutable server
receipt, so convenience does not weaken provenance.
The report is also a release artifact, not an untracked afterthought. Fresh
release assembly requires the final checkpoint, export, vision, and text gates,
promotes those accepted values into the canonical publication state, and
regenerates the paper/report result blocks. It copies this report, the research
paper, ledger, accomplishments report, and state file into the model's
hash-bound `documentation/` directory before the private upload begins.
## References
1. Standard Intelligence. [The First Fully General Computer Action Model](https://si.inc/posts/fdm1/), 2026.
2. Liu, H. et al. [LLaVA Visual Instruct Pretrain LCS-558K dataset card](https://huggingface.co/datasets/liuhaotian/LLaVA-Pretrain).
3. Tschannen, M. et al. [SigLIP 2](https://arxiv.org/abs/2502.14786), 2025.
4. ModelScope. [DeepSeek-V4 Training Support in Megatron-SWIFT](https://swift.readthedocs.io/en/v4.4/BestPractices/deepseek-v4.html).
5. Teknium, R. et al. [Hermes 4 Technical Report](https://arxiv.org/abs/2508.18255), 2025.