feat/nnx-post-train-fixesXPK Start: Mon Apr 20 16:21:01 UTC 2026 PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. 2026-04-20 16:21:25.022404: 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) I0420 16:21:25.200901 136256939337536 max_utils.py:273] Attempting to initialize the jax distributed system... I0420 16:21:34.240396 136256939337536 distributed.py:149] Starting JAX distributed service on [::]:8482 I0420 16:21:34.242785 136256939337536 distributed.py:172] Connecting to JAX distributed service on mt-10-shardy-true-0me1v-slice-job-0-0.mt-10-shardy-true-0me1v:8482 I0420 16:21:36.190870 136256939337536 max_utils.py:284] Jax distributed system initialized! I0420 16:21:42.382565 136256939337536 max_utils.py:800] System Information: Jax Version: 0.9.2 I0420 16:21:42.382663 136256939337536 max_utils.py:801] System Information: Jaxlib Version: 0.9.2 I0420 16:21:42.382703 136256939337536 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 I0420 16:21:42.382741 136256939337536 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing. I0420 16:21:43.554007 136256939337536 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1) I0420 16:21:43.554591 136256939337536 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1) I0420 16:21:43.554766 136256939337536 checkpointing.py:688] Setting up checkpoint logger... I0420 16:21:43.554815 136256939337536 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True I0420 16:21:43.554856 136256939337536 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None I0420 16:21:43.555185 136256939337536 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 0x7bec12a44590>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB) I0420 16:21:46.568031 136256939337536 checkpointing.py:266] Enabling policy for fixed interval checkpointing. I0420 16:21:46.568260 136256939337536 checkpoint_manager.py:708] [process=2][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7beb0668d6d0>}, handler_registry=None I0420 16:21:46.568493 136256939337536 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7beb0668d6d0>` 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`. I0420 16:21:46.568553 136256939337536 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7beb0669fd40>` 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`. I0420 16:21:46.568589 136256939337536 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 0x7beb0668d6d0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7beb0668d6d0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7beb0669fd40>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7beb0669fd40>}). I0420 16:21:46.568911 136256939337536 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34 I0420 16:21:46.568978 136256939337536 async_checkpointer.py:192] [process=2][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7bd6d856ec00> timeout: 1200 secs and primary_host=0 for async checkpoint writes I0420 16:21:47.265985 136256939337536 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints I0420 16:21:47.720731 136256939337536 checkpoint_manager.py:929] [process=2][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_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7beb066cb740> I0420 16:21:47.720898 136256939337536 checkpointing.py:302] Checkpoint manager created! I0420 16:21:48.662637 136256939337536 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed'). I0420 16:21:48.662748 136256939337536 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 16:21:49.044250 136256939337536 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed'). I0420 16:21:49.044341 136256939337536 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 16:21:49.060410 136256939337536 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed'). I0420 16:21:49.060469 136256939337536 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 16:21:49.083897 136256939337536 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim'). I0420 16:21:49.083966 136256939337536 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 16:21:49.100179 136256939337536 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim'). I0420 16:21:49.100238 136256939337536 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 16:21:49.116633 136256939337536 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim'). I0420 16:21:49.116693 136256939337536 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 16:21:49.140953 136256939337536 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv'). I0420 16:21:49.141026 136256939337536 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 16:21:49.162504 136256939337536 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp'). I0420 16:21:49.162586 136256939337536 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None). I0420 16:21:49.375737 136256939337536 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint I0420 16:21:49.375842 136256939337536 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint. fsdp: 32 I0420 16:21:50.791969 136256939337536 maxtext_utils.py:1827] params/params/decoder/decoder_norm/scale Shape: float32[2048] Logical: P('norm',) Physical: (None,) I0420 16:21:50.792091 136256939337536 maxtext_utils.py:1827] params/params/decoder/layers/mlp/wi_0/kernel Shape: float32[2048,16,7168] Logical: P('embed', 'layers', 'mlp') Physical: ('fsdp', None, None) I0420 16:21:50.792155 136256939337536 maxtext_utils.py:1827] params/params/decoder/layers/mlp/wi_1/kernel Shape: float32[2048,16,7168] Logical: P('embed', 'layers', 'mlp') Physical: ('fsdp', None, None) I0420 16:21:50.792237 136256939337536 maxtext_utils.py:1827] params/params/decoder/layers/mlp/wo/kernel Shape: float32[7168,16,2048] Logical: P('mlp', 'layers', 'embed') Physical: (None, None, 'fsdp') I0420 16:21:50.792296 136256939337536 maxtext_utils.py:1827] params/params/decoder/layers/post_self_attention_layer_norm/scale Shape: float32[2048,16] Logical: P('norm', 'layers') Physical: (None, None) I0420 16:21:50.792340 136256939337536 maxtext_utils.py:1827] params/params/decoder/layers/pre_self_attention_layer_norm/scale Shape: float32[2048,16] Logical: P('norm', 'layers') Physical: (None, None) I0420 16:21:50.792391 136256939337536 maxtext_utils.py:1827] 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) I0420 16:21:50.792442 136256939337536 maxtext_utils.py:1827] 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') I0420 16:21:50.792482 136256939337536 maxtext_utils.py:1827] 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) I0420 16:21:50.792578 136256939337536 maxtext_utils.py:1827] 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) I0420 16:21:50.792720 136256939337536 maxtext_utils.py:1827] params/params/decoder/logits_dense/kernel Shape: float32[2048,32000] Logical: P('embed_vocab', 'vocab') Physical: ('fsdp', None) I0420 16:21:50.792820 136256939337536 maxtext_utils.py:1827] params/params/token_embedder/embedding Shape: float32[32000,2048] Logical: P('vocab', 'embed_vocab') Physical: (None, 'fsdp') I0420 16:21:51.279277 136256939337536 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length'). I0420 16:21:51.279367 136256939337536 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None). I0420 16:21:51.294624 136256939337536 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length'). I0420 16:21:51.294683 136256939337536 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None). I0420 16:22:02.187316 136256939337536 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. I0420 16:22:02.188121 136256939337536 metric_logger.py:301] number parameters: 1.104 billion I0420 16:22:13.574791 136256939337536 checkpointing.py:794] Waiting for step 0 to finish before checkpoint... I0420 16:22:13.729152 136256939337536 checkpointing.py:798] Waited 0.154341459274292 seconds for step 0 to finish before starting checkpointing. I0420 16:22:13.731824 136256939337536 checkpoint_manager.py:2009] [process=2][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning. I0420 16:22:13.733484 136256939337536 checkpoint_manager.py:1512] [process=2] Saving checkpoint at step 0 I0420 16:22:13.734972 136256939337536 event_tracking.py:70] [process=2] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0. I0420 16:22:14.522557 136256939337536 signaling_client.py:364] Using JaxDistributedSignalingClient I0420 16:22:14.523475 136256939337536 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array. I0420 16:22:14.523551 136256939337536 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 I0420 16:22:14.794772 136256939337536 base_pytree_checkpoint_handler.py:154] [process=2][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.272307s I0420 16:22:14.794940 136256939337536 base_pytree_checkpoint_handler.py:130] [process=2] /jax/orbax/write/blocking_gbytes_per_sec: 5.556 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2776374816894531 s) (per-host) I0420 16:22:14.795001 136256939337536 base_pytree_checkpoint_handler.py:768] [process=2][thread=MainThread] Initiated Pytree async_save. Time taken: 0.277705s (batch_requests_ready=0.002147s, total_serialization_initiated=0.275483s, others=0.000075s) I0420 16:22:14.795126 136256939337536 composite_checkpoint_handler.py:715] [process=2][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.281895s (all_items=0.000017s, per_item={'items': '0.00001717'}, temp_paths=0.281878) I0420 16:22:14.796045 136256939337536 event_tracking.py:125] [process=2] [async] Finished blocking save in 1.06 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0. I0420 16:22:14.796322 136127973418752 async_checkpointer.py:76] [process=2][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 16:42:14.796289 I0420 16:22:14.807702 136256939337536 checkpoint_manager.py:1560] [process=2][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize I0420 16:22:14.808000 136126314313472 async_checkpointer.py:280] [process=2][thread=save_finalize] Waiting for background save thread=async_save. I0420 16:22:14.808172 136256939337536 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776702133.7318063, 'wait_for_prev_duration_secs': 6.0558319091796875e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776702133.7335331, 'checkpointer_blocking_duration_secs': 1.0629374980926514, 'get_old_steps_start_time': 1776702134.796494, 'get_old_steps_duration_secs': 3.981590270996094e-05, 'checkpoint_manager_blocking_start_time': 1776702133.729719, 'checkpoint_manager_blocking_duration_secs': 1.0784144401550293} I0420 16:22:14.808295 136256939337536 checkpointing.py:409] Started an asynchronous checkpoint save for step 0 I0420 16:22:14.808352 136256939337536 max_utils.py:750] Memstats: After params initialized: I0420 16:22:14.808405 136256939337536 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_8(process=2,(0,2,0,0)) I0420 16:22:14.808438 136256939337536 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_9(process=2,(1,2,0,0)) I0420 16:22:14.808476 136256939337536 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_12(process=2,(0,3,0,0)) I0420 16:22:14.808499 136256939337536 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_13(process=2,(1,3,0,0)) I0420 16:22:15.121955 136256939337536 metric_logger.py:196] completed step: 0, seconds: 11.387, TFLOP/s/device: 1.193, Tokens/s/device: 179.861, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875 I0420 16:22:15.300716 136256939337536 metric_logger.py:196] completed step: 1, seconds: 1.546, TFLOP/s/device: 8.791, Tokens/s/device: 1325.025, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875 I0420 16:22:15.722165 136256939337536 metric_logger.py:196] completed step: 2, seconds: 0.032, TFLOP/s/device: 429.456, Tokens/s/device: 64732.284, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129 I0420 16:22:15.869572 136256939337536 metric_logger.py:196] completed step: 3, seconds: 0.422, TFLOP/s/device: 32.211, Tokens/s/device: 4855.175, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203 I0420 16:22:16.164486 136256939337536 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 89.006, Tokens/s/device: 13415.960, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614 I0420 16:22:16.170174 136256939337536 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.259, Tokens/s/device: 13906.336, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717 I0420 16:22:17.937968 2826 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com I0420 16:22:20.330994 136126322706176 array_metadata_store.py:203] [process=2][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/items/array_metadatas/process_2 I0420 16:22:37.527109 136256939337536 metric_logger.py:196] completed step: 6, seconds: 0.295, TFLOP/s/device: 46.005, Tokens/s/device: 6934.428, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759 I0420 16:22:37.674643 136256939337536 metric_logger.py:196] completed step: 7, seconds: 21.211, TFLOP/s/device: 0.641, Tokens/s/device: 96.556, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905 I0420 16:22:37.821959 136256939337536 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.493, Tokens/s/device: 13489.303, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406 I0420 16:22:37.968419 136256939337536 checkpointing.py:794] Waiting for step 9 to finish before checkpoint... I0420 16:22:37.969089 136256939337536 checkpointing.py:798] Waited 0.000690460205078125 seconds for step 9 to finish before starting checkpointing. I0420 16:22:37.971122 136256939337536 checkpoint_manager.py:2020] [process=2][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete. I0420 16:22:49.988355 136127973418752 base_pytree_checkpoint_handler.py:130] [process=2] /jax/orbax/write/gbytes_per_sec: 44.532 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 35.47101449966431 s) (per-host) I0420 16:22:49.988481 136127973418752 async_checkpointer.py:90] [process=2][thread=async_save] 3 Handler Commit operations completed. Time taken: 35.192050s. I0420 16:22:59.863914 136127973418752 async_checkpointer.py:160] [process=2][thread=async_save] Background save thread done. Time taken: 45.067466s. I0420 16:22:59.864187 136126314313472 async_checkpointer.py:288] [process=2][thread=save_finalize] Done with waiting for background save thread=async_save. I0420 16:22:59.864306 136126314313472 async_checkpointer.py:298] [process=2][thread=save_finalize] No errors found in background save thread=async_save. I0420 16:22:59.864356 136126314313472 checkpoint_manager.py:2137] [process=2][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts... I0420 16:22:59.866232 136126314313472 checkpoint_manager.py:2146] [process=2][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts. I0420 16:22:59.866433 136256939337536 checkpoint_manager.py:2032] [process=2][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0. W0420 16:22:59.866586 136256939337536 checkpoint_manager.py:1452] Waiting for previous save to complete took 21.895463 seconds. If this number is high, consider checkpointing less frequently. I0420 16:22:59.868420 136256939337536 checkpoint_manager.py:1512] [process=2] Saving checkpoint at step 9 I0420 16:22:59.870510 136256939337536 event_tracking.py:70] [process=2] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9. I0420 16:23:00.600843 136256939337536 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array. I0420 16:23:00.600931 136256939337536 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 I0420 16:23:00.636510 136256939337536 base_pytree_checkpoint_handler.py:154] [process=2][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.036779s I0420 16:23:00.636677 136256939337536 base_pytree_checkpoint_handler.py:130] [process=2] /jax/orbax/write/blocking_gbytes_per_sec: 38.447 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.040122270584106445 s) (per-host) I0420 16:23:00.636726 136256939337536 base_pytree_checkpoint_handler.py:768] [process=2][thread=MainThread] Initiated Pytree async_save. Time taken: 0.040181s (batch_requests_ready=0.001705s, total_serialization_initiated=0.038411s, others=0.000065s) I0420 16:23:00.636813 136256939337536 composite_checkpoint_handler.py:715] [process=2][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.044410s (all_items=0.000016s, per_item={'items': '0.00001621'}, temp_paths=0.044394) I0420 16:23:00.637490 136256939337536 event_tracking.py:125] [process=2] [async] Finished blocking save in 0.77 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9. I0420 16:23:00.637793 136126314313472 async_checkpointer.py:76] [process=2][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 16:43:00.637759 I0420 16:23:00.641194 136256939337536 checkpoint_manager.py:1560] [process=2][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize I0420 16:23:00.641424 136103453505280 async_checkpointer.py:280] [process=2][thread=save_finalize] Waiting for background save thread=async_save. I0420 16:23:00.641562 136256939337536 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776702157.9710941, 'wait_for_prev_duration_secs': 21.895463228225708, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776702179.868458, 'checkpointer_blocking_duration_secs': 0.7694671154022217, 'get_old_steps_start_time': 1776702180.6379488, 'get_old_steps_duration_secs': 2.8371810913085938e-05, 'checkpoint_manager_blocking_start_time': 1776702157.9693122, 'checkpoint_manager_blocking_duration_secs': 22.672214031219482} I0420 16:23:00.641669 136256939337536 checkpointing.py:409] Started an asynchronous checkpoint save for step 9 I0420 16:23:00.641715 136256939337536 checkpoint_manager.py:2020] [process=2][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete. I0420 16:23:06.244881 136126322706176 array_metadata_store.py:203] [process=2][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/linen_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9/items/array_metadatas/process_2 I0420 16:23:43.103858 136126314313472 base_pytree_checkpoint_handler.py:130] [process=2] /jax/orbax/write/gbytes_per_sec: 37.161 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.50726556777954 s) (per-host) I0420 16:23:43.103983 136126314313472 async_checkpointer.py:90] [process=2][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.466084s. I0420 16:23:51.982349 136126314313472 async_checkpointer.py:160] [process=2][thread=async_save] Background save thread done. Time taken: 51.344436s. I0420 16:23:51.982595 136103453505280 async_checkpointer.py:288] [process=2][thread=save_finalize] Done with waiting for background save thread=async_save. I0420 16:23:51.982658 136103453505280 async_checkpointer.py:298] [process=2][thread=save_finalize] No errors found in background save thread=async_save. I0420 16:23:51.982704 136103453505280 checkpoint_manager.py:2137] [process=2][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts... I0420 16:23:51.985495 136103453505280 checkpoint_manager.py:2146] [process=2][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts. I0420 16:23:51.985674 136256939337536 checkpoint_manager.py:2032] [process=2][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9. I0420 16:23:51.985826 136256939337536 checkpoint_manager.py:2009] [process=2][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning. I0420 16:23:51.986768 136256939337536 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.159, Tokens/s/device: 13891.244, 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: Mon Apr 20 16:24:01 UTC 2026 EXIT_CODE=0
XPK Start: Mon Apr 20 18:01:41 UTC 2026 PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. 2026-04-20 18:02:05.835321: 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) I0420 18:02:06.014656 138084015765312 max_utils.py:273] Attempting to initialize the jax distributed system... I0420 18:02:15.056138 138084015765312 distributed.py:149] Starting JAX distributed service on [::]:8482 I0420 18:02:15.058497 138084015765312 distributed.py:172] Connecting to JAX distributed service on mt-10-shardy-true-rq2e7-slice-job-0-0.mt-10-shardy-true-rq2e7:8482 I0420 18:02:16.645196 138084015765312 max_utils.py:284] Jax distributed system initialized! I0420 18:02:22.799309 138084015765312 max_utils.py:800] System Information: Jax Version: 0.9.2 I0420 18:02:22.799412 138084015765312 max_utils.py:801] System Information: Jaxlib Version: 0.9.2 I0420 18:02:22.799453 138084015765312 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 I0420 18:02:22.799487 138084015765312 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing. I0420 18:02:23.505934 138084015765312 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1) I0420 18:02:23.620711 138084015765312 checkpointing.py:688] Setting up checkpoint logger... I0420 18:02:23.620824 138084015765312 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True I0420 18:02:23.620870 138084015765312 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None I0420 18:02:23.621125 138084015765312 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 0x7d957933c1d0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB) I0420 18:02:27.280554 138084015765312 checkpointing.py:266] Enabling policy for fixed interval checkpointing. I0420 18:02:27.280794 138084015765312 checkpoint_manager.py:708] [process=0][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d7ffc752cf0>}, handler_registry=None I0420 18:02:27.281029 138084015765312 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d7ffc752cf0>` 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`. I0420 18:02:27.281089 138084015765312 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d807c51bc50>` 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`. I0420 18:02:27.281130 138084015765312 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 0x7d7ffc752cf0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d7ffc752cf0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d807c51bc50>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d807c51bc50>}). I0420 18:02:27.281445 138084015765312 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34 I0420 18:02:27.281517 138084015765312 async_checkpointer.py:192] [process=0][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7d80fc2dcfe0> timeout: 1200 secs and primary_host=0 for async checkpoint writes I0420 18:02:27.990316 138084015765312 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints I0420 18:02:28.434784 138084015765312 checkpoint_manager.py:929] [process=0][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_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7d80fc4694f0> I0420 18:02:28.434956 138084015765312 checkpointing.py:302] Checkpoint manager created! I0420 18:02:29.392338 138084015765312 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint I0420 18:02:29.392454 138084015765312 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint. fsdp: 32 I0420 18:02:30.747213 138084015765312 maxtext_utils.py:1836] decoder/decoder_norm/scale/value Shape: float32[2048] Physical: (None,) I0420 18:02:30.747325 138084015765312 maxtext_utils.py:1836] decoder/layers/mlp/wi_0/kernel/value Shape: float32[2048,16,7168] Physical: ('fsdp', None, None) I0420 18:02:30.747377 138084015765312 maxtext_utils.py:1836] decoder/layers/mlp/wi_1/kernel/value Shape: float32[2048,16,7168] Physical: ('fsdp', None, None) I0420 18:02:30.747419 138084015765312 maxtext_utils.py:1836] decoder/layers/mlp/wo/kernel/value Shape: float32[7168,16,2048] Physical: (None, None, 'fsdp') I0420 18:02:30.747456 138084015765312 maxtext_utils.py:1836] decoder/layers/post_self_attention_layer_norm/scale/value Shape: float32[2048,16] Physical: (None, None) I0420 18:02:30.747491 138084015765312 maxtext_utils.py:1836] decoder/layers/pre_self_attention_layer_norm/scale/value Shape: float32[2048,16] Physical: (None, None) I0420 18:02:30.747528 138084015765312 maxtext_utils.py:1836] decoder/layers/self_attention/key/kernel/value Shape: float32[2048,16,16,128] Physical: ('fsdp', None, None, None) I0420 18:02:30.747564 138084015765312 maxtext_utils.py:1836] decoder/layers/self_attention/out/kernel/value Shape: float32[16,16,128,2048] Physical: (None, None, None, 'fsdp') I0420 18:02:30.747598 138084015765312 maxtext_utils.py:1836] decoder/layers/self_attention/query/kernel/value Shape: float32[2048,16,16,128] Physical: ('fsdp', None, None, None) I0420 18:02:30.747634 138084015765312 maxtext_utils.py:1836] decoder/layers/self_attention/value/kernel/value Shape: float32[2048,16,16,128] Physical: ('fsdp', None, None, None) I0420 18:02:30.747667 138084015765312 maxtext_utils.py:1836] decoder/logits_dense/kernel/value Shape: float32[2048,32000] Physical: ('fsdp', None) I0420 18:02:30.747698 138084015765312 maxtext_utils.py:1836] token_embedder/embedding/value Shape: float32[32000,2048] Physical: (None, 'fsdp') I0420 18:02:31.150599 138084015765312 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed'). I0420 18:02:31.150700 138084015765312 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 18:02:31.156054 138084015765312 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed'). I0420 18:02:31.156135 138084015765312 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 18:02:31.172466 138084015765312 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed'). I0420 18:02:31.172535 138084015765312 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 18:02:31.188154 138084015765312 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed'). I0420 18:02:31.188215 138084015765312 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None). I0420 18:02:31.213417 138084015765312 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim'). I0420 18:02:31.213487 138084015765312 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 18:02:31.229234 138084015765312 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim'). I0420 18:02:31.229294 138084015765312 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 18:02:31.245169 138084015765312 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim'). I0420 18:02:31.245229 138084015765312 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 18:02:31.275197 138084015765312 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv'). I0420 18:02:31.275265 138084015765312 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None). I0420 18:02:31.294955 138084015765312 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp'). I0420 18:02:31.295019 138084015765312 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None). I0420 18:02:42.301692 138084015765312 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. I0420 18:02:42.310913 138084015765312 metric_logger.py:301] number parameters: 1.104 billion I0420 18:02:53.733029 138084015765312 checkpointing.py:794] Waiting for step 0 to finish before checkpoint... I0420 18:02:53.883958 138084015765312 checkpointing.py:798] Waited 0.15091681480407715 seconds for step 0 to finish before starting checkpointing. I0420 18:02:53.886353 138084015765312 checkpoint_manager.py:2009] [process=0][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning. I0420 18:02:53.888297 138084015765312 checkpoint_manager.py:1512] [process=0] Saving checkpoint at step 0 I0420 18:02:53.890015 138084015765312 event_tracking.py:70] [process=0] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0. I0420 18:02:54.187579 138084015765312 signaling_client.py:364] Using JaxDistributedSignalingClient I0420 18:02:54.207200 138084015765312 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array. I0420 18:02:54.207272 138084015765312 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 I0420 18:02:54.479765 138084015765312 base_pytree_checkpoint_handler.py:154] [process=0][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.274056s I0420 18:02:54.480581 138084015765312 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/blocking_gbytes_per_sec: 5.416 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.28482913970947266 s) (per-host) I0420 18:02:54.480651 138084015765312 base_pytree_checkpoint_handler.py:768] [process=0][thread=MainThread] Initiated Pytree async_save. Time taken: 0.284911s (batch_requests_ready=0.003007s, total_serialization_initiated=0.281182s, others=0.000722s) I0420 18:02:54.480730 138084015765312 composite_checkpoint_handler.py:715] [process=0][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.289441s (all_items=0.000016s, per_item={'items': '0.00001597'}, temp_paths=0.289425) I0420 18:02:54.481565 138084015765312 event_tracking.py:125] [process=0] [async] Finished blocking save in 0.59 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0. I0420 18:02:54.481836 137954529482496 async_checkpointer.py:76] [process=0][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 18:22:54.481814 I0420 18:02:54.492486 138084015765312 checkpoint_manager.py:1560] [process=0][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize I0420 18:02:54.492746 137950204733184 async_checkpointer.py:280] [process=0][thread=save_finalize] Waiting for background save thread=async_save. I0420 18:02:54.492866 138084015765312 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776708173.8863347, 'wait_for_prev_duration_secs': 6.198883056640625e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776708173.888336, 'checkpointer_blocking_duration_secs': 0.5936002731323242, 'get_old_steps_start_time': 1776708174.4819632, 'get_old_steps_duration_secs': 2.9802322387695312e-05, 'checkpoint_manager_blocking_start_time': 1776708173.8843553, 'checkpoint_manager_blocking_duration_secs': 0.6084716320037842} I0420 18:02:54.492969 138084015765312 checkpointing.py:409] Started an asynchronous checkpoint save for step 0 I0420 18:02:54.493039 138084015765312 max_utils.py:750] Memstats: After params initialized: I0420 18:02:54.493103 138084015765312 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_0(process=0,(0,0,0,0)) I0420 18:02:54.493139 138084015765312 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_1(process=0,(1,0,0,0)) I0420 18:02:54.493168 138084015765312 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_4(process=0,(0,1,0,0)) I0420 18:02:54.493194 138084015765312 max_utils.py:756] Using (GB) 0.43 / 31.25 (1.376000%) on TPU_5(process=0,(1,1,0,0)) I0420 18:02:54.502014 137954521089792 atomicity.py:140] Creating tmp directory gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0 I0420 18:02:54.850136 138084015765312 metric_logger.py:196] completed step: 0, seconds: 11.136, TFLOP/s/device: 1.220, Tokens/s/device: 183.905, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469 I0420 18:02:54.853618 138084015765312 metric_logger.py:281] To see full metrics 'tensorboard --logdir=gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/tensorboard/' I0420 18:02:55.337072 138084015765312 metric_logger.py:196] completed step: 1, seconds: 1.113, TFLOP/s/device: 12.203, Tokens/s/device: 1839.399, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469 I0420 18:02:55.478854 138084015765312 metric_logger.py:196] completed step: 2, seconds: 0.488, TFLOP/s/device: 27.847, Tokens/s/device: 4197.358, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28632.133 I0420 18:02:55.626315 138084015765312 metric_logger.py:196] completed step: 3, seconds: 0.013, TFLOP/s/device: 1068.003, Tokens/s/device: 160980.978, total_weights: 65536, loss: 9.732, lm_loss: 9.732, perplexity: 16855.789 I0420 18:02:56.690826 137954504304384 atomicity.py:140] Creating tmp directory gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/items I0420 18:02:57.235049 137948615927552 checkpoint.py:188] Wrote Metadata={'item_handlers': None, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776708176395693109, 'commit_timestamp_nsecs': None, 'custom_metadata': {}}, json={"item_handlers": null, "metrics": {}, "performance_metrics": {}, "init_timestamp_nsecs": 1776708176395693109, "commit_timestamp_nsecs": null, "custom_metadata": {}} to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/_CHECKPOINT_METADATA I0420 18:02:57.850157 2843 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com I0420 18:03:00.510771 137950255904512 array_metadata_store.py:203] [process=0][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/items/array_metadatas/process_0 I0420 18:03:18.304910 138084015765312 metric_logger.py:196] completed step: 4, seconds: 0.143, TFLOP/s/device: 94.936, Tokens/s/device: 14309.770, total_weights: 65536, loss: 9.274, lm_loss: 9.274, perplexity: 10661.594 I0420 18:03:18.316845 138084015765312 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.497, Tokens/s/device: 13942.121, total_weights: 65536, loss: 8.888, lm_loss: 8.888, perplexity: 7245.978 I0420 18:03:18.460112 138084015765312 metric_logger.py:196] completed step: 6, seconds: 22.678, TFLOP/s/device: 0.599, Tokens/s/device: 90.306, total_weights: 65536, loss: 8.589, lm_loss: 8.589, perplexity: 5371.156 I0420 18:03:18.607890 138084015765312 metric_logger.py:196] completed step: 7, seconds: 0.008, TFLOP/s/device: 1607.754, Tokens/s/device: 242338.185, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4360.465 I0420 18:03:18.755167 138084015765312 metric_logger.py:196] completed step: 8, seconds: 0.144, TFLOP/s/device: 94.066, Tokens/s/device: 14178.701, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.256 I0420 18:03:18.903277 138084015765312 checkpointing.py:794] Waiting for step 9 to finish before checkpoint... I0420 18:03:18.903933 138084015765312 checkpointing.py:798] Waited 0.0006678104400634766 seconds for step 9 to finish before starting checkpointing. I0420 18:03:18.905977 138084015765312 checkpoint_manager.py:2020] [process=0][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete. I0420 18:03:35.045043 137950213125888 base_pytree_checkpoint_handler.py:1282] [process=0][thread=write_metadata_after_commits] Commit + Array metadata written. Time taken: 37.192267s (commit=35.979213s, array_metadata_write=1.213055s) I0420 18:03:35.046231 137954529482496 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/gbytes_per_sec: 38.668 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 40.85044836997986 s) (per-host) I0420 18:03:35.046357 137954529482496 async_checkpointer.py:90] [process=0][thread=async_save] 3 Handler Commit operations completed. Time taken: 40.564447s. I0420 18:03:35.797486 137954529482496 checkpoint.py:228] Read Metadata={'item_handlers': None, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776708176395693109, 'commit_timestamp_nsecs': None, 'custom_metadata': {}} from gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/_CHECKPOINT_METADATA I0420 18:03:36.558604 137948615927552 checkpoint.py:247] Updated Metadata={'item_handlers': {'items': 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler'}, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776708176395693109, 'commit_timestamp_nsecs': None, 'custom_metadata': {}} to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/_CHECKPOINT_METADATA I0420 18:03:37.371865 137954529482496 array_metadata_store.py:411] [process=0][thread=async_save] Validated ArrayMetadata from all 8 hosts. Time taken: 0.000394s. I0420 18:03:37.712294 137954529482496 ocdbt_utils.py:49] Param validation support for Zarr3 will be added later (b/362328389). I0420 18:03:38.653193 137954529482496 base_pytree_checkpoint_handler.py:1406] [process=0][thread=async_save] Pytree save finalize (merge_ocdbt + ArrayMetadata validation) completed. Time taken: 2.734502s. use_zarr3=True, enable_post_merge_validation=True, directory=gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/items I0420 18:03:38.654913 137954529482496 atomicity.py:666] Finalizing gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0/items I0420 18:03:39.234918 137954529482496 atomicity.py:666] Finalizing gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0 I0420 18:03:40.669881 137954529482496 atomicity.py:847] [process=0][thread=async_save] Finished saving checkpoint (finalized tmp dir) to `gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0`. I0420 18:03:40.670806 137954529482496 event_tracking.py:138] [process=0] [async] Finished save (blocking + background) in 46.78 seconds @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/0 I0420 18:03:40.672481 137954529482496 async_checkpointer.py:160] [process=0][thread=async_save] Background save thread done. Time taken: 46.190567s. I0420 18:03:40.672620 137950204733184 async_checkpointer.py:288] [process=0][thread=save_finalize] Done with waiting for background save thread=async_save. I0420 18:03:40.672711 137950204733184 async_checkpointer.py:298] [process=0][thread=save_finalize] No errors found in background save thread=async_save. I0420 18:03:40.672775 137950204733184 checkpoint_manager.py:2137] [process=0][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts... I0420 18:03:40.675745 137950204733184 checkpoint_manager.py:2146] [process=0][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts. I0420 18:03:40.675908 138084015765312 checkpoint_manager.py:2032] [process=0][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0. W0420 18:03:40.676041 138084015765312 checkpoint_manager.py:1452] Waiting for previous save to complete took 21.770063 seconds. If this number is high, consider checkpointing less frequently. I0420 18:03:40.677910 138084015765312 checkpoint_manager.py:1512] [process=0] Saving checkpoint at step 9 I0420 18:03:40.679882 138084015765312 event_tracking.py:70] [process=0] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9. I0420 18:03:41.412388 138084015765312 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array. I0420 18:03:41.412481 138084015765312 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 I0420 18:03:41.439046 138084015765312 base_pytree_checkpoint_handler.py:154] [process=0][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.028152s I0420 18:03:41.439935 138084015765312 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/blocking_gbytes_per_sec: 41.760 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.036939382553100586 s) (per-host) I0420 18:03:41.440011 138084015765312 base_pytree_checkpoint_handler.py:768] [process=0][thread=MainThread] Initiated Pytree async_save. Time taken: 0.037033s (batch_requests_ready=0.002617s, total_serialization_initiated=0.033616s, others=0.000801s) I0420 18:03:41.440108 138084015765312 composite_checkpoint_handler.py:715] [process=0][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.040973s (all_items=0.000022s, per_item={'items': '0.00002217'}, temp_paths=0.040951) I0420 18:03:41.440810 138084015765312 event_tracking.py:125] [process=0] [async] Finished blocking save in 0.76 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9. I0420 18:03:41.441159 137950204733184 async_checkpointer.py:76] [process=0][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 18:23:41.441123 I0420 18:03:41.448241 138084015765312 checkpoint_manager.py:1560] [process=0][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize I0420 18:03:41.448493 137953458099968 async_checkpointer.py:280] [process=0][thread=save_finalize] Waiting for background save thread=async_save. I0420 18:03:41.448628 138084015765312 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776708198.9059453, 'wait_for_prev_duration_secs': 21.770063400268555, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776708220.6779494, 'checkpointer_blocking_duration_secs': 0.7633554935455322, 'get_old_steps_start_time': 1776708221.4413295, 'get_old_steps_duration_secs': 3.0994415283203125e-05, 'checkpoint_manager_blocking_start_time': 1776708198.904167, 'checkpoint_manager_blocking_duration_secs': 22.544426679611206} I0420 18:03:41.448730 138084015765312 checkpointing.py:409] Started an asynchronous checkpoint save for step 9 I0420 18:03:41.448775 138084015765312 checkpoint_manager.py:2020] [process=0][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete. I0420 18:03:41.664438 137954529482496 atomicity.py:140] Creating tmp directory gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9 I0420 18:03:43.961330 137953997215488 atomicity.py:140] Creating tmp directory gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9/items I0420 18:03:47.444886 137953474885376 array_metadata_store.py:203] [process=0][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9/items/array_metadatas/process_0 I0420 18:04:27.932985 137953466492672 base_pytree_checkpoint_handler.py:1282] [process=0][thread=write_metadata_after_commits] Commit + Array metadata written. Time taken: 42.405908s (commit=40.350785s, array_metadata_write=2.055123s) I0420 18:04:27.934041 137950204733184 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/gbytes_per_sec: 33.947 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 46.53101825714111 s) (per-host) I0420 18:04:27.934184 137950204733184 async_checkpointer.py:90] [process=0][thread=async_save] 3 Handler Commit operations completed. Time taken: 46.492910s. I0420 18:04:30.326028 137950204733184 array_metadata_store.py:411] [process=0][thread=async_save] Validated ArrayMetadata from all 8 hosts. Time taken: 0.000411s. I0420 18:04:30.716103 137950204733184 ocdbt_utils.py:49] Param validation support for Zarr3 will be added later (b/362328389). I0420 18:04:31.779512 137950204733184 base_pytree_checkpoint_handler.py:1406] [process=0][thread=async_save] Pytree save finalize (merge_ocdbt + ArrayMetadata validation) completed. Time taken: 2.060878s. use_zarr3=True, enable_post_merge_validation=True, directory=gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9/items I0420 18:04:31.781207 137950204733184 atomicity.py:666] Finalizing gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9/items I0420 18:04:32.333003 137950204733184 atomicity.py:666] Finalizing gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9 I0420 18:04:34.405139 137950204733184 atomicity.py:847] [process=0][thread=async_save] Finished saving checkpoint (finalized tmp dir) to `gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9`. I0420 18:04:34.405914 137950204733184 event_tracking.py:138] [process=0] [async] Finished save (blocking + background) in 53.73 seconds @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260420_153543/nnx_xpk_feat_nnx_post_train_fixes_20260420_153543_10_shardy_true/checkpoints/9 I0420 18:04:34.407191 137950204733184 async_checkpointer.py:160] [process=0][thread=async_save] Background save thread done. Time taken: 52.965915s. I0420 18:04:34.407379 137953458099968 async_checkpointer.py:288] [process=0][thread=save_finalize] Done with waiting for background save thread=async_save. I0420 18:04:34.407500 137953458099968 async_checkpointer.py:298] [process=0][thread=save_finalize] No errors found in background save thread=async_save. I0420 18:04:34.407562 137953458099968 checkpoint_manager.py:2137] [process=0][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts... I0420 18:04:34.409779 137953458099968 checkpoint_manager.py:2146] [process=0][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts. I0420 18:04:34.409895 138084015765312 checkpoint_manager.py:2032] [process=0][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9. I0420 18:04:34.410004 138084015765312 checkpoint_manager.py:2009] [process=0][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning. I0420 18:04:34.411022 138084015765312 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.199, Tokens/s/device: 13897.183, 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: Mon Apr 20 18:04:46 UTC 2026 EXIT_CODE=0