MaxView

‹ 16_zarr3_false_resumeCase: 16_zarr3_false_save16_zarr3_true_resume ›

Metrics: Linen vs NNX  ·  test/pipeline-scan-nnx

MetricLinen  5b21b66fcNNX  5b21b66fcDiff (NNX − Linen)
Parameters1.104 billion
Final loss7.1810
TFLOP/s92.386
Tok/s13925.4
Avg s/step8.160
Memory %1.38
JAX0.9.20.9.2

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

Linen  ·  5b21b66fc  ·  test_pipeline_scan_nnx_20260424_200834  ·  full log
XPK Start: Fri Apr 24 21:29:55 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 21:30:20.650231: 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 21:30:20.860828 137486904252224 max_utils.py:273] Attempting to initialize the jax distributed system...
I0424 21:30:29.901151 137486904252224 distributed.py:149] Starting JAX distributed service on [::]:8482
I0424 21:30:29.903417 137486904252224 distributed.py:172] Connecting to JAX distributed service on mt-16-zarr3-false-sv-86oi5-slice-job-0-0.mt-16-zarr3-false-sv-86oi5:8482
I0424 21:30:31.031341 137486904252224 max_utils.py:284] Jax distributed system initialized!
I0424 21:30:37.033436 137486904252224 max_utils.py:800] System Information: Jax Version: 0.9.2
I0424 21:30:37.033541 137486904252224 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0424 21:30:37.033583 137486904252224 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 21:30:37.033619 137486904252224 train_utils.py:361] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0424 21:30:37.730887 137486904252224 maxtext_utils.py:1565] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0424 21:30:37.731177 137486904252224 checkpointing.py:677] Setting up checkpoint logger...
I0424 21:30:37.731234 137486904252224 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=False
I0424 21:30:37.731280 137486904252224 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0424 21:30:37.731626 137486904252224 base_pytree_checkpoint_handler.py:441] Created BasePyTreeCheckpointHandler: use_ocdbt=True, use_zarr3=False, pytree_metadata_options=PyTreeMetadataOptions(support_rich_types=False), array_metadata_store=<orbax.checkpoint._src.metadata.array_metadata_store.Store object at 0x7d0a9b5b1520>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0424 21:30:40.659899 137486904252224 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0424 21:30:40.660151 137486904252224 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 0x7cf6042af500>}, handler_registry=None
I0424 21:30:40.660390 137486904252224 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7cf6042af500>` 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 21:30:40.660439 137486904252224 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7cf6042b2db0>` 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 21:30:40.660475 137486904252224 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 0x7cf6042af500>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7cf6042af500>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7cf6042b2db0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7cf6042b2db0>}).
I0424 21:30:40.660798 137486904252224 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0424 21:30:40.660866 137486904252224 async_checkpointer.py:192] [process=3][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7cf51c53f2e0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0424 21:30:41.696014 137486904252224 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints
I0424 21:30:41.698327 137486904252224 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=5), 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_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7cf6042b0d70>
I0424 21:30:41.698441 137486904252224 checkpointing.py:301] Checkpoint manager created!
I0424 21:30:42.626157 137486904252224 nnx_wrappers.py:453] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0424 21:30:42.626284 137486904252224 nnx_wrappers.py:453] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 21:30:43.007637 137486904252224 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 21:30:43.007738 137486904252224 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 21:30:43.024213 137486904252224 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0424 21:30:43.024274 137486904252224 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0424 21:30:43.048066 137486904252224 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 21:30:43.048135 137486904252224 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 21:30:43.064598 137486904252224 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 21:30:43.064659 137486904252224 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 21:30:43.081136 137486904252224 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 21:30:43.081201 137486904252224 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 21:30:43.106148 137486904252224 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0424 21:30:43.106218 137486904252224 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0424 21:30:43.127173 137486904252224 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0424 21:30:43.127244 137486904252224 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0424 21:30:43.336709 137486904252224 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0424 21:30:43.336820 137486904252224 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0424 21:30:44.774951 137486904252224 maxtext_utils.py:1668]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0424 21:30:44.775080 137486904252224 maxtext_utils.py:1668]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0424 21:30:44.775139 137486904252224 maxtext_utils.py:1668]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0424 21:30:44.775199 137486904252224 maxtext_utils.py:1668]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0424 21:30:44.775253 137486904252224 maxtext_utils.py:1668]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0424 21:30:44.775292 137486904252224 maxtext_utils.py:1668]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0424 21:30:44.775345 137486904252224 maxtext_utils.py:1668]  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 21:30:44.775397 137486904252224 maxtext_utils.py:1668]  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 21:30:44.775438 137486904252224 maxtext_utils.py:1668]  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 21:30:44.775476 137486904252224 maxtext_utils.py:1668]  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 21:30:44.775525 137486904252224 maxtext_utils.py:1668]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0424 21:30:44.775576 137486904252224 maxtext_utils.py:1668]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]

    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0424 21:30:45.267059 137486904252224 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0424 21:30:45.267155 137486904252224 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0424 21:30:45.282728 137486904252224 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0424 21:30:45.282790 137486904252224 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0424 21:30:56.268415 137486904252224 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.
