MaxView

‹ —Case: 01_base02_synthetic ›

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

MetricLinen  e27fc1e97NNX  e27fc1e97Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17908.1750-0.004
TFLOP/s92.27191.854-0.417
Tok/s13908.113845.2-62.902
Avg s/step2.7132.777+0.064
Memory %1.381.380
JAX0.9.20.9.2

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

XPK Start: Tue Apr 21 08:34:28 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-21 08:35:05.705756: 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)
I0421 08:35:06.242963 138383740462912 max_utils.py:273] Attempting to initialize the jax distributed system...
I0421 08:35:15.283334 138383740462912 distributed.py:149] Starting JAX distributed service on [::]:8482
I0421 08:35:15.285717 138383740462912 distributed.py:172] Connecting to JAX distributed service on mt-01-base-o4fbp-slice-job-0-0.mt-01-base-o4fbp:8482
I0421 08:35:17.171609 138383740462912 max_utils.py:284] Jax distributed system initialized!
I0421 08:35:23.151894 138383740462912 max_utils.py:800] System Information: Jax Version: 0.9.2
I0421 08:35:23.151994 138383740462912 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0421 08:35:23.152034 138383740462912 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
I0421 08:35:23.152067 138383740462912 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0421 08:35:23.852263 138383740462912 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0421 08:35:23.852862 138383740462912 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0421 08:35:23.853039 138383740462912 checkpointing.py:688] Setting up checkpoint logger...
I0421 08:35:23.853089 138383740462912 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0421 08:35:23.853137 138383740462912 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0421 08:35:23.853473 138383740462912 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 0x7ddb4204c2c0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0421 08:35:28.062898 138383740462912 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0421 08:35:28.063131 138383740462912 checkpoint_manager.py:708] [process=4][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7dc77c4400b0>}, handler_registry=None
I0421 08:35:28.063372 138383740462912 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7dc77c4400b0>` 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`.
I0421 08:35:28.063422 138383740462912 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7dc77c440410>` 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`.
I0421 08:35:28.063457 138383740462912 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 0x7dc77c4400b0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7dc77c4400b0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7dc77c440410>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7dc77c440410>}).
I0421 08:35:28.063785 138383740462912 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0421 08:35:28.063855 138383740462912 async_checkpointer.py:192] [process=4][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7dc73c7ebec0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0421 08:35:28.756270 138383740462912 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints
I0421 08:35:28.915629 138383740462912 checkpoint_manager.py:929] [process=4][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_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7dc77c43acc0>
I0421 08:35:28.915845 138383740462912 checkpointing.py:302] Checkpoint manager created!
I0421 08:35:29.860507 138383740462912 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0421 08:35:29.860608 138383740462912 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 08:35:30.240874 138383740462912 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0421 08:35:30.240964 138383740462912 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 08:35:30.257273 138383740462912 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0421 08:35:30.257334 138383740462912 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 08:35:30.281003 138383740462912 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 08:35:30.281071 138383740462912 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 08:35:30.297445 138383740462912 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 08:35:30.297512 138383740462912 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 08:35:30.313698 138383740462912 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 08:35:30.313756 138383740462912 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 08:35:30.339148 138383740462912 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0421 08:35:30.339215 138383740462912 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 08:35:30.360202 138383740462912 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0421 08:35:30.360270 138383740462912 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0421 08:35:30.575606 138383740462912 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0421 08:35:30.575726 138383740462912 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0421 08:35:32.000223 138383740462912 maxtext_utils.py:1821]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0421 08:35:32.000357 138383740462912 maxtext_utils.py:1821]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0421 08:35:32.000411 138383740462912 maxtext_utils.py:1821]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0421 08:35:32.000469 138383740462912 maxtext_utils.py:1821]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0421 08:35:32.000545 138383740462912 maxtext_utils.py:1821]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0421 08:35:32.000585 138383740462912 maxtext_utils.py:1821]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0421 08:35:32.000648 138383740462912 maxtext_utils.py:1821]  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)
I0421 08:35:32.000711 138383740462912 maxtext_utils.py:1821]  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')
I0421 08:35:32.000803 138383740462912 maxtext_utils.py:1821]  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)
I0421 08:35:32.000851 138383740462912 maxtext_utils.py:1821]  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)
I0421 08:35:32.000921 138383740462912 maxtext_utils.py:1821]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0421 08:35:32.000982 138383740462912 maxtext_utils.py:1821]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')

