MaxView

‹ 16_zarr3_false_saveCase: 16_zarr3_true_resume16_zarr3_true_save ›

Metrics: Linen vs NNX  ·  main

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion
Final loss5.3910
TFLOP/s92.220
Tok/s13900.4
Avg s/step8.421
Memory %1.38
JAX0.9.20.9.2

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

Linen  ·  574ad3fb9  ·  main_20260418_180002  ·  full log
XPK Start: Sat Apr 18 19:45:35 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 19:45:59.833124: 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 19:46:00.013147 136077098014528 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 19:46:09.054867 136077098014528 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 19:46:09.057193 136077098014528 distributed.py:172] Connecting to JAX distributed service on mt-16-zarr3-true-rs-n3ain-slice-job-0-0.mt-16-zarr3-true-rs-n3ain:8482
I0418 19:46:10.314433 136077098014528 max_utils.py:284] Jax distributed system initialized!
I0418 19:46:15.330202 136077098014528 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 19:46:15.330303 136077098014528 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 19:46:15.330341 136077098014528 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 19:46:15.330375 136077098014528 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 19:46:16.027587 136077098014528 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 19:46:16.027877 136077098014528 checkpointing.py:677] Setting up checkpoint logger...
I0418 19:46:16.027933 136077098014528 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0418 19:46:16.027978 136077098014528 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 19:46:16.028342 136077098014528 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 0x7bc23373c3e0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 19:46:17.682282 136077098014528 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0418 19:46:17.682559 136077098014528 checkpoint_manager.py:708] [process=7][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7baebc0c9370>}, handler_registry=None
I0418 19:46:17.682864 136077098014528 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7baebc0c9370>` 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 19:46:17.682930 136077098014528 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7baebc0cc770>` 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 19:46:17.682980 136077098014528 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 0x7baebc0c9370>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7baebc0c9370>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7baebc0cc770>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7baebc0cc770>}).
I0418 19:46:17.683390 136077098014528 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 19:46:17.683485 136077098014528 async_checkpointer.py:192] [process=7][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7bae744fbd80> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 19:46:19.634173 135957642729216 checkpoint.py:228] Read Metadata={'item_handlers': {'items': 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler'}, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776541410859132282, 'commit_timestamp_nsecs': 1776541458332712335, 'custom_metadata': {}} from gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/9/_CHECKPOINT_METADATA
I0418 19:46:20.300032 135957642729216 checkpoint_manager.py:1871] Missing metrics for step 9
I0418 19:46:20.352980 136077098014528 checkpoint_manager.py:1812] Found 3 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints
I0418 19:46:20.767850 136077098014528 checkpoint_manager.py:929] [process=7][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_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7bc127887740>
I0418 19:46:20.768027 136077098014528 checkpointing.py:301] Checkpoint manager created!
I0418 19:46:21.718816 136077098014528 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 19:46:21.718931 136077098014528 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 19:46:22.098909 136077098014528 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 19:46:22.098997 136077098014528 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 19:46:22.115138 136077098014528 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 19:46:22.115196 136077098014528 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 19:46:22.138643 136077098014528 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 19:46:22.138713 136077098014528 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:46:22.155179 136077098014528 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 19:46:22.155241 136077098014528 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:46:22.171924 136077098014528 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 19:46:22.171985 136077098014528 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:46:22.197356 136077098014528 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 19:46:22.197432 136077098014528 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:46:22.218361 136077098014528 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 19:46:22.218427 136077098014528 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 19:46:22.432279 136077098014528 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 19:46:22.432386 136077098014528 checkpointing.py:581] restoring from this run's directory step 9
I0418 19:46:22.687618 136077098014528 event_tracking.py:70] [process=7] [sync] Started load checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/9.
I0418 19:46:22.932886 136077098014528 checkpointer.py:307] Restoring checkpoint from gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/9.
I0418 19:46:22.933337 136077098014528 event_tracking.py:125] [process=7] [sync] Finished blocking load in 0.25 seconds. Continuing load @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/9.
I0418 19:46:24.755979    1419 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 19:46:30.696436 136077098014528 jax_array_handlers.py:843] [process=7] /jax/orbax/read/worker/io/requested throughput: 265.742 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 5.946653842926025 s) (per-host)
I0418 19:46:30.701144 136077098014528 base_pytree_checkpoint_handler.py:130] [process=7] /jax/checkpoint/read/gbytes_per_sec: 249.591 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 6.3407557010650635 s) (per-host)
I0418 19:46:33.258420 136077098014528 event_tracking.py:138] [process=7] [sync] Finished load in 10.57 seconds @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/9
I0418 19:46:33.258580 136077098014528 standard_logger.py:34] {'step': 9, 'event_type': 'restore', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints', 'checkpointer_start_time': 1776541582.68752, 'checkpointer_duration_secs': 10.571027994155884, 'checkpoint_manager_start_time': 1776541582.4326296, 'checkpoint_manager_duration_secs': 10.825920343399048}
fsdp: 32
I0418 19:46:33.670094 136077098014528 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 19:46:33.670224 136077098014528 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 19:46:33.670279 136077098014528 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 19:46:33.670338 136077098014528 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 19:46:33.670392 136077098014528 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 19:46:33.670431 136077098014528 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 19:46:33.670486 136077098014528 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 19:46:33.670542 136077098014528 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 19:46:33.670585 136077098014528 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 19:46:33.670622 136077098014528 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 19:46:33.670669 136077098014528 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0418 19:46:33.670718 136077098014528 maxtext_utils.py:1654]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0418 19:46:34.160228 136077098014528 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 19:46:34.160323 136077098014528 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 19:46:34.175848 136077098014528 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 19:46:34.175911 136077098014528 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 19:46:45.180450 136077098014528 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 19:46:45.181333 136077098014528 metric_logger.py:301] number parameters: 1.104 billion
I0418 19:46:56.405544 136077098014528 checkpointing.py:772] Waiting for step 10 to finish before checkpoint...
I0418 19:46:56.561383 136077098014528 checkpointing.py:776] Waited 0.1558232307434082 seconds for step 10 to finish before starting checkpointing.
I0418 19:46:56.563742 136077098014528 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 19:46:56.565681 136077098014528 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 10
I0418 19:46:56.567239 136077098014528 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/10.
I0418 19:46:57.311802 136077098014528 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 19:46:57.312772 136077098014528 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 19:46:57.312827 136077098014528 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 19:46:57.590352 136077098014528 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.278624s
I0418 19:46:57.590520 136077098014528 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 5.459 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2825920581817627 s) (per-host)
I0418 19:46:57.590572 136077098014528 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.282655s (batch_requests_ready=0.002275s, total_serialization_initiated=0.280309s, others=0.000071s)
I0418 19:46:57.590645 136077098014528 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.286848s (all_items=0.000018s, per_item={'items': '0.00001764'}, temp_paths=0.286830)
I0418 19:46:57.591406 136077098014528 event_tracking.py:125] [process=7] [async] Finished blocking save in 1.03 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/10.
I0418 19:46:57.591759 135957609158400 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 20:06:57.591721
I0418 19:46:57.604499 136077098014528 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=10] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 19:46:57.604757 135954211784448 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 19:46:57.604889 136077098014528 standard_logger.py:34] {'step': 10, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776541616.5637238, 'wait_for_prev_duration_secs': 6.246566772460938e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776541616.565721, 'checkpointer_blocking_duration_secs': 1.0262036323547363, 'get_old_steps_start_time': 1776541617.5919492, 'get_old_steps_duration_secs': 3.24249267578125e-05, 'checkpoint_manager_blocking_start_time': 1776541616.5618796, 'checkpoint_manager_blocking_duration_secs': 1.042973518371582}
I0418 19:46:57.604997 136077098014528 checkpointing.py:408] Started an asynchronous checkpoint save for step 10
I0418 19:46:57.605044 136077098014528 max_utils.py:750] 
Memstats: After params initialized:
I0418 19:46:57.605101 136077098014528 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_26(process=7,(2,6,0,0))
I0418 19:46:57.605134 136077098014528 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_27(process=7,(3,6,0,0))
I0418 19:46:57.605159 136077098014528 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_30(process=7,(2,7,0,0))
I0418 19:46:57.605182 136077098014528 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_31(process=7,(3,7,0,0))
I0418 19:46:57.917520 136077098014528 metric_logger.py:196] completed step: 10, seconds: 11.224, TFLOP/s/device: 1.211, Tokens/s/device: 182.465, total_weights: 65536, loss: 6.833, lm_loss: 6.833, perplexity: 927.869
I0418 19:46:58.086028 136077098014528 metric_logger.py:196] completed step: 11, seconds: 1.510, TFLOP/s/device: 8.996, Tokens/s/device: 1355.974, total_weights: 65536, loss: 6.527, lm_loss: 6.527, perplexity: 683.659
I0418 19:46:58.233881 136077098014528 metric_logger.py:196] completed step: 12, seconds: 0.021, TFLOP/s/device: 642.357, Tokens/s/device: 96822.995, total_weights: 65536, loss: 6.265, lm_loss: 6.265, perplexity: 526.068
I0418 19:46:58.381423 136077098014528 metric_logger.py:196] completed step: 13, seconds: 0.153, TFLOP/s/device: 88.521, Tokens/s/device: 13342.802, total_weights: 65536, loss: 6.045, lm_loss: 6.045, perplexity: 422.001
I0418 19:46:58.385947 136077098014528 checkpointing.py:772] Waiting for step 15 to finish before checkpoint...
I0418 19:46:58.675295 136077098014528 checkpointing.py:776] Waited 0.28931283950805664 seconds for step 15 to finish before starting checkpointing.
I0418 19:46:58.678473 136077098014528 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=10][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 19:47:02.773710 135954220177152 array_metadata_store.py:203] [process=7][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/10/items/array_metadatas/process_7
I0418 19:47:39.138958 135957609158400 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 37.761 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.83099317550659 s) (per-host)
I0418 19:47:39.139106 135957609158400 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.547230s.
I0418 19:47:47.467524 135957609158400 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 49.875632s.
I0418 19:47:47.467841 135954211784448 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 19:47:47.467966 135954211784448 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 19:47:47.468014 135954211784448 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=10] CheckpointManager Save Finalize is syncing with other hosts...
I0418 19:47:47.470614 135954211784448 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=10] CheckpointManager Save Finalize is done on all hosts.
I0418 19:47:47.470799 136077098014528 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=10][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=10.
W0418 19:47:47.470959 136077098014528 checkpoint_manager.py:1452] Waiting for previous save to complete took 48.792477 seconds. If this number is high, consider checkpointing less frequently.
I0418 19:47:47.472759 136077098014528 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 15
I0418 19:47:47.475314 136077098014528 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/15.
I0418 19:47:48.202520 136077098014528 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 19:47:48.202620 136077098014528 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 19:47:48.227979 136077098014528 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.026599s
I0418 19:47:48.228165 136077098014528 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 51.166 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03014826774597168 s) (per-host)
I0418 19:47:48.228220 136077098014528 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.030221s (batch_requests_ready=0.001879s, total_serialization_initiated=0.028262s, others=0.000081s)
I0418 19:47:48.228311 136077098014528 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.035268s (all_items=0.000011s, per_item={'items': '0.00001144'}, temp_paths=0.035256)
I0418 19:47:48.229047 136077098014528 event_tracking.py:125] [process=7] [async] Finished blocking save in 0.76 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/15.
I0418 19:47:48.229403 135949539342080 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 20:07:48.229365
I0418 19:47:48.243765 136077098014528 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=15] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 19:47:48.244068 135954211784448 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 19:47:48.244253 136077098014528 standard_logger.py:34] {'step': 15, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776541618.6784441, 'wait_for_prev_duration_secs': 48.792476654052734, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776541667.4728007, 'checkpointer_blocking_duration_secs': 0.7567527294158936, 'get_old_steps_start_time': 1776541668.2295792, 'get_old_steps_duration_secs': 3.552436828613281e-05, 'checkpoint_manager_blocking_start_time': 1776541618.6759427, 'checkpoint_manager_blocking_duration_secs': 49.568275928497314}
I0418 19:47:48.244371 136077098014528 checkpointing.py:408] Started an asynchronous checkpoint save for step 15
I0418 19:47:48.245243 136077098014528 metric_logger.py:196] completed step: 14, seconds: 0.148, TFLOP/s/device: 91.929, Tokens/s/device: 13856.563, total_weights: 65536, loss: 5.864, lm_loss: 5.864, perplexity: 352.193
I0418 19:47:48.251487 136077098014528 metric_logger.py:196] completed step: 15, seconds: 0.147, TFLOP/s/device: 92.121, Tokens/s/device: 13885.405, total_weights: 65536, loss: 5.719, lm_loss: 5.719, perplexity: 304.661
I0418 19:47:54.958942 135954220177152 array_metadata_store.py:203] [process=7][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/15/items/array_metadatas/process_7
I0418 19:48:09.241635 136077098014528 metric_logger.py:196] completed step: 16, seconds: 49.864, TFLOP/s/device: 0.272, Tokens/s/device: 41.072, total_weights: 65536, loss: 5.605, lm_loss: 5.605, perplexity: 271.872
I0418 19:48:09.389028 136077098014528 metric_logger.py:196] completed step: 17, seconds: 20.844, TFLOP/s/device: 0.652, Tokens/s/device: 98.253, total_weights: 65536, loss: 5.517, lm_loss: 5.517, perplexity: 248.975
I0418 19:48:09.536298 136077098014528 metric_logger.py:196] completed step: 18, seconds: 0.152, TFLOP/s/device: 89.238, Tokens/s/device: 13450.853, total_weights: 65536, loss: 5.448, lm_loss: 5.448, perplexity: 232.333
I0418 19:48:09.683064 136077098014528 checkpointing.py:772] Waiting for step 19 to finish before checkpoint...
I0418 19:48:09.683778 136077098014528 checkpointing.py:776] Waited 0.0007357597351074219 seconds for step 19 to finish before starting checkpointing.
I0418 19:48:09.685871 136077098014528 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=15][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 19:48:31.344268 135949539342080 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 36.610 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.146217584609985 s) (per-host)
I0418 19:48:31.344398 135949539342080 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 43.114876s.
I0418 19:48:40.358683 135949539342080 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 52.129145s.
I0418 19:48:40.358971 135954211784448 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 19:48:40.359130 135954211784448 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 19:48:40.359181 135954211784448 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=15] CheckpointManager Save Finalize is syncing with other hosts...
I0418 19:48:40.360632 135954211784448 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=15] CheckpointManager Save Finalize is done on all hosts.
I0418 19:48:40.360823 136077098014528 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=15][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=15.
W0418 19:48:40.360960 136077098014528 checkpoint_manager.py:1452] Waiting for previous save to complete took 30.675094 seconds. If this number is high, consider checkpointing less frequently.
I0418 19:48:40.362512 136077098014528 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 19
I0418 19:48:40.364559 136077098014528 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/19.
I0418 19:48:41.064456 136077098014528 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 19:48:41.064547 136077098014528 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 19:48:41.090362 136077098014528 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.026844s
I0418 19:48:41.090558 136077098014528 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 50.624 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.030471086502075195 s) (per-host)
I0418 19:48:41.090620 136077098014528 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.030551s (batch_requests_ready=0.001772s, total_serialization_initiated=0.028692s, others=0.000087s)
I0418 19:48:41.090720 136077098014528 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.034769s (all_items=0.000011s, per_item={'items': '0.00001121'}, temp_paths=0.034758)
I0418 19:48:41.091336 136077098014528 event_tracking.py:125] [process=7] [async] Finished blocking save in 0.73 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/19.
I0418 19:48:41.091639 135950067820288 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 20:08:41.091602
I0418 19:48:41.520525 136077098014528 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=19] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 19:48:41.520897 135954211784448 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 19:48:41.521084 136077098014528 standard_logger.py:34] {'step': 19, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776541689.6858416, 'wait_for_prev_duration_secs': 30.67509388923645, 'time_between_consecutive_saves_sec': 22.215182542800903, 'checkpointer_blocking_start_time': 1776541720.3625512, 'checkpointer_blocking_duration_secs': 0.729236364364624, 'get_old_steps_start_time': 1776541721.0918024, 'get_old_steps_duration_secs': 2.3365020751953125e-05, 'checkpoint_manager_blocking_start_time': 1776541689.6840189, 'checkpoint_manager_blocking_duration_secs': 31.837016344070435}
I0418 19:48:41.521212 136077098014528 checkpointing.py:408] Started an asynchronous checkpoint save for step 19
I0418 19:48:41.521253 136077098014528 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=19][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 19:48:46.668619 135954220177152 array_metadata_store.py:203] [process=7][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_16_zarr3_true/checkpoints/19/items/array_metadatas/process_7
I0418 19:49:22.920226 135950067820288 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 37.735 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 41.860108613967896 s) (per-host)
I0418 19:49:22.920351 135950067820288 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.828593s.
I0418 19:49:33.539106 135950067820288 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 52.447302s.
I0418 19:49:33.539419 135954211784448 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 19:49:33.539531 135954211784448 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 19:49:33.539572 135954211784448 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=19] CheckpointManager Save Finalize is syncing with other hosts...
I0418 19:49:33.541842 135954211784448 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=19] CheckpointManager Save Finalize is done on all hosts.
I0418 19:49:33.542014 136077098014528 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=19][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=19.
I0418 19:49:33.542171 136077098014528 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 19:49:33.543057 136077098014528 metric_logger.py:196] completed step: 19, seconds: 0.147, TFLOP/s/device: 92.220, Tokens/s/device: 13900.390, 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: Sat Apr 18 19:49:41 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  main_20260418_180002  ·  full log
XPK Start: Sat Apr 18 20:36:23 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 20:36:47.788297: 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 20:36:47.971107 134557426923328 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 20:36:57.011120 134557426923328 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 20:36:57.013423 134557426923328 distributed.py:172] Connecting to JAX distributed service on mt-16-zarr3-true-rs-h2hc3-slice-job-0-0.mt-16-zarr3-true-rs-h2hc3:8482
I0418 20:36:59.011098 134557426923328 max_utils.py:284] Jax distributed system initialized!
I0418 20:37:05.471949 134557426923328 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 20:37:05.472047 134557426923328 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 20:37:05.472089 134557426923328 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 20:37:05.472126 134557426923328 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 20:37:13 UTC 2026
EXIT_CODE=1