MaxView

‹ 13_scan_layers_falseCase: 13_scan_layers_true14_async_ckpt_false_resume ›

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

MetricLinen  e27fc1e97NNX  e27fc1e97Diff (NNX − Linen)
Parameters1.104 billion
Final loss8.1790
TFLOP/s92.159
Tok/s13891.1
Avg s/step2.864
Memory %1.38
JAX0.8.10.8.1

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

Linen  ·  e27fc1e97  ·  test_pipeline_scan_nnx_20260421_005327  ·  full log
XPK Start: Tue Apr 21 01:37:43 UTC 2026
2026-04-21 01:37:47.495786: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1776735467.508129      10 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1776735467.511879      10 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1776735467.523207      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1776735467.523225      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1776735467.523228      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1776735467.523230      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
2026-04-21 01:38:06.742040: 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)
I0421 01:38:07.250782 133830391813952 max_utils.py:273] Attempting to initialize the jax distributed system...
INFO:2026-04-21 01:38:16,292:jax._src.distributed:140: Starting JAX distributed service on [::]:8482
I0421 01:38:16.292326 133830391813952 distributed.py:140] Starting JAX distributed service on [::]:8482
INFO:2026-04-21 01:38:16,294:jax._src.distributed:157: Connecting to JAX distributed service on mt-13-scan-layers-true-16e4r-slice-job-0-0.mt-13-scan-layers-true-16e4r:8482
I0421 01:38:16.294551 133830391813952 distributed.py:157] Connecting to JAX distributed service on mt-13-scan-layers-true-16e4r-slice-job-0-0.mt-13-scan-layers-true-16e4r:8482
I0421 01:38:17.370326 133830391813952 max_utils.py:284] Jax distributed system initialized!
I0421 01:38:23.200213 133830391813952 max_utils.py:800] System Information: Jax Version: 0.8.1
I0421 01:38:23.200317 133830391813952 max_utils.py:801] System Information: Jaxlib Version: 0.8.1
I0421 01:38:23.200357 133830391813952 max_utils.py:802] System Information: Jax Backend: PJRT C API
TFRT TPU v6 lite
Built on Nov 12 2025 14:16:36 (1762985796) cl/831091709
I0421 01:38:23.200392 133830391813952 train_utils.py:347] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0421 01:38:23.822963 133830391813952 maxtext_utils.py:1398] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0421 01:38:23.823252 133830391813952 checkpointing.py:677] Setting up checkpoint logger...
I0421 01:38:23.823307 133830391813952 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0421 01:38:23.823353 133830391813952 pytree_checkpoint_handler.py:589] save_device_host_concurrent_bytes=None
I0421 01:38:23.823720 133830391813952 base_pytree_checkpoint_handler.py:415] 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 0x79b757178dd0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0421 01:38:30.157032 133830391813952 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0421 01:38:30.157395 133830391813952 checkpoint_manager.py:709] [process=1][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79b60bb63b00>}, handler_registry=None
I0421 01:38:30.157702 133830391813952 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79b60bb63b00>` 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`.
I0421 01:38:30.157762 133830391813952 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79a4db91b410>` 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`.
I0421 01:38:30.157807 133830391813952 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 0x79b60bb63b00>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x79b60bb63b00>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79a4db91b410>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x79a4db91b410>}).
I0421 01:38:30.160536 133830391813952 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.33
I0421 01:38:30.160620 133830391813952 async_checkpointer.py:177] [process=1][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x79b746ddb2e0> timeout: 600 secs and primary_host=0 for async checkpoint writes
I0421 01:38:31.684964 133830391813952 checkpoint_manager.py:1818] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints
I0421 01:38:32.131969 133830391813952 checkpoint_manager.py:929] [process=1][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_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x79a4db9185f0>
I0421 01:38:32.132154 133830391813952 checkpointing.py:301] Checkpoint manager created!
I0421 01:38:33.016795 133830391813952 nnx_wrappers.py:453] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0421 01:38:33.016908 133830391813952 nnx_wrappers.py:453] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 01:38:33.388464 133830391813952 attentions.py:1084] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0421 01:38:33.388556 133830391813952 attentions.py:1084] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 01:38:33.404273 133830391813952 attentions.py:1085] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0421 01:38:33.404335 133830391813952 attentions.py:1085] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0421 01:38:33.427810 133830391813952 attentions.py:1150] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 01:38:33.427886 133830391813952 attentions.py:1150] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 01:38:33.443788 133830391813952 attentions.py:1151] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 01:38:33.443850 133830391813952 attentions.py:1151] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 01:38:33.459485 133830391813952 attentions.py:1152] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0421 01:38:33.459542 133830391813952 attentions.py:1152] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 01:38:33.483137 133830391813952 attentions.py:1193] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0421 01:38:33.483205 133830391813952 attentions.py:1193] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0421 01:38:33.502563 133830391813952 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0421 01:38:33.502630 133830391813952 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0421 01:38:33.691965 133830391813952 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0421 01:38:33.692075 133830391813952 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0421 01:38:35.108312 133830391813952 maxtext_utils.py:1501]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   PartitionSpec('norm',)
    Physical:  (None,)