I0421 08:35:32.492208 138383740462912 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0421 08:35:32.492303 138383740462912 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0421 08:35:32.507412 138383740462912 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0421 08:35:32.507473 138383740462912 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0421 08:35:43.156684 138383740462912 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.
I0421 08:35:43.157488 138383740462912 metric_logger.py:301] number parameters: 1.104 billion
I0421 08:35:54.614644 138383740462912 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0421 08:35:54.768449 138383740462912 checkpointing.py:798] Waited 0.1537926197052002 seconds for step 0 to finish before starting checkpointing.
I0421 08:35:54.770856 138383740462912 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0421 08:35:54.772696 138383740462912 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 0
I0421 08:35:54.773979 138383740462912 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/0.
I0421 08:35:55.108715 138383740462912 signaling_client.py:364] Using JaxDistributedSignalingClient
I0421 08:35:55.109794 138383740462912 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0421 08:35:55.109851 138383740462912 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
I0421 08:35:55.390455 138383740462912 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.281832s
I0421 08:35:55.390630 138383740462912 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 5.370 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2872481346130371 s) (per-host)
I0421 08:35:55.390712 138383740462912 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.287337s (batch_requests_ready=0.002161s, total_serialization_initiated=0.285079s, others=0.000097s)
I0421 08:35:55.390836 138383740462912 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.291573s (all_items=0.000023s, per_item={'items': '0.00002289'}, temp_paths=0.291550)
I0421 08:35:55.391676 138383740462912 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.62 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/0.
I0421 08:35:55.391976 138255707219712 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-21 08:55:55.391942
I0421 08:35:55.396300 138383740462912 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0421 08:35:55.396626 138253021734656 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0421 08:35:55.396810 138383740462912 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776760554.7708375, 'wait_for_prev_duration_secs': 6.365776062011719e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776760554.7727356, 'checkpointer_blocking_duration_secs': 0.6193888187408447, 'get_old_steps_start_time': 1776760555.3921492, 'get_old_steps_duration_secs': 3.2901763916015625e-05, 'checkpoint_manager_blocking_start_time': 1776760554.7689543, 'checkpoint_manager_blocking_duration_secs': 0.6278095245361328}
I0421 08:35:55.396935 138383740462912 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0421 08:35:55.396991 138383740462912 max_utils.py:750] 
Memstats: After params initialized:
I0421 08:35:55.397039 138383740462912 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_16(process=4,(0,4,0,0))
I0421 08:35:55.397071 138383740462912 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_17(process=4,(1,4,0,0))
I0421 08:35:55.397096 138383740462912 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_20(process=4,(0,5,0,0))
I0421 08:35:55.397121 138383740462912 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_21(process=4,(1,5,0,0))
I0421 08:35:55.714510 138383740462912 metric_logger.py:196] completed step: 0, seconds: 11.457, TFLOP/s/device: 1.186, Tokens/s/device: 178.755, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0421 08:35:55.888517 138383740462912 metric_logger.py:196] completed step: 1, seconds: 1.098, TFLOP/s/device: 12.371, Tokens/s/device: 1864.717, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0421 08:35:56.284121 138383740462912 metric_logger.py:196] completed step: 2, seconds: 0.027, TFLOP/s/device: 508.405, Tokens/s/device: 76632.367, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0421 08:35:56.431564 138383740462912 metric_logger.py:196] completed step: 3, seconds: 0.396, TFLOP/s/device: 34.297, Tokens/s/device: 5169.628, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0421 08:35:56.726571 138383740462912 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.736, Tokens/s/device: 13375.305, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0421 08:35:56.732910 138383740462912 metric_logger.py:196] completed step: 5, seconds: 0.148, TFLOP/s/device: 91.842, Tokens/s/device: 13843.450, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0421 08:36:03.251534    2779 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0421 08:36:05.265477 138254622975744 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/0/items/array_metadatas/process_4
I0421 08:36:18.884506 138383740462912 metric_logger.py:196] completed step: 6, seconds: 0.295, TFLOP/s/device: 46.070, Tokens/s/device: 6944.162, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0421 08:36:19.031846 138383740462912 metric_logger.py:196] completed step: 7, seconds: 22.005, TFLOP/s/device: 0.617, Tokens/s/device: 93.070, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0421 08:36:19.179436 138383740462912 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.157, Tokens/s/device: 13438.673, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0421 08:36:19.326156 138383740462912 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0421 08:36:19.326846 138383740462912 checkpointing.py:798] Waited 0.00070953369140625 seconds for step 9 to finish before starting checkpointing.
I0421 08:36:19.328907 138383740462912 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0421 08:36:37.154040 138255707219712 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 37.564 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.050620794296265 s) (per-host)
I0421 08:36:37.154162 138255707219712 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.762081s.
I0421 08:36:46.931998 138255707219712 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 51.539901s.
I0421 08:36:46.932269 138253021734656 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0421 08:36:46.932399 138253021734656 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0421 08:36:46.932450 138253021734656 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0421 08:36:46.934077 138253021734656 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0421 08:36:46.934261 138383740462912 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0421 08:36:46.934391 138383740462912 checkpoint_manager.py:1452] Waiting for previous save to complete took 27.605485 seconds. If this number is high, consider checkpointing less frequently.
I0421 08:36:46.936306 138383740462912 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 9
I0421 08:36:46.938472 138383740462912 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/9.
I0421 08:36:47.650928 138383740462912 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0421 08:36:47.651021 138383740462912 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
I0421 08:36:47.685765 138383740462912 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.036061s
I0421 08:36:47.685919 138383740462912 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 39.106 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.039446115493774414 s) (per-host)
I0421 08:36:47.685968 138383740462912 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.039505s (batch_requests_ready=0.001770s, total_serialization_initiated=0.037669s, others=0.000066s)
I0421 08:36:47.686056 138383740462912 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.043723s (all_items=0.000015s, per_item={'items': '0.00001526'}, temp_paths=0.043708)
I0421 08:36:47.686746 138383740462912 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.75 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/9.
I0421 08:36:47.687056 138253021734656 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-21 08:56:47.687019
I0421 08:36:47.689013 138383740462912 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0421 08:36:47.689305 138233069410048 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0421 08:36:47.689441 138383740462912 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776760579.328877, 'wait_for_prev_duration_secs': 27.605485200881958, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776760606.936344, 'checkpointer_blocking_duration_secs': 0.7508578300476074, 'get_old_steps_start_time': 1776760607.6872246, 'get_old_steps_duration_secs': 3.0040740966796875e-05, 'checkpoint_manager_blocking_start_time': 1776760579.32707, 'checkpoint_manager_blocking_duration_secs': 28.36233878135681}
I0421 08:36:47.689617 138383740462912 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0421 08:36:47.689682 138383740462912 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0421 08:36:53.567913 138254622975744 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/linen_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/9/items/array_metadatas/process_4
I0421 08:37:29.232356 138253021734656 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 37.984 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.58584475517273 s) (per-host)
I0421 08:37:29.232472 138253021734656 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.545305s.
I0421 08:37:37.914380 138253021734656 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 50.227198s.
I0421 08:37:37.914685 138233069410048 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0421 08:37:37.914809 138233069410048 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0421 08:37:37.914859 138233069410048 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0421 08:37:37.916450 138233069410048 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0421 08:37:37.916608 138383740462912 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0421 08:37:37.916774 138383740462912 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0421 08:37:37.917770 138383740462912 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.271, Tokens/s/device: 13908.130, 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: Tue Apr 21 08:37:48 UTC 2026
EXIT_CODE=0
XPK Start: Tue Apr 21 10:11:00 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-21 10:11:24.207469: 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)
I0421 10:11:24.744518 133923743885120 max_utils.py:273] Attempting to initialize the jax distributed system...
I0421 10:11:33.787791 133923743885120 distributed.py:149] Starting JAX distributed service on [::]:8482
I0421 10:11:33.790125 133923743885120 distributed.py:172] Connecting to JAX distributed service on mt-01-base-ld3lk-slice-job-0-0.mt-01-base-ld3lk:8482
I0421 10:11:34.795700 133923743885120 max_utils.py:284] Jax distributed system initialized!
I0421 10:11:40.874799 133923743885120 max_utils.py:800] System Information: Jax Version: 0.9.2
I0421 10:11:40.874902 133923743885120 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0421 10:11:40.874943 133923743885120 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
I0421 10:11:40.874978 133923743885120 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0421 10:11:41.577140 133923743885120 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0421 10:11:41.690689 133923743885120 checkpointing.py:688] Setting up checkpoint logger...
I0421 10:11:41.690814 133923743885120 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0421 10:11:41.690859 133923743885120 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0421 10:11:41.691050 133923743885120 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 0x79ccfc1766c0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0421 10:11:45.402279 133923743885120 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0421 10:11:45.402510 133923743885120 checkpoint_manager.py:708] [process=7][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79b7cc4652e0>}, handler_registry=None
I0421 10:11:45.402759 133923743885120 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79b7cc4652e0>` 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`.
I0421 10:11:45.402808 133923743885120 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79b8bc20e6f0>` 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`.
I0421 10:11:45.402843 133923743885120 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 0x79b7cc4652e0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79b7cc4652e0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79b8bc20e6f0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79b8bc20e6f0>}).
I0421 10:11:45.403174 133923743885120 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0421 10:11:45.403247 133923743885120 async_checkpointer.py:192] [process=7][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x79b8bc591760> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0421 10:11:47.426690 133923743885120 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints
I0421 10:11:47.699456 133923743885120 checkpoint_manager.py:929] [process=7][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_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x79b8bc2df2f0>
I0421 10:11:47.699627 133923743885120 checkpointing.py:302] Checkpoint manager created!
I0421 10:11:48.671417 133923743885120 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0421 10:11:48.671530 133923743885120 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32

