﻿# Jasmine’s CoinRun reproduction: data loading, model changes and the speedup boundary

Inspect Jasmine’s reported world-model training improvement through its data-loader ablations, attention trade-offs and distinction between loss and rollout quality.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/jasmine-coinrun-reproduction-loader-attention-quality-boundaries/
Language: en

Jasmine is a JAX-based world-modeling codebase introduced in an October 30, 2025 paper. Its headline CoinRun reproduction takes less than nine hours on one GPU, compared with more than 100 hours reported for the earlier Jafar implementation. The useful result is an implementation-level comparison, with several changes that should remain visible beside the wall-clock claim.

## Preserve what the reproduced model contains

The [original paper](https://arxiv.org/html/2510.27002v1) implements a video tokenizer, a latent-action model and a dynamics model. The CoinRun case uses a patch size of 16 for the headline reproduction. This is a controlled game-environment study, not evidence that the resulting model is a reliable simulator of arbitrary real-world robotics.

The authors also find that how latent actions enter the dynamics model matters. Prepending them rather than adding them to video embeddings improves rollout behavior. Similar training loss does not establish similar generated trajectories. The comparison therefore concerns both execution efficiency and a meaningful architecture/interface choice.

## Data loading contributes materially

The [author repository](https://github.com/p-doom/jasmine) documents Grain-based loading, ArrayRecord storage and checkpointing of model, optimizer and loader state. These are concrete pieces of the training pipeline, rather than incidental framework labels.

In the paper's throughput ablation, replacing the Grain loader reduces relative throughput to 0.25 at batch size 36 and 0.11 at batch size 2048. That table explicitly uses a single H100 with 80GB memory. Its hardware statement belongs to those ablations; it should not silently establish every timing condition of the separate historical reproduction comparison.

The record layout also changes throughput. The authors select a compromise between records per file and frames per record so sequence length can vary without reading excessively large chunks. A faster kernel cannot compensate automatically for a loader that supplies too little useful work.

## Attention acceleration has a size-dependent trade-off

For the small base configuration, removing FlashAttention increases reported throughput to 1.15 and 1.04 relative to the baseline at the two batch sizes. The authors keep it enabled for reduced accelerator-memory use. In a separate larger-model experiment, the attention implementation improves throughput.

Consequently, the presence of an optimized attention backend is not evidence that it improves every metric for every model shape. Preserve sequence length, batch and memory pressure when interpreting that ablation. The full-stack speedup cannot be attributed solely to changing the numerical framework or enabling one kernel.

## Reproducibility includes state and configuration

Jasmine checkpoints the data-loader state alongside training state and supports explicit sharding. The [JAX layout guide](/journal/fg2-jax-named-sharding-axis-layout/) explains why a device count alone does not specify which arrays are partitioned or replicated.

The paper's determinism appendix also qualifies the claim of identical training curves: certain GPU cases require an additional deterministic-operations setting. Fixed seeds alone should not become an unrestricted cross-hardware reproducibility promise. Changes in data order, attention path or model configuration can all alter the result being reproduced.

## Evaluate simulation quality separately from training pace

The paper distinguishes training loss from rollout metrics and reports a masking-logic difference from Jafar that affects variability. These changes are relevant context for convergence curves. A matched local evaluation should retain the trajectory data, model objective, generated-rollout checks and timing conditions together.

The [reproducible-stack guide](/journal/software-stack-reproducibility/) supports that manifest. Jasmine supplies an open, inspectable research pipeline and reported efficiency evidence. It does not establish a universal speed multiplier for JAX, guaranteed scaling on every cluster, or scientific validity of an untested world model.
