MaxView

‹ —Case: 01_base02_synthetic ›

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

MetricLinen  1abe20691NNX  1abe20691Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17908.1750-0.004
TFLOP/s92.22292.026-0.196
Tok/s13900.713871.2-29.469
Avg s/step2.8622.731-0.131
Memory %1.381.380
JAX0.9.20.9.2

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

XPK Start: Thu Apr 23 09:38:43 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-23 09:39:08.053444: 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)
I0423 09:39:08.264802 137828534298432 max_utils.py:273] Attempting to initialize the jax distributed system...
I0423 09:39:17.304452 137828534298432 distributed.py:149] Starting JAX distributed service on [::]:8482
I0423 09:39:17.306771 137828534298432 distributed.py:172] Connecting to JAX distributed service on mt-01-base-4ultc-slice-job-0-0.mt-01-base-4ultc:8482
I0423 09:39:18.986263 137828534298432 max_utils.py:284] Jax distributed system initialized!
I0423 09:39:25.028773 137828534298432 max_utils.py:800] System Information: Jax Version: 0.9.2
I0423 09:39:25.028880 137828534298432 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0423 09:39:25.028922 137828534298432 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
I0423 09:39:25.028962 137828534298432 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0423 09:39:25.725377 137828534298432 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0423 09:39:25.725979 137828534298432 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0423 09:39:25.726161 137828534298432 checkpointing.py:688] Setting up checkpoint logger...
I0423 09:39:25.726215 137828534298432 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0423 09:39:25.726260 137828534298432 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0423 09:39:25.726600 137828534298432 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 0x7d59fd24fc20>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0423 09:39:29.460740 137828534298432 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0423 09:39:29.460978 137828534298432 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 0x7d45b84c9b20>}, handler_registry=None
I0423 09:39:29.461230 137828534298432 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d45b84c9b20>` 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`.
I0423 09:39:29.461294 137828534298432 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d58f07b05c0>` 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`.
I0423 09:39:29.461333 137828534298432 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 0x7d45b84c9b20>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d45b84c9b20>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d58f07b05c0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d58f07b05c0>}).
I0423 09:39:29.461684 137828534298432 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0423 09:39:29.461759 137828534298432 async_checkpointer.py:192] [process=5][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7d44d85a5bc0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0423 09:39:31.151695 137828534298432 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints
I0423 09:39:31.533826 137828534298432 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_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7d45b84cb9e0>
I0423 09:39:31.533998 137828534298432 checkpointing.py:302] Checkpoint manager created!
I0423 09:39:32.460258 137828534298432 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0423 09:39:32.460365 137828534298432 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 09:39:32.840504 137828534298432 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0423 09:39:32.840597 137828534298432 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 09:39:32.856986 137828534298432 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0423 09:39:32.857042 137828534298432 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 09:39:32.881310 137828534298432 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0423 09:39:32.881379 137828534298432 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 09:39:32.897824 137828534298432 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0423 09:39:32.897885 137828534298432 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 09:39:32.914241 137828534298432 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0423 09:39:32.914306 137828534298432 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 09:39:32.939217 137828534298432 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0423 09:39:32.939287 137828534298432 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 09:39:32.960369 137828534298432 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0423 09:39:32.960438 137828534298432 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0423 09:39:33.177486 137828534298432 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0423 09:39:33.177592 137828534298432 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0423 09:39:34.624887 137828534298432 maxtext_utils.py:1835]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0423 09:39:34.625016 137828534298432 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)
I0423 09:39:34.625070 137828534298432 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)
I0423 09:39:34.625128 137828534298432 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')
I0423 09:39:34.625188 137828534298432 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)
I0423 09:39:34.625228 137828534298432 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)
I0423 09:39:34.625305 137828534298432 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)
I0423 09:39:34.625377 137828534298432 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')
I0423 09:39:34.625421 137828534298432 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)
I0423 09:39:34.625466 137828534298432 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)
I0423 09:39:34.625515 137828534298432 maxtext_utils.py:1835]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0423 09:39:34.625566 137828534298432 maxtext_utils.py:1835]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')

