MaxView

‹ —Case: 01_base02_synthetic ›

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

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17908.1750-0.004
TFLOP/s92.20991.372-0.837
Tok/s13898.813772.5-126.275
Avg s/step2.8372.912+0.075
Memory %1.381.380
JAX0.9.20.9.2

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

Linen  ·  574ad3fb9  ·  feat_nnx_post_train_fixes_20260418_235007  ·  full log
XPK Start: Sat Apr 18 23:51:17 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 23:51:42.057267: 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 23:51:42.234272 139108507039552 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 23:51:51.275598 139108507039552 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 23:51:51.277922 139108507039552 distributed.py:172] Connecting to JAX distributed service on mt-01-base-5ovt2-slice-job-0-0.mt-01-base-5ovt2:8482
I0418 23:51:55.207773 139108507039552 max_utils.py:284] Jax distributed system initialized!
I0418 23:52:01.472810 139108507039552 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 23:52:01.472913 139108507039552 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 23:52:01.472953 139108507039552 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 23:52:01.472986 139108507039552 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 23:52:02.549135 139108507039552 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 23:52:02.549827 139108507039552 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 23:52:02.550009 139108507039552 checkpointing.py:688] Setting up checkpoint logger...
I0418 23:52:02.550060 139108507039552 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0418 23:52:02.550101 139108507039552 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 23:52:02.550452 139108507039552 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 0x7e842cf0a600>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 23:52:06.825747 139108507039552 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0418 23:52:06.825983 139108507039552 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 0x7e82f5ae3170>}, handler_registry=None
I0418 23:52:06.826218 139108507039552 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7e82f5ae3170>` 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 23:52:06.826297 139108507039552 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7e82f5ae2bd0>` 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 23:52:06.826345 139108507039552 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 0x7e82f5ae3170>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7e82f5ae3170>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7e82f5ae2bd0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7e82f5ae2bd0>}).
I0418 23:52:06.826740 139108507039552 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 23:52:06.826812 139108507039552 async_checkpointer.py:192] [process=6][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7e6ec43cec00> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 23:52:08.283997 139108507039552 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints
I0418 23:52:08.729521 139108507039552 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/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7e82f59ea270>
I0418 23:52:08.729692 139108507039552 checkpointing.py:302] Checkpoint manager created!
I0418 23:52:09.657986 139108507039552 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 23:52:09.658091 139108507039552 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 23:52:10.042268 139108507039552 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 23:52:10.042361 139108507039552 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 23:52:10.058639 139108507039552 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 23:52:10.058702 139108507039552 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 23:52:10.082466 139108507039552 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 23:52:10.082547 139108507039552 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 23:52:10.098946 139108507039552 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 23:52:10.099013 139108507039552 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 23:52:10.115288 139108507039552 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 23:52:10.115349 139108507039552 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 23:52:10.139869 139108507039552 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 23:52:10.139943 139108507039552 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 23:52:10.161647 139108507039552 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 23:52:10.161714 139108507039552 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 23:52:10.376447 139108507039552 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 23:52:10.376556 139108507039552 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0418 23:52:11.884388 139108507039552 maxtext_utils.py:1827]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 23:52:11.884511 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0418 23:52:11.884563 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0418 23:52:11.884620 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0418 23:52:11.884673 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0418 23:52:11.884724 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0418 23:52:11.884781 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/self_attention/key/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   P('embed', 'layers', 'kv_heads', 'kv_head_dim')
    Physical:  ('fsdp', None, None, None)
I0418 23:52:11.884834 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/self_attention/out/kernel
    Shape:     float32[16,16,128,2048]
    Logical:   P('heads', 'layers', 'kv', 'embed')
    Physical:  (None, None, None, 'fsdp')
I0418 23:52:11.884874 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/self_attention/query/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   P('embed', 'layers', 'q_heads', 'kv')
    Physical:  ('fsdp', None, None, None)
I0418 23:52:11.884909 139108507039552 maxtext_utils.py:1827]  params/params/decoder/layers/self_attention/value/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   P('embed', 'layers', 'kv_heads', 'kv_head_dim')
    Physical:  ('fsdp', None, None, None)
I0418 23:52:11.884955 139108507039552 maxtext_utils.py:1827]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0418 23:52:11.885003 139108507039552 maxtext_utils.py:1827]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')

