MaxView

‹ 10_shardy_falseCase: 10_shardy_true11_optimizer_offload_false ›

Metrics: Linen vs NNX  ·  feat/nnx-post-train-fixes

MetricLinen  2fbc8c2f1NNX  2fbc8c2f1Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17908.1750-0.004
TFLOP/s90.82791.848+1.021
Tok/s13690.513844.3+153.812
Avg s/step2.7192.780+0.061
Memory %1.381.380
JAX0.9.20.9.2

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

Linen  ·  2fbc8c2f1  ·  feat_nnx_post_train_fixes_20260417_023710  ·  full log
XPK Start: Fri Apr 17 03:22:24 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-17 03:22:48.447153: 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)
I0417 03:22:48.979272 138489075631936 max_utils.py:273] Attempting to initialize the jax distributed system...
I0417 03:22:58.019321 138489075631936 distributed.py:149] Starting JAX distributed service on [::]:8482
I0417 03:22:58.023874 138489075631936 distributed.py:172] Connecting to JAX distributed service on mt-10-shardy-true-rd5fn-slice-job-0-0.mt-10-shardy-true-rd5fn:8482
I0417 03:22:59.032659 138489075631936 max_utils.py:284] Jax distributed system initialized!
I0417 03:23:05.408089 138489075631936 max_utils.py:800] System Information: Jax Version: 0.9.2
I0417 03:23:05.408190 138489075631936 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0417 03:23:05.408229 138489075631936 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
I0417 03:23:05.408263 138489075631936 train_utils.py:377] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0417 03:23:06.072031 138489075631936 maxtext_utils.py:1687] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0417 03:23:06.072606 138489075631936 maxtext_utils.py:1687] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0417 03:23:06.072783 138489075631936 checkpointing.py:688] Setting up checkpoint logger...
I0417 03:23:06.072833 138489075631936 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0417 03:23:06.072896 138489075631936 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0417 03:23:06.073232 138489075631936 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 0x7df3c864c4a0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0417 03:23:09.264362 138489075631936 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0417 03:23:09.264593 138489075631936 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 0x7ddf9c7a5970>}, handler_registry=None
I0417 03:23:09.264831 138489075631936 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ddf9c7a5970>` 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`.
I0417 03:23:09.264892 138489075631936 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ddfb41fcbf0>` 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`.
I0417 03:23:09.264928 138489075631936 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 0x7ddf9c7a5970>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ddf9c7a5970>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ddfb41fcbf0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ddfb41fcbf0>}).
I0417 03:23:09.265240 138489075631936 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0417 03:23:09.265308 138489075631936 async_checkpointer.py:192] [process=0][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7ddf9c3ec680> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0417 03:23:11.407537 138489075631936 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints
I0417 03:23:11.431183 138489075631936 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/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7ddf9c646450>
I0417 03:23:11.431318 138489075631936 checkpointing.py:302] Checkpoint manager created!
I0417 03:23:12.346746 138489075631936 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0417 03:23:12.346882 138489075631936 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 03:23:12.729696 138489075631936 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0417 03:23:12.729789 138489075631936 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 03:23:12.746370 138489075631936 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0417 03:23:12.746433 138489075631936 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 03:23:12.770319 138489075631936 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0417 03:23:12.770396 138489075631936 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 03:23:12.787196 138489075631936 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0417 03:23:12.787262 138489075631936 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 03:23:12.803948 138489075631936 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0417 03:23:12.804012 138489075631936 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 03:23:12.829679 138489075631936 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0417 03:23:12.829759 138489075631936 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 03:23:12.850567 138489075631936 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0417 03:23:12.850637 138489075631936 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0417 03:23:13.064759 138489075631936 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0417 03:23:13.064888 138489075631936 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0417 03:23:14.482206 138489075631936 maxtext_utils.py:1796]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0417 03:23:14.482358 138489075631936 maxtext_utils.py:1796]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0417 03:23:14.482434 138489075631936 maxtext_utils.py:1796]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0417 03:23:14.482524 138489075631936 maxtext_utils.py:1796]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0417 03:23:14.482608 138489075631936 maxtext_utils.py:1796]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0417 03:23:14.482670 138489075631936 maxtext_utils.py:1796]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0417 03:23:14.482749 138489075631936 maxtext_utils.py:1796]  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)
I0417 03:23:14.482827 138489075631936 maxtext_utils.py:1796]  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')
I0417 03:23:14.482910 138489075631936 maxtext_utils.py:1796]  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)
I0417 03:23:14.482973 138489075631936 maxtext_utils.py:1796]  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)
I0417 03:23:14.483051 138489075631936 maxtext_utils.py:1796]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0417 03:23:14.483113 138489075631936 maxtext_utils.py:1796]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')

    Physical:  (None, 'fsdp')