I0421 01:38:35.108486 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   PartitionSpec('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0421 01:38:35.108544 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   PartitionSpec('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0421 01:38:35.108606 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   PartitionSpec('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0421 01:38:35.108666 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   PartitionSpec('norm', 'layers')
    Physical:  (None, None)
I0421 01:38:35.108716 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   PartitionSpec('norm', 'layers')
    Physical:  (None, None)
I0421 01:38:35.108802 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/self_attention/key/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   PartitionSpec('embed', 'layers', 'kv_heads', 'kv_head_dim')
    Physical:  ('fsdp', None, None, None)
I0421 01:38:35.108870 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/self_attention/out/kernel
    Shape:     float32[16,16,128,2048]
    Logical:   PartitionSpec('heads', 'layers', 'kv', 'embed')
    Physical:  (None, None, None, 'fsdp')
I0421 01:38:35.108914 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/self_attention/query/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   PartitionSpec('embed', 'layers', 'q_heads', 'kv')
    Physical:  ('fsdp', None, None, None)
I0421 01:38:35.108950 133830391813952 maxtext_utils.py:1501]  params/params/decoder/layers/self_attention/value/kernel
    Shape:     float32[2048,16,16,128]
    Logical:   PartitionSpec('embed', 'layers', 'kv_heads', 'kv_head_dim')
    Physical:  ('fsdp', None, None, None)
I0421 01:38:35.109002 133830391813952 maxtext_utils.py:1501]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   PartitionSpec('embed', 'vocab')
    Physical:  ('fsdp', None)
I0421 01:38:35.109059 133830391813952 maxtext_utils.py:1501]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   PartitionSpec('vocab', 'embed')
    Physical:  (None, 'fsdp')

