MaxView

‹ 09_pdb_lt_1Case: 10_shardy_false10_shardy_true ›

Metrics: Linen vs NNX  ·  main

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion
Final loss8.1790
TFLOP/s92.331
Tok/s13917.2
Avg s/step2.776
Memory %1.38
JAX0.9.20.9.2

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

Linen  ·  574ad3fb9  ·  main_20260418_125719  ·  full log
XPK Start: Sat Apr 18 13:36:55 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-18 13:37:19.763145: 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)
I0418 13:37:20.299177 139802094384960 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 13:37:29.341793 139802094384960 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 13:37:29.344123 139802094384960 distributed.py:172] Connecting to JAX distributed service on mt-10-shardy-false-drkxj-slice-job-0-0.mt-10-shardy-false-drkxj:8482
I0418 13:37:31.204010 139802094384960 max_utils.py:284] Jax distributed system initialized!
I0418 13:37:37.235961 139802094384960 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 13:37:37.236068 139802094384960 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 13:37:37.236108 139802094384960 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
I0418 13:37:37.236141 139802094384960 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 13:37:37.928721 139802094384960 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 13:37:37.929024 139802094384960 checkpointing.py:677] Setting up checkpoint logger...
I0418 13:37:37.929089 139802094384960 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0418 13:37:37.929142 139802094384960 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 13:37:37.929502 139802094384960 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 0x7f257e64c050>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 13:37:41.692771 139802094384960 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0418 13:37:41.693013 139802094384960 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 0x7f123817b950>}, handler_registry=None
I0418 13:37:41.693251 139802094384960 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f123817b950>` 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`.
I0418 13:37:41.693298 139802094384960 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f123817cec0>` 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`.
I0418 13:37:41.693332 139802094384960 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 0x7f123817b950>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f123817b950>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f123817cec0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f123817cec0>}).
I0418 13:37:41.693659 139802094384960 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 13:37:41.693732 139802094384960 async_checkpointer.py:192] [process=3][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7f11f8167c40> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 13:37:42.546582 139802094384960 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints
I0418 13:37:43.837052 139802094384960 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_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7f123817a390>
I0418 13:37:43.837224 139802094384960 checkpointing.py:301] Checkpoint manager created!
I0418 13:37:44.776108 139802094384960 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 13:37:44.776234 139802094384960 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 13:37:45.152546 139802094384960 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 13:37:45.152649 139802094384960 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 13:37:45.168919 139802094384960 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 13:37:45.168984 139802094384960 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 13:37:45.192633 139802094384960 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 13:37:45.192700 139802094384960 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 13:37:45.209059 139802094384960 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 13:37:45.209120 139802094384960 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 13:37:45.225445 139802094384960 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0418 13:37:45.225505 139802094384960 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 13:37:45.251022 139802094384960 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 13:37:45.251093 139802094384960 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 13:37:45.272214 139802094384960 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 13:37:45.272277 139802094384960 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 13:37:45.491794 139802094384960 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 13:37:45.491899 139802094384960 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0418 13:37:46.885331 139802094384960 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 13:37:46.885453 139802094384960 maxtext_utils.py:1654]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0418 13:37:46.885505 139802094384960 maxtext_utils.py:1654]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0418 13:37:46.885562 139802094384960 maxtext_utils.py:1654]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0418 13:37:46.885625 139802094384960 maxtext_utils.py:1654]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0418 13:37:46.885668 139802094384960 maxtext_utils.py:1654]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0418 13:37:46.885721 139802094384960 maxtext_utils.py:1654]  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)
I0418 13:37:46.885772 139802094384960 maxtext_utils.py:1654]  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')
I0418 13:37:46.885812 139802094384960 maxtext_utils.py:1654]  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)
I0418 13:37:46.885847 139802094384960 maxtext_utils.py:1654]  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)
I0418 13:37:46.885892 139802094384960 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0418 13:37:46.885939 139802094384960 maxtext_utils.py:1654]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0418 13:37:47.377002 139802094384960 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 13:37:47.377096 139802094384960 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 13:37:47.392394 139802094384960 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 13:37:47.392454 139802094384960 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 13:37:58.153239 139802094384960 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.
I0418 13:37:58.154086 139802094384960 metric_logger.py:301] number parameters: 1.104 billion
I0418 13:38:09.282353 139802094384960 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0418 13:38:09.434937 139802094384960 checkpointing.py:776] Waited 0.15256166458129883 seconds for step 0 to finish before starting checkpointing.
I0418 13:38:09.439741 139802094384960 checkpoint_manager.py:2009] [process=3][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 13:38:09.441208 139802094384960 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 0
I0418 13:38:09.442719 139802094384960 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints/0.
I0418 13:38:10.227104 139802094384960 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 13:38:10.228067 139802094384960 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 13:38:10.228125 139802094384960 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
I0418 13:38:10.505693 139802094384960 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.278663s
I0418 13:38:10.505869 139802094384960 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 5.430 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2840602397918701 s) (per-host)
I0418 13:38:10.505922 139802094384960 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.284124s (batch_requests_ready=0.002195s, total_serialization_initiated=0.281857s, others=0.000072s)
I0418 13:38:10.506014 139802094384960 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.288552s (all_items=0.000018s, per_item={'items': '0.00001836'}, temp_paths=0.288534)
I0418 13:38:10.506795 139802094384960 event_tracking.py:125] [process=3] [async] Finished blocking save in 1.07 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints/0.
I0418 13:38:10.507121 139675020818176 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 13:58:10.507086
I0418 13:38:10.516027 139802094384960 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 13:38:10.516309 139673354888960 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0418 13:38:10.516467 139802094384960 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776519489.439722, 'wait_for_prev_duration_secs': 6.508827209472656e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776519489.4412484, 'checkpointer_blocking_duration_secs': 1.0660316944122314, 'get_old_steps_start_time': 1776519490.5073044, 'get_old_steps_duration_secs': 3.123283386230469e-05, 'checkpoint_manager_blocking_start_time': 1776519489.4355044, 'checkpoint_manager_blocking_duration_secs': 1.0809261798858643}
I0418 13:38:10.516569 139802094384960 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0418 13:38:10.516628 139802094384960 max_utils.py:750] 
Memstats: After params initialized:
I0418 13:38:10.516677 139802094384960 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_10(process=3,(2,2,0,0))
I0418 13:38:10.516708 139802094384960 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_11(process=3,(3,2,0,0))
I0418 13:38:10.516734 139802094384960 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_14(process=3,(2,3,0,0))
I0418 13:38:10.516757 139802094384960 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_15(process=3,(3,3,0,0))
I0418 13:38:10.834766 139802094384960 metric_logger.py:196] completed step: 0, seconds: 11.128, TFLOP/s/device: 1.221, Tokens/s/device: 184.038, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 13:38:11.004812 139802094384960 metric_logger.py:196] completed step: 1, seconds: 1.551, TFLOP/s/device: 8.762, Tokens/s/device: 1320.672, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 13:38:11.385915 139802094384960 metric_logger.py:196] completed step: 2, seconds: 0.023, TFLOP/s/device: 590.078, Tokens/s/device: 88942.934, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0418 13:38:11.533109 139802094384960 metric_logger.py:196] completed step: 3, seconds: 0.381, TFLOP/s/device: 35.662, Tokens/s/device: 5375.300, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0418 13:38:11.828525 139802094384960 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.528, Tokens/s/device: 13343.845, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0418 13:38:11.835019 139802094384960 metric_logger.py:196] completed step: 5, seconds: 0.148, TFLOP/s/device: 91.860, Tokens/s/device: 13846.164, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0418 13:38:13.862883    2758 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 13:38:17.172224 139673401038592 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints/0/items/array_metadatas/process_3
I0418 13:38:34.116944 139802094384960 metric_logger.py:196] completed step: 6, seconds: 0.295, TFLOP/s/device: 45.986, Tokens/s/device: 6931.447, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0418 13:38:34.264318 139802094384960 metric_logger.py:196] completed step: 7, seconds: 22.135, TFLOP/s/device: 0.614, Tokens/s/device: 92.523, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0418 13:38:34.411828 139802094384960 metric_logger.py:196] completed step: 8, seconds: 0.153, TFLOP/s/device: 89.042, Tokens/s/device: 13421.323, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0418 13:38:34.558454 139802094384960 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0418 13:38:34.559126 139802094384960 checkpointing.py:776] Waited 0.0006940364837646484 seconds for step 9 to finish before starting checkpointing.
I0418 13:38:34.561259 139802094384960 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 13:38:46.173836 139675020818176 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 43.936 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 35.95200800895691 s) (per-host)
I0418 13:38:46.173944 139675020818176 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 35.666705s.
I0418 13:38:57.781773 139675020818176 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 47.274518s.
I0418 13:38:57.782097 139673354888960 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 13:38:57.782224 139673354888960 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0418 13:38:57.782272 139673354888960 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0418 13:38:57.784243 139673354888960 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0418 13:38:57.784406 139802094384960 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.
W0418 13:38:57.784533 139802094384960 checkpoint_manager.py:1452] Waiting for previous save to complete took 23.223276 seconds. If this number is high, consider checkpointing less frequently.
I0418 13:38:57.786260 139802094384960 checkpoint_manager.py:1512] [process=3] Saving checkpoint at step 9
I0418 13:38:57.788266 139802094384960 event_tracking.py:70] [process=3] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints/9.
I0418 13:38:58.519177 139802094384960 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 13:38:58.519274 139802094384960 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
I0418 13:38:58.554667 139802094384960 base_pytree_checkpoint_handler.py:154] [process=3][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.036636s
I0418 13:38:58.554837 139802094384960 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/blocking_gbytes_per_sec: 38.522 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.040044307708740234 s) (per-host)
I0418 13:38:58.554888 139802094384960 base_pytree_checkpoint_handler.py:768] [process=3][thread=MainThread] Initiated Pytree async_save. Time taken: 0.040105s (batch_requests_ready=0.001764s, total_serialization_initiated=0.038272s, others=0.000069s)
I0418 13:38:58.554976 139802094384960 composite_checkpoint_handler.py:715] [process=3][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.044188s (all_items=0.000015s, per_item={'items': '0.00001550'}, temp_paths=0.044173)
I0418 13:38:58.555689 139802094384960 event_tracking.py:125] [process=3] [async] Finished blocking save in 0.77 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints/9.
I0418 13:38:58.556048 139673354888960 async_checkpointer.py:76] [process=3][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 13:58:58.556011
I0418 13:38:58.567439 139802094384960 checkpoint_manager.py:1560] [process=3][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 13:38:58.567743 139648772826880 async_checkpointer.py:280] [process=3][thread=save_finalize] Waiting for background save thread=async_save.
I0418 13:38:58.567913 139802094384960 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776519514.5612288, 'wait_for_prev_duration_secs': 23.223275661468506, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776519537.786298, 'checkpointer_blocking_duration_secs': 0.7698957920074463, 'get_old_steps_start_time': 1776519538.5562189, 'get_old_steps_duration_secs': 3.123283386230469e-05, 'checkpoint_manager_blocking_start_time': 1776519514.559366, 'checkpoint_manager_blocking_duration_secs': 24.00851058959961}
I0418 13:38:58.568027 139802094384960 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0418 13:38:58.568073 139802094384960 checkpoint_manager.py:2020] [process=3][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 13:39:06.689407 139673401038592 array_metadata_store.py:203] [process=3][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260418_125719/linen_xpk_main_20260418_125719_10_shardy_false/checkpoints/9/items/array_metadatas/process_3
I0418 13:39:41.935022 139673354888960 base_pytree_checkpoint_handler.py:130] [process=3] /jax/orbax/write/gbytes_per_sec: 36.379 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.42018938064575 s) (per-host)
I0418 13:39:41.935145 139673354888960 async_checkpointer.py:90] [process=3][thread=async_save] 3 Handler Commit operations completed. Time taken: 43.378981s.
I0418 13:39:51.351252 139673354888960 async_checkpointer.py:160] [process=3][thread=async_save] Background save thread done. Time taken: 52.795062s.
I0418 13:39:51.351566 139648772826880 async_checkpointer.py:288] [process=3][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 13:39:51.351718 139648772826880 async_checkpointer.py:298] [process=3][thread=save_finalize] No errors found in background save thread=async_save.
I0418 13:39:51.351771 139648772826880 checkpoint_manager.py:2137] [process=3][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0418 13:39:51.354217 139648772826880 checkpoint_manager.py:2146] [process=3][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0418 13:39:51.354408 139802094384960 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.
I0418 13:39:51.354552 139802094384960 checkpoint_manager.py:2009] [process=3][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 13:39:51.355517 139802094384960 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.331, Tokens/s/device: 13917.204, total_weights: 65536, loss: 8.179, lm_loss: 8.179, perplexity: 3564.635
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Sat Apr 18 13:40:00 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  main_20260418_125719  ·  full log
XPK Start: Sat Apr 18 13:22:43 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-18 13:23:07.299602: 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)
I0418 13:23:07.479908 138481475905344 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 13:23:16.522858 138481475905344 distributed.py:172] Connecting to JAX distributed service on mt-10-shardy-false-a0py5-slice-job-0-0.mt-10-shardy-false-a0py5:8482
I0418 13:23:17.050761 138481475905344 max_utils.py:284] Jax distributed system initialized!
I0418 13:23:22.131753 138481475905344 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 13:23:22.131857 138481475905344 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 13:23:22.131897 138481475905344 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
I0418 13:23:22.131930 138481475905344 train_utils.py:348] 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 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: Sat Apr 18 13:23:28 UTC 2026
EXIT_CODE=1