I0417 03:23:14.976217 138489075631936 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0417 03:23:14.976303 138489075631936 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0417 03:23:14.992165 138489075631936 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0417 03:23:14.992226 138489075631936 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0417 03:23:25.889453 138489075631936 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.
I0417 03:23:25.896978 138489075631936 metric_logger.py:289] number parameters: 1.104 billion
I0417 03:23:37.604424 138489075631936 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0417 03:23:37.757522 138489075631936 checkpointing.py:798] Waited 0.15308022499084473 seconds for step 0 to finish before starting checkpointing.
I0417 03:23:37.760142 138489075631936 checkpoint_manager.py:2009] [process=0][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0417 03:23:37.761948 138489075631936 checkpoint_manager.py:1512] [process=0] Saving checkpoint at step 0
I0417 03:23:37.763512 138489075631936 event_tracking.py:70] [process=0] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0.
I0417 03:23:38.095875 138489075631936 signaling_client.py:364] Using JaxDistributedSignalingClient
I0417 03:23:38.109964 138489075631936 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0417 03:23:38.110032 138489075631936 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
I0417 03:23:38.361644 138360255170304 atomicity.py:140] Creating tmp directory gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0
I0417 03:23:38.376335 138489075631936 base_pytree_checkpoint_handler.py:154] [process=0][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.267162s
I0417 03:23:38.377169 138489075631936 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/blocking_gbytes_per_sec: 5.640 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2735011577606201 s) (per-host)
I0417 03:23:38.377247 138489075631936 base_pytree_checkpoint_handler.py:768] [process=0][thread=MainThread] Initiated Pytree async_save. Time taken: 0.273605s (batch_requests_ready=0.002219s, total_serialization_initiated=0.270629s, others=0.000757s)
I0417 03:23:38.377327 138489075631936 composite_checkpoint_handler.py:715] [process=0][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.277529s (all_items=0.000017s, per_item={'items': '0.00001740'}, temp_paths=0.277512)
I0417 03:23:38.378104 138489075631936 event_tracking.py:125] [process=0] [async] Finished blocking save in 0.62 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0.
I0417 03:23:38.378434 138360263563008 async_checkpointer.py:76] [process=0][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-17 03:43:38.378396
I0417 03:23:38.401337 138489075631936 checkpoint_manager.py:1560] [process=0][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0417 03:23:38.401617 138357568952064 async_checkpointer.py:280] [process=0][thread=save_finalize] Waiting for background save thread=async_save.
I0417 03:23:38.401776 138489075631936 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776396217.7601237, 'wait_for_prev_duration_secs': 6.175041198730469e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776396217.7619877, 'checkpointer_blocking_duration_secs': 0.6165969371795654, 'get_old_steps_start_time': 1776396218.378609, 'get_old_steps_duration_secs': 2.9325485229492188e-05, 'checkpoint_manager_blocking_start_time': 1776396217.758062, 'checkpoint_manager_blocking_duration_secs': 0.6436741352081299}
I0417 03:23:38.401902 138489075631936 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0417 03:23:38.401954 138489075631936 max_utils.py:750] 
Memstats: After params initialized:
I0417 03:23:38.402007 138489075631936 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_0(process=0,(0,0,0,0))
I0417 03:23:38.402039 138489075631936 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_1(process=0,(1,0,0,0))
I0417 03:23:38.402065 138489075631936 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_4(process=0,(0,1,0,0))
I0417 03:23:38.402088 138489075631936 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_5(process=0,(1,1,0,0))
I0417 03:23:38.730301 138489075631936 metric_logger.py:185] completed step: 0, seconds: 11.409, TFLOP/s/device: 1.191, Tokens/s/device: 179.511, total_weights: 65536, loss: 10.874
I0417 03:23:38.733388 138489075631936 metric_logger.py:269] To see full metrics 'tensorboard --logdir=gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/tensorboard/'
I0417 03:23:39.151620 138489075631936 metric_logger.py:185] completed step: 1, seconds: 1.124, TFLOP/s/device: 12.084, Tokens/s/device: 1821.464, total_weights: 65536, loss: 10.874
I0417 03:23:39.297563 138489075631936 metric_logger.py:185] completed step: 2, seconds: 0.422, TFLOP/s/device: 32.194, Tokens/s/device: 4852.621, total_weights: 65536, loss: 10.262
I0417 03:23:39.444999 138489075631936 metric_logger.py:185] completed step: 3, seconds: 0.009, TFLOP/s/device: 1560.304, Tokens/s/device: 235186.036, total_weights: 65536, loss: 9.734
I0417 03:23:40.570709 138359745799936 atomicity.py:140] Creating tmp directory gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/items
I0417 03:23:40.725126 138355996096256 checkpoint.py:188] Wrote Metadata={'item_handlers': None, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776396220303119716, 'commit_timestamp_nsecs': None, 'custom_metadata': {}}, json={"item_handlers": null, "metrics": {}, "performance_metrics": {}, "init_timestamp_nsecs": 1776396220303119716, "commit_timestamp_nsecs": null, "custom_metadata": {}} to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/_CHECKPOINT_METADATA
I0417 03:23:42.185090    2828 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0417 03:23:44.111983 138358628898560 array_metadata_store.py:203] [process=0][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/items/array_metadatas/process_0
I0417 03:24:01.768308 138489075631936 metric_logger.py:185] completed step: 4, seconds: 0.147, TFLOP/s/device: 92.518, Tokens/s/device: 13945.254, total_weights: 65536, loss: 9.277
I0417 03:24:01.776471 138489075631936 metric_logger.py:185] completed step: 5, seconds: 0.148, TFLOP/s/device: 92.093, Tokens/s/device: 13881.264, total_weights: 65536, loss: 8.892
I0417 03:24:01.922398 138489075631936 metric_logger.py:185] completed step: 6, seconds: 22.322, TFLOP/s/device: 0.609, Tokens/s/device: 91.749, total_weights: 65536, loss: 8.592
I0417 03:24:02.070392 138489075631936 metric_logger.py:185] completed step: 7, seconds: 0.006, TFLOP/s/device: 2239.883, Tokens/s/device: 337619.519, total_weights: 65536, loss: 8.384
I0417 03:24:02.217249 138489075631936 metric_logger.py:185] completed step: 8, seconds: 0.147, TFLOP/s/device: 92.384, Tokens/s/device: 13925.058, total_weights: 65536, loss: 8.255
I0417 03:24:02.364281 138489075631936 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0417 03:24:02.365002 138489075631936 checkpointing.py:798] Waited 0.0007424354553222656 seconds for step 9 to finish before starting checkpointing.
I0417 03:24:02.368196 138489075631936 checkpoint_manager.py:2020] [process=0][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0417 03:24:18.733796 138357577344768 base_pytree_checkpoint_handler.py:1282] [process=0][thread=write_metadata_after_commits] Commit + Array metadata written. Time taken: 36.557017s (commit=35.290038s, array_metadata_write=1.266979s)
I0417 03:24:18.736015 138360263563008 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/gbytes_per_sec: 38.875 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 40.632333755493164 s) (per-host)
I0417 03:24:18.736125 138360263563008 async_checkpointer.py:90] [process=0][thread=async_save] 3 Handler Commit operations completed. Time taken: 40.357582s.
I0417 03:24:19.482429 138360263563008 checkpoint.py:228] Read Metadata={'item_handlers': None, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776396220303119716, 'commit_timestamp_nsecs': None, 'custom_metadata': {}} from gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/_CHECKPOINT_METADATA
I0417 03:24:20.917174 138360263563008 ocdbt_utils.py:49] Param validation support for Zarr3 will be added later (b/362328389).
I0417 03:24:20.967933 138360263563008 array_metadata_store.py:411] [process=0][thread=async_save] Validated ArrayMetadata from all 8 hosts. Time taken: 0.000263s.
I0417 03:24:21.091167 138355996096256 checkpoint.py:247] Updated Metadata={'item_handlers': {'items': 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler'}, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776396220303119716, 'commit_timestamp_nsecs': None, 'custom_metadata': {}} to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/_CHECKPOINT_METADATA
I0417 03:24:21.549185 138360263563008 base_pytree_checkpoint_handler.py:1406] [process=0][thread=async_save] Pytree save finalize (merge_ocdbt + ArrayMetadata validation) completed. Time taken: 1.509131s. use_zarr3=True, enable_post_merge_validation=True, directory=gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/items
I0417 03:24:21.551388 138360263563008 atomicity.py:666] Finalizing gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/items
I0417 03:24:22.503175 138360263563008 atomicity.py:666] Finalizing gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0
I0417 03:24:23.929714 138360263563008 atomicity.py:847] [process=0][thread=async_save] Finished saving checkpoint (finalized tmp dir) to `gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0`.
I0417 03:24:23.930574 138360263563008 event_tracking.py:138] [process=0] [async] Finished save (blocking + background) in 46.17 seconds @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0
I0417 03:24:23.931883 138360263563008 async_checkpointer.py:160] [process=0][thread=async_save] Background save thread done. Time taken: 45.553336s.
I0417 03:24:23.932077 138357568952064 async_checkpointer.py:288] [process=0][thread=save_finalize] Done with waiting for background save thread=async_save.
I0417 03:24:23.932203 138357568952064 async_checkpointer.py:298] [process=0][thread=save_finalize] No errors found in background save thread=async_save.
I0417 03:24:23.932264 138357568952064 checkpoint_manager.py:2137] [process=0][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0417 03:24:23.935088 138357568952064 checkpoint_manager.py:2146] [process=0][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0417 03:24:23.935208 138489075631936 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.
W0417 03:24:23.935288 138489075631936 checkpoint_manager.py:1452] Waiting for previous save to complete took 21.567098 seconds. If this number is high, consider checkpointing less frequently.
I0417 03:24:23.937307 138489075631936 checkpoint_manager.py:1512] [process=0] Saving checkpoint at step 9
I0417 03:24:23.939280 138489075631936 event_tracking.py:70] [process=0] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9.
I0417 03:24:24.654269 138489075631936 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0417 03:24:24.654357 138489075631936 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
I0417 03:24:24.681657 138489075631936 base_pytree_checkpoint_handler.py:154] [process=0][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.028163s
I0417 03:24:24.682472 138489075631936 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/blocking_gbytes_per_sec: 46.496 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.033176422119140625 s) (per-host)
I0417 03:24:24.682544 138489075631936 base_pytree_checkpoint_handler.py:768] [process=0][thread=MainThread] Initiated Pytree async_save. Time taken: 0.033265s (batch_requests_ready=0.001994s, total_serialization_initiated=0.030514s, others=0.000757s)
I0417 03:24:24.682621 138489075631936 composite_checkpoint_handler.py:715] [process=0][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.037353s (all_items=0.000016s, per_item={'items': '0.00001574'}, temp_paths=0.037337)
I0417 03:24:24.683325 138489075631936 event_tracking.py:125] [process=0] [async] Finished blocking save in 0.75 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9.
I0417 03:24:24.683611 138357568952064 async_checkpointer.py:76] [process=0][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-17 03:44:24.683579
I0417 03:24:24.690648 138489075631936 checkpoint_manager.py:1560] [process=0][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0417 03:24:24.690897 138359183750912 async_checkpointer.py:280] [process=0][thread=save_finalize] Waiting for background save thread=async_save.
I0417 03:24:24.691032 138489075631936 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776396242.3681648, 'wait_for_prev_duration_secs': 21.567097663879395, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776396263.9373467, 'checkpointer_blocking_duration_secs': 0.7463967800140381, 'get_old_steps_start_time': 1776396264.6837666, 'get_old_steps_duration_secs': 3.0994415283203125e-05, 'checkpoint_manager_blocking_start_time': 1776396242.365243, 'checkpoint_manager_blocking_duration_secs': 22.325754404067993}
I0417 03:24:24.691142 138489075631936 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0417 03:24:24.691189 138489075631936 checkpoint_manager.py:2020] [process=0][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0417 03:24:24.904758 138360263563008 atomicity.py:140] Creating tmp directory gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9
I0417 03:24:26.638575 138337826346752 atomicity.py:140] Creating tmp directory gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9/items
I0417 03:24:29.947089 138359200536320 array_metadata_store.py:203] [process=0][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9/items/array_metadatas/process_0
I0417 03:25:08.217986 138359192143616 base_pytree_checkpoint_handler.py:1282] [process=0][thread=write_metadata_after_commits] Commit + Array metadata written. Time taken: 40.465410s (commit=39.144559s, array_metadata_write=1.320851s)
I0417 03:25:08.219061 138357568952064 base_pytree_checkpoint_handler.py:130] [process=0] /jax/orbax/write/gbytes_per_sec: 36.254 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.569735527038574 s) (per-host)
I0417 03:25:08.219181 138357568952064 async_checkpointer.py:90] [process=0][thread=async_save] 3 Handler Commit operations completed. Time taken: 43.535461s.
I0417 03:25:10.429720 138357568952064 ocdbt_utils.py:49] Param validation support for Zarr3 will be added later (b/362328389).
I0417 03:25:10.532435 138357568952064 array_metadata_store.py:411] [process=0][thread=async_save] Validated ArrayMetadata from all 8 hosts. Time taken: 0.000231s.
I0417 03:25:11.074086 138357568952064 base_pytree_checkpoint_handler.py:1406] [process=0][thread=async_save] Pytree save finalize (merge_ocdbt + ArrayMetadata validation) completed. Time taken: 1.543645s. use_zarr3=True, enable_post_merge_validation=True, directory=gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9/items
I0417 03:25:11.075685 138357568952064 atomicity.py:666] Finalizing gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9/items
I0417 03:25:11.639084 138357568952064 atomicity.py:666] Finalizing gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9
I0417 03:25:13.076242 138357568952064 atomicity.py:847] [process=0][thread=async_save] Finished saving checkpoint (finalized tmp dir) to `gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9`.
I0417 03:25:13.077067 138357568952064 event_tracking.py:138] [process=0] [async] Finished save (blocking + background) in 49.14 seconds @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/linen_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9
I0417 03:25:13.078511 138357568952064 async_checkpointer.py:160] [process=0][thread=async_save] Background save thread done. Time taken: 48.394788s.
I0417 03:25:13.078724 138359183750912 async_checkpointer.py:288] [process=0][thread=save_finalize] Done with waiting for background save thread=async_save.
I0417 03:25:13.078854 138359183750912 async_checkpointer.py:298] [process=0][thread=save_finalize] No errors found in background save thread=async_save.
I0417 03:25:13.078926 138359183750912 checkpoint_manager.py:2137] [process=0][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0417 03:25:13.080741 138359183750912 checkpoint_manager.py:2146] [process=0][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0417 03:25:13.080918 138489075631936 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.
I0417 03:25:13.081058 138489075631936 checkpoint_manager.py:2009] [process=0][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0417 03:25:13.081690 138489075631936 metric_logger.py:185] completed step: 9, seconds: 0.150, TFLOP/s/device: 90.827, Tokens/s/device: 13690.480, total_weights: 65536, loss: 8.179
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 17 03:25:25 UTC 2026
EXIT_CODE=0
NNX  ·  2fbc8c2f1  ·  feat_nnx_post_train_fixes_20260417_023710  ·  full log
XPK Start: Fri Apr 17 05:22:15 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-17 05:22:39.358365: 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)
I0417 05:22:39.537425 139978037327680 max_utils.py:273] Attempting to initialize the jax distributed system...
I0417 05:22:48.579002 139978037327680 distributed.py:149] Starting JAX distributed service on [::]:8482
I0417 05:22:48.581350 139978037327680 distributed.py:172] Connecting to JAX distributed service on mt-10-shardy-true-r5mlv-slice-job-0-0.mt-10-shardy-true-r5mlv:8482
I0417 05:22:49.677062 139978037327680 max_utils.py:284] Jax distributed system initialized!
I0417 05:22:54.751051 139978037327680 max_utils.py:800] System Information: Jax Version: 0.9.2
I0417 05:22:54.751156 139978037327680 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0417 05:22:54.751196 139978037327680 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
I0417 05:22:54.751231 139978037327680 train_utils.py:377] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0417 05:22:55.428550 139978037327680 maxtext_utils.py:1687] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0417 05:22:55.542798 139978037327680 checkpointing.py:688] Setting up checkpoint logger...
I0417 05:22:55.542925 139978037327680 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0417 05:22:55.542970 139978037327680 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0417 05:22:55.543162 139978037327680 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 0x7f4e75650b00>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0417 05:22:58.441092 139978037327680 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0417 05:22:58.441327 139978037327680 checkpoint_manager.py:708] [process=6][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f3af828b380>}, handler_registry=None
I0417 05:22:58.441565 139978037327680 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f3af828b380>` 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`.
I0417 05:22:58.441612 139978037327680 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f3ae02a0e90>` 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`.
I0417 05:22:58.441647 139978037327680 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 0x7f3af828b380>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f3af828b380>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f3ae02a0e90>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f3ae02a0e90>}).
I0417 05:22:58.442006 139978037327680 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0417 05:22:58.442076 139978037327680 async_checkpointer.py:192] [process=6][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7f3ab840a020> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0417 05:22:59.985069 139978037327680 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints
I0417 05:23:00.003114 139978037327680 checkpoint_manager.py:929] [process=6][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_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7f3ae0740650>
I0417 05:23:00.003235 139978037327680 checkpointing.py:302] Checkpoint manager created!
I0417 05:23:00.988093 139978037327680 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0417 05:23:00.988208 139978037327680 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0417 05:23:02.377187 139978037327680 maxtext_utils.py:1805]  decoder/decoder_norm/scale/value
    Shape:     float32[2048]
    Physical:  (None,)
