MaxView

‹ 15_ocdbt_true_saveCase: 16_zarr3_false_resume16_zarr3_false_save ›

Metrics: Linen vs NNX  ·  main

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion
Final loss5.3910
TFLOP/s92.177
Tok/s13893.9
Avg s/step8.525
Memory %1.38
JAX0.9.20.9.2

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

Linen  ·  574ad3fb9  ·  main_20260420_060028  ·  full log
XPK Start: Mon Apr 20 07:31:07 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2026-04-20 07:31:31.755599: 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)
I0420 07:31:32.291649 135088473790272 max_utils.py:273] Attempting to initialize the jax distributed system...
I0420 07:31:41.333622 135088473790272 distributed.py:149] Starting JAX distributed service on [::]:8482
I0420 07:31:41.335987 135088473790272 distributed.py:172] Connecting to JAX distributed service on mt-16-zarr3-false-rs-cszoz-slice-job-0-0.mt-16-zarr3-false-rs-cszoz:8482
I0420 07:31:42.668657 135088473790272 max_utils.py:284] Jax distributed system initialized!
I0420 07:31:47.999677 135088473790272 max_utils.py:800] System Information: Jax Version: 0.9.2
I0420 07:31:47.999779 135088473790272 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0420 07:31:47.999823 135088473790272 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
I0420 07:31:47.999857 135088473790272 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0420 07:31:48.707550 135088473790272 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0420 07:31:48.707822 135088473790272 checkpointing.py:677] Setting up checkpoint logger...
I0420 07:31:48.707875 135088473790272 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=False
I0420 07:31:48.707924 135088473790272 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0420 07:31:48.708254 135088473790272 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 0x7adc04e4f1d0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0420 07:31:49.930782 135088473790272 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0420 07:31:49.931012 135088473790272 checkpoint_manager.py:708] [process=4][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ac8784fe930>}, handler_registry=None
I0420 07:31:49.931242 135088473790272 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ac8784fe930>` 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`.
I0420 07:31:49.931290 135088473790272 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ac87839f200>` 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`.
I0420 07:31:49.931324 135088473790272 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 0x7ac8784fe930>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7ac8784fe930>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ac87839f200>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7ac87839f200>}).
I0420 07:31:49.931657 135088473790272 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0420 07:31:49.931727 135088473790272 async_checkpointer.py:192] [process=4][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7ac8601c3880> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0420 07:31:51.477575 134969716356864 checkpoint.py:228] Read Metadata={'item_handlers': {'items': 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler'}, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776670094799312577, 'commit_timestamp_nsecs': 1776670142680280075, 'custom_metadata': {}} from gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/5/_CHECKPOINT_METADATA
I0420 07:31:51.726522 134969716356864 checkpoint_manager.py:1871] Missing metrics for step 5
I0420 07:31:52.153673 135088473790272 checkpoint_manager.py:1812] Found 3 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints
I0420 07:31:52.600018 135088473790272 checkpoint_manager.py:929] [process=4][thread=MainThread] CheckpointManager created,  primary_host=0, CheckpointManagerOptions=CheckpointManagerOptions(save_interval_steps=1, max_to_keep=None, keep_time_interval=None, keep_period=None, should_keep_fn=None, best_fn=None, best_mode='max', keep_checkpoints_without_metrics=True, step_prefix=None, step_format_fixed_length=None, step_name_format=None, create=True, cleanup_tmp_directories=False, save_on_steps=frozenset(), single_host_load_and_broadcast=False, todelete_subdir=None, todelete_full_path=None, enable_background_delete=False, read_only=False, enable_async_checkpointing=True, async_options=None, multiprocessing_options=MultiprocessingOptions(primary_host=0, active_processes=None, barrier_sync_key_prefix=None), should_save_fn=None, file_options=FileOptions(path_permission_mode=None), save_root_metadata=True, temporary_path_class=None, save_decision_policy=FixedIntervalPolicy(interval=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_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7ac87871db50>
I0420 07:31:52.600193 135088473790272 checkpointing.py:301] Checkpoint manager created!
I0420 07:31:53.539827 135088473790272 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0420 07:31:53.539937 135088473790272 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0420 07:31:53.921438 135088473790272 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0420 07:31:53.921530 135088473790272 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0420 07:31:53.937797 135088473790272 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0420 07:31:53.937856 135088473790272 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0420 07:31:53.962330 135088473790272 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0420 07:31:53.962407 135088473790272 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 07:31:53.978829 135088473790272 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0420 07:31:53.978888 135088473790272 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 07:31:53.995278 135088473790272 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0420 07:31:53.995350 135088473790272 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 07:31:54.020385 135088473790272 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0420 07:31:54.020460 135088473790272 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 07:31:54.041770 135088473790272 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0420 07:31:54.041832 135088473790272 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0420 07:31:54.260373 135088473790272 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0420 07:31:54.260480 135088473790272 checkpointing.py:581] restoring from this run's directory step 9
I0420 07:31:54.518152 135088473790272 event_tracking.py:70] [process=4] [sync] Started load checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/9.
I0420 07:31:54.765818 135088473790272 checkpointer.py:307] Restoring checkpoint from gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/9.
I0420 07:31:54.766241 135088473790272 event_tracking.py:125] [process=4] [sync] Finished blocking load in 0.25 seconds. Continuing load @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/9.
I0420 07:31:56.157637    1414 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0420 07:32:03.464491 135088473790272 jax_array_handlers.py:843] [process=4] /jax/orbax/read/worker/io/requested throughput: 216.100 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 7.312694072723389 s) (per-host)
I0420 07:32:03.469974 135088473790272 base_pytree_checkpoint_handler.py:130] [process=4] /jax/checkpoint/read/gbytes_per_sec: 205.033 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 7.718711853027344 s) (per-host)
I0420 07:32:04.311449 135088473790272 event_tracking.py:138] [process=4] [sync] Finished load in 9.79 seconds @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/9
I0420 07:32:04.311599 135088473790272 standard_logger.py:34] {'step': 9, 'event_type': 'restore', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints', 'checkpointer_start_time': 1776670314.5180545, 'checkpointer_duration_secs': 9.793514013290405, 'checkpoint_manager_start_time': 1776670314.2607217, 'checkpoint_manager_duration_secs': 10.050849199295044}
fsdp: 32
I0420 07:32:04.725955 135088473790272 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0420 07:32:04.726076 135088473790272 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)
I0420 07:32:04.726130 135088473790272 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)
I0420 07:32:04.726187 135088473790272 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')
I0420 07:32:04.726238 135088473790272 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)
I0420 07:32:04.726276 135088473790272 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)
I0420 07:32:04.726325 135088473790272 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)
I0420 07:32:04.726491 135088473790272 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')
I0420 07:32:04.726534 135088473790272 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)
I0420 07:32:04.726571 135088473790272 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)
I0420 07:32:04.726618 135088473790272 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0420 07:32:04.726664 135088473790272 maxtext_utils.py:1654]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')

    Physical:  (None, 'fsdp')
