MaxView

‹ —Case: 01_base02_synthetic ›

Metrics: main (147168c3a) vs feat/nnx-trainstate-and-training-loop (190761531)

Metricmain  147168c3afeat/nnx-trainstate-and-training-loop  190761531Diff (feat/nnx-trainstate-and-training-loop − main)
Parameters1.104 billion1.104 billion
Final loss8.17908.17900
TFLOP/s92.35292.043-0.309
Tok/s13920.313873.7-46.584
Avg s/step3.1473.162+0.015
Memory %1.381.380
JAX0.9.20.9.2

Diff = branch value − main value. Green = branch improved. Red = branch regressed.

main  ·  147168c3a  ·  main_20260417_235819  ·  full log
XPK Start: Fri Apr 17 23:59:58 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-18 00:00:36.589165: 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)
I0418 00:00:36.768195 133091100694336 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 00:00:45.810735 133091100694336 distributed.py:172] Connecting to JAX distributed service on mt-01-base-la5vx-slice-job-0-0.mt-01-base-la5vx:8482
I0418 00:00:49.457620 133091100694336 max_utils.py:284] Jax distributed system initialized!
I0418 00:00:56.683860 133091100694336 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 00:00:56.683964 133091100694336 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 00:00:56.684063 133091100694336 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
I0418 00:00:56.684101 133091100694336 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 00:00:57.376799 133091100694336 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 00:00:57.377077 133091100694336 checkpointing.py:677] Setting up checkpoint logger...
I0418 00:00:57.377131 133091100694336 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0418 00:00:57.377174 133091100694336 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 00:00:57.377511 133091100694336 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 0x790af8150410>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 00:01:02.068987 133091100694336 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0418 00:01:02.069225 133091100694336 checkpoint_manager.py:708] [process=5][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x78f88c18a480>}, handler_registry=None
I0418 00:01:02.069492 133091100694336 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x78f88c18a480>` 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`.
I0418 00:01:02.069544 133091100694336 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x78f88c191d00>` 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`.
I0418 00:01:02.069587 133091100694336 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 0x78f88c18a480>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x78f88c18a480>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x78f88c191d00>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x78f88c191d00>}).
I0418 00:01:02.069957 133091100694336 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 00:01:02.070050 133091100694336 async_checkpointer.py:192] [process=5][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x78f84c1740e0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 00:01:04.556593 133091100694336 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints
I0418 00:01:05.442514 133091100694336 checkpoint_manager.py:929] [process=5][thread=MainThread] CheckpointManager created,  primary_host=0, CheckpointManagerOptions=CheckpointManagerOptions(save_interval_steps=1, max_to_keep=None, keep_time_interval=None, keep_period=None, should_keep_fn=None, best_fn=None, best_mode='max', keep_checkpoints_without_metrics=True, step_prefix=None, step_format_fixed_length=None, step_name_format=None, create=True, cleanup_tmp_directories=False, save_on_steps=frozenset(), single_host_load_and_broadcast=False, todelete_subdir=None, todelete_full_path=None, enable_background_delete=False, read_only=False, enable_async_checkpointing=True, async_options=None, multiprocessing_options=MultiprocessingOptions(primary_host=0, active_processes=None, barrier_sync_key_prefix=None), should_save_fn=None, file_options=FileOptions(path_permission_mode=None), save_root_metadata=True, temporary_path_class=None, save_decision_policy=FixedIntervalPolicy(interval=10), preservation_policy=LatestN(n=None), prevent_write_metrics=False, enable_should_save_is_saving_in_progress_check=True, enable_per_process_directory_creation=False, lightweight_initialize=False), root_directory=gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x78f88c18b560>
I0418 00:01:05.442707 133091100694336 checkpointing.py:301] Checkpoint manager created!
I0418 00:01:06.385191 133091100694336 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 00:01:06.385309 133091100694336 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 00:01:06.765636 133091100694336 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 00:01:06.765735 133091100694336 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 00:01:06.781952 133091100694336 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 00:01:06.782019 133091100694336 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 00:01:06.805713 133091100694336 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 00:01:06.805780 133091100694336 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 00:01:06.822173 133091100694336 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 00:01:06.822235 133091100694336 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 00:01:06.844274 133091100694336 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 00:01:06.844371 133091100694336 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 00:01:06.869152 133091100694336 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 00:01:06.869222 133091100694336 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 00:01:06.891302 133091100694336 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 00:01:06.891370 133091100694336 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 00:01:07.110131 133091100694336 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 00:01:07.110246 133091100694336 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0418 00:01:08.526611 133091100694336 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 00:01:08.526755 133091100694336 maxtext_utils.py:1654]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0418 00:01:08.526811 133091100694336 maxtext_utils.py:1654]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0418 00:01:08.526871 133091100694336 maxtext_utils.py:1654]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0418 00:01:08.526922 133091100694336 maxtext_utils.py:1654]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0418 00:01:08.526962 133091100694336 maxtext_utils.py:1654]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0418 00:01:08.527014 133091100694336 maxtext_utils.py:1654]  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)
I0418 00:01:08.527070 133091100694336 maxtext_utils.py:1654]  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')
I0418 00:01:08.527110 133091100694336 maxtext_utils.py:1654]  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)
I0418 00:01:08.527146 133091100694336 maxtext_utils.py:1654]  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)
I0418 00:01:08.527192 133091100694336 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0418 00:01:08.527237 133091100694336 maxtext_utils.py:1654]  params/params/token_embedder/embedding

    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0418 00:01:09.018528 133091100694336 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 00:01:09.018625 133091100694336 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 00:01:09.033999 133091100694336 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 00:01:09.034059 133091100694336 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 00:01:19.454291 133091100694336 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.