I0417 05:23:02.377298 139978037327680 maxtext_utils.py:1805]  decoder/layers/mlp/wi_0/kernel/value
    Shape:     float32[2048,16,7168]
    Physical:  ('fsdp', None, None)
I0417 05:23:02.377348 139978037327680 maxtext_utils.py:1805]  decoder/layers/mlp/wi_1/kernel/value
    Shape:     float32[2048,16,7168]
    Physical:  ('fsdp', None, None)
I0417 05:23:02.377389 139978037327680 maxtext_utils.py:1805]  decoder/layers/mlp/wo/kernel/value
    Shape:     float32[7168,16,2048]
    Physical:  (None, None, 'fsdp')
I0417 05:23:02.377425 139978037327680 maxtext_utils.py:1805]  decoder/layers/post_self_attention_layer_norm/scale/value
    Shape:     float32[2048,16]
    Physical:  (None, None)
I0417 05:23:02.377458 139978037327680 maxtext_utils.py:1805]  decoder/layers/pre_self_attention_layer_norm/scale/value
    Shape:     float32[2048,16]
    Physical:  (None, None)
I0417 05:23:02.377494 139978037327680 maxtext_utils.py:1805]  decoder/layers/self_attention/key/kernel/value
    Shape:     float32[2048,16,16,128]
    Physical:  ('fsdp', None, None, None)
