MaxView

‹ 03_dropoutCase: 04_int805_fp8 ›

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

MetricLinen  f093f3730NNX  f093f3730Diff (NNX − Linen)
Parameters1.104 billion1.104 billion
Final loss8.17508.1740-0.001
TFLOP/s59.22259.276+0.054
Tok/s8926.68934.8+8.139
Avg s/step3.5693.471-0.098
Memory %1.381.380
JAX0.9.20.9.2

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

XPK Start: Fri Apr 24 09:19:17 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-24 09:19:42.780965: 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)
I0424 09:19:42.991119 135780342482752 max_utils.py:273] Attempting to initialize the jax distributed system...
I0424 09:19:52.031165 135780342482752 distributed.py:149] Starting JAX distributed service on [::]:8482
I0424 09:19:52.033485 135780342482752 distributed.py:172] Connecting to JAX distributed service on mt-04-int8-q82u4-slice-job-0-0.mt-04-int8-q82u4:8482
I0424 09:19:53.110687 135780342482752 max_utils.py:284] Jax distributed system initialized!
I0424 09:19:59.147701 135780342482752 max_utils.py:800] System Information: Jax Version: 0.9.2
I0424 09:19:59.147813 135780342482752 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0424 09:19:59.147853 135780342482752 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
I0424 09:19:59.147889 135780342482752 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0424 09:19:59.840018 135780342482752 maxtext_utils.py:1771] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 09:19:59.840611 135780342482752 maxtext_utils.py:1771] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 09:19:59.840908 135780342482752 checkpointing.py:688] Setting up checkpoint logger...
I0424 09:19:59.840979 135780342482752 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0424 09:19:59.841023 135780342482752 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0424 09:19:59.841356 135780342482752 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 0x7b7d1b44c170>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0424 09:20:02.794000 135780342482752 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0424 09:20:02.794239 135780342482752 checkpoint_manager.py:708] [process=3][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7b68c01878f0>}, handler_registry=None
I0424 09:20:02.794487 135780342482752 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7b68c01878f0>` 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`.
I0424 09:20:02.794538 135780342482752 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7b68c079be00>` 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`.
I0424 09:20:02.794573 135780342482752 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 0x7b68c01878f0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7b68c01878f0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7b68c079be00>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7b68c079be00>}).
I0424 09:20:02.794906 135780342482752 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0424 09:20:02.795003 135780342482752 async_checkpointer.py:192] [process=3][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7b68c01ddf80> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0424 09:20:04.964010 135780342482752 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints
I0424 09:20:04.966326 135780342482752 checkpoint_manager.py:929] [process=3][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_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7b7c0eb25a30>
I0424 09:20:04.966440 135780342482752 checkpointing.py:302] Checkpoint manager created!
I0424 09:20:06.129510 135780342482752 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 09:20:06.129621 135780342482752 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 09:20:06.514465 135780342482752 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch_attn', 'activation_length_attn', 'activation_embed_attn').
I0424 09:20:06.514568 135780342482752 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 09:20:06.530983 135780342482752 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch_attn', 'activation_length_attn', 'activation_embed_attn').
I0424 09:20:06.531043 135780342482752 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 09:20:06.600237 135780342482752 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_length_attn', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 09:20:06.600332 135780342482752 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:20:06.616822 135780342482752 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_length_attn', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 09:20:06.616890 135780342482752 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:20:06.633414 135780342482752 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_length_attn', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 09:20:06.633481 135780342482752 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:20:06.658831 135780342482752 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch_attn', 'activation_length_attn', 'activation_heads', 'activation_kv').
I0424 09:20:06.658900 135780342482752 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 09:20:06.724679 135780342482752 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0424 09:20:06.724764 135780342482752 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0424 09:20:07.244729 135780342482752 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0424 09:20:07.244842 135780342482752 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0424 09:20:09.712208 135780342482752 maxtext_utils.py:1874]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0424 09:20:09.712339 135780342482752 maxtext_utils.py:1874]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0424 09:20:09.712393 135780342482752 maxtext_utils.py:1874]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0424 09:20:09.712453 135780342482752 maxtext_utils.py:1874]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0424 09:20:09.712508 135780342482752 maxtext_utils.py:1874]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0424 09:20:09.712551 135780342482752 maxtext_utils.py:1874]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0424 09:20:09.712604 135780342482752 maxtext_utils.py:1874]  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)
I0424 09:20:09.712659 135780342482752 maxtext_utils.py:1874]  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')
I0424 09:20:09.712705 135780342482752 maxtext_utils.py:1874]  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)
I0424 09:20:09.712742 135780342482752 maxtext_utils.py:1874]  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)
I0424 09:20:09.712790 135780342482752 maxtext_utils.py:1874]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0424 09:20:09.712837 135780342482752 maxtext_utils.py:1874]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0424 09:20:11.113860 135780342482752 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0424 09:20:11.113969 135780342482752 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0424 09:20:11.129539 135780342482752 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0424 09:20:11.129600 135780342482752 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0424 09:20:24.845960 135780342482752 max_utils.py:791] Total memory size: 1.8 GB, Output size: 0.4 GB, Temp size: 1.4 GB, Argument size: 0.4 GB, Host temp size: 0.0 GB.
I0424 09:20:24.846762 135780342482752 metric_logger.py:301] number parameters: 1.104 billion
I0424 09:20:39.648265 135780342482752 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0424 09:20:39.887902 135780342482752 checkpointing.py:798] Waited 0.23961687088012695 seconds for step 0 to finish before starting checkpointing.
I0424 09:20:39.890537 135780342482752 checkpoint_manager.py:2009] [process=3][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 09:20:39.892394 135780342482752 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 0
I0424 09:20:39.893808 135780342482752 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/0.
I0424 09:20:40.229584 135780342482752 signaling_client.py:364] Using JaxDistributedSignalingClient
I0424 09:20:40.230631 135780342482752 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 09:20:40.230689 135780342482752 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
I0424 09:20:40.509110 135780342482752 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.279598s
I0424 09:20:40.509286 135780342482752 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 5.411 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2850663661956787 s) (per-host)
I0424 09:20:40.509340 135780342482752 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.285130s (batch_requests_ready=0.002219s, total_serialization_initiated=0.282839s, others=0.000072s)
I0424 09:20:40.509434 135780342482752 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.289402s (all_items=0.000017s, per_item={'items': '0.00001669'}, temp_paths=0.289385)
I0424 09:20:40.510281 135780342482752 event_tracking.py:125] [process=3] [async] Finished blocking save in 0.62 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/0.
I0424 09:20:40.510629 135647243261696 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 09:40:40.510588
I0424 09:20:40.520433 135780342482752 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 09:20:40.520709 135648299382528 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0424 09:20:40.520864 135780342482752 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777022439.8905184, 'wait_for_prev_duration_secs': 6.008148193359375e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777022439.8924322, 'checkpointer_blocking_duration_secs': 0.6183655261993408, 'get_old_steps_start_time': 1777022440.5108216, 'get_old_steps_duration_secs': 3.0279159545898438e-05, 'checkpoint_manager_blocking_start_time': 1777022439.8884604, 'checkpoint_manager_blocking_duration_secs': 0.6323652267456055}
I0424 09:20:40.520981 135780342482752 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0424 09:20:40.521033 135780342482752 max_utils.py:750] 
Memstats: After params initialized:
I0424 09:20:40.521084 135780342482752 max_utils.py:756] 	Using (GB) 0.44 / 31.25 (1.408000%) on TPU_10(process=3,(2,2,0,0))
I0424 09:20:40.521120 135780342482752 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_11(process=3,(3,2,0,0))
I0424 09:20:40.521148 135780342482752 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_14(process=3,(2,3,0,0))
I0424 09:20:40.521170 135780342482752 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_15(process=3,(3,3,0,0))
I0424 09:20:40.837522 135780342482752 metric_logger.py:196] completed step: 0, seconds: 14.801, TFLOP/s/device: 0.918, Tokens/s/device: 138.365, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52796.277
I0424 09:20:41.097041 135780342482752 metric_logger.py:196] completed step: 1, seconds: 1.188, TFLOP/s/device: 11.440, Tokens/s/device: 1724.295, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52796.277
I0424 09:20:41.520208 135780342482752 metric_logger.py:196] completed step: 2, seconds: 0.030, TFLOP/s/device: 449.577, Tokens/s/device: 67765.204, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28634.820
I0424 09:20:41.749857 135780342482752 metric_logger.py:196] completed step: 3, seconds: 0.424, TFLOP/s/device: 32.061, Tokens/s/device: 4832.605, total_weights: 65536, loss: 9.731, lm_loss: 9.731, perplexity: 16827.199
I0424 09:20:42.208755 135780342482752 metric_logger.py:196] completed step: 4, seconds: 0.235, TFLOP/s/device: 57.846, Tokens/s/device: 8719.235, total_weights: 65536, loss: 9.272, lm_loss: 9.272, perplexity: 10638.531
I0424 09:20:42.214950 135780342482752 metric_logger.py:196] completed step: 5, seconds: 0.230, TFLOP/s/device: 59.178, Tokens/s/device: 8919.977, total_weights: 65536, loss: 8.887, lm_loss: 8.887, perplexity: 7233.941
I0424 09:20:43.557030    2926 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0424 09:20:45.575431 135647251654400 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/0/items/array_metadatas/process_3
I0424 09:21:11.539294 135780342482752 metric_logger.py:196] completed step: 6, seconds: 0.459, TFLOP/s/device: 29.580, Tokens/s/device: 4458.561, total_weights: 65536, loss: 8.588, lm_loss: 8.588, perplexity: 5365.468
I0424 09:21:11.768799 135780342482752 metric_logger.py:196] completed step: 7, seconds: 29.096, TFLOP/s/device: 0.467, Tokens/s/device: 70.387, total_weights: 65536, loss: 8.380, lm_loss: 8.380, perplexity: 4358.779
I0424 09:21:11.997878 135780342482752 metric_logger.py:196] completed step: 8, seconds: 0.234, TFLOP/s/device: 58.083, Tokens/s/device: 8754.905, total_weights: 65536, loss: 8.251, lm_loss: 8.251, perplexity: 3831.453
I0424 09:21:12.226586 135780342482752 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0424 09:21:12.227263 135780342482752 checkpointing.py:798] Waited 0.0006976127624511719 seconds for step 9 to finish before starting checkpointing.
I0424 09:21:12.229470 135780342482752 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 09:21:13.772871 135647243261696 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 47.084 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 33.54861307144165 s) (per-host)
I0424 09:21:13.773006 135647243261696 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 33.262259s.
I0424 09:21:22.271774 135647243261696 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 41.761009s.
I0424 09:21:22.272100 135648299382528 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 09:21:22.272222 135648299382528 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0424 09:21:22.272272 135648299382528 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0424 09:21:22.273695 135648299382528 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0424 09:21:22.273874 135780342482752 checkpoint_manager.py:2032] [process=3][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0424 09:21:22.274021 135780342482752 checkpoint_manager.py:1452] Waiting for previous save to complete took 10.044551 seconds. If this number is high, consider checkpointing less frequently.
I0424 09:21:22.276012 135780342482752 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 9
I0424 09:21:22.278097 135780342482752 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/9.
I0424 09:21:22.722848 135780342482752 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 09:21:22.722957 135780342482752 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
I0424 09:21:22.756427 135780342482752 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.035517s
I0424 09:21:22.756571 135780342482752 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 39.606 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03894758224487305 s) (per-host)
I0424 09:21:22.756620 135780342482752 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.039005s (batch_requests_ready=0.001799s, total_serialization_initiated=0.037142s, others=0.000064s)
I0424 09:21:22.756715 135780342482752 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.043167s (all_items=0.000015s, per_item={'items': '0.00001454'}, temp_paths=0.043153)
I0424 09:21:22.757431 135780342482752 event_tracking.py:125] [process=3] [async] Finished blocking save in 0.48 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/9.
I0424 09:21:22.757791 135648299382528 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 09:41:22.757749
I0424 09:21:22.765191 135780342482752 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 09:21:22.765441 135624543647488 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0424 09:21:22.765609 135780342482752 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777022472.2294397, 'wait_for_prev_duration_secs': 10.044550895690918, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777022482.27605, 'checkpointer_blocking_duration_secs': 0.48189568519592285, 'get_old_steps_start_time': 1777022482.7579687, 'get_old_steps_duration_secs': 2.8848648071289062e-05, 'checkpoint_manager_blocking_start_time': 1777022472.2274876, 'checkpoint_manager_blocking_duration_secs': 10.538086891174316}
I0424 09:21:22.765718 135780342482752 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0424 09:21:22.765763 135780342482752 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 09:21:28.377150 135624451327744 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/linen_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/9/items/array_metadatas/process_3
I0424 09:22:04.392000 135648299382528 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 37.903 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.67431855201721 s) (per-host)
I0424 09:22:04.392122 135648299382528 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.634216s.
I0424 09:22:11.449758 135648299382528 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 48.691835s.
I0424 09:22:11.450107 135624543647488 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 09:22:11.450243 135624543647488 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0424 09:22:11.450294 135624543647488 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0424 09:22:11.451714 135624543647488 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0424 09:22:11.451888 135780342482752 checkpoint_manager.py:2032] [process=3][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0424 09:22:11.452052 135780342482752 checkpoint_manager.py:2009] [process=3][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 09:22:11.452975 135780342482752 metric_logger.py:196] completed step: 9, seconds: 0.229, TFLOP/s/device: 59.222, Tokens/s/device: 8926.626, total_weights: 65536, loss: 8.175, lm_loss: 8.175, perplexity: 3552.333
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 24 09:22:22 UTC 2026
EXIT_CODE=0
XPK Start: Fri Apr 24 10:48:05 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-24 10:48:30.465978: 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)
I0424 10:48:30.677778 134597972383552 max_utils.py:273] Attempting to initialize the jax distributed system...
I0424 10:48:39.717832 134597972383552 distributed.py:149] Starting JAX distributed service on [::]:8482
I0424 10:48:39.720174 134597972383552 distributed.py:172] Connecting to JAX distributed service on mt-04-int8-uuiwu-slice-job-0-0.mt-04-int8-uuiwu:8482
I0424 10:48:40.568824 134597972383552 max_utils.py:284] Jax distributed system initialized!
I0424 10:48:46.379750 134597972383552 max_utils.py:800] System Information: Jax Version: 0.9.2
I0424 10:48:46.379856 134597972383552 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0424 10:48:46.379919 134597972383552 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
I0424 10:48:46.379958 134597972383552 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0424 10:48:47.073976 134597972383552 maxtext_utils.py:1732] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 10:48:47.622556 134597972383552 checkpointing.py:688] Setting up checkpoint logger...
I0424 10:48:47.622676 134597972383552 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0424 10:48:47.622721 134597972383552 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0424 10:48:47.622946 134597972383552 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 0x7a69e771b6e0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0424 10:48:50.563266 134597972383552 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0424 10:48:50.563510 134597972383552 checkpoint_manager.py:708] [process=4][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7a56104cd580>}, handler_registry=None
I0424 10:48:50.563748 134597972383552 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7a56104cd580>` 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`.
I0424 10:48:50.563798 134597972383552 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7a55e8635610>` 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`.
I0424 10:48:50.563835 134597972383552 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 0x7a56104cd580>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7a56104cd580>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7a55e8635610>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7a55e8635610>}).
I0424 10:48:50.564183 134597972383552 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0424 10:48:50.564260 134597972383552 async_checkpointer.py:192] [process=4][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7a56103b31a0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0424 10:48:51.601213 134597972383552 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints
I0424 10:48:51.623043 134597972383552 checkpoint_manager.py:929] [process=4][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_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7a5610334710>
I0424 10:48:51.623173 134597972383552 checkpointing.py:302] Checkpoint manager created!
I0424 10:48:52.989122 134597972383552 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0424 10:48:52.989245 134597972383552 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32