I0420 07:32:05.206961 135088473790272 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0420 07:32:05.207057 135088473790272 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0420 07:32:05.222791 135088473790272 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0420 07:32:05.222849 135088473790272 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0420 07:32:16.392876 135088473790272 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.
I0420 07:32:16.393684 135088473790272 metric_logger.py:301] number parameters: 1.104 billion
I0420 07:32:27.775606 135088473790272 checkpointing.py:772] Waiting for step 10 to finish before checkpoint...
I0420 07:32:27.927739 135088473790272 checkpointing.py:776] Waited 0.15210986137390137 seconds for step 10 to finish before starting checkpointing.
I0420 07:32:27.930422 135088473790272 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 07:32:27.932369 135088473790272 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 10
I0420 07:32:27.934048 135088473790272 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/10.
I0420 07:32:28.710674 135088473790272 signaling_client.py:364] Using JaxDistributedSignalingClient
I0420 07:32:28.711577 135088473790272 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0420 07:32:28.711634 135088473790272 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
I0420 07:32:28.989174 135088473790272 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.278582s
I0420 07:32:28.989355 135088473790272 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 5.458 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.28261613845825195 s) (per-host)
I0420 07:32:28.989412 135088473790272 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.282696s (batch_requests_ready=0.002156s, total_serialization_initiated=0.280452s, others=0.000088s)
I0420 07:32:28.989500 135088473790272 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.286880s (all_items=0.000017s, per_item={'items': '0.00001693'}, temp_paths=0.286864)
I0420 07:32:28.990259 135088473790272 event_tracking.py:125] [process=4] [async] Finished blocking save in 1.06 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/10.
I0420 07:32:28.990622 134967497578240 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 07:52:28.990583
I0420 07:32:29.000119 135088473790272 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=10] Starting CheckpointManager Save Finalize thread=save_finalize
I0420 07:32:29.000432 134969103984384 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0420 07:32:29.000610 135088473790272 standard_logger.py:34] {'step': 10, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776670347.9304047, 'wait_for_prev_duration_secs': 6.031990051269531e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776670347.9324074, 'checkpointer_blocking_duration_secs': 1.0583722591400146, 'get_old_steps_start_time': 1776670348.9908028, 'get_old_steps_duration_secs': 3.123283386230469e-05, 'checkpoint_manager_blocking_start_time': 1776670347.928261, 'checkpoint_manager_blocking_duration_secs': 1.0723142623901367}
I0420 07:32:29.000714 135088473790272 checkpointing.py:408] Started an asynchronous checkpoint save for step 10
I0420 07:32:29.000766 135088473790272 max_utils.py:750] 
Memstats: After params initialized:
I0420 07:32:29.000817 135088473790272 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_16(process=4,(0,4,0,0))
I0420 07:32:29.000851 135088473790272 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_17(process=4,(1,4,0,0))
I0420 07:32:29.000885 135088473790272 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_20(process=4,(0,5,0,0))
I0420 07:32:29.000910 135088473790272 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_21(process=4,(1,5,0,0))
I0420 07:32:29.312306 135088473790272 metric_logger.py:196] completed step: 10, seconds: 11.382, TFLOP/s/device: 1.194, Tokens/s/device: 179.936, total_weights: 65536, loss: 6.833, lm_loss: 6.833, perplexity: 927.869
I0420 07:32:29.481695 135088473790272 metric_logger.py:196] completed step: 11, seconds: 1.535, TFLOP/s/device: 8.851, Tokens/s/device: 1334.053, total_weights: 65536, loss: 6.527, lm_loss: 6.527, perplexity: 683.659
I0420 07:32:29.629592 135088473790272 metric_logger.py:196] completed step: 12, seconds: 0.022, TFLOP/s/device: 611.317, Tokens/s/device: 92144.335, total_weights: 65536, loss: 6.265, lm_loss: 6.265, perplexity: 526.068
I0420 07:32:29.777244 135088473790272 metric_logger.py:196] completed step: 13, seconds: 0.153, TFLOP/s/device: 88.643, Tokens/s/device: 13361.169, total_weights: 65536, loss: 6.045, lm_loss: 6.045, perplexity: 422.001
I0420 07:32:29.782140 135088473790272 checkpointing.py:772] Waiting for step 15 to finish before checkpoint...
I0420 07:32:30.071595 135088473790272 checkpointing.py:776] Waited 0.2894294261932373 seconds for step 15 to finish before starting checkpointing.
I0420 07:32:30.074511 135088473790272 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=10][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0420 07:32:34.717621 134968017663744 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/10/items/array_metadatas/process_4
I0420 07:33:11.767464 134967497578240 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 36.683 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.06070280075073 s) (per-host)
I0420 07:33:11.767604 134967497578240 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.776868s.
I0420 07:33:20.058192 134967497578240 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 51.067439s.
I0420 07:33:20.058499 134969103984384 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0420 07:33:20.058614 134969103984384 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0420 07:33:20.058661 134969103984384 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=10] CheckpointManager Save Finalize is syncing with other hosts...
I0420 07:33:20.060370 134969103984384 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=10] CheckpointManager Save Finalize is done on all hosts.
I0420 07:33:20.060560 135088473790272 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=10][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=10.
W0420 07:33:20.060694 135088473790272 checkpoint_manager.py:1452] Waiting for previous save to complete took 49.986185 seconds. If this number is high, consider checkpointing less frequently.
I0420 07:33:20.062741 135088473790272 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 15
I0420 07:33:20.065031 135088473790272 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/15.
I0420 07:33:20.372605 135088473790272 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0420 07:33:20.372697 135088473790272 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
I0420 07:33:20.398423 135088473790272 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.026819s
I0420 07:33:20.398606 135088473790272 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 49.806 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.030971527099609375 s) (per-host)
I0420 07:33:20.398667 135088473790272 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.031047s (batch_requests_ready=0.002489s, total_serialization_initiated=0.028475s, others=0.000084s)
I0420 07:33:20.398765 135088473790272 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.036235s (all_items=0.000012s, per_item={'items': '0.00001216'}, temp_paths=0.036223)
I0420 07:33:20.399487 135088473790272 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.34 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/15.
I0420 07:33:20.399811 134969103984384 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 07:53:20.399777
I0420 07:33:20.411523 135088473790272 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=15] Starting CheckpointManager Save Finalize thread=save_finalize
I0420 07:33:20.411789 134968017663744 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0420 07:33:20.411924 135088473790272 standard_logger.py:34] {'step': 15, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776670350.0744796, 'wait_for_prev_duration_secs': 49.98618531227112, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776670400.0627797, 'checkpointer_blocking_duration_secs': 0.3371775150299072, 'get_old_steps_start_time': 1776670400.3999803, 'get_old_steps_duration_secs': 3.2901763916015625e-05, 'checkpoint_manager_blocking_start_time': 1776670350.0721602, 'checkpoint_manager_blocking_duration_secs': 50.339730978012085}
I0420 07:33:20.412042 135088473790272 checkpointing.py:408] Started an asynchronous checkpoint save for step 15
I0420 07:33:20.412878 135088473790272 metric_logger.py:196] completed step: 14, seconds: 0.148, TFLOP/s/device: 91.959, Tokens/s/device: 13861.064, total_weights: 65536, loss: 5.864, lm_loss: 5.864, perplexity: 352.193
I0420 07:33:20.419152 135088473790272 metric_logger.py:196] completed step: 15, seconds: 0.148, TFLOP/s/device: 91.819, Tokens/s/device: 13839.989, total_weights: 65536, loss: 5.719, lm_loss: 5.719, perplexity: 304.661
I0420 07:33:26.412936 134964828083968 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/15/items/array_metadatas/process_4
I0420 07:33:41.491839 135088473790272 metric_logger.py:196] completed step: 16, seconds: 50.635, TFLOP/s/device: 0.268, Tokens/s/device: 40.446, total_weights: 65536, loss: 5.605, lm_loss: 5.605, perplexity: 271.872
I0420 07:33:41.639386 135088473790272 metric_logger.py:196] completed step: 17, seconds: 20.927, TFLOP/s/device: 0.649, Tokens/s/device: 97.864, total_weights: 65536, loss: 5.517, lm_loss: 5.517, perplexity: 248.975
I0420 07:33:41.786816 135088473790272 metric_logger.py:196] completed step: 18, seconds: 0.152, TFLOP/s/device: 89.316, Tokens/s/device: 13462.701, total_weights: 65536, loss: 5.448, lm_loss: 5.448, perplexity: 232.333
I0420 07:33:41.933727 135088473790272 checkpointing.py:772] Waiting for step 19 to finish before checkpoint...
I0420 07:33:41.934455 135088473790272 checkpointing.py:776] Waited 0.0007483959197998047 seconds for step 19 to finish before starting checkpointing.
I0420 07:33:41.936549 135088473790272 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=15][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0420 07:34:02.617207 134969103984384 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 37.387 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.24954271316528 s) (per-host)
I0420 07:34:02.617322 134969103984384 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.217398s.
I0420 07:34:11.275758 134969103984384 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 50.875818s.
I0420 07:34:11.276052 134968017663744 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0420 07:34:11.276168 134968017663744 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0420 07:34:11.276215 134968017663744 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=15] CheckpointManager Save Finalize is syncing with other hosts...
I0420 07:34:11.279026 134968017663744 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=15] CheckpointManager Save Finalize is done on all hosts.
I0420 07:34:11.279207 135088473790272 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=15][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=15.
W0420 07:34:11.279356 135088473790272 checkpoint_manager.py:1452] Waiting for previous save to complete took 29.342798 seconds. If this number is high, consider checkpointing less frequently.
I0420 07:34:11.280902 135088473790272 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 19
I0420 07:34:11.283029 135088473790272 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/19.
I0420 07:34:11.593026 135088473790272 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0420 07:34:11.593116 135088473790272 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
I0420 07:34:11.619109 135088473790272 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.027024s
I0420 07:34:11.619251 135088473790272 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 50.638 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03046250343322754 s) (per-host)
I0420 07:34:11.619298 135088473790272 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.030519s (batch_requests_ready=0.001645s, total_serialization_initiated=0.028813s, others=0.000061s)
I0420 07:34:11.619388 135088473790272 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.034687s (all_items=0.000011s, per_item={'items': '0.00001073'}, temp_paths=0.034676)
I0420 07:34:11.620068 135088473790272 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.34 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/19.
I0420 07:34:11.620414 134968017663744 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-20 07:54:11.620378
I0420 07:34:11.625538 135088473790272 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=19] Starting CheckpointManager Save Finalize thread=save_finalize
I0420 07:34:11.625861 134964828083968 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0420 07:34:11.626024 135088473790272 standard_logger.py:34] {'step': 19, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776670421.936519, 'wait_for_prev_duration_secs': 29.34279775619507, 'time_between_consecutive_saves_sec': 21.876110076904297, 'checkpointer_blocking_start_time': 1776670451.28094, 'checkpointer_blocking_duration_secs': 0.3396131992340088, 'get_old_steps_start_time': 1776670451.6205702, 'get_old_steps_duration_secs': 2.5987625122070312e-05, 'checkpoint_manager_blocking_start_time': 1776670421.934702, 'checkpoint_manager_blocking_duration_secs': 29.69128966331482}
I0420 07:34:11.626140 135088473790272 checkpointing.py:408] Started an asynchronous checkpoint save for step 19
I0420 07:34:11.626181 135088473790272 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=19][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0420 07:34:17.577699 134962133055232 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_16_zarr3_false/checkpoints/19/items/array_metadatas/process_4
I0420 07:34:54.119187 134968017663744 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 37.140 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.5303795337677 s) (per-host)
I0420 07:34:54.119289 134968017663744 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.498767s.
I0420 07:35:01.566816 134968017663744 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 49.946277s.
I0420 07:35:01.567121 134964828083968 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0420 07:35:01.567246 134964828083968 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0420 07:35:01.567288 134964828083968 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=19] CheckpointManager Save Finalize is syncing with other hosts...
I0420 07:35:01.569294 134964828083968 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=19] CheckpointManager Save Finalize is done on all hosts.
I0420 07:35:01.569466 135088473790272 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=19][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=19.
I0420 07:35:01.569614 135088473790272 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 07:35:01.570604 135088473790272 metric_logger.py:196] completed step: 19, seconds: 0.147, TFLOP/s/device: 92.177, Tokens/s/device: 13893.883, total_weights: 65536, loss: 5.391, lm_loss: 5.391, perplexity: 219.349
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Mon Apr 20 07:35:13 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  main_20260420_060028  ·  full log
XPK Start: Mon Apr 20 08:13: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-20 08:14:19.764706: 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)
I0420 08:14:19.946351 140337399940928 max_utils.py:273] Attempting to initialize the jax distributed system...
I0420 08:14:28.986633 140337399940928 distributed.py:149] Starting JAX distributed service on [::]:8482
I0420 08:14:28.989084 140337399940928 distributed.py:172] Connecting to JAX distributed service on mt-16-zarr3-false-rs-yfmus-slice-job-0-0.mt-16-zarr3-false-rs-yfmus:8482
I0420 08:14:30.446076 140337399940928 max_utils.py:284] Jax distributed system initialized!
I0420 08:14:35.469411 140337399940928 max_utils.py:800] System Information: Jax Version: 0.9.2
I0420 08:14:35.469514 140337399940928 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0420 08:14:35.469554 140337399940928 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
I0420 08:14:35.469588 140337399940928 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: Mon Apr 20 08:14:45 UTC 2026
EXIT_CODE=1