I0423 09:39:35.119101 137828534298432 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0423 09:39:35.119196 137828534298432 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0423 09:39:35.134859 137828534298432 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0423 09:39:35.134930 137828534298432 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0423 09:39:46.175080 137828534298432 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.
I0423 09:39:46.175812 137828534298432 metric_logger.py:301] number parameters: 1.104 billion
I0423 09:39:57.711232 137828534298432 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0423 09:39:57.864979 137828534298432 checkpointing.py:798] Waited 0.15372967720031738 seconds for step 0 to finish before starting checkpointing.
I0423 09:39:57.867517 137828534298432 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0423 09:39:57.869216 137828534298432 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 0
I0423 09:39:57.870677 137828534298432 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/0.
I0423 09:39:59.064054 137828534298432 signaling_client.py:364] Using JaxDistributedSignalingClient
I0423 09:39:59.064940 137828534298432 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0423 09:39:59.065000 137828534298432 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
I0423 09:39:59.338354 137828534298432 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.274374s
I0423 09:39:59.338529 137828534298432 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 5.508 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2800564765930176 s) (per-host)
I0423 09:39:59.338583 137828534298432 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.280120s (batch_requests_ready=0.002336s, total_serialization_initiated=0.277712s, others=0.000072s)
I0423 09:39:59.338689 137828534298432 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.285352s (all_items=0.000018s, per_item={'items': '0.00001764'}, temp_paths=0.285334)
I0423 09:39:59.339580 137828534298432 event_tracking.py:125] [process=5] [async] Finished blocking save in 1.47 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/0.
I0423 09:39:59.339904 137698291472128 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-23 09:59:59.339860
I0423 09:39:59.774248 137828534298432 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0423 09:39:59.774681 137699361703680 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0423 09:39:59.774829 137828534298432 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776937197.8675, 'wait_for_prev_duration_secs': 5.793571472167969e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776937197.8692586, 'checkpointer_blocking_duration_secs': 1.470757246017456, 'get_old_steps_start_time': 1776937199.3400416, 'get_old_steps_duration_secs': 3.147125244140625e-05, 'checkpoint_manager_blocking_start_time': 1776937197.8653824, 'checkpoint_manager_blocking_duration_secs': 1.9094033241271973}
I0423 09:39:59.775004 137828534298432 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0423 09:39:59.775060 137828534298432 max_utils.py:750] 
Memstats: After params initialized:
I0423 09:39:59.775119 137828534298432 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_18(process=5,(2,4,0,0))
I0423 09:39:59.775151 137828534298432 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_19(process=5,(3,4,0,0))
I0423 09:39:59.775179 137828534298432 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_22(process=5,(2,5,0,0))
I0423 09:39:59.775205 137828534298432 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_23(process=5,(3,5,0,0))
I0423 09:40:00.092094 137828534298432 metric_logger.py:196] completed step: 0, seconds: 11.535, TFLOP/s/device: 1.178, Tokens/s/device: 177.542, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0423 09:40:00.266618 137828534298432 metric_logger.py:196] completed step: 1, seconds: 2.379, TFLOP/s/device: 5.710, Tokens/s/device: 860.734, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0423 09:40:00.738634 137828534298432 metric_logger.py:196] completed step: 2, seconds: 0.027, TFLOP/s/device: 498.098, Tokens/s/device: 75078.818, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0423 09:40:00.886295 137828534298432 metric_logger.py:196] completed step: 3, seconds: 0.472, TFLOP/s/device: 28.783, Tokens/s/device: 4338.533, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0423 09:40:01.181428 137828534298432 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.558, Tokens/s/device: 13348.455, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0423 09:40:01.187482 137828534298432 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.179, Tokens/s/device: 13894.260, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0423 09:40:02.473685    2856 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0423 09:40:05.785338 137698299864832 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_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/0/items/array_metadatas/process_5
I0423 09:40:23.322725 137828534298432 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.948, Tokens/s/device: 6925.751, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0423 09:40:23.470101 137828534298432 metric_logger.py:196] completed step: 7, seconds: 21.988, TFLOP/s/device: 0.618, Tokens/s/device: 93.140, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0423 09:40:23.617408 137828534298432 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.190, Tokens/s/device: 13443.613, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0423 09:40:23.763942 137828534298432 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0423 09:40:23.764606 137828534298432 checkpointing.py:798] Waited 0.0006868839263916016 seconds for step 9 to finish before starting checkpointing.
I0423 09:40:23.767349 137828534298432 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0423 09:40:36.704344 137698291472128 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 41.959 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 37.64581871032715 s) (per-host)
I0423 09:40:36.704524 137698291472128 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 37.363979s.
I0423 09:40:44.817902 137698291472128 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 45.477342s.
I0423 09:40:44.818104 137699361703680 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0423 09:40:44.818160 137699361703680 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0423 09:40:44.818213 137699361703680 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0423 09:40:44.820084 137699361703680 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0423 09:40:44.820256 137828534298432 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.
W0423 09:40:44.820393 137828534298432 checkpoint_manager.py:1452] Waiting for previous save to complete took 21.053044 seconds. If this number is high, consider checkpointing less frequently.
I0423 09:40:44.822226 137828534298432 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 9
I0423 09:40:44.824230 137828534298432 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/9.
I0423 09:40:45.533905 137828534298432 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0423 09:40:45.534000 137828534298432 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
I0423 09:40:45.567435 137828534298432 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.034571s
I0423 09:40:45.567598 137828534298432 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 40.454 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.0381319522857666 s) (per-host)
I0423 09:40:45.567648 137828534298432 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.038191s (batch_requests_ready=0.001899s, total_serialization_initiated=0.036225s, others=0.000067s)
I0423 09:40:45.567755 137828534298432 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.042555s (all_items=0.000016s, per_item={'items': '0.00001621'}, temp_paths=0.042539)
I0423 09:40:45.568477 137828534298432 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_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/9.
I0423 09:40:45.568820 137699361703680 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-23 10:00:45.568782
I0423 09:40:45.570796 137828534298432 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0423 09:40:45.571095 137698866099968 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0423 09:40:45.571230 137828534298432 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776937223.7673194, 'wait_for_prev_duration_secs': 21.053044080734253, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776937244.8222647, 'checkpointer_blocking_duration_secs': 0.7467010021209717, 'get_old_steps_start_time': 1776937245.5689886, 'get_old_steps_duration_secs': 3.170967102050781e-05, 'checkpoint_manager_blocking_start_time': 1776937223.7648518, 'checkpoint_manager_blocking_duration_secs': 21.806342601776123}
I0423 09:40:45.571402 137828534298432 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0423 09:40:45.571449 137828534298432 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0423 09:40:52.058676 137698299864832 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_20260423_093806/linen_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/9/items/array_metadatas/process_5
I0423 09:41:27.812899 137699361703680 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 37.357 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.28339195251465 s) (per-host)
I0423 09:41:27.813035 137699361703680 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.244102s.
I0423 09:41:38.207780 137699361703680 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 52.638832s.
I0423 09:41:38.208065 137698866099968 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0423 09:41:38.208180 137698866099968 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0423 09:41:38.208231 137698866099968 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0423 09:41:38.210164 137698866099968 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0423 09:41:38.210341 137828534298432 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.
I0423 09:41:38.210490 137828534298432 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0423 09:41:38.211419 137828534298432 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.222, Tokens/s/device: 13900.673, 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: Thu Apr 23 09:41:48 UTC 2026
EXIT_CODE=0
XPK Start: Thu Apr 23 11:15:13 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-23 11:15:38.746938: 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)
I0423 11:15:38.957235 138090016335680 max_utils.py:273] Attempting to initialize the jax distributed system...
I0423 11:15:47.998805 138090016335680 distributed.py:149] Starting JAX distributed service on [::]:8482
I0423 11:15:48.001307 138090016335680 distributed.py:172] Connecting to JAX distributed service on mt-01-base-tarj1-slice-job-0-0.mt-01-base-tarj1:8482
I0423 11:15:49.022374 138090016335680 max_utils.py:284] Jax distributed system initialized!
I0423 11:15:55.154969 138090016335680 max_utils.py:800] System Information: Jax Version: 0.9.2
I0423 11:15:55.155071 138090016335680 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0423 11:15:55.155126 138090016335680 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
I0423 11:15:55.155165 138090016335680 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0423 11:15:55.854568 138090016335680 maxtext_utils.py:1771] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0423 11:15:55.967245 138090016335680 checkpointing.py:688] Setting up checkpoint logger...
I0423 11:15:55.967366 138090016335680 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0423 11:15:55.967410 138090016335680 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0423 11:15:55.967602 138090016335680 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 0x7d970c519d30>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0423 11:15:59.670429 138090016335680 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0423 11:15:59.670673 138090016335680 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 0x7d82dc0b1820>}, handler_registry=None
I0423 11:15:59.670903 138090016335680 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d82dc0b1820>` 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`.
I0423 11:15:59.670949 138090016335680 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d82d471b590>` 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`.
I0423 11:15:59.670985 138090016335680 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 0x7d82dc0b1820>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d82dc0b1820>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d82d471b590>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d82d471b590>}).
I0423 11:15:59.671315 138090016335680 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0423 11:15:59.671385 138090016335680 async_checkpointer.py:192] [process=6][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7d82d474b6a0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0423 11:16:01.104363 138090016335680 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints
I0423 11:16:01.497180 138090016335680 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_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7d95d277ccb0>
I0423 11:16:01.497350 138090016335680 checkpointing.py:302] Checkpoint manager created!
I0423 11:16:02.467461 138090016335680 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0423 11:16:02.467579 138090016335680 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32