I0418 23:52:12.384192 139108507039552 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 23:52:12.384299 139108507039552 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 23:52:12.399750 139108507039552 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 23:52:12.399809 139108507039552 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 23:52:22.870283 139108507039552 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 23:52:22.871152 139108507039552 metric_logger.py:301] number parameters: 1.104 billion
I0418 23:52:34.262472 139108507039552 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0418 23:52:34.658338 139108507039552 checkpointing.py:798] Waited 0.3958439826965332 seconds for step 0 to finish before starting checkpointing.
I0418 23:52:34.660838 139108507039552 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 23:52:34.662690 139108507039552 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 0
I0418 23:52:34.664049 139108507039552 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/0.
I0418 23:52:35.416614 139108507039552 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 23:52:35.417567 139108507039552 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 23:52:35.417627 139108507039552 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 23:52:35.693761 139108507039552 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.277223s
I0418 23:52:35.693931 139108507039552 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 5.455 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.28279662132263184 s) (per-host)
I0418 23:52:35.693984 139108507039552 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.282859s (batch_requests_ready=0.002367s, total_serialization_initiated=0.280421s, others=0.000070s)
I0418 23:52:35.694073 139108507039552 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.287230s (all_items=0.000017s, per_item={'items': '0.00001693'}, temp_paths=0.287213)
I0418 23:52:35.694903 139108507039552 event_tracking.py:125] [process=6] [async] Finished blocking save in 1.03 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/0.
I0418 23:52:35.695279 138979013400320 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-19 00:12:35.695221
I0418 23:52:35.702432 139108507039552 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 23:52:35.702751 138978988222208 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0418 23:52:35.702881 139108507039552 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776556354.6608195, 'wait_for_prev_duration_secs': 6.0558319091796875e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776556354.6627269, 'checkpointer_blocking_duration_secs': 1.0327222347259521, 'get_old_steps_start_time': 1776556355.6954741, 'get_old_steps_duration_secs': 3.3855438232421875e-05, 'checkpoint_manager_blocking_start_time': 1776556354.6588771, 'checkpoint_manager_blocking_duration_secs': 1.0439646244049072}
I0418 23:52:35.702986 139108507039552 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0418 23:52:35.703037 139108507039552 max_utils.py:750] 
Memstats: After params initialized:
I0418 23:52:35.703084 139108507039552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_24(process=6,(0,6,0,0))
I0418 23:52:35.703116 139108507039552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_25(process=6,(1,6,0,0))
I0418 23:52:35.703141 139108507039552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_28(process=6,(0,7,0,0))
I0418 23:52:35.703164 139108507039552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_29(process=6,(1,7,0,0))
I0418 23:52:36.016721 139108507039552 metric_logger.py:196] completed step: 0, seconds: 11.391, TFLOP/s/device: 1.193, Tokens/s/device: 179.788, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 23:52:36.194932 139108507039552 metric_logger.py:196] completed step: 1, seconds: 1.753, TFLOP/s/device: 7.752, Tokens/s/device: 1168.432, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 23:52:36.587102 139108507039552 metric_logger.py:196] completed step: 2, seconds: 0.031, TFLOP/s/device: 439.855, Tokens/s/device: 66299.773, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0418 23:52:36.734630 139108507039552 metric_logger.py:196] completed step: 3, seconds: 0.393, TFLOP/s/device: 34.609, Tokens/s/device: 5216.572, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0418 23:52:37.029587 139108507039552 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.942, Tokens/s/device: 13406.300, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0418 23:52:37.035388 139108507039552 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.197, Tokens/s/device: 13896.900, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0418 23:52:40.246731    2847 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 23:52:43.114006 138978996614912 array_metadata_store.py:203] [process=6][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/0/items/array_metadatas/process_6
I0418 23:52:59.643822 139108507039552 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.976, Tokens/s/device: 6930.040, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0418 23:52:59.791174 139108507039552 metric_logger.py:196] completed step: 7, seconds: 22.461, TFLOP/s/device: 0.605, Tokens/s/device: 91.178, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0418 23:52:59.938665 139108507039552 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.166, Tokens/s/device: 13439.996, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0418 23:53:00.085189 139108507039552 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0418 23:53:00.085804 139108507039552 checkpointing.py:798] Waited 0.0006372928619384766 seconds for step 9 to finish before starting checkpointing.
I0418 23:53:00.087976 139108507039552 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 23:53:14.416257 138979013400320 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 40.497 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 39.00505614280701 s) (per-host)
I0418 23:53:14.416381 138979013400320 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 38.720975s.
I0418 23:53:24.189558 138979013400320 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 48.494135s.
I0418 23:53:24.189840 138978988222208 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 23:53:24.189964 138978988222208 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0418 23:53:24.190019 138978988222208 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0418 23:53:24.192598 138978988222208 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0418 23:53:24.192777 139108507039552 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.
W0418 23:53:24.192915 139108507039552 checkpoint_manager.py:1452] Waiting for previous save to complete took 24.104943 seconds. If this number is high, consider checkpointing less frequently.
I0418 23:53:24.194827 139108507039552 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 9
I0418 23:53:24.197014 139108507039552 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/9.
I0418 23:53:24.896249 139108507039552 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 23:53:24.896343 139108507039552 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 23:53:24.935354 139108507039552 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.040211s
I0418 23:53:24.935535 139108507039552 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 35.230 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.043785810470581055 s) (per-host)
I0418 23:53:24.935585 139108507039552 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.043845s (batch_requests_ready=0.001903s, total_serialization_initiated=0.041875s, others=0.000067s)
I0418 23:53:24.935676 139108507039552 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.048057s (all_items=0.000014s, per_item={'items': '0.00001383'}, temp_paths=0.048043)
I0418 23:53:24.936396 139108507039552 event_tracking.py:125] [process=6] [async] Finished blocking save in 0.74 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/9.
I0418 23:53:24.936692 138978988222208 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-19 00:13:24.936660
I0418 23:53:24.938726 139108507039552 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 23:53:24.939009 138978996614912 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0418 23:53:24.939168 139108507039552 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776556380.0879447, 'wait_for_prev_duration_secs': 24.104942798614502, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776556404.1948636, 'checkpointer_blocking_duration_secs': 0.7419703006744385, 'get_old_steps_start_time': 1776556404.9368553, 'get_old_steps_duration_secs': 3.170967102050781e-05, 'checkpoint_manager_blocking_start_time': 1776556380.0860353, 'checkpoint_manager_blocking_duration_secs': 24.85309886932373}
I0418 23:53:24.939286 139108507039552 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0418 23:53:24.939331 139108507039552 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 23:53:32.205334 138954984638208 array_metadata_store.py:203] [process=6][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/linen_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/9/items/array_metadatas/process_6
I0418 23:54:08.769095 138978988222208 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 36.000 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.8773090839386 s) (per-host)
I0418 23:54:08.769205 138978988222208 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 43.832404s.
I0418 23:54:15.919665 138978988222208 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 50.982848s.
I0418 23:54:15.919974 138978996614912 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 23:54:15.920107 138978996614912 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0418 23:54:15.920157 138978996614912 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0418 23:54:15.921958 138978996614912 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0418 23:54:15.922123 139108507039552 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.
I0418 23:54:15.922286 139108507039552 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 23:54:15.923219 139108507039552 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.209, Tokens/s/device: 13898.786, 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 23:54:27 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  feat_nnx_post_train_fixes_20260418_235007  ·  full log
XPK Start: Sun Apr 19 01:25:30 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-19 01:25:54.939381: 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)
I0419 01:25:55.119851 134341310084928 max_utils.py:273] Attempting to initialize the jax distributed system...
I0419 01:26:04.160524 134341310084928 distributed.py:149] Starting JAX distributed service on [::]:8482
I0419 01:26:04.162821 134341310084928 distributed.py:172] Connecting to JAX distributed service on mt-01-base-ccfhd-slice-job-0-0.mt-01-base-ccfhd:8482
I0419 01:26:05.908545 134341310084928 max_utils.py:284] Jax distributed system initialized!
I0419 01:26:12.007519 134341310084928 max_utils.py:800] System Information: Jax Version: 0.9.2
I0419 01:26:12.007621 134341310084928 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0419 01:26:12.007660 134341310084928 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
I0419 01:26:12.007694 134341310084928 train_utils.py:378] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0419 01:26:12.707833 134341310084928 maxtext_utils.py:1718] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0419 01:26:12.820209 134341310084928 checkpointing.py:688] Setting up checkpoint logger...
I0419 01:26:12.820338 134341310084928 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0419 01:26:12.820384 134341310084928 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0419 01:26:12.820585 134341310084928 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 0x7a2e2d1de600>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0419 01:26:17.357636 134341310084928 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0419 01:26:17.357871 134341310084928 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 0x7a18ec7905f0>}, handler_registry=None
I0419 01:26:17.358111 134341310084928 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7a18ec7905f0>` 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`.
I0419 01:26:17.358161 134341310084928 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7a18ec7ed880>` 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`.
I0419 01:26:17.358198 134341310084928 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 0x7a18ec7905f0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7a18ec7905f0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7a18ec7ed880>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7a18ec7ed880>}).
I0419 01:26:17.358535 134341310084928 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0419 01:26:17.358615 134341310084928 async_checkpointer.py:192] [process=6][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7a19d4390fe0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0419 01:26:18.900936 134341310084928 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints
I0419 01:26:19.367196 134341310084928 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_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7a18ec25cb30>
I0419 01:26:19.367399 134341310084928 checkpointing.py:302] Checkpoint manager created!
I0419 01:26:20.329504 134341310084928 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0419 01:26:20.329622 134341310084928 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0419 01:26:21.696399 134341310084928 maxtext_utils.py:1836]  decoder/decoder_norm/scale/value
    Shape:     float32[2048]
    Physical:  (None,)