I0424 21:30:56.269286 137486904252224 metric_logger.py:301] number parameters: 1.104 billion
I0424 21:31:07.727824 137486904252224 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0424 21:31:07.995176 137486904252224 checkpointing.py:776] Waited 0.2673325538635254 seconds for step 0 to finish before starting checkpointing.
I0424 21:31:07.997801 137486904252224 checkpoint_manager.py:2009] [process=3][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 21:31:07.999419 137486904252224 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 0
I0424 21:31:08.001024 137486904252224 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/0.
I0424 21:31:08.322641 137486904252224 signaling_client.py:364] Using JaxDistributedSignalingClient
I0424 21:31:08.323646 137486904252224 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 21:31:08.323703 137486904252224 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 21:31:08.598701 137486904252224 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.276130s
I0424 21:31:08.598873 137486904252224 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 5.474 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2817809581756592 s) (per-host)
I0424 21:31:08.598938 137486904252224 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.281845s (batch_requests_ready=0.002460s, total_serialization_initiated=0.279313s, others=0.000072s)
I0424 21:31:08.599035 137486904252224 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.286201s (all_items=0.000018s, per_item={'items': '0.00001812'}, temp_paths=0.286183)
I0424 21:31:08.599845 137486904252224 event_tracking.py:125] [process=3] [async] Finished blocking save in 0.60 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/0.
I0424 21:31:08.600198 137357466523392 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 21:51:08.600159
I0424 21:31:08.612858 137486904252224 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 21:31:08.613179 137356352284416 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0424 21:31:08.613340 137486904252224 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777066267.9977815, 'wait_for_prev_duration_secs': 6.389617919921875e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777066267.9994583, 'checkpointer_blocking_duration_secs': 0.6008899211883545, 'get_old_steps_start_time': 1777066268.6003737, 'get_old_steps_duration_secs': 3.0517578125e-05, 'checkpoint_manager_blocking_start_time': 1777066267.9957223, 'checkpoint_manager_blocking_duration_secs': 0.6175816059112549}
I0424 21:31:08.613451 137486904252224 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0424 21:31:08.613498 137486904252224 max_utils.py:750] 
Memstats: After params initialized:
I0424 21:31:08.613552 137486904252224 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_10(process=3,(2,2,0,0))
I0424 21:31:08.613585 137486904252224 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_11(process=3,(3,2,0,0))
I0424 21:31:08.613611 137486904252224 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_14(process=3,(2,3,0,0))
I0424 21:31:08.613636 137486904252224 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_15(process=3,(3,3,0,0))
I0424 21:31:08.925512 137486904252224 metric_logger.py:196] completed step: 0, seconds: 11.458, TFLOP/s/device: 1.186, Tokens/s/device: 178.733, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0424 21:31:09.114308 137486904252224 metric_logger.py:196] completed step: 1, seconds: 1.196, TFLOP/s/device: 11.358, Tokens/s/device: 1712.040, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0424 21:31:09.537283 137486904252224 metric_logger.py:196] completed step: 2, seconds: 0.041, TFLOP/s/device: 329.281, Tokens/s/device: 49632.843, total_weights: 65536, loss: 10.560, lm_loss: 10.560, perplexity: 38547.719
I0424 21:31:09.684580 137486904252224 metric_logger.py:196] completed step: 3, seconds: 0.423, TFLOP/s/device: 32.088, Tokens/s/device: 4836.702, total_weights: 65536, loss: 9.980, lm_loss: 9.980, perplexity: 21590.506
I0424 21:31:09.689182 137486904252224 checkpointing.py:772] Waiting for step 5 to finish before checkpoint...
I0424 21:31:09.979562 137486904252224 checkpointing.py:776] Waited 0.2903420925140381 seconds for step 5 to finish before starting checkpointing.
I0424 21:31:09.982576 137486904252224 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 21:31:11.499004    2798 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0424 21:31:13.580723 137356360677120 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/0/items/array_metadatas/process_3
I0424 21:31:50.158175 137357466523392 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 37.752 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.8410382270813 s) (per-host)
I0424 21:31:50.158295 137357466523392 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.557984s.
I0424 21:31:57.617038 137357466523392 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 49.016710s.
I0424 21:31:57.617347 137356352284416 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 21:31:57.617474 137356352284416 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0424 21:31:57.617527 137356352284416 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0424 21:31:57.619255 137356352284416 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0424 21:31:57.619436 137486904252224 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 21:31:57.619573 137486904252224 checkpoint_manager.py:1452] Waiting for previous save to complete took 47.636996 seconds. If this number is high, consider checkpointing less frequently.
I0424 21:31:57.622866 137486904252224 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 5
I0424 21:31:57.625434 137486904252224 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/5.
I0424 21:31:58.337800 137486904252224 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 21:31:58.337894 137486904252224 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 21:31:58.373676 137486904252224 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.037026s
I0424 21:31:58.373853 137486904252224 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 38.155 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04042959213256836 s) (per-host)
I0424 21:31:58.373908 137486904252224 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.040496s (batch_requests_ready=0.001767s, total_serialization_initiated=0.038654s, others=0.000075s)
I0424 21:31:58.374016 137486904252224 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.045502s (all_items=0.000016s, per_item={'items': '0.00001597'}, temp_paths=0.045486)
I0424 21:31:58.374686 137486904252224 event_tracking.py:125] [process=3] [async] Finished blocking save in 0.75 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/5.
I0424 21:31:58.375031 137356360677120 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 21:51:58.374995
I0424 21:31:58.381391 137486904252224 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=5] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 21:31:58.381707 137356352284416 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0424 21:31:58.381868 137486904252224 standard_logger.py:34] {'step': 5, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777066269.9825442, 'wait_for_prev_duration_secs': 47.636996269226074, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1777066317.622907, 'checkpointer_blocking_duration_secs': 0.7522296905517578, 'get_old_steps_start_time': 1777066318.3751607, 'get_old_steps_duration_secs': 2.956390380859375e-05, 'checkpoint_manager_blocking_start_time': 1777066269.9801934, 'checkpoint_manager_blocking_duration_secs': 48.40164017677307}
I0424 21:31:58.381987 137486904252224 checkpointing.py:408] Started an asynchronous checkpoint save for step 5
I0424 21:31:58.382704 137486904252224 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.798, Tokens/s/device: 13384.659, total_weights: 65536, loss: 9.460, lm_loss: 9.460, perplexity: 12840.355
I0424 21:31:58.388337 137486904252224 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.232, Tokens/s/device: 13902.277, total_weights: 65536, loss: 8.959, lm_loss: 8.959, perplexity: 7776.467
I0424 21:32:03.463181 137333248616192 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/5/items/array_metadatas/process_3
I0424 21:32:21.021020 137486904252224 metric_logger.py:196] completed step: 6, seconds: 48.698, TFLOP/s/device: 0.279, Tokens/s/device: 42.055, total_weights: 65536, loss: 8.469, lm_loss: 8.469, perplexity: 4762.740
I0424 21:32:21.168358 137486904252224 metric_logger.py:196] completed step: 7, seconds: 22.486, TFLOP/s/device: 0.604, Tokens/s/device: 91.077, total_weights: 65536, loss: 8.003, lm_loss: 8.003, perplexity: 2989.151
I0424 21:32:21.315809 137486904252224 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.200, Tokens/s/device: 13445.202, total_weights: 65536, loss: 7.572, lm_loss: 7.572, perplexity: 1943.098
I0424 21:32:21.462514 137486904252224 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0424 21:32:21.463216 137486904252224 checkpointing.py:776] Waited 0.0007238388061523438 seconds for step 9 to finish before starting checkpointing.
I0424 21:32:21.465291 137486904252224 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=5][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 21:32:39.905134 137356360677120 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 37.997 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.571680307388306 s) (per-host)
I0424 21:32:39.905242 137356360677120 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.529595s.
I0424 21:32:48.177680 137356360677120 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 49.802017s.
I0424 21:32:48.178013 137356352284416 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 21:32:48.178126 137356352284416 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0424 21:32:48.178179 137356352284416 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=5] CheckpointManager Save Finalize is syncing with other hosts...
I0424 21:32:48.179707 137356352284416 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=5] CheckpointManager Save Finalize is done on all hosts.
I0424 21:32:48.179879 137486904252224 checkpoint_manager.py:2032] [process=3][thread=MainThread][step=5][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=5.
W0424 21:32:48.180016 137486904252224 checkpoint_manager.py:1452] Waiting for previous save to complete took 26.714728 seconds. If this number is high, consider checkpointing less frequently.
I0424 21:32:48.181664 137486904252224 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 9
I0424 21:32:48.183813 137486904252224 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/9.
I0424 21:32:48.881228 137486904252224 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0424 21:32:48.881319 137486904252224 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 21:32:48.907207 137486904252224 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.026930s
I0424 21:32:48.907379 137486904252224 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 50.860 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03032994270324707 s) (per-host)
I0424 21:32:48.907432 137486904252224 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.030393s (batch_requests_ready=0.001620s, total_serialization_initiated=0.028706s, others=0.000068s)
I0424 21:32:48.907521 137486904252224 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.034654s (all_items=0.000011s, per_item={'items': '0.00001097'}, temp_paths=0.034643)
I0424 21:32:48.908239 137486904252224 event_tracking.py:125] [process=3] [async] Finished blocking save in 0.73 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/9.
I0424 21:32:48.908516 137356352284416 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-24 21:52:48.908484
I0424 21:32:48.916835 137486904252224 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0424 21:32:48.917100 137333248616192 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0424 21:32:48.917231 137486904252224 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1777066341.465261, 'wait_for_prev_duration_secs': 26.714728116989136, 'time_between_consecutive_saves_sec': 23.845961809158325, 'checkpointer_blocking_start_time': 1777066368.1817043, 'checkpointer_blocking_duration_secs': 0.7269518375396729, 'get_old_steps_start_time': 1777066368.9086735, 'get_old_steps_duration_secs': 2.5510787963867188e-05, 'checkpoint_manager_blocking_start_time': 1777066341.4634433, 'checkpoint_manager_blocking_duration_secs': 27.45375418663025}
I0424 21:32:48.917360 137486904252224 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0424 21:32:48.917407 137486904252224 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0424 21:32:54.041468 137356921259776 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260424_200834/linen_xpk_test_pipeline_scan_nnx_20260424_200834_16_zarr3_false/checkpoints/9/items/array_metadatas/process_3
I0424 21:33:30.073044 137356352284416 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 38.343 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.195969104766846 s) (per-host)
I0424 21:33:30.073144 137356352284416 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.164516s.
I0424 21:33:38.786432 137356352284416 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 49.877788s.
I0424 21:33:38.786629 137333248616192 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0424 21:33:38.786689 137333248616192 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0424 21:33:38.786737 137333248616192 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0424 21:33:38.788419 137333248616192 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0424 21:33:38.788573 137486904252224 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 21:33:38.788718 137486904252224 checkpoint_manager.py:2009] [process=3][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0424 21:33:38.789647 137486904252224 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.386, Tokens/s/device: 13925.436, total_weights: 65536, loss: 7.181, lm_loss: 7.181, perplexity: 1314.495
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Fri Apr 24 21:33:50 UTC 2026
EXIT_CODE=0
NNX  ·  5b21b66fc  ·  test_pipeline_scan_nnx_20260424_200834  ·  full log
XPK Start: Fri Apr 24 22:12:20 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 22:12:45.620690: 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 22:12:45.833531 134570565269312 max_utils.py:273] Attempting to initialize the jax distributed system...
I0424 22:12:54.874326 134570565269312 distributed.py:149] Starting JAX distributed service on [::]:8482
I0424 22:12:54.876600 134570565269312 distributed.py:172] Connecting to JAX distributed service on mt-16-zarr3-false-sv-1gzf9-slice-job-0-0.mt-16-zarr3-false-sv-1gzf9:8482
I0424 22:12:55.964791 134570565269312 max_utils.py:284] Jax distributed system initialized!
I0424 22:13:01.025629 134570565269312 max_utils.py:800] System Information: Jax Version: 0.9.2
I0424 22:13:01.025736 134570565269312 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0424 22:13:01.025777 134570565269312 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 22:13:01.025813 134570565269312 train_utils.py:361] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 744, in <module>
    app.run(main)
  File "/usr/local/lib/python3.12/site-packages/absl/app.py", line 367, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.12/site-packages/absl/app.py", line 312, in _run_main
    sys.exit(main(argv))
             ^^^^^^^^^^
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 740, in main
    train_func()
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 730, in train_func
    run(config, recorder, diagnostic_config)
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 709, in run
    train_loop(config, recorder)
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 536, in train_loop
    ) = train_utils.setup_train_loop(config, recorder)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/deps/src/maxtext/utils/train_utils.py", line 218, in setup_train_loop
    raise NotImplementedError("Pure NNX support has not been implemented yet.")
NotImplementedError: Pure NNX support has not been implemented yet.
XPK End: Fri Apr 24 22:13:11 UTC 2026
EXIT_CODE=1