MaxView

‹ —Case: 01_base02_synthetic ›

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

MetricLinen  77202a8e9NNX  77202a8e9Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17908.1750-0.004
TFLOP/s92.21591.796-0.419
Tok/s13899.613836.4-63.2
Avg s/step2.7122.733+0.021
Memory %1.381.380
JAX0.9.20.9.2

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

XPK Start: Sat Apr 25 09:21:51 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
`rope_parameters`'s factor field must be a float >= 1, got 40
`rope_parameters`'s beta_fast field must be a float, got 32
`rope_parameters`'s beta_slow field must be a float, got 1
DeepseekV32Config got `key=rope_scaling` in kwargs but hasn't set it as attribute. For RoPE standardization you need to set `self.rope_parameters` in model's config. 
2026-04-25 09:22:16.071167: 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)
I0425 09:22:16.279290 134046455007040 max_utils.py:273] Attempting to initialize the jax distributed system...
I0425 09:22:25.320495 134046455007040 distributed.py:149] Starting JAX distributed service on [::]:8482
I0425 09:22:25.322766 134046455007040 distributed.py:172] Connecting to JAX distributed service on mt-01-base-rusmg-slice-job-0-0.mt-01-base-rusmg:8482
I0425 09:22:26.648559 134046455007040 max_utils.py:284] Jax distributed system initialized!
I0425 09:22:32.962420 134046455007040 max_utils.py:800] System Information: Jax Version: 0.9.2
I0425 09:22:32.962525 134046455007040 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0425 09:22:32.962566 134046455007040 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
I0425 09:22:32.962604 134046455007040 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0425 09:22:33.663370 134046455007040 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0425 09:22:33.663970 134046455007040 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0425 09:22:33.664152 134046455007040 checkpointing.py:688] Setting up checkpoint logger...
I0425 09:22:33.664206 134046455007040 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0425 09:22:33.664249 134046455007040 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0425 09:22:33.664579 134046455007040 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 0x79e97e5159a0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0425 09:22:37.335076 134046455007040 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0425 09:22:37.335326 134046455007040 checkpoint_manager.py:708] [process=5][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79d528241130>}, handler_registry=None
I0425 09:22:37.335597 134046455007040 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79d528241130>` 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`.
I0425 09:22:37.335669 134046455007040 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79d5282411c0>` 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`.
I0425 09:22:37.335709 134046455007040 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 0x79d528241130>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79d528241130>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79d5282411c0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79d5282411c0>}).
I0425 09:22:37.336078 134046455007040 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0425 09:22:37.336172 134046455007040 async_checkpointer.py:192] [process=5][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x79d4e84a9d00> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0425 09:22:38.388956 134046455007040 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints
I0425 09:22:38.580290 134046455007040 checkpoint_manager.py:929] [process=5][thread=MainThread] CheckpointManager created,  primary_host=0, CheckpointManagerOptions=CheckpointManagerOptions(save_interval_steps=1, max_to_keep=None, keep_time_interval=None, keep_period=None, should_keep_fn=None, best_fn=None, best_mode='max', keep_checkpoints_without_metrics=True, step_prefix=None, step_format_fixed_length=None, step_name_format=None, create=True, cleanup_tmp_directories=False, save_on_steps=frozenset(), single_host_load_and_broadcast=False, todelete_subdir=None, todelete_full_path=None, enable_background_delete=False, read_only=False, enable_async_checkpointing=True, async_options=None, multiprocessing_options=MultiprocessingOptions(primary_host=0, active_processes=None, barrier_sync_key_prefix=None), should_save_fn=None, file_options=FileOptions(path_permission_mode=None), save_root_metadata=True, temporary_path_class=None, save_decision_policy=FixedIntervalPolicy(interval=10), preservation_policy=LatestN(n=None), prevent_write_metrics=False, enable_should_save_is_saving_in_progress_check=True, enable_per_process_directory_creation=False, lightweight_initialize=False), root_directory=gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x79d5282429f0>
I0425 09:22:38.580467 134046455007040 checkpointing.py:302] Checkpoint manager created!
I0425 09:22:39.511478 134046455007040 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0425 09:22:39.511582 134046455007040 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 09:22:39.896296 134046455007040 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0425 09:22:39.896415 134046455007040 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 09:22:39.913369 134046455007040 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0425 09:22:39.913427 134046455007040 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 09:22:39.937624 134046455007040 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0425 09:22:39.937703 134046455007040 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 09:22:39.954497 134046455007040 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0425 09:22:39.954559 134046455007040 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 09:22:39.971291 134046455007040 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0425 09:22:39.971353 134046455007040 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 09:22:39.996796 134046455007040 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0425 09:22:39.996864 134046455007040 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 09:22:40.017872 134046455007040 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0425 09:22:40.017935 134046455007040 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0425 09:22:40.236257 134046455007040 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0425 09:22:40.236364 134046455007040 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0425 09:22:41.657658 134046455007040 maxtext_utils.py:1835]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0425 09:22:41.657808 134046455007040 maxtext_utils.py:1835]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0425 09:22:41.657885 134046455007040 maxtext_utils.py:1835]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0425 09:22:41.657980 134046455007040 maxtext_utils.py:1835]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0425 09:22:41.658069 134046455007040 maxtext_utils.py:1835]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0425 09:22:41.658141 134046455007040 maxtext_utils.py:1835]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0425 09:22:41.658226 134046455007040 maxtext_utils.py:1835]  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)
I0425 09:22:41.658312 134046455007040 maxtext_utils.py:1835]  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')
I0425 09:22:41.658377 134046455007040 maxtext_utils.py:1835]  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)
I0425 09:22:41.658437 134046455007040 maxtext_utils.py:1835]  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)
I0425 09:22:41.658510 134046455007040 maxtext_utils.py:1835]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0425 09:22:41.658586 134046455007040 maxtext_utils.py:1835]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0425 09:22:42.150771 134046455007040 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0425 09:22:42.150863 134046455007040 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0425 09:22:42.166354 134046455007040 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0425 09:22:42.166412 134046455007040 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0425 09:22:53.065898 134046455007040 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.
I0425 09:22:53.066686 134046455007040 metric_logger.py:301] number parameters: 1.104 billion
I0425 09:23:04.315551 134046455007040 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0425 09:23:04.543147 134046455007040 checkpointing.py:798] Waited 0.22757554054260254 seconds for step 0 to finish before starting checkpointing.
I0425 09:23:04.545948 134046455007040 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0425 09:23:04.547673 134046455007040 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 0
I0425 09:23:04.549028 134046455007040 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/0.
I0425 09:23:05.290261 134046455007040 signaling_client.py:364] Using JaxDistributedSignalingClient
I0425 09:23:05.291400 134046455007040 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0425 09:23:05.291464 134046455007040 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
I0425 09:23:05.567685 134046455007040 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.277510s
I0425 09:23:05.567860 134046455007040 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 2.174 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.7095961570739746 s) (per-host)
I0425 09:23:05.567914 134046455007040 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.709660s (batch_requests_ready=0.428788s, total_serialization_initiated=0.280800s, others=0.000072s)
I0425 09:23:05.568004 134046455007040 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.713792s (all_items=0.000018s, per_item={'items': '0.00001764'}, temp_paths=0.713774)
I0425 09:23:05.568777 134046455007040 event_tracking.py:125] [process=5] [async] Finished blocking save in 1.02 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/0.
I0425 09:23:05.569109 133917526378240 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-25 09:43:05.569069
I0425 09:23:05.582726 134046455007040 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0425 09:23:05.582968 133915901679360 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0425 09:23:05.583088 134046455007040 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777108984.5459285, 'wait_for_prev_duration_secs': 6.198883056640625e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777108984.5477104, 'checkpointer_blocking_duration_secs': 1.0215582847595215, 'get_old_steps_start_time': 1777108985.5692925, 'get_old_steps_duration_secs': 3.0279159545898438e-05, 'checkpoint_manager_blocking_start_time': 1777108984.5436766, 'checkpoint_manager_blocking_duration_secs': 1.0393726825714111}
I0425 09:23:05.583195 134046455007040 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0425 09:23:05.583244 134046455007040 max_utils.py:750] 
Memstats: After params initialized:
I0425 09:23:05.583293 134046455007040 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_18(process=5,(2,4,0,0))
I0425 09:23:05.583326 134046455007040 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_19(process=5,(3,4,0,0))
I0425 09:23:05.583355 134046455007040 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_22(process=5,(2,5,0,0))
I0425 09:23:05.583380 134046455007040 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_23(process=5,(3,5,0,0))
I0425 09:23:05.892166 134046455007040 metric_logger.py:196] completed step: 0, seconds: 11.249, TFLOP/s/device: 1.208, Tokens/s/device: 182.065, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0425 09:23:06.070950 134046455007040 metric_logger.py:196] completed step: 1, seconds: 1.575, TFLOP/s/device: 8.626, Tokens/s/device: 1300.168, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0425 09:23:06.472959 134046455007040 metric_logger.py:196] completed step: 2, seconds: 0.032, TFLOP/s/device: 429.796, Tokens/s/device: 64783.475, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0425 09:23:06.621071 134046455007040 metric_logger.py:196] completed step: 3, seconds: 0.402, TFLOP/s/device: 33.800, Tokens/s/device: 5094.768, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0425 09:23:06.916130 134046455007040 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.699, Tokens/s/device: 13369.630, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0425 09:23:06.921813 134046455007040 metric_logger.py:196] completed step: 5, seconds: 0.148, TFLOP/s/device: 91.839, Tokens/s/device: 13842.982, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0425 09:23:08.049159    2815 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0425 09:23:10.043389 133915910072064 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/0/items/array_metadatas/process_5
I0425 09:23:28.571063 134046455007040 metric_logger.py:196] completed step: 6, seconds: 0.295, TFLOP/s/device: 45.996, Tokens/s/device: 6933.066, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0425 09:23:28.718395 134046455007040 metric_logger.py:196] completed step: 7, seconds: 21.502, TFLOP/s/device: 0.632, Tokens/s/device: 95.246, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0425 09:23:28.866019 134046455007040 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.121, Tokens/s/device: 13433.296, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0425 09:23:29.013562 134046455007040 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0425 09:23:29.014165 134046455007040 checkpointing.py:798] Waited 0.0006234645843505859 seconds for step 9 to finish before starting checkpointing.
I0425 09:23:29.016383 134046455007040 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0425 09:23:41.295003 133917526378240 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 43.352 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 36.43670082092285 s) (per-host)
I0425 09:23:41.295112 133917526378240 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 35.725888s.
I0425 09:23:52.273321 133917526378240 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 46.704079s.
I0425 09:23:52.273538 133915901679360 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0425 09:23:52.273607 133915901679360 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0425 09:23:52.273677 133915901679360 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0425 09:23:52.276434 133915901679360 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0425 09:23:52.276616 134046455007040 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0425 09:23:52.276770 134046455007040 checkpoint_manager.py:1452] Waiting for previous save to complete took 23.260388 seconds. If this number is high, consider checkpointing less frequently.
I0425 09:23:52.278812 134046455007040 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 9
I0425 09:23:52.280837 134046455007040 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/9.
I0425 09:23:52.990355 134046455007040 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0425 09:23:52.990450 134046455007040 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
I0425 09:23:53.032178 134046455007040 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.042993s
I0425 09:23:53.032352 134046455007040 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 33.191 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04647564888000488 s) (per-host)
I0425 09:23:53.032406 134046455007040 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.046538s (batch_requests_ready=0.001805s, total_serialization_initiated=0.044662s, others=0.000071s)
I0425 09:23:53.032503 134046455007040 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.050937s (all_items=0.000015s, per_item={'items': '0.00001526'}, temp_paths=0.050922)
I0425 09:23:53.033169 134046455007040 event_tracking.py:125] [process=5] [async] Finished blocking save in 0.75 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/9.
I0425 09:23:53.033517 133917004785408 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-25 09:43:53.033476
I0425 09:23:53.035549 134046455007040 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0425 09:23:53.035846 133915901679360 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0425 09:23:53.036007 134046455007040 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777109009.016352, 'wait_for_prev_duration_secs': 23.260388135910034, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777109032.2788503, 'checkpointer_blocking_duration_secs': 0.7548220157623291, 'get_old_steps_start_time': 1777109033.033695, 'get_old_steps_duration_secs': 3.0994415283203125e-05, 'checkpoint_manager_blocking_start_time': 1777109009.0143902, 'checkpoint_manager_blocking_duration_secs': 24.02158260345459}
I0425 09:23:53.036111 134046455007040 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0425 09:23:53.036156 134046455007040 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0425 09:23:58.172190 133917013178112 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/linen_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/9/items/array_metadatas/process_5
I0425 09:24:34.845882 133917004785408 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 37.735 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.85996460914612 s) (per-host)
I0425 09:24:34.846009 133917004785408 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.812373s.
I0425 09:24:42.934775 133917004785408 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 49.901130s.
I0425 09:24:42.935055 133915901679360 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0425 09:24:42.935177 133915901679360 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0425 09:24:42.935226 133915901679360 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0425 09:24:42.936676 133915901679360 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0425 09:24:42.936855 134046455007040 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0425 09:24:42.937008 134046455007040 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0425 09:24:42.937848 134046455007040 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.215, Tokens/s/device: 13899.635, 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 25 09:24:51 UTC 2026
EXIT_CODE=0
XPK Start: Sat Apr 25 10:50:22 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
`rope_parameters`'s factor field must be a float >= 1, got 40
`rope_parameters`'s beta_fast field must be a float, got 32
`rope_parameters`'s beta_slow field must be a float, got 1
DeepseekV32Config got `key=rope_scaling` in kwargs but hasn't set it as attribute. For RoPE standardization you need to set `self.rope_parameters` in model's config. 
2026-04-25 10:50:47.624068: 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)
I0425 10:50:47.834998 133731281364800 max_utils.py:273] Attempting to initialize the jax distributed system...
I0425 10:50:56.876521 133731281364800 distributed.py:149] Starting JAX distributed service on [::]:8482
I0425 10:50:56.878873 133731281364800 distributed.py:172] Connecting to JAX distributed service on mt-01-base-oje9p-slice-job-0-0.mt-01-base-oje9p:8482
I0425 10:50:58.217590 133731281364800 max_utils.py:284] Jax distributed system initialized!
I0425 10:51:04.471844 133731281364800 max_utils.py:800] System Information: Jax Version: 0.9.2
I0425 10:51:04.471950 133731281364800 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0425 10:51:04.471992 133731281364800 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
I0425 10:51:04.472029 133731281364800 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0425 10:51:05.166350 133731281364800 maxtext_utils.py:1771] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0425 10:51:05.283155 133731281364800 checkpointing.py:688] Setting up checkpoint logger...
I0425 10:51:05.283273 133731281364800 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0425 10:51:05.283322 133731281364800 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0425 10:51:05.283520 133731281364800 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 0x79a005c48830>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0425 10:51:08.921119 133731281364800 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0425 10:51:08.921366 133731281364800 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 0x798be46efbf0>}, handler_registry=None
I0425 10:51:08.921606 133731281364800 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x798be46efbf0>` 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`.
I0425 10:51:08.921654 133731281364800 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x798c0c39cad0>` 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`.
I0425 10:51:08.921690 133731281364800 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 0x798be46efbf0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x798be46efbf0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x798c0c39cad0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x798c0c39cad0>}).
I0425 10:51:08.922021 133731281364800 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0425 10:51:08.922091 133731281364800 async_checkpointer.py:192] [process=6][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x798c0c633740> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0425 10:51:09.773789 133731281364800 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints
I0425 10:51:09.776060 133731281364800 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_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x798c1430e1b0>
I0425 10:51:09.776187 133731281364800 checkpointing.py:302] Checkpoint manager created!
I0425 10:51:10.748241 133731281364800 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0425 10:51:10.748362 133731281364800 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32