I0419 01:26:21.696512 134341310084928 maxtext_utils.py:1836]  decoder/layers/mlp/wi_0/kernel/value
    Shape:     float32[2048,16,7168]
    Physical:  ('fsdp', None, None)
I0419 01:26:21.696573 134341310084928 maxtext_utils.py:1836]  decoder/layers/mlp/wi_1/kernel/value
    Shape:     float32[2048,16,7168]
    Physical:  ('fsdp', None, None)
I0419 01:26:21.696619 134341310084928 maxtext_utils.py:1836]  decoder/layers/mlp/wo/kernel/value
    Shape:     float32[7168,16,2048]
    Physical:  (None, None, 'fsdp')
I0419 01:26:21.696657 134341310084928 maxtext_utils.py:1836]  decoder/layers/post_self_attention_layer_norm/scale/value
    Shape:     float32[2048,16]
    Physical:  (None, None)
I0419 01:26:21.696692 134341310084928 maxtext_utils.py:1836]  decoder/layers/pre_self_attention_layer_norm/scale/value
    Shape:     float32[2048,16]
    Physical:  (None, None)
I0419 01:26:21.696729 134341310084928 maxtext_utils.py:1836]  decoder/layers/self_attention/key/kernel/value
    Shape:     float32[2048,16,16,128]
    Physical:  ('fsdp', None, None, None)