I0418 00:01:19.455075 133091100694336 metric_logger.py:301] number parameters: 1.104 billion
I0418 00:01:30.584674 133091100694336 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0418 00:01:31.448715 133091100694336 checkpointing.py:776] Waited 0.8639957904815674 seconds for step 0 to finish before starting checkpointing.
I0418 00:01:31.451213 133091100694336 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 00:01:31.453983 133091100694336 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 0
I0418 00:01:31.455681 133091100694336 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints/0.
I0418 00:01:32.655796 133091100694336 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 00:01:32.656967 133091100694336 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 00:01:32.657028 133091100694336 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
I0418 00:01:32.935832 133091100694336 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.280108s
I0418 00:01:32.936007 133091100694336 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 5.403 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2854945659637451 s) (per-host)
I0418 00:01:32.936064 133091100694336 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.285563s (batch_requests_ready=0.002191s, total_serialization_initiated=0.283295s, others=0.000077s)
I0418 00:01:32.936156 133091100694336 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.289815s (all_items=0.000016s, per_item={'items': '0.00001597'}, temp_paths=0.289799)
I0418 00:01:32.937000 133091100694336 event_tracking.py:125] [process=5] [async] Finished blocking save in 1.48 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints/0.
I0418 00:01:32.937314 132954351728384 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 00:21:32.937274
I0418 00:01:32.940331 133091100694336 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 00:01:32.940560 132951273846528 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0418 00:01:32.940682 133091100694336 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776470491.4511955, 'wait_for_prev_duration_secs': 6.0558319091796875e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776470491.4540257, 'checkpointer_blocking_duration_secs': 1.4834420680999756, 'get_old_steps_start_time': 1776470492.9374945, 'get_old_steps_duration_secs': 3.0040740966796875e-05, 'checkpoint_manager_blocking_start_time': 1776470491.4492147, 'checkpoint_manager_blocking_duration_secs': 1.4914283752441406}
I0418 00:01:32.940806 133091100694336 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0418 00:01:32.940858 133091100694336 max_utils.py:750] 
Memstats: After params initialized:
I0418 00:01:32.940908 133091100694336 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_18(process=5,(2,4,0,0))
I0418 00:01:32.940951 133091100694336 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_19(process=5,(3,4,0,0))
I0418 00:01:32.940981 133091100694336 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_22(process=5,(2,5,0,0))
I0418 00:01:32.941005 133091100694336 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_23(process=5,(3,5,0,0))
I0418 00:01:33.260881 133091100694336 metric_logger.py:196] completed step: 0, seconds: 11.129, TFLOP/s/device: 1.221, Tokens/s/device: 184.016, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 00:01:33.446249 133091100694336 metric_logger.py:196] completed step: 1, seconds: 2.675, TFLOP/s/device: 5.080, Tokens/s/device: 765.708, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 00:01:33.874614 133091100694336 metric_logger.py:196] completed step: 2, seconds: 0.038, TFLOP/s/device: 357.547, Tokens/s/device: 53893.319, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0418 00:01:34.021960 133091100694336 metric_logger.py:196] completed step: 3, seconds: 0.428, TFLOP/s/device: 31.714, Tokens/s/device: 4780.278, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0418 00:01:34.317055 133091100694336 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.726, Tokens/s/device: 13373.820, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0418 00:01:34.322843 133091100694336 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.279, Tokens/s/device: 13909.264, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0418 00:01:38.465698    2555 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 00:01:43.283022 132951314380544 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints/0/items/array_metadatas/process_5
I0418 00:01:58.759164 133091100694336 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.952, Tokens/s/device: 6926.407, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0418 00:01:58.906520 133091100694336 metric_logger.py:196] completed step: 7, seconds: 24.289, TFLOP/s/device: 0.559, Tokens/s/device: 84.317, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0418 00:01:59.053896 133091100694336 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.124, Tokens/s/device: 13433.737, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0418 00:01:59.200628 133091100694336 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0418 00:01:59.201395 133091100694336 checkpointing.py:776] Waited 0.0007848739624023438 seconds for step 9 to finish before starting checkpointing.
I0418 00:01:59.203710 133091100694336 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 00:02:11.923563 132954351728384 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 40.221 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 39.2730348110199 s) (per-host)
I0418 00:02:11.923665 132954351728384 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 38.986241s.
I0418 00:02:28.073307 132954351728384 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 55.135866s.
I0418 00:02:28.073520 132951273846528 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 00:02:28.073575 132951273846528 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0418 00:02:28.073624 132951273846528 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0418 00:02:28.075295 132951273846528 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0418 00:02:28.075476 133091100694336 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0418 00:02:28.075618 133091100694336 checkpoint_manager.py:1452] Waiting for previous save to complete took 28.871927 seconds. If this number is high, consider checkpointing less frequently.
I0418 00:02:28.077353 133091100694336 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 9
I0418 00:02:28.079436 133091100694336 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints/9.
I0418 00:02:29.209677 133091100694336 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 00:02:29.209787 133091100694336 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
I0418 00:02:29.242708 133091100694336 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.034252s
I0418 00:02:29.242854 133091100694336 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 40.920 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.037697553634643555 s) (per-host)
I0418 00:02:29.242904 133091100694336 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.037756s (batch_requests_ready=0.001795s, total_serialization_initiated=0.035897s, others=0.000065s)
I0418 00:02:29.242986 133091100694336 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.041855s (all_items=0.000014s, per_item={'items': '0.00001383'}, temp_paths=0.041841)
I0418 00:02:29.243719 133091100694336 event_tracking.py:125] [process=5] [async] Finished blocking save in 1.17 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints/9.
I0418 00:02:29.244065 132951273846528 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 00:22:29.244028
I0418 00:02:29.248216 133091100694336 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 00:02:29.248525 132936930150144 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0418 00:02:29.248706 133091100694336 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776470519.2036605, 'wait_for_prev_duration_secs': 28.8719265460968, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776470548.0773907, 'checkpointer_blocking_duration_secs': 1.1668164730072021, 'get_old_steps_start_time': 1776470549.2442322, 'get_old_steps_duration_secs': 3.1948089599609375e-05, 'checkpoint_manager_blocking_start_time': 1776470519.2016418, 'checkpoint_manager_blocking_duration_secs': 30.047013759613037}
I0418 00:02:29.248832 133091100694336 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0418 00:02:29.248880 133091100694336 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 00:02:39.408370 132951314380544 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260417_235819/linen_xpk_main_20260417_235819_01_base/checkpoints/9/items/array_metadatas/process_5
I0418 00:03:15.271303 132951273846528 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 34.290 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 46.06611132621765 s) (per-host)
I0418 00:03:15.271412 132951273846528 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 46.027234s.
I0418 00:03:27.286582 132951273846528 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 58.042389s.
I0418 00:03:27.286887 132936930150144 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 00:03:27.287009 132936930150144 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0418 00:03:27.287056 132936930150144 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0418 00:03:27.288384 132936930150144 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0418 00:03:27.288558 133091100694336 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0418 00:03:27.288715 133091100694336 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 00:03:27.289704 133091100694336 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.352, Tokens/s/device: 13920.325, 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: Sat Apr 18 00:03:38 UTC 2026
EXIT_CODE=0
XPK Start: Sat Apr 18 06:06:22 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-18 06:07:01.467876: 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)
I0418 06:07:01.648723 135013848348480 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 06:07:10.692544 135013848348480 distributed.py:172] Connecting to JAX distributed service on mt-01-base-l3ydr-slice-job-0-0.mt-01-base-l3ydr:8482
I0418 06:07:17.673807 135013848348480 max_utils.py:284] Jax distributed system initialized!
I0418 06:07:24.899987 135013848348480 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 06:07:24.900101 135013848348480 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 06:07:24.900142 135013848348480 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
I0418 06:07:24.900177 135013848348480 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 06:07:25.962428 135013848348480 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 06:07:25.963013 135013848348480 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 06:07:25.963203 135013848348480 checkpointing.py:688] Setting up checkpoint logger...
I0418 06:07:25.963252 135013848348480 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0418 06:07:25.963295 135013848348480 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 06:07:25.963624 135013848348480 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 0x7acac0f180e0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 06:07:30.632811 135013848348480 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0418 06:07:30.633046 135013848348480 checkpoint_manager.py:708] [process=1][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ac9987616d0>}, handler_registry=None
I0418 06:07:30.633295 135013848348480 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ac9987616d0>` 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`.
I0418 06:07:30.633343 135013848348480 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ac99878f260>` 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`.
I0418 06:07:30.633380 135013848348480 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 0x7ac9987616d0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ac9987616d0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ac99878f260>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ac99878f260>}).
I0418 06:07:30.633682 135013848348480 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 06:07:30.633752 135013848348480 async_checkpointer.py:192] [process=1][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7ab7f44e3740> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 06:07:32.182756 135013848348480 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints
I0418 06:07:32.598801 135013848348480 checkpoint_manager.py:929] [process=1][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_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7ac998761910>
I0418 06:07:32.598972 135013848348480 checkpointing.py:302] Checkpoint manager created!
I0418 06:07:33.526822 135013848348480 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 06:07:33.526922 135013848348480 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 06:07:33.906632 135013848348480 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 06:07:33.906722 135013848348480 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 06:07:33.922939 135013848348480 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 06:07:33.923000 135013848348480 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 06:07:33.946349 135013848348480 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 06:07:33.946412 135013848348480 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 06:07:33.962481 135013848348480 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 06:07:33.962538 135013848348480 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 06:07:33.978687 135013848348480 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 06:07:33.978749 135013848348480 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 06:07:34.003608 135013848348480 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 06:07:34.003682 135013848348480 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 06:07:34.026158 135013848348480 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 06:07:34.026221 135013848348480 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 06:07:34.251627 135013848348480 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 06:07:34.251741 135013848348480 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0418 06:07:35.663004 135013848348480 maxtext_utils.py:1821]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 06:07:35.663145 135013848348480 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)
I0418 06:07:35.663203 135013848348480 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)
I0418 06:07:35.663259 135013848348480 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')
I0418 06:07:35.663312 135013848348480 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)
I0418 06:07:35.663354 135013848348480 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)
I0418 06:07:35.663408 135013848348480 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)
I0418 06:07:35.663460 135013848348480 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')
I0418 06:07:35.663499 135013848348480 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)
I0418 06:07:35.663535 135013848348480 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)
I0418 06:07:35.663583 135013848348480 maxtext_utils.py:1821]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0418 06:07:35.663631 135013848348480 maxtext_utils.py:1821]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0418 06:07:36.153766 135013848348480 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 06:07:36.153860 135013848348480 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 06:07:36.169442 135013848348480 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 06:07:36.169510 135013848348480 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 06:07:46.711241 135013848348480 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.
I0418 06:07:46.712000 135013848348480 metric_logger.py:301] number parameters: 1.104 billion
I0418 06:07:57.672256 135013848348480 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0418 06:07:58.605111 135013848348480 checkpointing.py:798] Waited 0.932793140411377 seconds for step 0 to finish before starting checkpointing.
I0418 06:07:58.607506 135013848348480 checkpoint_manager.py:2009] [process=1][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 06:07:58.609452 135013848348480 checkpoint_manager.py:1512] [process=1] Saving checkpoint at step 0
I0418 06:07:58.610709 135013848348480 event_tracking.py:70] [process=1] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints/0.
I0418 06:07:59.784000 135013848348480 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 06:07:59.785186 135013848348480 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 06:07:59.785241 135013848348480 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
I0418 06:08:00.059258 135013848348480 base_pytree_checkpoint_handler.py:154] [process=1][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.275329s
I0418 06:08:00.059436 135013848348480 base_pytree_checkpoint_handler.py:130] [process=1] /jax/orbax/write/blocking_gbytes_per_sec: 5.496 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.280681848526001 s) (per-host)
I0418 06:08:00.059489 135013848348480 base_pytree_checkpoint_handler.py:768] [process=1][thread=MainThread] Initiated Pytree async_save. Time taken: 0.280745s (batch_requests_ready=0.002176s, total_serialization_initiated=0.278497s, others=0.000072s)
I0418 06:08:00.059578 135013848348480 composite_checkpoint_handler.py:715] [process=1][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.284808s (all_items=0.000018s, per_item={'items': '0.00001812'}, temp_paths=0.284790)
I0418 06:08:00.060423 135013848348480 event_tracking.py:125] [process=1] [async] Finished blocking save in 1.45 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints/0.
I0418 06:08:00.060687 134874867050240 async_checkpointer.py:76] [process=1][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 06:28:00.060662
I0418 06:08:00.070932 135013848348480 checkpoint_manager.py:1560] [process=1][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 06:08:00.071257 134868952413952 async_checkpointer.py:280] [process=1][thread=save_finalize] Waiting for background save thread=async_save.
I0418 06:08:00.071411 135013848348480 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776492478.607489, 'wait_for_prev_duration_secs': 5.745887756347656e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776492478.6094892, 'checkpointer_blocking_duration_secs': 1.4513123035430908, 'get_old_steps_start_time': 1776492480.0608282, 'get_old_steps_duration_secs': 3.814697265625e-05, 'checkpoint_manager_blocking_start_time': 1776492478.605552, 'checkpoint_manager_blocking_duration_secs': 1.4658174514770508}
I0418 06:08:00.071517 135013848348480 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0418 06:08:00.071566 135013848348480 max_utils.py:750] 
Memstats: After params initialized:
I0418 06:08:00.071610 135013848348480 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_2(process=1,(2,0,0,0))
I0418 06:08:00.071643 135013848348480 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_3(process=1,(3,0,0,0))
I0418 06:08:00.071668 135013848348480 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_6(process=1,(2,1,0,0))
I0418 06:08:00.071692 135013848348480 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_7(process=1,(3,1,0,0))
I0418 06:08:00.389017 135013848348480 metric_logger.py:196] completed step: 0, seconds: 10.960, TFLOP/s/device: 1.240, Tokens/s/device: 186.859, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 06:08:00.560717 135013848348480 metric_logger.py:196] completed step: 1, seconds: 2.715, TFLOP/s/device: 5.004, Tokens/s/device: 754.253, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 06:08:01.391482 135013848348480 metric_logger.py:196] completed step: 2, seconds: 0.024, TFLOP/s/device: 555.802, Tokens/s/device: 83776.487, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0418 06:08:01.538583 135013848348480 metric_logger.py:196] completed step: 3, seconds: 0.831, TFLOP/s/device: 16.358, Tokens/s/device: 2465.711, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0418 06:08:01.833603 135013848348480 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.728, Tokens/s/device: 13373.995, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0418 06:08:01.839276 135013848348480 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.397, Tokens/s/device: 13927.046, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0418 06:08:06.471822    2570 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 06:08:09.819602 134871151179520 array_metadata_store.py:203] [process=1][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints/0/items/array_metadatas/process_1
I0418 06:08:25.975521 135013848348480 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.971, Tokens/s/device: 6929.243, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0418 06:08:26.123127 135013848348480 metric_logger.py:196] completed step: 7, seconds: 23.990, TFLOP/s/device: 0.566, Tokens/s/device: 85.371, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0418 06:08:26.270351 135013848348480 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.442, Tokens/s/device: 13481.667, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0418 06:08:26.416955 135013848348480 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0418 06:08:26.417616 135013848348480 checkpointing.py:798] Waited 0.0006804466247558594 seconds for step 9 to finish before starting checkpointing.
I0418 06:08:26.419817 135013848348480 checkpoint_manager.py:2020] [process=1][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 06:08:39.263556 134874867050240 base_pytree_checkpoint_handler.py:130] [process=1] /jax/orbax/write/gbytes_per_sec: 40.005 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 39.48478293418884 s) (per-host)
I0418 06:08:39.263662 134874867050240 async_checkpointer.py:90] [process=1][thread=async_save] 3 Handler Commit operations completed. Time taken: 39.202894s.
I0418 06:08:50.959869 134874867050240 async_checkpointer.py:160] [process=1][thread=async_save] Background save thread done. Time taken: 50.899084s.
I0418 06:08:50.960106 134868952413952 async_checkpointer.py:288] [process=1][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 06:08:50.960169 134868952413952 async_checkpointer.py:298] [process=1][thread=save_finalize] No errors found in background save thread=async_save.
I0418 06:08:50.960221 134868952413952 checkpoint_manager.py:2137] [process=1][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0418 06:08:50.962759 134868952413952 checkpoint_manager.py:2146] [process=1][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0418 06:08:50.962936 135013848348480 checkpoint_manager.py:2032] [process=1][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0418 06:08:50.963076 135013848348480 checkpoint_manager.py:1452] Waiting for previous save to complete took 24.543256 seconds. If this number is high, consider checkpointing less frequently.
I0418 06:08:50.965245 135013848348480 checkpoint_manager.py:1512] [process=1] Saving checkpoint at step 9
I0418 06:08:50.967220 135013848348480 event_tracking.py:70] [process=1] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints/9.
I0418 06:08:51.675648 135013848348480 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 06:08:51.675734 135013848348480 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
I0418 06:08:51.706660 135013848348480 base_pytree_checkpoint_handler.py:154] [process=1][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.032192s
I0418 06:08:51.706833 135013848348480 base_pytree_checkpoint_handler.py:130] [process=1] /jax/orbax/write/blocking_gbytes_per_sec: 43.320 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.035608768463134766 s) (per-host)
I0418 06:08:51.706895 135013848348480 base_pytree_checkpoint_handler.py:768] [process=1][thread=MainThread] Initiated Pytree async_save. Time taken: 0.035687s (batch_requests_ready=0.001750s, total_serialization_initiated=0.033854s, others=0.000084s)
I0418 06:08:51.706983 135013848348480 composite_checkpoint_handler.py:715] [process=1][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.039897s (all_items=0.000016s, per_item={'items': '0.00001621'}, temp_paths=0.039881)
I0418 06:08:51.708936 135013848348480 event_tracking.py:125] [process=1] [async] Finished blocking save in 0.74 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints/9.
I0418 06:08:51.709291 134868952413952 async_checkpointer.py:76] [process=1][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 06:28:51.709254
I0418 06:08:51.718293 135013848348480 checkpoint_manager.py:1560] [process=1][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 06:08:51.718569 134859649427200 async_checkpointer.py:280] [process=1][thread=save_finalize] Waiting for background save thread=async_save.
I0418 06:08:51.718728 135013848348480 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776492506.4197798, 'wait_for_prev_duration_secs': 24.543256044387817, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776492530.9652853, 'checkpointer_blocking_duration_secs': 0.7441704273223877, 'get_old_steps_start_time': 1776492531.7094805, 'get_old_steps_duration_secs': 3.075599670410156e-05, 'checkpoint_manager_blocking_start_time': 1776492506.4178405, 'checkpoint_manager_blocking_duration_secs': 25.300848722457886}
I0418 06:08:51.718848 135013848348480 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0418 06:08:51.718896 135013848348480 checkpoint_manager.py:2020] [process=1][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 06:09:00.731306 134871151179520 array_metadata_store.py:203] [process=1][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141/linen_xpk_feat_nnx_trainstate_and_training_loop_20260418_060141_01_base/checkpoints/9/items/array_metadatas/process_1
I0418 06:09:35.852487 134868952413952 base_pytree_checkpoint_handler.py:130] [process=1] /jax/orbax/write/gbytes_per_sec: 35.753 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 44.18122935295105 s) (per-host)
I0418 06:09:35.852611 134868952413952 async_checkpointer.py:90] [process=1][thread=async_save] 3 Handler Commit operations completed. Time taken: 44.143202s.
I0418 06:09:47.545135 134868952413952 async_checkpointer.py:160] [process=1][thread=async_save] Background save thread done. Time taken: 55.835711s.
I0418 06:09:47.545374 134859649427200 async_checkpointer.py:288] [process=1][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 06:09:47.545430 134859649427200 async_checkpointer.py:298] [process=1][thread=save_finalize] No errors found in background save thread=async_save.
I0418 06:09:47.545476 134859649427200 checkpoint_manager.py:2137] [process=1][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0418 06:09:47.547950 134859649427200 checkpoint_manager.py:2146] [process=1][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0418 06:09:47.548141 135013848348480 checkpoint_manager.py:2032] [process=1][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0418 06:09:47.548292 135013848348480 checkpoint_manager.py:2009] [process=1][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 06:09:47.549275 135013848348480 metric_logger.py:196] completed step: 9, seconds: 0.148, TFLOP/s/device: 92.043, Tokens/s/device: 13873.741, 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: Sat Apr 18 06:09:57 UTC 2026
EXIT_CODE=0