I0417 05:23:02.377534 139978037327680 maxtext_utils.py:1805]  decoder/layers/self_attention/out/kernel/value
    Shape:     float32[16,16,128,2048]
    Physical:  (None, None, None, 'fsdp')
I0417 05:23:02.377568 139978037327680 maxtext_utils.py:1805]  decoder/layers/self_attention/query/kernel/value
    Shape:     float32[2048,16,16,128]
    Physical:  ('fsdp', None, None, None)
I0417 05:23:02.377601 139978037327680 maxtext_utils.py:1805]  decoder/layers/self_attention/value/kernel/value
    Shape:     float32[2048,16,16,128]
    Physical:  ('fsdp', None, None, None)
I0417 05:23:02.377634 139978037327680 maxtext_utils.py:1805]  decoder/logits_dense/kernel/value
    Shape:     float32[2048,32000]
    Physical:  ('fsdp', None)

I0417 05:23:02.377668 139978037327680 maxtext_utils.py:1805]  token_embedder/embedding/value
    Shape:     float32[32000,2048]
    Physical:  (None, 'fsdp')
I0417 05:23:02.777379 139978037327680 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0417 05:23:02.777473 139978037327680 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 05:23:02.782727 139978037327680 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0417 05:23:02.782781 139978037327680 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 05:23:02.799068 139978037327680 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0417 05:23:02.799132 139978037327680 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 05:23:02.814944 139978037327680 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0417 05:23:02.815003 139978037327680 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0417 05:23:02.838994 139978037327680 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0417 05:23:02.839061 139978037327680 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 05:23:02.854812 139978037327680 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0417 05:23:02.854896 139978037327680 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 05:23:02.870522 139978037327680 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0417 05:23:02.870592 139978037327680 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 05:23:02.900268 139978037327680 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0417 05:23:02.900341 139978037327680 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0417 05:23:02.920173 139978037327680 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0417 05:23:02.920237 139978037327680 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0417 05:23:13.908403 139978037327680 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.
I0417 05:23:13.910762 139978037327680 metric_logger.py:289] number parameters: 1.104 billion
I0417 05:23:25.090780 139978037327680 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0417 05:23:25.242746 139978037327680 checkpointing.py:798] Waited 0.151961088180542 seconds for step 0 to finish before starting checkpointing.
I0417 05:23:25.245425 139978037327680 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0417 05:23:25.247203 139978037327680 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 0
I0417 05:23:25.248524 139978037327680 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0.
I0417 05:23:25.964572 139978037327680 signaling_client.py:364] Using JaxDistributedSignalingClient
I0417 05:23:25.965505 139978037327680 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0417 05:23:25.965561 139978037327680 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
I0417 05:23:26.246047 139978037327680 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.282255s
I0417 05:23:26.246222 139978037327680 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 5.292 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.29151105880737305 s) (per-host)
I0417 05:23:26.246276 139978037327680 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.291576s (batch_requests_ready=0.003053s, total_serialization_initiated=0.288450s, others=0.000073s)
I0417 05:23:26.246376 139978037327680 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.295722s (all_items=0.000018s, per_item={'items': '0.00001788'}, temp_paths=0.295704)
I0417 05:23:26.247215 139978037327680 event_tracking.py:125] [process=6] [async] Finished blocking save in 1.00 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0.
I0417 05:23:26.247499 139851108366080 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-17 05:43:26.247475
I0417 05:23:26.249492 139978037327680 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0417 05:23:26.249761 139850032342784 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0417 05:23:26.249910 139978037327680 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776403405.2454057, 'wait_for_prev_duration_secs': 6.222724914550781e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776403405.2472403, 'checkpointer_blocking_duration_secs': 1.0003838539123535, 'get_old_steps_start_time': 1776403406.2476504, 'get_old_steps_duration_secs': 3.170967102050781e-05, 'checkpoint_manager_blocking_start_time': 1776403405.2431567, 'checkpoint_manager_blocking_duration_secs': 1.0067155361175537}
I0417 05:23:26.250082 139978037327680 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0417 05:23:26.250150 139978037327680 max_utils.py:750] 
Memstats: After params initialized:
I0417 05:23:26.250199 139978037327680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_24(process=6,(0,6,0,0))
I0417 05:23:26.250231 139978037327680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_25(process=6,(1,6,0,0))
I0417 05:23:26.250258 139978037327680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_28(process=6,(0,7,0,0))
I0417 05:23:26.250282 139978037327680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_29(process=6,(1,7,0,0))
I0417 05:23:26.561724 139978037327680 metric_logger.py:185] completed step: 0, seconds: 11.179, TFLOP/s/device: 1.215, Tokens/s/device: 183.202, total_weights: 65536, loss: 10.874
I0417 05:23:26.729706 139978037327680 metric_logger.py:185] completed step: 1, seconds: 1.469, TFLOP/s/device: 9.247, Tokens/s/device: 1393.805, total_weights: 65536, loss: 10.874
I0417 05:23:27.172984 139978037327680 metric_logger.py:185] completed step: 2, seconds: 0.022, TFLOP/s/device: 618.468, Tokens/s/device: 93222.268, total_weights: 65536, loss: 10.262
I0417 05:23:27.320438 139978037327680 metric_logger.py:185] completed step: 3, seconds: 0.433, TFLOP/s/device: 31.376, Tokens/s/device: 4729.312, total_weights: 65536, loss: 9.732
I0417 05:23:27.615897 139978037327680 metric_logger.py:185] completed step: 4, seconds: 0.164, TFLOP/s/device: 82.824, Tokens/s/device: 12484.075, total_weights: 65536, loss: 9.274
I0417 05:23:27.623187 139978037327680 metric_logger.py:185] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.353, Tokens/s/device: 13920.420, total_weights: 65536, loss: 8.888
I0417 05:23:34.982508    2763 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0417 05:23:37.862794 139850040735488 array_metadata_store.py:203] [process=6][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/0/items/array_metadatas/process_6
I0417 05:23:49.953886 139978037327680 metric_logger.py:185] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.908, Tokens/s/device: 6919.807, total_weights: 65536, loss: 8.589
I0417 05:23:50.101641 139978037327680 metric_logger.py:185] completed step: 7, seconds: 22.184, TFLOP/s/device: 0.612, Tokens/s/device: 92.317, total_weights: 65536, loss: 8.380
I0417 05:23:50.248659 139978037327680 metric_logger.py:185] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.764, Tokens/s/device: 13379.500, total_weights: 65536, loss: 8.251
I0417 05:23:50.397094 139978037327680 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0417 05:23:50.397753 139978037327680 checkpointing.py:798] Waited 0.0006718635559082031 seconds for step 9 to finish before starting checkpointing.
I0417 05:23:50.399899 139978037327680 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0417 05:24:08.071698 139851108366080 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 37.505 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.11695313453674 s) (per-host)
I0417 05:24:08.071808 139851108366080 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.824222s.
I0417 05:24:17.690465 139851108366080 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 51.442862s.
I0417 05:24:17.690754 139850032342784 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0417 05:24:17.690895 139850032342784 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0417 05:24:17.690948 139850032342784 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0417 05:24:17.692733 139850032342784 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0417 05:24:17.692994 139978037327680 checkpoint_manager.py:2032] [process=6][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0417 05:24:17.693137 139978037327680 checkpoint_manager.py:1452] Waiting for previous save to complete took 27.293237 seconds. If this number is high, consider checkpointing less frequently.
I0417 05:24:17.694921 139978037327680 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 9
I0417 05:24:17.697139 139978037327680 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9.
I0417 05:24:18.832020 139978037327680 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0417 05:24:18.832113 139978037327680 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
I0417 05:24:18.874683 139978037327680 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.044231s
I0417 05:24:18.874873 139978037327680 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 30.030 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.05136823654174805 s) (per-host)
I0417 05:24:18.874930 139978037327680 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.051436s (batch_requests_ready=0.002718s, total_serialization_initiated=0.048642s, others=0.000076s)
I0417 05:24:18.875028 139978037327680 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.055521s (all_items=0.000015s, per_item={'items': '0.00001526'}, temp_paths=0.055505)
I0417 05:24:18.875732 139978037327680 event_tracking.py:125] [process=6] [async] Finished blocking save in 1.18 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9.
I0417 05:24:18.876114 139850032342784 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-17 05:44:18.876075
I0417 05:24:18.878109 139978037327680 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0417 05:24:18.878423 139850040735488 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0417 05:24:18.878561 139978037327680 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776403430.3998694, 'wait_for_prev_duration_secs': 27.29323697090149, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776403457.694959, 'checkpointer_blocking_duration_secs': 1.1813151836395264, 'get_old_steps_start_time': 1776403458.876297, 'get_old_steps_duration_secs': 3.0279159545898438e-05, 'checkpoint_manager_blocking_start_time': 1776403430.3979845, 'checkpoint_manager_blocking_duration_secs': 28.4805428981781}
I0417 05:24:18.878724 139978037327680 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0417 05:24:18.878769 139978037327680 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0417 05:24:24.094393 139824858126080 array_metadata_store.py:203] [process=6][thread=array_type_handler] Wrote 69 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260417_023710/nnx_xpk_feat_nnx_post_train_fixes_20260417_023710_10_shardy_true/checkpoints/9/items/array_metadatas/process_6
I0417 05:24:59.659062 139850032342784 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 38.682 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 40.83552122116089 s) (per-host)
I0417 05:24:59.659192 139850032342784 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 40.782949s.
I0417 05:25:08.908647 139850032342784 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 50.032378s.
I0417 05:25:08.908977 139850040735488 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0417 05:25:08.909093 139850040735488 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0417 05:25:08.909141 139850040735488 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0417 05:25:08.910657 139850040735488 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0417 05:25:08.910843 139978037327680 checkpoint_manager.py:2032] [process=6][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0417 05:25:08.911012 139978037327680 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0417 05:25:08.911623 139978037327680 metric_logger.py:185] completed step: 9, seconds: 0.148, TFLOP/s/device: 91.848, Tokens/s/device: 13844.292, total_weights: 65536, loss: 8.175
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 17 05:25:20 UTC 2026
EXIT_CODE=0