I0423 11:16:04.234234 138090016335680 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0423 11:16:04.234337 138090016335680 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 11:16:04.239901 138090016335680 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0423 11:16:04.239959 138090016335680 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 11:16:04.256490 138090016335680 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0423 11:16:04.256547 138090016335680 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 11:16:04.272240 138090016335680 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0423 11:16:04.272296 138090016335680 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0423 11:16:04.296258 138090016335680 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0423 11:16:04.296325 138090016335680 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 11:16:04.312312 138090016335680 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0423 11:16:04.312375 138090016335680 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 11:16:04.328209 138090016335680 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0423 11:16:04.328272 138090016335680 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 11:16:04.359848 138090016335680 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0423 11:16:04.359918 138090016335680 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0423 11:16:04.379955 138090016335680 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0423 11:16:04.380016 138090016335680 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0423 11:16:15.896249 138090016335680 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.
I0423 11:16:15.898563 138090016335680 metric_logger.py:301] number parameters: 1.104 billion
I0423 11:16:27.088197 138090016335680 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0423 11:16:27.240398 138090016335680 checkpointing.py:798] Waited 0.15218567848205566 seconds for step 0 to finish before starting checkpointing.
I0423 11:16:27.242649 138090016335680 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0423 11:16:27.244488 138090016335680 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 0
I0423 11:16:27.247184 138090016335680 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/0.
I0423 11:16:27.771079 138090016335680 signaling_client.py:364] Using JaxDistributedSignalingClient
I0423 11:16:27.772153 138090016335680 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0423 11:16:27.772210 138090016335680 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
I0423 11:16:28.045539 138090016335680 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.275213s
I0423 11:16:28.045716 138090016335680 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 5.422 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.28450894355773926 s) (per-host)
I0423 11:16:28.045770 138090016335680 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.284574s (batch_requests_ready=0.003208s, total_serialization_initiated=0.281293s, others=0.000072s)
I0423 11:16:28.045865 138090016335680 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.288641s (all_items=0.000035s, per_item={'items': '0.00003481'}, temp_paths=0.288606)
I0423 11:16:28.046654 138090016335680 event_tracking.py:125] [process=6] [async] Finished blocking save in 0.80 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/0.
I0423 11:16:28.046918 137961191593728 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-23 11:36:28.046894
I0423 11:16:28.055703 138090016335680 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0423 11:16:28.055984 137959009408768 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0423 11:16:28.056147 138090016335680 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776942987.2426307, 'wait_for_prev_duration_secs': 6.103515625e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776942987.2445276, 'checkpointer_blocking_duration_secs': 0.802501916885376, 'get_old_steps_start_time': 1776942988.0470536, 'get_old_steps_duration_secs': 3.0040740966796875e-05, 'checkpoint_manager_blocking_start_time': 1776942987.2407906, 'checkpoint_manager_blocking_duration_secs': 0.8153135776519775}
I0423 11:16:28.056259 138090016335680 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0423 11:16:28.056334 138090016335680 max_utils.py:750] 
Memstats: After params initialized:
I0423 11:16:28.056385 138090016335680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_24(process=6,(0,6,0,0))
I0423 11:16:28.056419 138090016335680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_25(process=6,(1,6,0,0))
I0423 11:16:28.056443 138090016335680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_28(process=6,(0,7,0,0))
I0423 11:16:28.056467 138090016335680 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_29(process=6,(1,7,0,0))
I0423 11:16:28.376403 138090016335680 metric_logger.py:196] completed step: 0, seconds: 11.189, TFLOP/s/device: 1.214, Tokens/s/device: 183.044, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0423 11:16:28.545179 138090016335680 metric_logger.py:196] completed step: 1, seconds: 1.286, TFLOP/s/device: 10.563, Tokens/s/device: 1592.198, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52786.469
I0423 11:16:28.965565 138090016335680 metric_logger.py:196] completed step: 2, seconds: 0.024, TFLOP/s/device: 571.801, Tokens/s/device: 86188.031, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28632.133
I0423 11:16:29.113544 138090016335680 metric_logger.py:196] completed step: 3, seconds: 0.409, TFLOP/s/device: 33.208, Tokens/s/device: 5005.475, total_weights: 65536, loss: 9.732, lm_loss: 9.732, perplexity: 16855.789
I0423 11:16:29.409235 138090016335680 metric_logger.py:196] completed step: 4, seconds: 0.164, TFLOP/s/device: 82.689, Tokens/s/device: 12463.713, total_weights: 65536, loss: 9.274, lm_loss: 9.274, perplexity: 10661.594
I0423 11:16:29.416848 138090016335680 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.120, Tokens/s/device: 13885.311, total_weights: 65536, loss: 8.888, lm_loss: 8.888, perplexity: 7245.978
I0423 11:16:30.968739    2864 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0423 11:16:33.028251 137959017801472 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_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/0/items/array_metadatas/process_6
I0423 11:16:51.516429 138090016335680 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.834, Tokens/s/device: 6908.626, total_weights: 65536, loss: 8.589, lm_loss: 8.589, perplexity: 5371.156
I0423 11:16:51.663674 138090016335680 metric_logger.py:196] completed step: 7, seconds: 21.953, TFLOP/s/device: 0.619, Tokens/s/device: 93.290, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4360.465
I0423 11:16:51.811187 138090016335680 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 88.636, Tokens/s/device: 13360.210, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.256
I0423 11:16:51.959211 138090016335680 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0423 11:16:51.959874 138090016335680 checkpointing.py:798] Waited 0.0006768703460693359 seconds for step 9 to finish before starting checkpointing.
I0423 11:16:51.961978 138090016335680 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0423 11:17:04.682142 137961191593728 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 42.783 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 36.920884132385254 s) (per-host)
I0423 11:17:04.682262 137961191593728 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 36.635264s.
I0423 11:17:12.995744 137961191593728 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 44.948729s.
I0423 11:17:12.996033 137959009408768 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0423 11:17:12.996172 137959009408768 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0423 11:17:12.996236 137959009408768 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0423 11:17:12.998644 137959009408768 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0423 11:17:12.998883 138090016335680 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.
W0423 11:17:12.999021 138090016335680 checkpoint_manager.py:1452] Waiting for previous save to complete took 21.037044 seconds. If this number is high, consider checkpointing less frequently.
I0423 11:17:13.000747 138090016335680 checkpoint_manager.py:1512] [process=6] Saving checkpoint at step 9
I0423 11:17:13.002777 138090016335680 event_tracking.py:70] [process=6] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/9.
I0423 11:17:13.288667 138090016335680 jax_array_handlers.py:360] Scheduling D2H of 69 prioritized jax.Array.
I0423 11:17:13.288762 138090016335680 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
I0423 11:17:13.326505 138090016335680 base_pytree_checkpoint_handler.py:154] [process=6][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.039467s
I0423 11:17:13.326672 138090016335680 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/blocking_gbytes_per_sec: 32.986 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04676461219787598 s) (per-host)
I0423 11:17:13.326723 138090016335680 base_pytree_checkpoint_handler.py:768] [process=6][thread=MainThread] Initiated Pytree async_save. Time taken: 0.046824s (batch_requests_ready=0.002859s, total_serialization_initiated=0.043898s, others=0.000067s)
I0423 11:17:13.326815 138090016335680 composite_checkpoint_handler.py:715] [process=6][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.050921s (all_items=0.000016s, per_item={'items': '0.00001574'}, temp_paths=0.050905)
I0423 11:17:13.327559 138090016335680 event_tracking.py:125] [process=6] [async] Finished blocking save in 0.33 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/9.
I0423 11:17:13.327896 137959009408768 async_checkpointer.py:76] [process=6][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-23 11:37:13.327860
I0423 11:17:13.329871 138090016335680 checkpoint_manager.py:1560] [process=6][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0423 11:17:13.330141 137961183201024 async_checkpointer.py:280] [process=6][thread=save_finalize] Waiting for background save thread=async_save.
I0423 11:17:13.330303 138090016335680 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776943011.9619482, 'wait_for_prev_duration_secs': 21.037044048309326, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776943033.0007868, 'checkpointer_blocking_duration_secs': 0.32724595069885254, 'get_old_steps_start_time': 1776943033.3280563, 'get_old_steps_duration_secs': 3.0040740966796875e-05, 'checkpoint_manager_blocking_start_time': 1776943011.9601164, 'checkpoint_manager_blocking_duration_secs': 21.370151042938232}
I0423 11:17:13.330413 138090016335680 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0423 11:17:13.330457 138090016335680 checkpoint_manager.py:2020] [process=6][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0423 11:17:18.878546 137936490194688 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_20260423_093806/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260423_093806_01_base/checkpoints/9/items/array_metadatas/process_6
I0423 11:17:55.851969 137959009408768 base_pytree_checkpoint_handler.py:130] [process=6] /jax/orbax/write/gbytes_per_sec: 37.104 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.57203149795532 s) (per-host)
I0423 11:17:55.852072 137959009408768 async_checkpointer.py:90] [process=6][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.524067s.
I0423 11:18:03.625152 137959009408768 async_checkpointer.py:160] [process=6][thread=async_save] Background save thread done. Time taken: 50.297132s.
I0423 11:18:03.625439 137961183201024 async_checkpointer.py:288] [process=6][thread=save_finalize] Done with waiting for background save thread=async_save.
I0423 11:18:03.625568 137961183201024 async_checkpointer.py:298] [process=6][thread=save_finalize] No errors found in background save thread=async_save.
I0423 11:18:03.625617 137961183201024 checkpoint_manager.py:2137] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0423 11:18:03.627994 137961183201024 checkpoint_manager.py:2146] [process=6][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0423 11:18:03.628180 138090016335680 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.
I0423 11:18:03.628345 138090016335680 checkpoint_manager.py:2009] [process=6][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0423 11:18:03.629311 138090016335680 metric_logger.py:196] completed step: 9, seconds: 0.148, TFLOP/s/device: 92.026, Tokens/s/device: 13871.204, 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: Thu Apr 23 11:18:13 UTC 2026
EXIT_CODE=0