I0424 10:48:55.715578 134597972383552 nnx_decoders.py:465] nnx_decoders/carry Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 10:48:55.715677 134597972383552 nnx_decoders.py:465] nnx_decoders/carry Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:48:55.721115 134597972383552 nnx_decoders.py:465] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 10:48:55.721172 134597972383552 nnx_decoders.py:465] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:48:55.737576 134597972383552 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 10:48:55.737635 134597972383552 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:48:55.753538 134597972383552 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 10:48:55.753596 134597972383552 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 10:48:55.832844 134597972383552 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 10:48:55.832947 134597972383552 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:48:55.849140 134597972383552 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 10:48:55.849205 134597972383552 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:48:55.865311 134597972383552 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0424 10:48:55.865374 134597972383552 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:48:55.895417 134597972383552 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0424 10:48:55.895501 134597972383552 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 10:48:56.395282 134597972383552 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0424 10:48:56.395379 134597972383552 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0424 10:49:10.149521 134597972383552 max_utils.py:791] Total memory size: 1.8 GB, Output size: 0.4 GB, Temp size: 1.4 GB, Argument size: 0.4 GB, Host temp size: 0.0 GB.
I0424 10:49:10.153199 134597972383552 metric_logger.py:301] number parameters: 1.104 billion
I0424 10:49:24.657994 134597972383552 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0424 10:49:24.895349 134597972383552 checkpointing.py:798] Waited 0.23734116554260254 seconds for step 0 to finish before starting checkpointing.
I0424 10:49:24.897659 134597972383552 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 10:49:24.899648 134597972383552 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 0
I0424 10:49:24.901089 134597972383552 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/0.
I0424 10:49:25.228366 134597972383552 signaling_client.py:364] Using JaxDistributedSignalingClient
I0424 10:49:25.229345 134597972383552 jax_array_handlers.py:360] Scheduling D2H of 111 prioritized jax.Array.
I0424 10:49:25.229407 134597972383552 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
I0424 10:49:25.506004 134597972383552 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.279269s
I0424 10:49:25.506178 134597972383552 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 5.240 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.29439687728881836 s) (per-host)
I0424 10:49:25.506229 134597972383552 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.294458s (batch_requests_ready=0.005124s, total_serialization_initiated=0.289264s, others=0.000069s)
I0424 10:49:25.506352 134597972383552 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.298728s (all_items=0.000018s, per_item={'items': '0.00001764'}, temp_paths=0.298710)
I0424 10:49:25.507086 134597972383552 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.61 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/0.
I0424 10:49:25.507406 134468757079808 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 11:09:25.507366
I0424 10:49:25.519156 134597972383552 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 10:49:25.519468 134465514882816 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0424 10:49:25.519630 134597972383552 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777027764.8976405, 'wait_for_prev_duration_secs': 6.604194641113281e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777027764.899691, 'checkpointer_blocking_duration_secs': 0.6078639030456543, 'get_old_steps_start_time': 1777027765.5075815, 'get_old_steps_duration_secs': 3.075599670410156e-05, 'checkpoint_manager_blocking_start_time': 1777027764.895808, 'checkpoint_manager_blocking_duration_secs': 0.6237828731536865}
I0424 10:49:25.519748 134597972383552 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0424 10:49:25.519829 134597972383552 max_utils.py:750] 
Memstats: After params initialized:
I0424 10:49:25.519894 134597972383552 max_utils.py:756] 	Using (GB) 0.44 / 31.25 (1.408000%) on TPU_16(process=4,(0,4,0,0))
I0424 10:49:25.519930 134597972383552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_17(process=4,(1,4,0,0))
I0424 10:49:25.519958 134597972383552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_20(process=4,(0,5,0,0))
I0424 10:49:25.519983 134597972383552 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_21(process=4,(1,5,0,0))
I0424 10:49:25.838030 134597972383552 metric_logger.py:196] completed step: 0, seconds: 14.503, TFLOP/s/device: 0.937, Tokens/s/device: 141.214, total_weights: 65536, loss: 10.872, lm_loss: 10.872, perplexity: 52668.902
I0424 10:49:26.092724 134597972383552 metric_logger.py:196] completed step: 1, seconds: 1.178, TFLOP/s/device: 11.538, Tokens/s/device: 1739.076, total_weights: 65536, loss: 10.872, lm_loss: 10.872, perplexity: 52668.902
I0424 10:49:26.541089 134597972383552 metric_logger.py:196] completed step: 2, seconds: 0.028, TFLOP/s/device: 477.915, Tokens/s/device: 72036.581, total_weights: 65536, loss: 10.260, lm_loss: 10.260, perplexity: 28557.658
I0424 10:49:26.770420 134597972383552 metric_logger.py:196] completed step: 3, seconds: 0.428, TFLOP/s/device: 31.780, Tokens/s/device: 4790.273, total_weights: 65536, loss: 9.728, lm_loss: 9.728, perplexity: 16789.145
I0424 10:49:27.229805 134597972383552 metric_logger.py:196] completed step: 4, seconds: 0.257, TFLOP/s/device: 52.949, Tokens/s/device: 7981.076, total_weights: 65536, loss: 9.271, lm_loss: 9.271, perplexity: 10625.563
I0424 10:49:27.238546 134597972383552 metric_logger.py:196] completed step: 5, seconds: 0.229, TFLOP/s/device: 59.278, Tokens/s/device: 8934.960, total_weights: 65536, loss: 8.885, lm_loss: 8.885, perplexity: 7225.917
I0424 10:49:28.388046    2907 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0424 10:49:30.417481 134466068539136 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 111 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/0/items/array_metadatas/process_4
I0424 10:49:55.663614 134597972383552 metric_logger.py:196] completed step: 6, seconds: 0.460, TFLOP/s/device: 29.551, Tokens/s/device: 4454.304, total_weights: 65536, loss: 8.586, lm_loss: 8.586, perplexity: 5354.806
I0424 10:49:55.893128 134597972383552 metric_logger.py:196] completed step: 7, seconds: 28.198, TFLOP/s/device: 0.482, Tokens/s/device: 72.629, total_weights: 65536, loss: 8.378, lm_loss: 8.378, perplexity: 4350.756
I0424 10:49:56.122499 134597972383552 metric_logger.py:196] completed step: 8, seconds: 0.236, TFLOP/s/device: 57.662, Tokens/s/device: 8691.371, total_weights: 65536, loss: 8.249, lm_loss: 8.249, perplexity: 3824.619
I0424 10:49:56.353305 134597972383552 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0424 10:49:56.354261 134597972383552 checkpointing.py:798] Waited 0.0009679794311523438 seconds for step 9 to finish before starting checkpointing.
I0424 10:49:56.356379 134597972383552 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 10:49:57.873033 134468757079808 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 48.363 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 32.661214113235474 s) (per-host)
I0424 10:49:57.873150 134468757079808 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 32.365633s.
I0424 10:50:07.396057 134468757079808 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 41.888521s.
I0424 10:50:07.396358 134465514882816 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 10:50:07.396474 134465514882816 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0424 10:50:07.396524 134465514882816 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0424 10:50:07.398018 134465514882816 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0424 10:50:07.398183 134597972383552 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0424 10:50:07.398314 134597972383552 checkpoint_manager.py:1452] Waiting for previous save to complete took 11.041934 seconds. If this number is high, consider checkpointing less frequently.
I0424 10:50:07.400151 134597972383552 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 9
I0424 10:50:07.402142 134597972383552 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/9.
I0424 10:50:07.735150 134597972383552 jax_array_handlers.py:360] Scheduling D2H of 111 prioritized jax.Array.
I0424 10:50:07.735253 134597972383552 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
I0424 10:50:07.779264 134597972383552 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.046576s
I0424 10:50:07.779431 134597972383552 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 26.119 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.05905914306640625 s) (per-host)
I0424 10:50:07.779483 134597972383552 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.059121s (batch_requests_ready=0.004699s, total_serialization_initiated=0.054353s, others=0.000069s)
I0424 10:50:07.779606 134597972383552 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.063274s (all_items=0.000016s, per_item={'items': '0.00001597'}, temp_paths=0.063258)
I0424 10:50:07.780314 134597972383552 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.38 seconds. Continuing save @ gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/9.
I0424 10:50:07.780662 134465514882816 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 11:10:07.780625
I0424 10:50:07.782607 134597972383552 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 10:50:07.782916 134467677959936 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0424 10:50:07.783053 134597972383552 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777027796.3563502, 'wait_for_prev_duration_secs': 11.041934490203857, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777027807.40019, 'checkpointer_blocking_duration_secs': 0.3806161880493164, 'get_old_steps_start_time': 1777027807.7808309, 'get_old_steps_duration_secs': 2.86102294921875e-05, 'checkpoint_manager_blocking_start_time': 1777027796.3545282, 'checkpoint_manager_blocking_duration_secs': 11.428491353988647}
I0424 10:50:07.783245 134597972383552 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0424 10:50:07.783293 134597972383552 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 10:50:13.314682 134442391688960 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 111 array_metadata.ArrayMetadata to gs://lance-maxtext/nnx_ckpt_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312/nnx_xpk_feat_nnx_trainstate_and_training_loop_20260424_091312_04_int8/checkpoints/9/items/array_metadatas/process_4
I0424 10:50:49.930585 134465514882816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 37.422 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.21019268035889 s) (per-host)
I0424 10:50:49.930687 134465514882816 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.149916s.
I0424 10:50:59.224696 134465514882816 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 51.443902s.
I0424 10:50:59.225014 134467677959936 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 10:50:59.225152 134467677959936 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0424 10:50:59.225201 134467677959936 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0424 10:50:59.226729 134467677959936 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0424 10:50:59.226896 134597972383552 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0424 10:50:59.227074 134597972383552 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 10:50:59.228104 134597972383552 metric_logger.py:196] completed step: 9, seconds: 0.229, TFLOP/s/device: 59.276, Tokens/s/device: 8934.765, total_weights: 65536, loss: 8.174, lm_loss: 8.174, perplexity: 3546.104
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 24 10:51:11 UTC 2026
EXIT_CODE=0