MaxView

‹ 01_baseCase: 02_synthetic03_dropout ›

Metrics: Linen vs NNX  ·  feat/nnx-trainstate-and-training-loop

MetricLinen  f093f3730NNX  f093f3730Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17908.1750-0.004
TFLOP/s92.22791.851-0.376
Tok/s13901.513844.8-56.762
Avg s/step2.6592.717+0.058
Memory %1.381.380
JAX0.9.20.9.2

Diff = NNX value − Linen value. Green = NNX improved. Red = NNX regressed.

XPK Start: Fri Apr 24 09:15:22 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
`rope_parameters`'s factor field must be a float >= 1, got 40
`rope_parameters`'s beta_fast field must be a float, got 32
`rope_parameters`'s beta_slow field must be a float, got 1
DeepseekV32Config got `key=rope_scaling` in kwargs but hasn't set it as attribute. For RoPE standardization you need to set `self.rope_parameters` in model's config. 
2026-04-24 09:15:47.205075: E external/local_xla/xla/stream_executor/cuda/cuda_platform.cc:51] failed call to cuInit: INTERNAL: CUDA error: Failed call to cuInit: UNKNOWN ERROR (303)
I0424 09:15:47.414258 136699630667584 max_utils.py:273] Attempting to initialize the jax distributed system...
I0424 09:15:56.453177 136699630667584 distributed.py:149] Starting JAX distributed service on [::]:8482
I0424 09:15:56.455431 136699630667584 distributed.py:172] Connecting to JAX distributed service on mt-02-synthetic-n34dg-slice-job-0-0.mt-02-synthetic-n34dg:8482
I0424 09:15:57.831601 136699630667584 max_utils.py:284] Jax distributed system initialized!
I0424 09:16:03.061333 136699630667584 max_utils.py:800] System Information: Jax Version: 0.9.2
I0424 09:16:03.061439 136699630667584 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0424 09:16:03.061480 136699630667584 max_utils.py:802] System Information: Jax Backend: PJRT C API
TFRT TPU v6 lite
Built on Mar 4 2026 11:32:08 (1772652728) cl/878335365
I0424 09:16:03.061516 136699630667584 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0424 09:16:03.760261 136699630667584 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 09:16:03.760860 136699630667584 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 09:16:03.761042 136699630667584 checkpointing.py:688] Setting up checkpoint logger...
I0424 09:16:03.761091 136699630667584 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0424 09:16:03.761135 136699630667584 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0424 09:16:03.761484 136699630667584 base_pytree_checkpoint_handler.py:441] Created BasePyTreeCheckpointHandler: use_ocdbt=True, use_zarr3=True, pytree_metadata_options=PyTreeMetadataOptions(support_rich_types=False), array_metadata_store=<orbax.checkpoint._src.metadata.array_metadata_store.Store object at 0x7c5346910560>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0424 09:16:06.754805 136699630667584 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0424 09:16:06.755011 136699630667584 checkpoint_manager.py:708] [process=5][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7c3fac45eab0>}, handler_registry=None
I0424 09:16:06.755245 136699630667584 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7c3fac45eab0>` for item "items" and save args `<class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeSaveArgs'>` and restore args `<class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>` to `_handler_registry`.
I0424 09:16:06.755294 136699630667584 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7c3fac4627e0>` for item "metrics" and save args `<class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>` and restore args `<class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>` to `_handler_registry`.
I0424 09:16:06.755330 136699630667584 composite_checkpoint_handler.py:505] Initialized registry DefaultCheckpointHandlerRegistry({('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeSaveArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7c3fac45eab0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7c3fac45eab0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7c3fac4627e0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7c3fac4627e0>}).
I0424 09:16:06.755665 136699630667584 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0424 09:16:06.755736 136699630667584 async_checkpointer.py:192] [process=5][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7c3fac165d00> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0424 09:16:07.449172 136699630667584 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints
I0424 09:16:07.475774 136699630667584 checkpoint_manager.py:929] [process=5][thread=MainThread] CheckpointManager created,  primary_host=0, CheckpointManagerOptions=CheckpointManagerOptions(save_interval_steps=1, max_to_keep=None, keep_time_interval=None, keep_period=None, should_keep_fn=None, best_fn=None, best_mode='max', keep_checkpoints_without_metrics=True, step_prefix=None, step_format_fixed_length=None, step_name_format=None, create=True, cleanup_tmp_directories=False, save_on_steps=frozenset(), single_host_load_and_broadcast=False, todelete_subdir=None, todelete_full_path=None, enable_background_delete=False, read_only=False, enable_async_checkpointing=True, async_options=None, multiprocessing_options=MultiprocessingOptions(primary_host=0, active_processes=None, barrier_sync_key_prefix=None), should_save_fn=None, file_options=FileOptions(path_permission_mode=None), save_root_metadata=True, temporary_path_class=None, save_decision_policy=FixedIntervalPolicy(interval=10), preservation_policy=LatestN(n=None), prevent_write_metrics=False, enable_should_save_is_saving_in_progress_check=True, enable_per_process_directory_creation=False, lightweight_initialize=False), root_directory=gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7c3fac45f320>
I0424 09:16:07.475897 136699630667584 checkpointing.py:302] Checkpoint manager created!
I0424 09:16:08.416129 136699630667584 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 09:16:08.416236 136699630667584 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 09:16:08.793437 136699630667584 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 09:16:08.793530 136699630667584 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 09:16:08.810026 136699630667584 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 09:16:08.810085 136699630667584 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 09:16:08.833891 136699630667584 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 09:16:08.833957 136699630667584 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:16:08.850584 136699630667584 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 09:16:08.850646 136699630667584 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:16:08.867070 136699630667584 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 09:16:08.867134 136699630667584 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:16:08.892027 136699630667584 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0424 09:16:08.892096 136699630667584 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:16:08.912960 136699630667584 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0424 09:16:08.913023 136699630667584 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0424 09:16:09.133190 136699630667584 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0424 09:16:09.133301 136699630667584 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0424 09:16:10.575399 136699630667584 maxtext_utils.py:1835]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0424 09:16:10.575525 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0424 09:16:10.575585 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0424 09:16:10.575645 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0424 09:16:10.575759 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0424 09:16:10.575800 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0424 09:16:10.575853 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/self_attention/key/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   P('embed', 'layers', 'kv_heads', 'kv_head_dim')
    Physical:  ('fsdp', None, None, None)
I0424 09:16:10.575906 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/self_attention/out/kernel
    Shape:     float32[16,16,128,2048]
    Logical:   P('heads', 'layers', 'kv', 'embed')
    Physical:  (None, None, None, 'fsdp')
I0424 09:16:10.575944 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/self_attention/query/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   P('embed', 'layers', 'q_heads', 'kv')
    Physical:  ('fsdp', None, None, None)
I0424 09:16:10.575979 136699630667584 maxtext_utils.py:1835]  params/params/decoder/layers/self_attention/value/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   P('embed', 'layers', 'kv_heads', 'kv_head_dim')
    Physical:  ('fsdp', None, None, None)
I0424 09:16:10.576025 136699630667584 maxtext_utils.py:1835]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0424 09:16:10.576076 136699630667584 maxtext_utils.py:1835]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0424 09:16:11.070740 136699630667584 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0424 09:16:11.070827 136699630667584 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0424 09:16:11.086396 136699630667584 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0424 09:16:11.086457 136699630667584 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0424 09:16:22.166027 136699630667584 max_utils.py:791] Total memory size: 1.5 GB, Output size: 0.4 GB, Temp size: 1.1 GB, Argument size: 0.4 GB, Host temp size: 0.0 GB.
I0424 09:16:22.166787 136699630667584 metric_logger.py:301] number parameters: 1.104 billion
I0424 09:16:33.286716 136699630667584 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0424 09:16:33.440545 136699630667584 checkpointing.py:798] Waited 0.15380859375 seconds for step 0 to finish before starting checkpointing.
I0424 09:16:33.443117 136699630667584 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 09:16:33.444723 136699630667584 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 0
I0424 09:16:33.446207 136699630667584 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/0.
I0424 09:16:33.791632 136699630667584 signaling_client.py:364] Using JaxDistributedSignalingClient
I0424 09:16:33.792567 136699630667584 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 09:16:33.792624 136699630667584 replica_slices.py:424] Transferring arrays to host memory with options: use_replica_parallel=True, min_slice_bytes_for_replica_parallel=None, max_replicas_for_replica_parallel=None, enable_pinned_host_transfer=False
I0424 09:16:34.072392 136699630667584 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.280829s
I0424 09:16:34.072568 136699630667584 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 5.382 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2866334915161133 s) (per-host)
I0424 09:16:34.072619 136699630667584 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.286695s (batch_requests_ready=0.002645s, total_serialization_initiated=0.283981s, others=0.000069s)
I0424 09:16:34.072722 136699630667584 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.290789s (all_items=0.000017s, per_item={'items': '0.00001740'}, temp_paths=0.290772)
I0424 09:16:34.073484 136699630667584 event_tracking.py:125] [process=5] [async] Finished blocking save in 0.63 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/0.
I0424 09:16:34.073815 136574276036352 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 09:36:34.073777
I0424 09:16:34.075811 136699630667584 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 09:16:34.076047 136572682888960 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0424 09:16:34.076158 136699630667584 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777022193.4430985, 'wait_for_prev_duration_secs': 6.151199340820312e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777022193.4447606, 'checkpointer_blocking_duration_secs': 0.6292121410369873, 'get_old_steps_start_time': 1777022194.0739956, 'get_old_steps_duration_secs': 2.956390380859375e-05, 'checkpoint_manager_blocking_start_time': 1777022193.4410667, 'checkpoint_manager_blocking_duration_secs': 0.6350533962249756}
I0424 09:16:34.076268 136699630667584 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0424 09:16:34.076313 136699630667584 max_utils.py:750] 
Memstats: After params initialized:
I0424 09:16:34.076360 136699630667584 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_18(process=5,(2,4,0,0))
I0424 09:16:34.076390 136699630667584 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_19(process=5,(3,4,0,0))
I0424 09:16:34.076416 136699630667584 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_22(process=5,(2,5,0,0))
I0424 09:16:34.076440 136699630667584 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_23(process=5,(3,5,0,0))
I0424 09:16:34.387674 136699630667584 metric_logger.py:196] completed step: 0, seconds: 11.120, TFLOP/s/device: 1.222, Tokens/s/device: 184.176, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0424 09:16:34.558355 136699630667584 metric_logger.py:196] completed step: 1, seconds: 1.099, TFLOP/s/device: 12.359, Tokens/s/device: 1862.878, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0424 09:16:34.975668 136699630667584 metric_logger.py:196] completed step: 2, seconds: 0.023, TFLOP/s/device: 580.771, Tokens/s/device: 87540.073, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0424 09:16:35.123137 136699630667584 metric_logger.py:196] completed step: 3, seconds: 0.418, TFLOP/s/device: 32.529, Tokens/s/device: 4903.087, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0424 09:16:35.418254 136699630667584 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.889, Tokens/s/device: 13398.319, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0424 09:16:35.424004 136699630667584 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.173, Tokens/s/device: 13893.317, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0424 09:16:37.540692    2768 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0424 09:16:39.743181 136573198747392 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/0/items/array_metadatas/process_5
I0424 09:16:57.070765 136699630667584 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.978, Tokens/s/device: 6930.274, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0424 09:16:57.218164 136699630667584 metric_logger.py:196] completed step: 7, seconds: 21.499, TFLOP/s/device: 0.632, Tokens/s/device: 95.260, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0424 09:16:57.365829 136699630667584 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.804, Tokens/s/device: 13385.446, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0424 09:16:57.512559 136699630667584 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0424 09:16:57.513249 136699630667584 checkpointing.py:798] Waited 0.0007119178771972656 seconds for step 9 to finish before starting checkpointing.
I0424 09:16:57.515323 136699630667584 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 09:17:11.398423 136574276036352 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 41.997 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 37.61244773864746 s) (per-host)
I0424 09:17:11.398546 136574276036352 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 37.324618s.
I0424 09:17:17.426077 136574276036352 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 43.352132s.
I0424 09:17:17.426346 136572682888960 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 09:17:17.426410 136572682888960 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0424 09:17:17.426466 136572682888960 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0424 09:17:17.429429 136572682888960 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0424 09:17:17.429631 136699630667584 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0424 09:17:17.429805 136699630667584 checkpoint_manager.py:1452] Waiting for previous save to complete took 19.914480 seconds. If this number is high, consider checkpointing less frequently.
I0424 09:17:17.431670 136699630667584 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 9
I0424 09:17:17.433635 136699630667584 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/9.
I0424 09:17:17.727997 136699630667584 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 09:17:17.728089 136699630667584 replica_slices.py:424] Transferring arrays to host memory with options: use_replica_parallel=True, min_slice_bytes_for_replica_parallel=None, max_replicas_for_replica_parallel=None, enable_pinned_host_transfer=False
I0424 09:17:17.766781 136699630667584 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.039697s
I0424 09:17:17.766960 136699630667584 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 35.582 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04335308074951172 s) (per-host)
I0424 09:17:17.767009 136699630667584 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.043411s (batch_requests_ready=0.001921s, total_serialization_initiated=0.041416s, others=0.000074s)
I0424 09:17:17.767095 136699630667584 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.047406s (all_items=0.000015s, per_item={'items': '0.00001550'}, temp_paths=0.047391)
I0424 09:17:17.767797 136699630667584 event_tracking.py:125] [process=5] [async] Finished blocking save in 0.34 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/9.
I0424 09:17:17.768105 136572682888960 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 09:37:17.768072
I0424 09:17:17.770033 136699630667584 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 09:17:17.770251 136546061608704 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0424 09:17:17.770380 136699630667584 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777022217.515293, 'wait_for_prev_duration_secs': 19.914480447769165, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777022237.4317076, 'checkpointer_blocking_duration_secs': 0.3365457057952881, 'get_old_steps_start_time': 1777022237.7682757, 'get_old_steps_duration_secs': 2.956390380859375e-05, 'checkpoint_manager_blocking_start_time': 1777022217.5134742, 'checkpoint_manager_blocking_duration_secs': 20.256871700286865}
I0424 09:17:17.770482 136699630667584 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0424 09:17:17.770525 136699630667584 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 09:17:23.015399 136573198747392 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/9/items/array_metadatas/process_5
I0424 09:18:00.652741 136572682888960 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 36.795 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.929112911224365 s) (per-host)
I0424 09:18:00.652861 136572682888960 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.884641s.
I0424 09:18:06.867535 136572682888960 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 49.099298s.
I0424 09:18:06.867840 136546061608704 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 09:18:06.867957 136546061608704 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0424 09:18:06.868006 136546061608704 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0424 09:18:06.869687 136546061608704 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0424 09:18:06.869858 136699630667584 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0424 09:18:06.870013 136699630667584 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 09:18:06.870971 136699630667584 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.227, Tokens/s/device: 13901.522, total_weights: 65536, loss: 8.179, lm_loss: 8.179, perplexity: 3564.635
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 24 09:18:17 UTC 2026
EXIT_CODE=0
XPK Start: Fri Apr 24 10:43:33 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
`rope_parameters`'s factor field must be a float >= 1, got 40
`rope_parameters`'s beta_fast field must be a float, got 32
`rope_parameters`'s beta_slow field must be a float, got 1
DeepseekV32Config got `key=rope_scaling` in kwargs but hasn't set it as attribute. For RoPE standardization you need to set `self.rope_parameters` in model's config. 
2026-04-24 10:43:58.148733: E external/local_xla/xla/stream_executor/cuda/cuda_platform.cc:51] failed call to cuInit: INTERNAL: CUDA error: Failed call to cuInit: UNKNOWN ERROR (303)
I0424 10:43:58.360131 139110192469824 max_utils.py:273] Attempting to initialize the jax distributed system...
I0424 10:44:07.399626 139110192469824 distributed.py:149] Starting JAX distributed service on [::]:8482
I0424 10:44:07.401939 139110192469824 distributed.py:172] Connecting to JAX distributed service on mt-02-synthetic-xixao-slice-job-0-0.mt-02-synthetic-xixao:8482
I0424 10:44:08.388763 139110192469824 max_utils.py:284] Jax distributed system initialized!
I0424 10:44:13.427239 139110192469824 max_utils.py:800] System Information: Jax Version: 0.9.2
I0424 10:44:13.427344 139110192469824 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0424 10:44:13.427385 139110192469824 max_utils.py:802] System Information: Jax Backend: PJRT C API
TFRT TPU v6 lite
Built on Mar 4 2026 11:32:08 (1772652728) cl/878335365
I0424 10:44:13.427422 139110192469824 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0424 10:44:14.119789 139110192469824 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 10:44:14.232228 139110192469824 checkpointing.py:688] Setting up checkpoint logger...
I0424 10:44:14.232342 139110192469824 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0424 10:44:14.232391 139110192469824 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0424 10:44:14.232591 139110192469824 base_pytree_checkpoint_handler.py:441] Created BasePyTreeCheckpointHandler: use_ocdbt=True, use_zarr3=True, pytree_metadata_options=PyTreeMetadataOptions(support_rich_types=False), array_metadata_store=<orbax.checkpoint._src.metadata.array_metadata_store.Store object at 0x7e8465e50fb0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0424 10:44:17.107789 139110192469824 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0424 10:44:17.107980 139110192469824 checkpoint_manager.py:708] [process=5][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7e70f043b350>}, handler_registry=None
I0424 10:44:17.108217 139110192469824 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7e70f043b350>` for item "items" and save args `<class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeSaveArgs'>` and restore args `<class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>` to `_handler_registry`.
I0424 10:44:17.108265 139110192469824 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7e70c077bef0>` for item "metrics" and save args `<class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>` and restore args `<class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>` to `_handler_registry`.
I0424 10:44:17.108301 139110192469824 composite_checkpoint_handler.py:505] Initialized registry DefaultCheckpointHandlerRegistry({('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeSaveArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7e70f043b350>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7e70f043b350>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7e70c077bef0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7e70c077bef0>}).
I0424 10:44:17.108621 139110192469824 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0424 10:44:17.108713 139110192469824 async_checkpointer.py:192] [process=5][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7e70c07534c0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0424 10:44:18.044286 139110192469824 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints
I0424 10:44:18.053525 139110192469824 checkpoint_manager.py:929] [process=5][thread=MainThread] CheckpointManager created,  primary_host=0, CheckpointManagerOptions=CheckpointManagerOptions(save_interval_steps=1, max_to_keep=None, keep_time_interval=None, keep_period=None, should_keep_fn=None, best_fn=None, best_mode='max', keep_checkpoints_without_metrics=True, step_prefix=None, step_format_fixed_length=None, step_name_format=None, create=True, cleanup_tmp_directories=False, save_on_steps=frozenset(), single_host_load_and_broadcast=False, todelete_subdir=None, todelete_full_path=None, enable_background_delete=False, read_only=False, enable_async_checkpointing=True, async_options=None, multiprocessing_options=MultiprocessingOptions(primary_host=0, active_processes=None, barrier_sync_key_prefix=None), should_save_fn=None, file_options=FileOptions(path_permission_mode=None), save_root_metadata=True, temporary_path_class=None, save_decision_policy=FixedIntervalPolicy(interval=10), preservation_policy=LatestN(n=None), prevent_write_metrics=False, enable_should_save_is_saving_in_progress_check=True, enable_per_process_directory_creation=False, lightweight_initialize=False), root_directory=gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7e70c07b6150>
I0424 10:44:18.053646 139110192469824 checkpointing.py:302] Checkpoint manager created!
I0424 10:44:19.021423 139110192469824 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0424 10:44:19.021538 139110192469824 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32

I0424 10:44:20.806056 139110192469824 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 10:44:20.806154 139110192469824 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:44:20.811739 139110192469824 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 10:44:20.811797 139110192469824 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:44:20.828188 139110192469824 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 10:44:20.828250 139110192469824 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:44:20.844095 139110192469824 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 10:44:20.844161 139110192469824 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:44:20.868129 139110192469824 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 10:44:20.868192 139110192469824 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:44:20.884141 139110192469824 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 10:44:20.884207 139110192469824 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:44:20.899994 139110192469824 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 10:44:20.900055 139110192469824 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:44:20.931342 139110192469824 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0424 10:44:20.931416 139110192469824 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:44:20.951411 139110192469824 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0424 10:44:20.951471 139110192469824 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0424 10:44:32.263469 139110192469824 max_utils.py:791] Total memory size: 1.5 GB, Output size: 0.4 GB, Temp size: 1.1 GB, Argument size: 0.4 GB, Host temp size: 0.0 GB.
I0424 10:44:32.265860 139110192469824 metric_logger.py:301] number parameters: 1.104 billion
I0424 10:44:43.691406 139110192469824 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0424 10:44:43.844037 139110192469824 checkpointing.py:798] Waited 0.15261030197143555 seconds for step 0 to finish before starting checkpointing.
I0424 10:44:43.846412 139110192469824 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 10:44:43.848109 139110192469824 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 0
I0424 10:44:43.849575 139110192469824 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/0.
I0424 10:44:44.183377 139110192469824 signaling_client.py:364] Using JaxDistributedSignalingClient
I0424 10:44:44.184321 139110192469824 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0424 10:44:44.184379 139110192469824 replica_slices.py:424] Transferring arrays to host memory with options: use_replica_parallel=True, min_slice_bytes_for_replica_parallel=None, max_replicas_for_replica_parallel=None, enable_pinned_host_transfer=False
I0424 10:44:44.461365 139110192469824 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.278752s
I0424 10:44:44.461534 139110192469824 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 5.353 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2881438732147217 s) (per-host)
I0424 10:44:44.461586 139110192469824 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.288206s (batch_requests_ready=0.003384s, total_serialization_initiated=0.284752s, others=0.000070s)
I0424 10:44:44.461706 139110192469824 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.292386s (all_items=0.000017s, per_item={'items': '0.00001717'}, temp_paths=0.292369)
I0424 10:44:44.462563 139110192469824 event_tracking.py:125] [process=5] [async] Finished blocking save in 0.61 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/0.
I0424 10:44:44.462910 138984925091584 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 11:04:44.462871
I0424 10:44:44.469307 139110192469824 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 10:44:44.469574 138983321364224 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0424 10:44:44.469715 139110192469824 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777027483.846394, 'wait_for_prev_duration_secs': 6.127357482910156e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777027483.8481488, 'checkpointer_blocking_duration_secs': 0.6148679256439209, 'get_old_steps_start_time': 1777027484.4630415, 'get_old_steps_duration_secs': 2.7894973754882812e-05, 'checkpoint_manager_blocking_start_time': 1777027483.844425, 'checkpoint_manager_blocking_duration_secs': 0.6252536773681641}
I0424 10:44:44.469876 139110192469824 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0424 10:44:44.469945 139110192469824 max_utils.py:750] 
Memstats: After params initialized:
I0424 10:44:44.469992 139110192469824 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_18(process=5,(2,4,0,0))
I0424 10:44:44.470022 139110192469824 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_19(process=5,(3,4,0,0))
I0424 10:44:44.470048 139110192469824 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_22(process=5,(2,5,0,0))
I0424 10:44:44.470071 139110192469824 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_23(process=5,(3,5,0,0))
I0424 10:44:44.784575 139110192469824 metric_logger.py:196] completed step: 0, seconds: 11.424, TFLOP/s/device: 1.189, Tokens/s/device: 179.265, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0424 10:44:44.957881 139110192469824 metric_logger.py:196] completed step: 1, seconds: 1.091, TFLOP/s/device: 12.451, Tokens/s/device: 1876.814, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0424 10:44:45.388312 139110192469824 metric_logger.py:196] completed step: 2, seconds: 0.027, TFLOP/s/device: 499.766, Tokens/s/device: 75330.121, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28632.133
I0424 10:44:45.536009 139110192469824 metric_logger.py:196] completed step: 3, seconds: 0.420, TFLOP/s/device: 32.349, Tokens/s/device: 4876.063, total_weights: 65536, loss: 9.732, lm_loss: 9.732, perplexity: 16855.789
I0424 10:44:45.831492 139110192469824 metric_logger.py:196] completed step: 4, seconds: 0.166, TFLOP/s/device: 82.066, Tokens/s/device: 12369.914, total_weights: 65536, loss: 9.274, lm_loss: 9.274, perplexity: 10661.594
I0424 10:44:45.838801 139110192469824 metric_logger.py:196] completed step: 5, seconds: 0.146, TFLOP/s/device: 92.886, Tokens/s/device: 14000.738, total_weights: 65536, loss: 8.888, lm_loss: 8.888, perplexity: 7245.978
I0424 10:44:47.424948    2777 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0424 10:44:49.896386 138983329756928 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/0/items/array_metadatas/process_5
I0424 10:45:07.991399 139110192469824 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.905, Tokens/s/device: 6919.363, total_weights: 65536, loss: 8.589, lm_loss: 8.589, perplexity: 5371.156
I0424 10:45:08.138887 139110192469824 metric_logger.py:196] completed step: 7, seconds: 22.006, TFLOP/s/device: 0.617, Tokens/s/device: 93.064, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4360.465
I0424 10:45:08.286576 139110192469824 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.674, Tokens/s/device: 13365.965, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.256
I0424 10:45:08.435033 139110192469824 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0424 10:45:08.435672 139110192469824 checkpointing.py:798] Waited 0.0006389617919921875 seconds for step 9 to finish before starting checkpointing.
I0424 10:45:08.437716 139110192469824 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 10:45:22.657845 138984925091584 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 41.045 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 38.484416007995605 s) (per-host)
I0424 10:45:22.657968 138984925091584 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 38.194438s.
I0424 10:45:30.859342 138984925091584 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 46.395795s.
I0424 10:45:30.859613 138983321364224 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 10:45:30.859749 138983321364224 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0424 10:45:30.859803 138983321364224 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0424 10:45:30.861587 138983321364224 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0424 10:45:30.861781 139110192469824 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0424 10:45:30.861907 139110192469824 checkpoint_manager.py:1452] Waiting for previous save to complete took 22.424193 seconds. If this number is high, consider checkpointing less frequently.
I0424 10:45:30.863640 139110192469824 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 9
I0424 10:45:30.865829 139110192469824 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/9.
I0424 10:45:31.161095 139110192469824 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0424 10:45:31.161185 139110192469824 replica_slices.py:424] Transferring arrays to host memory with options: use_replica_parallel=True, min_slice_bytes_for_replica_parallel=None, max_replicas_for_replica_parallel=None, enable_pinned_host_transfer=False
I0424 10:45:31.197174 139110192469824 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.037721s
I0424 10:45:31.197338 139110192469824 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 34.492 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04472231864929199 s) (per-host)
I0424 10:45:31.197389 139110192469824 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.044782s (batch_requests_ready=0.002672s, total_serialization_initiated=0.042043s, others=0.000067s)
I0424 10:45:31.197481 139110192469824 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.049223s (all_items=0.000014s, per_item={'items': '0.00001431'}, temp_paths=0.049208)
I0424 10:45:31.198163 139110192469824 event_tracking.py:125] [process=5] [async] Finished blocking save in 0.33 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/9.
I0424 10:45:31.198487 138983329756928 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 11:05:31.198452
I0424 10:45:31.204297 139110192469824 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 10:45:31.204584 138983321364224 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0424 10:45:31.204730 139110192469824 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777027508.4376888, 'wait_for_prev_duration_secs': 22.424192667007446, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777027530.863697, 'checkpointer_blocking_duration_secs': 0.33492565155029297, 'get_old_steps_start_time': 1777027531.1986437, 'get_old_steps_duration_secs': 3.933906555175781e-05, 'checkpoint_manager_blocking_start_time': 1777027508.4359033, 'checkpoint_manager_blocking_duration_secs': 22.768794536590576}
I0424 10:45:31.204888 139110192469824 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0424 10:45:31.204934 139110192469824 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 10:45:37.319388 138977511266048 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_02_synthetic/checkpoints/9/items/array_metadatas/process_5
I0424 10:46:13.348369 138983329756928 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 37.435 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.19573354721069 s) (per-host)
I0424 10:46:13.348474 138983329756928 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.149879s.
I0424 10:46:21.981591 138983329756928 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 50.782981s.
I0424 10:46:21.981887 138983321364224 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 10:46:21.982019 138983321364224 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0424 10:46:21.982066 138983321364224 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0424 10:46:21.983337 138983321364224 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0424 10:46:21.983528 139110192469824 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0424 10:46:21.983711 139110192469824 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 10:46:21.984606 139110192469824 metric_logger.py:196] completed step: 9, seconds: 0.148, TFLOP/s/device: 91.851, Tokens/s/device: 13844.760, total_weights: 65536, loss: 8.175, lm_loss: 8.175, perplexity: 3551.438
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 24 10:46:33 UTC 2026
EXIT_CODE=0