I0421 01:38:35.608968 133830391813952 train.py:156] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0421 01:38:35.609068 133830391813952 train.py:156] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0421 01:38:35.624046 133830391813952 train.py:163] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0421 01:38:35.624109 133830391813952 train.py:163] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0421 01:38:46.243374 133830391813952 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.
I0421 01:38:46.244269 133830391813952 metric_logger.py:289] number parameters: 1.104 billion
I0421 01:38:57.255041 133830391813952 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0421 01:38:57.493379 133830391813952 checkpointing.py:776] Waited 0.23832130432128906 seconds for step 0 to finish before starting checkpointing.
I0421 01:38:57.495828 133830391813952 checkpoint_manager.py:2013] [process=1][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0421 01:38:57.497783 133830391813952 checkpoint_manager.py:1518] [process=1] Saving checkpoint at step 0
I0421 01:38:57.500828 133830391813952 async_checkpointer.py:452] [process=1] Started async saving checkpoint to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints/0.
I0421 01:38:59.363018 133830391813952 signaling_client.py:364] Using JaxDistributedSignalingClient
I0421 01:38:59.364073 133830391813952 jax_array_handlers.py:358] Scheduling D2H of 39 prioritized jax.Array.
I0421 01:38:59.364143 133830391813952 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
I0421 01:38:59.616506 133830391813952 base_pytree_checkpoint_handler.py:153] [process=1][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.253567s
I0421 01:38:59.616679 133830391813952 base_pytree_checkpoint_handler.py:129] [process=1] /jax/checkpoint/write/blocking_gbytes_per_sec: 1.589 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.9707784652709961 s) (per-host)
I0421 01:38:59.616731 133830391813952 base_pytree_checkpoint_handler.py:737] [process=1][thread=MainThread] Initiated Pytree async_save. Time taken: 0.970841s (batch_requests_ready=0.713650s, total_serialization_initiated=0.257120s, others=0.000071s)
I0421 01:38:59.616823 133830391813952 composite_checkpoint_handler.py:715] [process=1][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.975068s (all_items=0.000020s, per_item={'items': '0.00001955'}, temp_paths=0.975048)
I0421 01:38:59.617745 133710712137472 async_checkpointer.py:79] [process=1][thread=async_save] Background save thread started.
I0421 01:38:59.617913 133830391813952 async_checkpointer.py:561] Finished blocking save. Time taken: 2.120062s. Continuing background save to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints/0.
I0421 01:39:00.014949 133830391813952 checkpoint_manager.py:1566] [process=1][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0421 01:39:00.015331 133705880299264 async_checkpointer.py:265] [process=1][thread=save_finalize] Waiting for background save thread=async_save.
I0421 01:39:00.015525 133830391813952 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776735537.4958107, 'wait_for_prev_duration_secs': 6.723403930664062e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776735537.4978228, 'checkpointer_blocking_duration_secs': 2.120194911956787, 'get_old_steps_start_time': 1776735539.6180375, 'get_old_steps_duration_secs': 2.6941299438476562e-05, 'checkpoint_manager_blocking_start_time': 1776735537.4939857, 'checkpoint_manager_blocking_duration_secs': 2.5214953422546387}
I0421 01:39:00.015637 133830391813952 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0421 01:39:00.015690 133830391813952 max_utils.py:750] 
Memstats: After params initialized:
I0421 01:39:00.015747 133830391813952 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_2(process=1,(2,0,0,0))
I0421 01:39:00.015781 133830391813952 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_3(process=1,(3,0,0,0))
I0421 01:39:00.015808 133830391813952 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_6(process=1,(2,1,0,0))
I0421 01:39:00.015834 133830391813952 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_7(process=1,(3,1,0,0))
I0421 01:39:00.284202 133830391813952 metric_logger.py:185] completed step: 0, seconds: 11.011, TFLOP/s/device: 1.234, Tokens/s/device: 186.001, total_weights: 65536, loss: 10.874
I0421 01:39:00.455062 133830391813952 metric_logger.py:185] completed step: 1, seconds: 3.028, TFLOP/s/device: 4.487, Tokens/s/device: 676.387, total_weights: 65536, loss: 10.874
I0421 01:39:01.284732 133830391813952 metric_logger.py:185] completed step: 2, seconds: 0.024, TFLOP/s/device: 575.775, Tokens/s/device: 86787.016, total_weights: 65536, loss: 10.263
I0421 01:39:01.432354 133830391813952 metric_logger.py:185] completed step: 3, seconds: 0.830, TFLOP/s/device: 16.369, Tokens/s/device: 2467.268, total_weights: 65536, loss: 9.734
I0421 01:39:01.727847 133830391813952 metric_logger.py:185] completed step: 4, seconds: 0.152, TFLOP/s/device: 89.141, Tokens/s/device: 13436.292, total_weights: 65536, loss: 9.278
I0421 01:39:01.733237 133830391813952 metric_logger.py:185] completed step: 5, seconds: 0.148, TFLOP/s/device: 92.059, Tokens/s/device: 13876.185, total_weights: 65536, loss: 8.892
I0421 01:39:22.879334 133830391813952 metric_logger.py:185] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.917, Tokens/s/device: 6921.117, total_weights: 65536, loss: 8.592
I0421 01:39:23.026881 133830391813952 metric_logger.py:185] completed step: 7, seconds: 20.999, TFLOP/s/device: 0.647, Tokens/s/device: 97.527, total_weights: 65536, loss: 8.384
I0421 01:39:23.174238 133830391813952 metric_logger.py:185] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.407, Tokens/s/device: 13476.344, total_weights: 65536, loss: 8.255
I0421 01:39:23.321636 133830391813952 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0421 01:39:23.322263 133830391813952 checkpointing.py:776] Waited 0.0006475448608398438 seconds for step 9 to finish before starting checkpointing.
I0421 01:39:23.324429 133830391813952 checkpoint_manager.py:2024] [process=1][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0421 01:39:25.734996    2555 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0421 01:39:28.025725 133710720530176 array_metadata_store.py:203] [process=1][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints/0/items/array_metadatas/process_1
I0421 01:39:58.913087 133710712137472 base_pytree_checkpoint_handler.py:129] [process=1] /jax/checkpoint/write/gbytes_per_sec: 26.210 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 60.267144203186035 s) (per-host)
I0421 01:39:58.913206 133710712137472 async_checkpointer.py:90] [process=1][thread=async_save] 3 Handler Commit operations completed. Time taken: 59.295351s.
I0421 01:40:11.266795 133710712137472 async_checkpointer.py:144] [process=1][thread=async_save] Background save thread done. Time taken: 71.648925s.
I0421 01:40:11.267095 133705880299264 async_checkpointer.py:273] [process=1][thread=save_finalize] Done with waiting for background save thread=async_save.
I0421 01:40:11.267230 133705880299264 async_checkpointer.py:283] [process=1][thread=save_finalize] No errors found in background save thread=async_save.
I0421 01:40:11.267280 133705880299264 checkpoint_manager.py:2133] [process=1][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0421 01:40:11.268907 133705880299264 checkpoint_manager.py:2142] [process=1][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0421 01:40:11.269045 133830391813952 checkpoint_manager.py:2036] [process=1][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0421 01:40:11.269140 133830391813952 checkpoint_manager.py:1458] Waiting for previous save to complete took 47.944731 seconds. If this number is high, consider checkpointing less frequently.
I0421 01:40:11.271130 133830391813952 checkpoint_manager.py:1518] [process=1] Saving checkpoint at step 9
I0421 01:40:11.274606 133830391813952 async_checkpointer.py:452] [process=1] Started async saving checkpoint to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints/9.
I0421 01:40:12.228128 133830391813952 jax_array_handlers.py:358] Scheduling D2H of 39 prioritized jax.Array.
I0421 01:40:12.228225 133830391813952 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
I0421 01:40:12.269778 133830391813952 base_pytree_checkpoint_handler.py:153] [process=1][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.043658s
I0421 01:40:12.269946 133830391813952 base_pytree_checkpoint_handler.py:129] [process=1] /jax/checkpoint/write/blocking_gbytes_per_sec: 5.282 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2920186519622803 s) (per-host)
I0421 01:40:12.269995 133830391813952 base_pytree_checkpoint_handler.py:737] [process=1][thread=MainThread] Initiated Pytree async_save. Time taken: 0.292076s (batch_requests_ready=0.246552s, total_serialization_initiated=0.045459s, others=0.000066s)
I0421 01:40:12.270084 133830391813952 composite_checkpoint_handler.py:715] [process=1][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.296244s (all_items=0.000015s, per_item={'items': '0.00001502'}, temp_paths=0.296229)
I0421 01:40:12.270925 133706408777472 async_checkpointer.py:79] [process=1][thread=async_save] Background save thread started.
I0421 01:40:12.271083 133830391813952 async_checkpointer.py:561] Finished blocking save. Time taken: 0.999880s. Continuing background save to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints/9.
I0421 01:40:12.734272 133830391813952 checkpoint_manager.py:1566] [process=1][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0421 01:40:12.734664 133705880299264 async_checkpointer.py:265] [process=1][thread=save_finalize] Waiting for background save thread=async_save.
I0421 01:40:12.734842 133830391813952 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776735563.3243833, 'wait_for_prev_duration_secs': 47.94473052024841, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776735611.2711701, 'checkpointer_blocking_duration_secs': 1.0000207424163818, 'get_old_steps_start_time': 1776735612.2712097, 'get_old_steps_duration_secs': 2.6226043701171875e-05, 'checkpoint_manager_blocking_start_time': 1776735563.322504, 'checkpoint_manager_blocking_duration_secs': 49.41229963302612}
I0421 01:40:12.734961 133830391813952 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0421 01:40:12.735008 133830391813952 checkpoint_manager.py:2024] [process=1][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0421 01:40:22.512670 133706417170176 array_metadata_store.py:203] [process=1][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_test_pipeline_scan_nnx_20260421_005327/linen_xpk_test_pipeline_scan_nnx_20260421_005327_13_scan_layers_true/checkpoints/9/items/array_metadatas/process_1
I0421 01:40:57.480664 133706408777472 base_pytree_checkpoint_handler.py:129] [process=1] /jax/checkpoint/write/gbytes_per_sec: 34.714 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 45.50269293785095 s) (per-host)
I0421 01:40:57.480782 133706408777472 async_checkpointer.py:90] [process=1][thread=async_save] 3 Handler Commit operations completed. Time taken: 45.209748s.
I0421 01:41:07.231286 133706408777472 async_checkpointer.py:144] [process=1][thread=async_save] Background save thread done. Time taken: 54.960236s.
I0421 01:41:07.231573 133705880299264 async_checkpointer.py:273] [process=1][thread=save_finalize] Done with waiting for background save thread=async_save.
I0421 01:41:07.231694 133705880299264 async_checkpointer.py:283] [process=1][thread=save_finalize] No errors found in background save thread=async_save.
I0421 01:41:07.231742 133705880299264 checkpoint_manager.py:2133] [process=1][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0421 01:41:07.234203 133705880299264 checkpoint_manager.py:2142] [process=1][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0421 01:41:07.234379 133830391813952 checkpoint_manager.py:2036] [process=1][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0421 01:41:07.234533 133830391813952 checkpoint_manager.py:2013] [process=1][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0421 01:41:07.235216 133830391813952 metric_logger.py:185] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.159, Tokens/s/device: 13891.150, total_weights: 65536, loss: 8.179
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Tue Apr 21 01:41:19 UTC 2026
EXIT_CODE=0
NNX  ·  e27fc1e97  ·  test_pipeline_scan_nnx_20260421_005327  ·  full log
XPK Start: Tue Apr 21 02:52:45 UTC 2026
2026-04-21 02:52:49.983633: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1776739969.995919      10 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1776739969.999570      10 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1776739970.010863      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1776739970.010882      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1776739970.010884      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1776739970.010886      10 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
2026-04-21 02:53:09.151622: 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)
I0421 02:53:09.662720 134075630880576 max_utils.py:273] Attempting to initialize the jax distributed system...
INFO:2026-04-21 02:53:18,706:jax._src.distributed:140: Starting JAX distributed service on [::]:8482
I0421 02:53:18.706387 134075630880576 distributed.py:140] Starting JAX distributed service on [::]:8482
INFO:2026-04-21 02:53:18,708:jax._src.distributed:157: Connecting to JAX distributed service on mt-13-scan-layers-true-hjam7-slice-job-0-0.mt-13-scan-layers-true-hjam7:8482
I0421 02:53:18.708864 134075630880576 distributed.py:157] Connecting to JAX distributed service on mt-13-scan-layers-true-hjam7-slice-job-0-0.mt-13-scan-layers-true-hjam7:8482
I0421 02:53:20.244649 134075630880576 max_utils.py:284] Jax distributed system initialized!
I0421 02:53:26.063015 134075630880576 max_utils.py:800] System Information: Jax Version: 0.8.1
I0421 02:53:26.063119 134075630880576 max_utils.py:801] System Information: Jaxlib Version: 0.8.1
I0421 02:53:26.063160 134075630880576 max_utils.py:802] System Information: Jax Backend: PJRT C API
TFRT TPU v6 lite
Built on Nov 12 2025 14:16:36 (1762985796) cl/831091709
I0421 02:53:26.063195 134075630880576 train_utils.py:347] 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 727, in <module>
    app.run(main)
  File "/usr/local/lib/python3.12/site-packages/absl/app.py", line 316, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.12/site-packages/absl/app.py", line 261, in _run_main
    sys.exit(main(argv))
             ^^^^^^^^^^
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 723, in main
    train_func()
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 713, in train_func
    run(config, recorder, diagnostic_config)
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 692, in run
    train_loop(config, recorder)
  File "/deps/src/maxtext/trainers/pre_train/train.py", line 517, in train_loop
    ) = train_utils.setup_train_loop(config, recorder)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/deps/src/maxtext/utils/train_utils.py", line 217, 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: Tue Apr 21 02:53:36 UTC 2026
EXIT_CODE=1