# Training across providers: Modal and Lambda

These are two actual deployments of the same stock training workload, not a Nodus software treatment or a provider ranking. Modal completed and numerically verified all three planned resets. Lambda completed and verified the first, then its second process reported CUDA unavailable before any update. The third reset did not start. The underlying CUDA failure cause remains unknown.

## Workload and comparison

The workload is a roughly 355M-parameter decoder training model, global batch 32, sequence 2048, BF16 model compute and FP32 gradient reduction. Each reset starts a new process, model, AdamW optimizer and fixed seed, performs 54 updates and saves its final model/optimizer state. Four warmup updates precede 50 measured updates. Each completed measured sequence processes 3,276,800 tokens. Three resets within one allocation are repeated trajectories, not three independent provider trials.

The scientific specification, training/model/common source hashes, staged training/validation/tokenizer hashes and fixed numerical tolerances match across the two providers. The exact specifications are included in the JSON. The managed service, runtime identity, CPU resource limits, driver and region differ. Both report one NVIDIA H100 80GB HBM3; this is not proof of identical infrastructure or effective CPU capacity. Modal requested/limited 4 logical CPUs and 32 GiB RAM; Lambda's container limit was 8 logical CPUs and 32 GiB. The recorded CPU affinity list is retained separately and does not override the CPU quota.

The historical Lambda run 42998938364 is solely the numerical reference. Its timing is not used as a fresh provider baseline. Existing source and reference context remain at [the training harness](nodus-trainkit-executed-317ed9df6.tar.gz) and [historical numerical evidence](trainkit-fp32-cu128-42998938364.json).

## Exact source and reproduction boundary

The existing training archive's `train.py`, `model.py` and `common.py` hashes exactly match both executed `execution.source_files`; its preprocessing implementation also matches the retained original input recipe. The [source companion](provider-training-companion.tar.gz) supplies the exact newer executed quality comparator, portable pilot and device probe, plus the verbatim observed spec and pinned environment/input reconstruction instructions. Its [member manifest](provider-training-companion-manifest.json) binds each byte. The spec's declared 317ed source is retained; actual file hashes establish execution identity.

Original prepared WikiText2/GPT2 inputs are retained and byte-joined to both staging manifests. They can be reconstructed with the pinned public recipe. The exact original reference is delivered separately as sixteen immutable parts through the [reference manifest](provider-reference-manifest.json) and [streaming reassembly helper](provider-reference-download.py). The 4,256,712,067-byte aggregate remains SHA256 96cc88e6880106dbdcc23e5c5c2c1172378aa5824386f4e8e73e582af7ffc9dd. Publication requires complete staged-byte readback; routine site artifacts do not contain the 4 GB payload. The companion includes the exact original reference metadata, the byte-identical executed packet.json and a command recipe that creates an explicitly new runtime identity for the unchanged pilot. A fresh reference is a new cohort. Packaging unchanged source does not claim a newly executed reproduction.

## Observed results

| Service | Completed and verified resets | Measured training-step tokens/s, in reset order | Training-process seconds, in reset order |
| --- | --- | --- | --- |
| Modal Sandbox |3/3|32,142.30;33,806.84;32,762.21|134.218;128.335;129.934|
| Lambda GPU VM |1/3|31,833.91|136.417|

The Lambda failed second process ran 3.020 seconds and performed zero updates. That is an environment/runtime failure, not a numerical rejection. Its missing third reset is not a failed quality comparison. Do not aggregate missing resets as zero throughput or compute a three-reset speed ratio.

Each of the four completed final-state files is 4,256,712,067 bytes and has SHA256 `96cc88e6880106dbdcc23e5c5c2c1172378aa5824386f4e8e73e582af7ffc9dd`, identical to the retained historical reference. The full files were independently stream-hashed without unpickling. All 216 completed step rows are included; their loss and gradient-norm binary64 values match the historical reference. The hosted numerical comparator reported 588 tensors and 1,064,144,019 elements checked, maximum absolute error 0, matching held-out loss 6.606472969055176 and no failures. These are fixed short trajectories and one recorded held-out evaluation, not a convergence or broad task-quality result.

## Timing and resource accounting

Training-step time starts after the per-step barrier and CUDA synchronization, before zeroing gradients. It includes batch transfer, forward/backward, gradient clipping, optimizer update and the ending CUDA synchronization. The timer stops before duration/loss reductions and JSON row writing. Training-step tokens/s is the sum of 50 `global_tokens` values divided by the explicit left-to-right sum of 50 `slowest_rank_step_s` values. With one rank this is one GPU's recorded step timer.

