Technical Note

Exact Continuation Across CPU, Apple GPU, and NVIDIA GPU

One neural computation, paused mid-answer and moved across three kinds of hardware, finishing bit-for-bit as if it had never moved.

Cross-Hardware Exact Continuation of Language-Model Execution State

Simple version

We paused an AI model halfway through an answer, moved it to completely different hardware twice, and it finished exactly as if it had never moved.

In plain terms

A small language model started generating on a CPU, was saved mid-answer, resumed on an Apple GPU, saved again, and finished on a cloud NVIDIA GPU. Every intermediate state, every output token, and the final state matched an uninterrupted run bit for bit. In a separate test we killed the running process outright and resumed it on a different backend (CPU or a hybrid CPU + Apple GPU path), in both directions; the saved final states were byte-identical.

Technical artifact

Two-hop state migration for Qwen3-0.6B (portable CPU → Metal → CUDA on a Tesla T4) checked against an uninterrupted reference at every step, with a 34-check composition receipt derived only from hash-bound segment evidence; plus a SIGKILL-and-resume experiment in both CPU ↔ Metal-hybrid directions with fresh-process verification and negative controls.

Why it matters

Inference state already moves between machines: caches are handed off, work is split across devices, and long jobs are restarted after failures. The usual evidence that a move worked is that the output still looks reasonable. Different hardware normally computes slightly different numbers, so “looks reasonable” is usually the best anyone can say.

This note asks a stricter question: after the move, is the computation the same computation? Here the answer was checked directly, by comparing the full internal state and the output scores at every step against a run that never moved.

Evidence path

  1. Step 1

    Freeze an uninterrupted reference

    The model generates six tokens on a portable CPU path without interruption. Its state after every token, its output scores, and its tokens are recorded before any migration runs, and the reference is never chosen to match the chain.

  2. Step 2

    Cross-check the reference on a second backend

    The same run on the Apple GPU must agree with the CPU reference at every step. If the two disagreed anywhere, the experiment would halt.

  3. Step 3

    Migrate twice mid-answer

    The CPU run saves its state after two tokens; a new process restores it on the Apple GPU and generates two more; a third process restores that state on a cloud Tesla T4 and finishes the answer.

  4. Step 4

    Derive the verdict from evidence only

    A separate assembler rebuilds the result from the hash-bound segment records. No state digest or token is typed in by hand; deliberately tampered inputs make assembly fail.

  5. Step 5

    Kill the process and resume elsewhere

    In a separate experiment the producing process is killed with SIGKILL mid-answer, and a fresh process on the other backend resumes from its saved state, in both directions between the CPU and a hybrid CPU + Apple GPU path.

What we observed

Two-hop migration
34 / 34 acceptance checks passed
State after each hop
Identical to the reference, including every attention-cache value
Tokens after the final hop
Identical to the reference, as was the final state
NVIDIA GPU steps
All arithmetic on the GPU; zero operations fell back to the host
Crash-and-resume, both directions
Final saved states byte-identical — 458,752 values, 0 differ
Negative controls
Corrupted, mis-bound, missing, and unsupported inputs all refused

Prompt: “The capital of France is”. The reference and every migrated run produced the same six tokens — “ Paris. The capital of Italy” — two from each kind of hardware. The content of the answer is not the point; that it is identical everywhere is.

Artifact details

Surface
Execution
Artifact
Technical note · PDF
Model
Qwen3-0.6B (dense) · greedy decoding
Hardware
Apple-silicon Mac (CPU, Metal GPU) · cloud NVIDIA Tesla T4
Evidence collected
Per-step state, output-score, and token records for every segment
Verification result
34/34 checks · fresh-process verification in both directions

Scope of this note

This page summarizes two bounded experiments: one model, one prompt, greedy decoding, and short generations. The acceptance criteria were written down before anything ran.

It does not claim that any two backends are equivalent in general, that the NVIDIA path is qualified for production, that GPU programs compile reproducibly (they did not, and only their compilation fingerprints differed), or anything about speed. Performance was not measured.

Open the technical artifact

The PDF contains the full protocol, per-position results, negative controls, related work, and the evidence digests for both experiments.

Have an artifact?

Verify a receipt, digest, or bundle.

Verify a receipt