I0421 10:11:50.442692 133923743885120 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0421 10:11:50.442798 133923743885120 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 10:11:50.448527 133923743885120 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0421 10:11:50.448586 133923743885120 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 10:11:50.465202 133923743885120 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0421 10:11:50.465262 133923743885120 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 10:11:50.481199 133923743885120 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0421 10:11:50.481259 133923743885120 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 10:11:50.505568 133923743885120 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 10:11:50.505634 133923743885120 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 10:11:50.521717 133923743885120 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 10:11:50.521790 133923743885120 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 10:11:50.537693 133923743885120 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 10:11:50.537768 133923743885120 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 10:11:50.568232 133923743885120 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0421 10:11:50.568304 133923743885120 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 10:11:50.588272 133923743885120 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0421 10:11:50.588334 133923743885120 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0421 10:12:02.006889 133923743885120 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.
I0421 10:12:02.009293 133923743885120 metric_logger.py:301] number parameters: 1.104 billion
I0421 10:12:13.387758 133923743885120 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0421 10:12:13.541571 133923743885120 checkpointing.py:798] Waited 0.15381693840026855 seconds for step 0 to finish before starting checkpointing.
I0421 10:12:13.543853 133923743885120 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0421 10:12:13.545421 133923743885120 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 0
I0421 10:12:13.546956 133923743885120 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/0.
I0421 10:12:13.901355 133923743885120 signaling_client.py:364] Using JaxDistributedSignalingClient
I0421 10:12:13.902385 133923743885120 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0421 10:12:13.902446 133923743885120 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
I0421 10:12:14.177834 133923743885120 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.277259s
I0421 10:12:14.178011 133923743885120 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 5.388 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2863008975982666 s) (per-host)
I0421 10:12:14.178066 133923743885120 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.286366s (batch_requests_ready=0.002949s, total_serialization_initiated=0.283344s, others=0.000074s)
I0421 10:12:14.178170 133923743885120 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.290403s (all_items=0.000018s, per_item={'items': '0.00001764'}, temp_paths=0.290386)
I0421 10:12:14.178986 133923743885120 event_tracking.py:125] [process=7] [async] Finished blocking save in 0.63 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/0.
I0421 10:12:14.179264 133795126695680 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-21 10:32:14.179231
I0421 10:12:14.188314 133923743885120 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0421 10:12:14.188619 133792416347904 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0421 10:12:14.188783 133923743885120 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776766333.5438342, 'wait_for_prev_duration_secs': 6.103515625e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776766333.54546, 'checkpointer_blocking_duration_secs': 0.633948802947998, 'get_old_steps_start_time': 1776766334.1794336, 'get_old_steps_duration_secs': 3.24249267578125e-05, 'checkpoint_manager_blocking_start_time': 1776766333.541981, 'checkpoint_manager_blocking_duration_secs': 0.6467623710632324}
I0421 10:12:14.188891 133923743885120 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0421 10:12:14.188957 133923743885120 max_utils.py:750] 
Memstats: After params initialized:
I0421 10:12:14.189006 133923743885120 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_26(process=7,(2,6,0,0))
I0421 10:12:14.189038 133923743885120 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_27(process=7,(3,6,0,0))
I0421 10:12:14.189064 133923743885120 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_30(process=7,(2,7,0,0))
I0421 10:12:14.189094 133923743885120 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_31(process=7,(3,7,0,0))
I0421 10:12:14.505645 133923743885120 metric_logger.py:196] completed step: 0, seconds: 11.377, TFLOP/s/device: 1.194, Tokens/s/device: 180.006, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0421 10:12:14.679069 133923743885120 metric_logger.py:196] completed step: 1, seconds: 1.116, TFLOP/s/device: 12.174, Tokens/s/device: 1835.070, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0421 10:12:15.128672 133923743885120 metric_logger.py:196] completed step: 2, seconds: 0.027, TFLOP/s/device: 500.097, Tokens/s/device: 75380.029, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28632.133
I0421 10:12:15.276340 133923743885120 metric_logger.py:196] completed step: 3, seconds: 0.439, TFLOP/s/device: 30.919, Tokens/s/device: 4660.403, total_weights: 65536, loss: 9.732, lm_loss: 9.732, perplexity: 16855.789
I0421 10:12:15.571836 133923743885120 metric_logger.py:196] completed step: 4, seconds: 0.164, TFLOP/s/device: 82.746, Tokens/s/device: 12472.367, total_weights: 65536, loss: 9.274, lm_loss: 9.274, perplexity: 10661.594
I0421 10:12:15.579288 133923743885120 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.274, Tokens/s/device: 13908.508, total_weights: 65536, loss: 8.888, lm_loss: 8.888, perplexity: 7245.978
I0421 10:12:17.213368    2824 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0421 10:12:19.227460 133792459126528 array_metadata_store.py:203] [process=7][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/0/items/array_metadatas/process_7
I0421 10:12:38.227794 133923743885120 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.854, Tokens/s/device: 6911.680, total_weights: 65536, loss: 8.589, lm_loss: 8.589, perplexity: 5371.156
I0421 10:12:38.375449 133923743885120 metric_logger.py:196] completed step: 7, seconds: 22.503, TFLOP/s/device: 0.604, Tokens/s/device: 91.012, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4360.465
I0421 10:12:38.523137 133923743885120 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.890, Tokens/s/device: 13398.494, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.256
I0421 10:12:38.671482 133923743885120 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0421 10:12:38.672152 133923743885120 checkpointing.py:798] Waited 0.0006825923919677734 seconds for step 9 to finish before starting checkpointing.
I0421 10:12:38.674293 133923743885120 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0421 10:12:50.669220 133795126695680 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 42.950 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 36.77747058868408 s) (per-host)
I0421 10:12:50.669350 133795126695680 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 36.489975s.
I0421 10:12:58.005054 133795126695680 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 43.825663s.
I0421 10:12:58.005336 133792416347904 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0421 10:12:58.005451 133792416347904 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0421 10:12:58.005499 133792416347904 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0421 10:12:58.007905 133792416347904 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0421 10:12:58.008081 133923743885120 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0421 10:12:58.008210 133923743885120 checkpoint_manager.py:1452] Waiting for previous save to complete took 19.333919 seconds. If this number is high, consider checkpointing less frequently.
I0421 10:12:58.010269 133923743885120 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 9
I0421 10:12:58.012552 133923743885120 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/9.
I0421 10:12:58.300592 133923743885120 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0421 10:12:58.300685 133923743885120 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
I0421 10:12:58.335597 133923743885120 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.036619s
I0421 10:12:58.335779 133923743885120 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 35.341 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04364824295043945 s) (per-host)
I0421 10:12:58.335832 133923743885120 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.043715s (batch_requests_ready=0.002645s, total_serialization_initiated=0.040995s, others=0.000075s)
I0421 10:12:58.335935 133923743885120 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.047680s (all_items=0.000016s, per_item={'items': '0.00001597'}, temp_paths=0.047664)
I0421 10:12:58.336655 133923743885120 event_tracking.py:125] [process=7] [async] Finished blocking save in 0.33 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/9.
I0421 10:12:58.336965 133792416347904 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-21 10:32:58.336933
I0421 10:12:58.338904 133923743885120 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0421 10:12:58.339137 133772863338240 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0421 10:12:58.339244 133923743885120 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776766358.6742613, 'wait_for_prev_duration_secs': 19.333918571472168, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776766378.0103111, 'checkpointer_blocking_duration_secs': 0.32679033279418945, 'get_old_steps_start_time': 1776766378.337127, 'get_old_steps_duration_secs': 2.9087066650390625e-05, 'checkpoint_manager_blocking_start_time': 1776766358.6723924, 'checkpoint_manager_blocking_duration_secs': 19.666818618774414}
I0421 10:12:58.339408 133923743885120 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0421 10:12:58.339454 133923743885120 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0421 10:13:03.931076 133792459126528 array_metadata_store.py:203] [process=7][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260421_083238_01_base/checkpoints/9/items/array_metadatas/process_7
I0421 10:13:40.399323 133792416347904 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 37.514 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.1071572303772 s) (per-host)
I0421 10:13:40.399456 133792416347904 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.062380s.
I0421 10:13:47.938242 133792416347904 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 49.601151s.
I0421 10:13:47.938487 133772863338240 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0421 10:13:47.938546 133772863338240 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0421 10:13:47.938591 133772863338240 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0421 10:13:47.940058 133772863338240 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0421 10:13:47.940222 133923743885120 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0421 10:13:47.940395 133923743885120 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0421 10:13:47.941413 133923743885120 metric_logger.py:196] completed step: 9, seconds: 0.148, TFLOP/s/device: 91.854, Tokens/s/device: 13845.228, 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: Tue Apr 21 10:14:01 UTC 2026
EXIT_CODE=0