Training-process elapsed is a separate outer process measurement. It also includes process/model/data setup, four warmups, held-out evaluation, final-state hashing/saving and shutdown. Numerical comparison runs as a separate process after training. These costs must not be described as model throughput. The public JSON retains each process's start/end/elapsed/status and the complete raw numeric step fields.

Each provider also has a deliberate roughly 60-second idle interval. Modal's worker observation spans 574.972 seconds; its create request to return spans 118.868 seconds, create return to terminal observation 1115.414 seconds, result stream collection 292.299 seconds and collection start to available qualified bundle 417.143 seconds. These are differently bounded intervals, some nested, and must not be added as independent components. The Lambda worker observation spans 270.285 seconds; its controller reservation-to-cleanup interval is distinct from worker time. JSON retains the original endpoint timestamps and named differences for recomputation.

Neither worker receipt establishes the physical GPU allocation interval or the provider billing start. A controller reservation, service return, managed terminal observation or workflow wall time is not a supplier invoice or an attested allocated GPU-hour. Both cleanups were observed, but their APIs and observation delays differ. No useful-work/GPU-hour or cost score is computed.

The download retains the dated pre-run Lambda hourly quote and Modal prospective resource rates. They are quotes, not observed bills; the Modal prospective calculation also separated CPU, memory and potential result egress. A later authored observation of Lambda’s current Usage page reports $0.64 and 0.15 rounded hours for run43147002412, with minute-level start/end 2026-11-12 03:30–03:39 UTC. The observation record was authored at 2026-11-12T05:08:49.742319+00:00 after collection; an exact per-row browser observation timestamp was not separately retained. This is current provider-reported Usage, not a final invoice or a precise physical GPU allocation interval. It is not multiplied or divided into a cost score. Actual supplier invoices are unavailable. The multi-gigabyte state collection is relevant deployment overhead and remains separate from training performance.

## Public projection and custody

Download [the observations](provider-training-observations.json) and run:

```sh
python3 provider-training-recompute.py provider-training-observations.json
```

The helper recomputes the 216 scalar rows, four step rates, completion/failed/unstarted classification, fixed quality receipt joins and named timing differences. It validates internal public evidence consistency. It does not execute training, load tensors, verify unavailable original files from their hashes, query a provider or reproduce the hosted tensor comparator.

The JSON is a sanitized projection, not byte-identical original receipts. It preserves all numeric step rows, completed quality documents, exact spec/source/input/state hashes, phase statuses and 74 original tar-member inventory entries (39 Modal, 35 Lambda). The four original full tensor files and raw logs remain in authenticated private archives. One byte-identical reference copy is separately served through the fixed part manifest. Allocation IDs, GPU UUIDs, managed task identifiers and private repository names are omitted from this sanitized JSON; the companion explicitly preserves the original reference receipt GPU UUID and spec repository name as authorized scientific metadata needed to keep the exact original pins. Original-file size/hash bindings distinguish those private bytes from the public projection. A sanitized fixed exception identifies the Lambda failure without publishing the raw process log. The inventory field `payload_public` describes direct export of an original archive member. The four completed `state.pt` entries separately carry `shared_public_payload`, binding their identical bytes to the one reference manifest, exact aggregate hash and size; this does not make the original archives public.

The Modal run used a raw Sandbox and no snapshot. It does not test the separate Function/Cls GPU memory snapshot feature. No claim about provider snapshot capability, Nodus acceleration, relative reliability or a complete provider winner follows from these two allocations.

## Later Usage observation provenance

The `provider_reported_usage` field is a sanitized projection of an agent-authored transcription of an authenticated native Safari Usage row, matched by the exact run ID. The original record is 10,968 bytes, SHA256 `f9fbe538b36e4d547e90f72c9e2e6f4040a5ab7abbc7045707638e3098960a39`. The browser rendered the page during collection, but no raw screenshot file was exported or retained. The original observation and separate reservation/cleanup/terminal-guard hashes are bound in the JSON. The private workspace URL, instance/task identifiers, other account rows and internal budget holds are omitted. These omissions do not change the recorded amount, rounded duration or minute labels. The pre-run quote, numerical rows, timing intervals, completion counts and unknown invoice remain unchanged. Modal has no corresponding current Usage observation in this packet; no relative cost or efficiency claim follows.