I0419 01:26:21.696764 134341310084928 maxtext_utils.py:1836]  decoder/layers/self_attention/out/kernel/value
    Shape:     float32[16,16,128,2048]
    Physical:  (None, None, None, 'fsdp')
I0419 01:26:21.696797 134341310084928 maxtext_utils.py:1836]  decoder/layers/self_attention/query/kernel/value
    Shape:     float32[2048,16,16,128]
    Physical:  ('fsdp', None, None, None)
I0419 01:26:21.696830 134341310084928 maxtext_utils.py:1836]  decoder/layers/self_attention/value/kernel/value
    Shape:     float32[2048,16,16,128]
    Physical:  ('fsdp', None, None, None)
I0419 01:26:21.696861 134341310084928 maxtext_utils.py:1836]  decoder/logits_dense/kernel/value
    Shape:     float32[2048,32000]
    Physical:  ('fsdp', None)

I0419 01:26:21.696893 134341310084928 maxtext_utils.py:1836]  token_embedder/embedding/value
    Shape:     float32[32000,2048]
    Physical:  (None, 'fsdp')
I0419 01:26:22.096862 134341310084928 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0419 01:26:22.096960 134341310084928 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0419 01:26:22.102191 134341310084928 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0419 01:26:22.102267 134341310084928 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0419 01:26:22.118524 134341310084928 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0419 01:26:22.118585 134341310084928 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0419 01:26:22.134265 134341310084928 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0419 01:26:22.134326 134341310084928 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0419 01:26:22.158995 134341310084928 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0419 01:26:22.159062 134341310084928 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0419 01:26:22.174952 134341310084928 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0419 01:26:22.175012 134341310084928 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0419 01:26:22.190871 134341310084928 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0419 01:26:22.190938 134341310084928 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0419 01:26:22.220751 134341310084928 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0419 01:26:22.220823 134341310084928 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0419 01:26:22.240526 134341310084928 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0419 01:26:22.240587 134341310084928 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0419 01:26:33.343500 134341310084928 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.
I0419 01:26:33.345864 134341310084928 metric_logger.py:301] number parameters: 1.104 billion
I0419 01:26:44.911557 134341310084928 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0419 01:26:45.063396 134341310084928 checkpointing.py:798] Waited 0.15182256698608398 seconds for step 0 to finish before starting checkpointing.
I0419 01:26:45.065682 134341310084928 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0419 01:26:45.067390 134341310084928 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 0
I0419 01:26:45.068726 134341310084928 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/0.
I0419 01:26:45.810855 134341310084928 signaling_client.py:364] Using JaxDistributedSignalingClient
I0419 01:26:45.811990 134341310084928 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0419 01:26:45.812053 134341310084928 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
I0419 01:26:46.090640 134341310084928 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.280564s
I0419 01:26:46.090830 134341310084928 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 5.325 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2896614074707031 s) (per-host)
I0419 01:26:46.090899 134341310084928 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.289738s (batch_requests_ready=0.003006s, total_serialization_initiated=0.286644s, others=0.000088s)
I0419 01:26:46.091036 134341310084928 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.294107s (all_items=0.000018s, per_item={'items': '0.00001764'}, temp_paths=0.294090)
I0419 01:26:46.091876 134341310084928 event_tracking.py:125] [process=6] [async] Finished blocking save in 1.02 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/0.
I0419 01:26:46.092218 134212694832896 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-19 01:46:46.092179
I0419 01:26:46.097829 134341310084928 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0419 01:26:46.098092 134212115715840 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0419 01:26:46.098259 134341310084928 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776562005.0656638, 'wait_for_prev_duration_secs': 5.936622619628906e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776562005.067428, 'checkpointer_blocking_duration_secs': 1.0249574184417725, 'get_old_steps_start_time': 1776562006.0924132, 'get_old_steps_duration_secs': 3.0040740966796875e-05, 'checkpoint_manager_blocking_start_time': 1776562005.063793, 'checkpoint_manager_blocking_duration_secs': 1.0344178676605225}
I0419 01:26:46.098376 134341310084928 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0419 01:26:46.098442 134341310084928 max_utils.py:750] 
Memstats: After params initialized:
I0419 01:26:46.098492 134341310084928 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_24(process=6,(0,6,0,0))
I0419 01:26:46.098525 134341310084928 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_25(process=6,(1,6,0,0))
I0419 01:26:46.098552 134341310084928 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_28(process=6,(0,7,0,0))
I0419 01:26:46.098577 134341310084928 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_29(process=6,(1,7,0,0))
I0419 01:26:46.420624 134341310084928 metric_logger.py:196] completed step: 0, seconds: 11.565, TFLOP/s/device: 1.175, Tokens/s/device: 177.091, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0419 01:26:46.584579 134341310084928 metric_logger.py:196] completed step: 1, seconds: 1.507, TFLOP/s/device: 9.015, Tokens/s/device: 1358.853, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0419 01:26:47.021301 134341310084928 metric_logger.py:196] completed step: 2, seconds: 0.018, TFLOP/s/device: 768.285, Tokens/s/device: 115804.354, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28632.133
I0419 01:26:47.168792 134341310084928 metric_logger.py:196] completed step: 3, seconds: 0.426, TFLOP/s/device: 31.884, Tokens/s/device: 4805.831, total_weights: 65536, loss: 9.732, lm_loss: 9.732, perplexity: 16855.789
I0419 01:26:47.464710 134341310084928 metric_logger.py:196] completed step: 4, seconds: 0.165, TFLOP/s/device: 82.425, Tokens/s/device: 12424.018, total_weights: 65536, loss: 9.274, lm_loss: 9.274, perplexity: 10661.594
I0419 01:26:47.472449 134341310084928 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.328, Tokens/s/device: 13916.636, total_weights: 65536, loss: 8.888, lm_loss: 8.888, perplexity: 7245.978
I0419 01:26:50.716518    2843 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0419 01:26:53.471006 134212124108544 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_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/0/items/array_metadatas/process_6
I0419 01:27:10.965255 134341310084928 metric_logger.py:196] completed step: 6, seconds: 0.297, TFLOP/s/device: 45.816, Tokens/s/device: 6905.831, total_weights: 65536, loss: 8.589, lm_loss: 8.589, perplexity: 5371.156
I0419 01:27:11.112911 134341310084928 metric_logger.py:196] completed step: 7, seconds: 23.347, TFLOP/s/device: 0.582, Tokens/s/device: 87.722, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4360.465
I0419 01:27:11.260479 134341310084928 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.655, Tokens/s/device: 13363.000, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.256
I0419 01:27:11.408794 134341310084928 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0419 01:27:11.409452 134341310084928 checkpointing.py:798] Waited 0.0006711483001708984 seconds for step 9 to finish before starting checkpointing.
I0419 01:27:11.411803 134341310084928 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0419 01:27:24.097243 134212694832896 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 41.247 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 38.296011447906494 s) (per-host)
I0419 01:27:24.097375 134212694832896 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 38.005029s.
I0419 01:27:32.193452 134212694832896 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 46.101088s.
I0419 01:27:32.193687 134212115715840 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0419 01:27:32.193744 134212115715840 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0419 01:27:32.193793 134212115715840 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0419 01:27:32.196367 134212115715840 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0419 01:27:32.196535 134341310084928 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.
W0419 01:27:32.196670 134341310084928 checkpoint_manager.py:1452] Waiting for previous save to complete took 20.784865 seconds. If this number is high, consider checkpointing less frequently.
I0419 01:27:32.198729 134341310084928 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 9
I0419 01:27:32.200903 134341310084928 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/9.
I0419 01:27:33.358747 134341310084928 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0419 01:27:33.358845 134341310084928 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
I0419 01:27:33.401109 134341310084928 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.044065s
I0419 01:27:33.401290 134341310084928 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 30.191 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.05109381675720215 s) (per-host)
I0419 01:27:33.401349 134341310084928 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.051162s (batch_requests_ready=0.002683s, total_serialization_initiated=0.048403s, others=0.000076s)
I0419 01:27:33.401449 134341310084928 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.055479s (all_items=0.000016s, per_item={'items': '0.00001645'}, temp_paths=0.055463)
I0419 01:27:33.402137 134341310084928 event_tracking.py:125] [process=6] [async] Finished blocking save in 1.20 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/9.
I0419 01:27:33.402502 134212115715840 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-19 01:47:33.402465
I0419 01:27:33.404421 134341310084928 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0419 01:27:33.404723 134212678657792 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0419 01:27:33.404859 134341310084928 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_post_train_fixes_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776562031.4117744, 'wait_for_prev_duration_secs': 20.784865379333496, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776562052.1987684, 'checkpointer_blocking_duration_secs': 1.2038817405700684, 'get_old_steps_start_time': 1776562053.4026737, 'get_old_steps_duration_secs': 2.956390380859375e-05, 'checkpoint_manager_blocking_start_time': 1776562031.409684, 'checkpoint_manager_blocking_duration_secs': 21.99514079093933}
I0419 01:27:33.405024 134341310084928 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0419 01:27:33.405070 134341310084928 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0419 01:27:40.192697 134187872913152 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_20260418_235007/nnx_xpk_feat_nnx_post_train_fixes_20260418_235007_01_base/checkpoints/9/items/array_metadatas/process_6
I0419 01:28:16.987943 134212115715840 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 36.198 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.63770794868469 s) (per-host)
I0419 01:28:16.988071 134212115715840 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 43.585450s.
I0419 01:28:24.074040 134212115715840 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 50.671402s.
I0419 01:28:24.074392 134212678657792 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0419 01:28:24.074517 134212678657792 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0419 01:28:24.074566 134212678657792 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0419 01:28:24.077631 134212678657792 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0419 01:28:24.077821 134341310084928 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.
I0419 01:28:24.078001 134341310084928 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0419 01:28:24.078840 134341310084928 metric_logger.py:196] completed step: 9, seconds: 0.149, TFLOP/s/device: 91.372, Tokens/s/device: 13772.511, total_weights: 65536, loss: 8.175, lm_loss: 8.175, perplexity: 3551.438
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Sun Apr 19 01:28:35 UTC 2026
EXIT_CODE=0