MaxView

‹ 13_scan_layers_trueCase: 14_async_ckpt_false_resume14_async_ckpt_false_save ›

Metrics: Linen vs NNX  ·  main

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion
Final loss5.3910
TFLOP/s92.008
Tok/s13868.4
Avg s/step13.869
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 06:53:48 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 06:54:12.671660: 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 06:54:13.203326 135552615978816 max_utils.py:273] Attempting to initialize the jax distributed system...
I0420 06:54:22.245480 135552615978816 distributed.py:149] Starting JAX distributed service on [::]:8482
I0420 06:54:22.247722 135552615978816 distributed.py:172] Connecting to JAX distributed service on mt-14-async-ckpt-false--qqkcr-slice-job-0-0.mt-14-async-ckpt-false--qqkcr:8482
I0420 06:54:23.719622 135552615978816 max_utils.py:284] Jax distributed system initialized!
I0420 06:54:29.726289 135552615978816 max_utils.py:800] System Information: Jax Version: 0.9.2
I0420 06:54:29.726412 135552615978816 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0420 06:54:29.726453 135552615978816 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 06:54:29.726489 135552615978816 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0420 06:54:30.416601 135552615978816 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0420 06:54:30.416872 135552615978816 checkpointing.py:677] Setting up checkpoint logger...
I0420 06:54:30.416927 135552615978816 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0420 06:54:30.416973 135552615978816 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0420 06:54:30.417309 135552615978816 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 0x7b4815d4c470>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0420 06:54:31.681576 135552615978816 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0420 06:54:31.681808 135552615978816 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 0x7b33e427e510>}, handler_registry=None
I0420 06:54:31.682047 135552615978816 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7b33e427e510>` 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 06:54:31.682094 135552615978816 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7b33e4280860>` 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 06:54:31.682129 135552615978816 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 0x7b33e427e510>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7b33e427e510>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7b33e4280860>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7b33e4280860>}).
I0420 06:54:31.682456 135552615978816 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0420 06:54:33.602296 135431039473408 checkpoint.py:228] Read Metadata={'item_handlers': {'items': 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler'}, 'metrics': {}, 'performance_metrics': {}, 'init_timestamp_nsecs': 1776667907194749251, 'commit_timestamp_nsecs': 1776667954525417754, 'custom_metadata': {}} from gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/9/_CHECKPOINT_METADATA
I0420 06:54:33.851270 135431047866112 checkpoint_manager.py:1871] Missing metrics for step 5
I0420 06:54:34.158851 135552615978816 checkpoint_manager.py:1812] Found 3 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints
I0420 06:54:34.319438 135552615978816 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=False, 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_14_async_ckpt_false/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7b33c4399cd0>
I0420 06:54:34.319617 135552615978816 checkpointing.py:301] Checkpoint manager created!
I0420 06:54:35.233434 135552615978816 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0420 06:54:35.233549 135552615978816 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0420 06:54:35.611807 135552615978816 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0420 06:54:35.611894 135552615978816 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0420 06:54:35.628196 135552615978816 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0420 06:54:35.628251 135552615978816 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0420 06:54:35.652311 135552615978816 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 06:54:35.652386 135552615978816 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 06:54:35.668660 135552615978816 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 06:54:35.668722 135552615978816 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 06:54:35.684933 135552615978816 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 06:54:35.684990 135552615978816 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 06:54:35.709413 135552615978816 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0420 06:54:35.709475 135552615978816 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0420 06:54:35.730165 135552615978816 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0420 06:54:35.730224 135552615978816 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0420 06:54:35.942144 135552615978816 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0420 06:54:35.942247 135552615978816 checkpointing.py:581] restoring from this run's directory step 9
I0420 06:54:36.188739 135552615978816 event_tracking.py:70] [process=4] [sync] Started load checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/9.
I0420 06:54:36.779167 135552615978816 checkpointer.py:307] Restoring checkpoint from gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/9.
I0420 06:54:36.779635 135552615978816 event_tracking.py:125] [process=4] [sync] Finished blocking load in 0.59 seconds. Continuing load @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/9.
I0420 06:54:38.171264    1458 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0420 06:54:45.885191 135552615978816 jax_array_handlers.py:843] [process=4] /jax/orbax/read/worker/io/requested throughput: 204.701 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 7.719911813735962 s) (per-host)
I0420 06:54:45.889783 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/checkpoint/read/gbytes_per_sec: 195.031 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 8.114582538604736 s) (per-host)
I0420 06:54:45.892852 135552615978816 event_tracking.py:138] [process=4] [sync] Finished load in 9.70 seconds @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/9
I0420 06:54:45.892945 135552615978816 standard_logger.py:34] {'step': 9, 'event_type': 'restore', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints', 'checkpointer_start_time': 1776668076.1886563, 'checkpointer_duration_secs': 9.704260349273682, 'checkpoint_manager_start_time': 1776668075.9424953, 'checkpoint_manager_duration_secs': 9.950423240661621}
fsdp: 32
I0420 06:54:46.301824 135552615978816 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0420 06:54:46.301947 135552615978816 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 06:54:46.302001 135552615978816 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 06:54:46.302058 135552615978816 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 06:54:46.302111 135552615978816 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 06:54:46.302148 135552615978816 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 06:54:46.302200 135552615978816 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 06:54:46.302249 135552615978816 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 06:54:46.302289 135552615978816 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 06:54:46.302325 135552615978816 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 06:54:46.302414 135552615978816 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0420 06:54:46.302463 135552615978816 maxtext_utils.py:1654]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0420 06:54:46.780201 135552615978816 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0420 06:54:46.780292 135552615978816 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0420 06:54:46.795392 135552615978816 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0420 06:54:46.795444 135552615978816 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0420 06:54:57.810504 135552615978816 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 06:54:57.811296 135552615978816 metric_logger.py:301] number parameters: 1.104 billion
I0420 06:55:09.328331 135552615978816 checkpointing.py:772] Waiting for step 10 to finish before checkpoint...
I0420 06:55:09.485268 135552615978816 checkpointing.py:776] Waited 0.15691542625427246 seconds for step 10 to finish before starting checkpointing.
I0420 06:55:09.488005 135552615978816 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 06:55:09.489896 135552615978816 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 10
I0420 06:55:09.492092 135552615978816 event_tracking.py:70] [process=4] [sync] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/10.
I0420 06:55:11.956943 135552615978816 signaling_client.py:364] Using JaxDistributedSignalingClient
I0420 06:55:11.958275 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=1] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:55:13.349673 135552615978816 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0420 06:55:13.349768 135552615978816 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 06:55:13.635091 135552615978816 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.286493s
I0420 06:55:13.635276 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 5.302 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.29094529151916504 s) (per-host)
I0420 06:55:13.635350 135552615978816 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.291015s (batch_requests_ready=0.002474s, total_serialization_initiated=0.288463s, others=0.000078s)
I0420 06:55:13.635447 135552615978816 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 1.678593s (all_items=0.000034s, per_item={'items': '0.00003386'}, temp_paths=1.678559)
I0420 06:55:13.635493 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=1] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:55:13.635533 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=1] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:55:15.681586 135431005902592 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_14_async_ckpt_false/checkpoints/10/items/array_metadatas/process_4
I0420 06:55:51.926988 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 40.941 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 38.58262228965759 s) (per-host)
I0420 06:55:57.831395 135552615978816 event_tracking.py:125] [process=4] [sync] Finished blocking save in 48.34 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/10.
I0420 06:56:01.764773 135552615978816 event_tracking.py:138] [process=4] [sync] Finished save in 52.27 seconds @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/10
I0420 06:56:01.767060 135552615978816 checkpoint_manager.py:2137] [process=4][thread=MainThread][step=10] CheckpointManager Save Finalize is syncing with other hosts...
I0420 06:56:01.768633 135552615978816 checkpoint_manager.py:2146] [process=4][thread=MainThread][step=10] CheckpointManager Save Finalize is done on all hosts.
I0420 06:56:01.768684 135552615978816 checkpoint_manager.py:1581] [process=4][thread=MainThread][step=10] Finished synchronous save.
I0420 06:56:01.768735 135552615978816 standard_logger.py:34] {'step': 10, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': True, 'wait_for_prev_start_time': 1776668109.487986, 'wait_for_prev_duration_secs': 6.031990051269531e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776668109.4899354, 'checkpointer_blocking_duration_secs': 52.27497053146362, 'get_old_steps_start_time': 1776668161.7649255, 'get_old_steps_duration_secs': 2.47955322265625e-05, 'checkpoint_manager_blocking_start_time': 1776668109.4858093, 'checkpoint_manager_blocking_duration_secs': 52.28290057182312}
I0420 06:56:01.768822 135552615978816 checkpointing.py:410] Saved a checkpoint at step 10.
I0420 06:56:01.768871 135552615978816 max_utils.py:750] 
Memstats: After params initialized:
I0420 06:56:01.768919 135552615978816 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_16(process=4,(0,4,0,0))
I0420 06:56:01.768949 135552615978816 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_17(process=4,(1,4,0,0))
I0420 06:56:01.768974 135552615978816 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_20(process=4,(0,5,0,0))
I0420 06:56:01.768997 135552615978816 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_21(process=4,(1,5,0,0))
I0420 06:56:02.084731 135552615978816 metric_logger.py:196] completed step: 10, seconds: 11.517, TFLOP/s/device: 1.180, Tokens/s/device: 177.826, total_weights: 65536, loss: 6.833, lm_loss: 6.833, perplexity: 927.869
I0420 06:56:02.271955 135552615978816 metric_logger.py:196] completed step: 11, seconds: 52.755, TFLOP/s/device: 0.258, Tokens/s/device: 38.821, total_weights: 65536, loss: 6.527, lm_loss: 6.527, perplexity: 683.659
I0420 06:56:02.419364 135552615978816 metric_logger.py:196] completed step: 12, seconds: 0.040, TFLOP/s/device: 342.927, Tokens/s/device: 51689.760, total_weights: 65536, loss: 6.265, lm_loss: 6.265, perplexity: 526.068
I0420 06:56:02.567220 135552615978816 metric_logger.py:196] completed step: 13, seconds: 0.154, TFLOP/s/device: 88.425, Tokens/s/device: 13328.387, total_weights: 65536, loss: 6.045, lm_loss: 6.045, perplexity: 422.001
I0420 06:56:02.571924 135552615978816 checkpointing.py:772] Waiting for step 15 to finish before checkpoint...
I0420 06:56:02.861929 135552615978816 checkpointing.py:776] Waited 0.28996849060058594 seconds for step 15 to finish before starting checkpointing.
I0420 06:56:02.864907 135552615978816 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 06:56:02.866491 135552615978816 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 15
I0420 06:56:02.868206 135552615978816 event_tracking.py:70] [process=4] [sync] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/15.
I0420 06:56:05.745531 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=2] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:56:07.456200 135552615978816 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0420 06:56:07.456300 135552615978816 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 06:56:07.483498 135552615978816 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.028448s
I0420 06:56:07.483642 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 47.711 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03233170509338379 s) (per-host)
I0420 06:56:07.483697 135552615978816 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.032397s (batch_requests_ready=0.001914s, total_serialization_initiated=0.030412s, others=0.000071s)
I0420 06:56:07.488385 135552615978816 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 1.743839s (all_items=0.000024s, per_item={'items': '0.00002432'}, temp_paths=1.743815)
I0420 06:56:07.488460 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=2] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:56:07.488507 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=2] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:56:09.514608 135425343612672 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_14_async_ckpt_false/checkpoints/15/items/array_metadatas/process_4
I0420 06:56:45.817873 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 41.171 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 38.36652326583862 s) (per-host)
I0420 06:56:51.539042 135552615978816 event_tracking.py:125] [process=4] [sync] Finished blocking save in 48.67 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/15.
I0420 06:56:55.714890 135552615978816 event_tracking.py:138] [process=4] [sync] Finished save in 52.85 seconds @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/15
I0420 06:56:55.716939 135552615978816 checkpoint_manager.py:2137] [process=4][thread=MainThread][step=15] CheckpointManager Save Finalize is syncing with other hosts...
I0420 06:56:55.718392 135552615978816 checkpoint_manager.py:2146] [process=4][thread=MainThread][step=15] CheckpointManager Save Finalize is done on all hosts.
I0420 06:56:55.718443 135552615978816 checkpoint_manager.py:1581] [process=4][thread=MainThread][step=15] Finished synchronous save.
I0420 06:56:55.718493 135552615978816 standard_logger.py:34] {'step': 15, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': True, 'wait_for_prev_start_time': 1776668162.8648856, 'wait_for_prev_duration_secs': 6.0558319091796875e-05, 'time_between_consecutive_saves_sec': 1.0962131023406982, 'checkpointer_blocking_start_time': 1776668162.8665297, 'checkpointer_blocking_duration_secs': 52.84847903251648, 'get_old_steps_start_time': 1776668215.7150297, 'get_old_steps_duration_secs': 2.6226043701171875e-05, 'checkpoint_manager_blocking_start_time': 1776668162.8625736, 'checkpoint_manager_blocking_duration_secs': 52.85589575767517}
I0420 06:56:55.718580 135552615978816 checkpointing.py:410] Saved a checkpoint at step 15.
I0420 06:56:55.719402 135552615978816 metric_logger.py:196] completed step: 14, seconds: 0.148, TFLOP/s/device: 92.030, Tokens/s/device: 13871.767, total_weights: 65536, loss: 5.864, lm_loss: 5.864, perplexity: 352.193
I0420 06:56:55.725411 135552615978816 metric_logger.py:196] completed step: 15, seconds: 0.148, TFLOP/s/device: 91.922, Tokens/s/device: 13855.438, total_weights: 65536, loss: 5.719, lm_loss: 5.719, perplexity: 304.661
I0420 06:57:16.352214 135552615978816 metric_logger.py:196] completed step: 16, seconds: 53.152, TFLOP/s/device: 0.256, Tokens/s/device: 38.531, total_weights: 65536, loss: 5.605, lm_loss: 5.605, perplexity: 271.872
I0420 06:57:16.500136 135552615978816 metric_logger.py:196] completed step: 17, seconds: 20.481, TFLOP/s/device: 0.663, Tokens/s/device: 99.996, total_weights: 65536, loss: 5.517, lm_loss: 5.517, perplexity: 248.975
I0420 06:57:16.647493 135552615978816 metric_logger.py:196] completed step: 18, seconds: 0.152, TFLOP/s/device: 89.174, Tokens/s/device: 13441.319, total_weights: 65536, loss: 5.448, lm_loss: 5.448, perplexity: 232.333
I0420 06:57:16.794603 135552615978816 checkpointing.py:772] Waiting for step 19 to finish before checkpoint...
I0420 06:57:16.795298 135552615978816 checkpointing.py:776] Waited 0.0007171630859375 seconds for step 19 to finish before starting checkpointing.
I0420 06:57:16.797384 135552615978816 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 06:57:16.799303 135552615978816 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 19
I0420 06:57:16.800759 135552615978816 event_tracking.py:70] [process=4] [sync] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/19.
I0420 06:57:19.641565 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=3] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:57:21.135645 135552615978816 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0420 06:57:21.135744 135552615978816 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 06:57:21.164130 135552615978816 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.029515s
I0420 06:57:21.164306 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 46.343 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03328585624694824 s) (per-host)
I0420 06:57:21.164372 135552615978816 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.033362s (batch_requests_ready=0.001883s, total_serialization_initiated=0.031398s, others=0.000081s)
I0420 06:57:21.164473 135552615978816 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 1.524247s (all_items=0.000025s, per_item={'items': '0.00002527'}, temp_paths=1.524222)
I0420 06:57:21.164514 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=3] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:57:21.164556 135552615978816 future.py:372] [process=4][thread=MainThread][operation_id=3] _SignalingThread.join() waiting for signals ([]) blocking the main thread will slow down blocking save times. This is likely due to main thread calling result() on a CommitFuture.
I0420 06:57:23.243372 135431005902592 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_14_async_ckpt_false/checkpoints/19/items/array_metadatas/process_4
I0420 06:57:59.291628 135552615978816 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 41.393 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 38.16056156158447 s) (per-host)
I0420 06:58:03.907706 135552615978816 event_tracking.py:125] [process=4] [sync] Finished blocking save in 47.11 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/19.
I0420 06:58:07.321611 135552615978816 event_tracking.py:138] [process=4] [sync] Finished save in 50.52 seconds @ gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints/19
I0420 06:58:07.323462 135552615978816 checkpoint_manager.py:2137] [process=4][thread=MainThread][step=19] CheckpointManager Save Finalize is syncing with other hosts...
I0420 06:58:07.325159 135552615978816 checkpoint_manager.py:2146] [process=4][thread=MainThread][step=19] CheckpointManager Save Finalize is done on all hosts.
I0420 06:58:07.325266 135552615978816 checkpoint_manager.py:1581] [process=4][thread=MainThread][step=19] Finished synchronous save.
I0420 06:58:07.325325 135552615978816 standard_logger.py:34] {'step': 19, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260420_060028/linen_xpk_main_20260420_060028_14_async_ckpt_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': True, 'wait_for_prev_start_time': 1776668236.7973645, 'wait_for_prev_duration_secs': 5.602836608886719e-05, 'time_between_consecutive_saves_sec': 21.078932523727417, 'checkpointer_blocking_start_time': 1776668236.7993557, 'checkpointer_blocking_duration_secs': 50.52236771583557, 'get_old_steps_start_time': 1776668287.3217373, 'get_old_steps_duration_secs': 2.1219253540039062e-05, 'checkpoint_manager_blocking_start_time': 1776668236.795544, 'checkpoint_manager_blocking_duration_secs': 50.52975392341614}
I0420 06:58:07.325435 135552615978816 checkpointing.py:410] Saved a checkpoint at step 19.
I0420 06:58:07.325470 135552615978816 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 06:58:07.325507 135552615978816 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0420 06:58:07.326231 135552615978816 metric_logger.py:196] completed step: 19, seconds: 0.148, TFLOP/s/device: 92.008, Tokens/s/device: 13868.386, 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 06:58:19 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  main_20260420_060028  ·  full log
XPK Start: Mon Apr 20 07:59:02 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:59:26.815592: 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:59:27.349933 139149250864960 max_utils.py:273] Attempting to initialize the jax distributed system...
I0420 07:59:36.391638 139149250864960 distributed.py:149] Starting JAX distributed service on [::]:8482
I0420 07:59:36.394079 139149250864960 distributed.py:172] Connecting to JAX distributed service on mt-14-async-ckpt-false--msdyv-slice-job-0-0.mt-14-async-ckpt-false--msdyv:8482
I0420 07:59:37.705561 139149250864960 max_utils.py:284] Jax distributed system initialized!
I0420 07:59:43.648607 139149250864960 max_utils.py:800] System Information: Jax Version: 0.9.2
I0420 07:59:43.648713 139149250864960 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0420 07:59:43.648763 139149250864960 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:59:43.648807 139149250864960 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 07:59:53 UTC 2026
EXIT_CODE=1