I0425 10:51:12.530527 133731281364800 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0425 10:51:12.530628 133731281364800 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 10:51:12.536230 133731281364800 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0425 10:51:12.536286 133731281364800 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 10:51:12.553747 133731281364800 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch_attn', 'activation_length_attn', 'activation_embed_attn').
I0425 10:51:12.553808 133731281364800 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 10:51:12.570636 133731281364800 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch_attn', 'activation_length_attn', 'activation_embed_attn').
I0425 10:51:12.570698 133731281364800 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0425 10:51:12.595830 133731281364800 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_length_attn', 'activation_kv_heads', 'activation_kv_head_dim').
I0425 10:51:12.595901 133731281364800 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 10:51:12.612704 133731281364800 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_length_attn', 'activation_kv_heads', 'activation_kv_head_dim').
I0425 10:51:12.612769 133731281364800 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 10:51:12.629604 133731281364800 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_length_attn', 'activation_kv_heads', 'activation_kv_head_dim').
I0425 10:51:12.629664 133731281364800 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 10:51:12.662325 133731281364800 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch_attn', 'activation_length_attn', 'activation_heads', 'activation_kv').
I0425 10:51:12.662399 133731281364800 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0425 10:51:12.683335 133731281364800 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0425 10:51:12.683401 133731281364800 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0425 10:51:24.178996 133731281364800 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.
I0425 10:51:24.181434 133731281364800 metric_logger.py:301] number parameters: 1.104 billion
I0425 10:51:35.695577 133731281364800 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0425 10:51:35.848770 133731281364800 checkpointing.py:798] Waited 0.1531836986541748 seconds for step 0 to finish before starting checkpointing.
I0425 10:51:35.851061 133731281364800 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0425 10:51:35.852740 133731281364800 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 0
I0425 10:51:35.854152 133731281364800 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/0.
I0425 10:51:36.239896 133731281364800 signaling_client.py:364] Using JaxDistributedSignalingClient
I0425 10:51:36.240842 133731281364800 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0425 10:51:36.240901 133731281364800 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
I0425 10:51:36.515950 133731281364800 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.276839s
I0425 10:51:36.516138 133731281364800 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 5.389 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2862205505371094 s) (per-host)
I0425 10:51:36.516195 133731281364800 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.286286s (batch_requests_ready=0.003345s, total_serialization_initiated=0.282867s, others=0.000073s)
I0425 10:51:36.516329 133731281364800 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.290471s (all_items=0.000016s, per_item={'items': '0.00001621'}, temp_paths=0.290454)
I0425 10:51:36.517174 133731281364800 event_tracking.py:125] [process=6] [async] Finished blocking save in 0.66 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/0.
I0425 10:51:36.517456 133603141965568 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-25 11:11:36.517433
I0425 10:51:36.529865 133731281364800 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0425 10:51:36.530125 133600416024320 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0425 10:51:36.530249 133731281364800 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777114295.8510423, 'wait_for_prev_duration_secs': 7.510185241699219e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777114295.85278, 'checkpointer_blocking_duration_secs': 0.6647815704345703, 'get_old_steps_start_time': 1777114296.517587, 'get_old_steps_duration_secs': 3.1948089599609375e-05, 'checkpoint_manager_blocking_start_time': 1777114295.8491843, 'checkpoint_manager_blocking_duration_secs': 0.6810274124145508}
I0425 10:51:36.530361 133731281364800 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0425 10:51:36.530427 133731281364800 max_utils.py:750] 
Memstats: After params initialized:
I0425 10:51:36.530474 133731281364800 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_24(process=6,(0,6,0,0))
I0425 10:51:36.530504 133731281364800 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_25(process=6,(1,6,0,0))
I0425 10:51:36.530530 133731281364800 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_28(process=6,(0,7,0,0))
I0425 10:51:36.530553 133731281364800 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_29(process=6,(1,7,0,0))
I0425 10:51:36.848844 133731281364800 metric_logger.py:196] completed step: 0, seconds: 11.513, TFLOP/s/device: 1.180, Tokens/s/device: 177.885, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0425 10:51:37.016196 133731281364800 metric_logger.py:196] completed step: 1, seconds: 1.151, TFLOP/s/device: 11.801, Tokens/s/device: 1778.788, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0425 10:51:37.440845 133731281364800 metric_logger.py:196] completed step: 2, seconds: 0.021, TFLOP/s/device: 632.489, Tokens/s/device: 95335.630, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28632.133
I0425 10:51:37.588340 133731281364800 metric_logger.py:196] completed step: 3, seconds: 0.414, TFLOP/s/device: 32.791, Tokens/s/device: 4942.586, total_weights: 65536, loss: 9.732, lm_loss: 9.732, perplexity: 16855.789
I0425 10:51:37.884089 133731281364800 metric_logger.py:196] completed step: 4, seconds: 0.165, TFLOP/s/device: 82.328, Tokens/s/device: 12409.339, total_weights: 65536, loss: 9.274, lm_loss: 9.274, perplexity: 10661.594
I0425 10:51:37.891517 133731281364800 metric_logger.py:196] completed step: 5, seconds: 0.146, TFLOP/s/device: 92.896, Tokens/s/device: 14002.270, total_weights: 65536, loss: 8.888, lm_loss: 8.888, perplexity: 7245.978
I0425 10:51:39.496162    2804 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0425 10:51:41.520925 133600965216000 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_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/0/items/array_metadatas/process_6
I0425 10:52:00.142337 133731281364800 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.846, Tokens/s/device: 6910.468, total_weights: 65536, loss: 8.589, lm_loss: 8.589, perplexity: 5371.156
I0425 10:52:00.289825 133731281364800 metric_logger.py:196] completed step: 7, seconds: 22.104, TFLOP/s/device: 0.615, Tokens/s/device: 92.651, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4360.465
I0425 10:52:00.437775 133731281364800 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.677, Tokens/s/device: 13366.314, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.256
I0425 10:52:00.585953 133731281364800 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0425 10:52:00.586633 133731281364800 checkpointing.py:798] Waited 0.0006892681121826172 seconds for step 9 to finish before starting checkpointing.
I0425 10:52:00.588575 133731281364800 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0425 10:52:13.156195 133603141965568 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 42.777 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 36.92623949050903 s) (per-host)
I0425 10:52:13.156316 133603141965568 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 36.638787s.
I0425 10:52:22.055631 133603141965568 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 45.538084s.
I0425 10:52:22.055854 133600416024320 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0425 10:52:22.055920 133600416024320 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0425 10:52:22.055973 133600416024320 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0425 10:52:22.058540 133600416024320 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0425 10:52:22.058739 133731281364800 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.
W0425 10:52:22.058874 133731281364800 checkpoint_manager.py:1452] Waiting for previous save to complete took 21.470307 seconds. If this number is high, consider checkpointing less frequently.
I0425 10:52:22.060790 133731281364800 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 9
I0425 10:52:22.062888 133731281364800 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/9.
I0425 10:52:22.455585 133731281364800 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0425 10:52:22.455687 133731281364800 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
I0425 10:52:22.487611 133731281364800 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.033644s
I0425 10:52:22.487790 133731281364800 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 37.882 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.040720462799072266 s) (per-host)
I0425 10:52:22.487855 133731281364800 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.040791s (batch_requests_ready=0.002661s, total_serialization_initiated=0.038049s, others=0.000082s)
I0425 10:52:22.487975 133731281364800 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.045099s (all_items=0.000015s, per_item={'items': '0.00001526'}, temp_paths=0.045083)
I0425 10:52:22.488725 133731281364800 event_tracking.py:125] [process=6] [async] Finished blocking save in 0.43 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/9.
I0425 10:52:22.489066 133600416024320 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-25 11:12:22.489030
I0425 10:52:22.495257 133731281364800 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0425 10:52:22.495525 133580814509824 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0425 10:52:22.495693 133731281364800 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777114320.5885365, 'wait_for_prev_duration_secs': 21.47030735015869, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777114342.0608296, 'checkpointer_blocking_duration_secs': 0.42840075492858887, 'get_old_steps_start_time': 1777114342.489253, 'get_old_steps_duration_secs': 3.123283386230469e-05, 'checkpoint_manager_blocking_start_time': 1777114320.5868585, 'checkpoint_manager_blocking_duration_secs': 21.908799171447754}
I0425 10:52:22.495815 133731281364800 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0425 10:52:22.495860 133731281364800 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0425 10:52:27.594009 133600965216000 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_trainstate_and_training_loop_20260425_092114/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260425_092114_01_base/checkpoints/9/items/array_metadatas/process_6
I0425 10:53:03.111304 133600416024320 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 38.845 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 40.66419744491577 s) (per-host)
I0425 10:53:03.111426 133600416024320 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 40.622226s.
I0425 10:53:09.851364 133600416024320 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 47.362148s.
I0425 10:53:09.851665 133580814509824 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0425 10:53:09.851814 133580814509824 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0425 10:53:09.851863 133580814509824 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0425 10:53:09.853462 133580814509824 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0425 10:53:09.853655 133731281364800 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.
I0425 10:53:09.853764 133731281364800 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0425 10:53:09.854741 133731281364800 metric_logger.py:196] completed step: 9, seconds: 0.148, TFLOP/s/device: 91.796, Tokens/s/device: 13836.435, 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: Sat Apr 25 10:53:22 UTC 2026
EXIT_CODE=0