MaxView

‹ 15_ocdbt_false_resumeCase: 15_ocdbt_false_save15_ocdbt_true_resume ›

Metrics: Linen vs NNX  ·  main

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion
Final loss7.1810
TFLOP/s92.149
Tok/s13889.6
Avg s/step4.754
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:33:21 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:33:45.955889: 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:33:46.136519 140126308788032 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 19:33:55.175676 140126308788032 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 19:33:55.177983 140126308788032 distributed.py:172] Connecting to JAX distributed service on mt-15-ocdbt-false-sv-r4zd1-slice-job-0-0.mt-15-ocdbt-false-sv-r4zd1:8482
I0418 19:33:56.079634 140126308788032 max_utils.py:284] Jax distributed system initialized!
I0418 19:34:02.536898 140126308788032 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 19:34:02.537000 140126308788032 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 19:34:02.537040 140126308788032 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:34:02.537084 140126308788032 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 19:34:03.237103 140126308788032 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 19:34:03.237379 140126308788032 checkpointing.py:677] Setting up checkpoint logger...
I0418 19:34:03.237432 140126308788032 checkpointing.py:233] Creating checkpoint manager with ocdbt=False and zarr3=True
I0418 19:34:03.237479 140126308788032 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 19:34:03.237810 140126308788032 base_pytree_checkpoint_handler.py:441] Created BasePyTreeCheckpointHandler: use_ocdbt=False, use_zarr3=True, pytree_metadata_options=PyTreeMetadataOptions(support_rich_types=False), array_metadata_store=<orbax.checkpoint._src.metadata.array_metadata_store.Store object at 0x7f70fb244080>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 19:34:06.565551 140126308788032 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0418 19:34:06.565785 140126308788032 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 0x7f5c8811aea0>}, handler_registry=None
I0418 19:34:06.566030 140126308788032 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f5c8811aea0>` 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:34:06.566097 140126308788032 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f5c8811c800>` 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:34:06.566146 140126308788032 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 0x7f5c8811aea0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7f5c8811aea0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f5c8811c800>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7f5c8811c800>}).
I0418 19:34:06.566547 140126308788032 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 19:34:06.566619 140126308788032 async_checkpointer.py:192] [process=7][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7f5bb8463d80> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 19:34:08.100911 140126308788032 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints
I0418 19:34:08.540988 140126308788032 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_15_ocdbt_false/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7f5c8811a450>
I0418 19:34:08.541186 140126308788032 checkpointing.py:301] Checkpoint manager created!
I0418 19:34:09.492749 140126308788032 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 19:34:09.492861 140126308788032 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 19:34:09.874751 140126308788032 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 19:34:09.874843 140126308788032 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 19:34:09.890986 140126308788032 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 19:34:09.891045 140126308788032 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 19:34:09.914574 140126308788032 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:34:09.914643 140126308788032 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:34:09.931006 140126308788032 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:34:09.931066 140126308788032 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:34:09.947210 140126308788032 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:34:09.947269 140126308788032 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:34:09.971763 140126308788032 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 19:34:09.971842 140126308788032 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 19:34:09.993645 140126308788032 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 19:34:09.993708 140126308788032 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 19:34:10.209131 140126308788032 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 19:34:10.209238 140126308788032 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0418 19:34:11.647469 140126308788032 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 19:34:11.647593 140126308788032 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:34:11.647647 140126308788032 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:34:11.647717 140126308788032 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:34:11.647772 140126308788032 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:34:11.647811 140126308788032 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:34:11.647863 140126308788032 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:34:11.647914 140126308788032 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:34:11.647955 140126308788032 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:34:11.647992 140126308788032 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:34:11.648039 140126308788032 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0418 19:34:11.648102 140126308788032 maxtext_utils.py:1654]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0418 19:34:12.143023 140126308788032 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 19:34:12.143135 140126308788032 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 19:34:12.158481 140126308788032 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 19:34:12.158541 140126308788032 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 19:34:22.990097 140126308788032 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:34:22.990978 140126308788032 metric_logger.py:301] number parameters: 1.104 billion
I0418 19:34:34.414645 140126308788032 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0418 19:34:34.568638 140126308788032 checkpointing.py:776] Waited 0.15397024154663086 seconds for step 0 to finish before starting checkpointing.
I0418 19:34:34.571367 140126308788032 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 19:34:34.573066 140126308788032 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 0
I0418 19:34:34.574655 140126308788032 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints/0.
I0418 19:34:35.765806 140126308788032 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 19:34:35.766843 140126308788032 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 19:34:35.766906 140126308788032 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:34:36.038364 140126308788032 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.272634s
I0418 19:34:36.038545 140126308788032 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 5.546 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2781527042388916 s) (per-host)
I0418 19:34:36.038595 140126308788032 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.278212s (batch_requests_ready=0.002219s, total_serialization_initiated=0.275925s, others=0.000068s)
I0418 19:34:36.038686 140126308788032 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.282803s (all_items=0.000017s, per_item={'items': '0.00001740'}, temp_paths=0.282785)
I0418 19:34:36.039513 140126308788032 event_tracking.py:125] [process=7] [async] Finished blocking save in 1.47 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints/0.
I0418 19:34:36.039838 139996118398720 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 19:54:36.039799
I0418 19:34:36.051358 140126308788032 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 19:34:36.051639 139993949525760 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 19:34:36.051794 140126308788032 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776540874.5713487, 'wait_for_prev_duration_secs': 6.270408630371094e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776540874.573115, 'checkpointer_blocking_duration_secs': 1.466883659362793, 'get_old_steps_start_time': 1776540876.0400257, 'get_old_steps_duration_secs': 3.5762786865234375e-05, 'checkpoint_manager_blocking_start_time': 1776540874.5692194, 'checkpoint_manager_blocking_duration_secs': 1.4825351238250732}
I0418 19:34:36.051903 140126308788032 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0418 19:34:36.051952 140126308788032 max_utils.py:750] 
Memstats: After params initialized:
I0418 19:34:36.052002 140126308788032 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_26(process=7,(2,6,0,0))
I0418 19:34:36.052035 140126308788032 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_27(process=7,(3,6,0,0))
I0418 19:34:36.052067 140126308788032 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_30(process=7,(2,7,0,0))
I0418 19:34:36.052107 140126308788032 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_31(process=7,(3,7,0,0))
I0418 19:34:36.367942 140126308788032 metric_logger.py:196] completed step: 0, seconds: 11.424, TFLOP/s/device: 1.189, Tokens/s/device: 179.279, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 19:34:36.539875 140126308788032 metric_logger.py:196] completed step: 1, seconds: 1.952, TFLOP/s/device: 6.961, Tokens/s/device: 1049.306, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 19:34:36.944589 140126308788032 metric_logger.py:196] completed step: 2, seconds: 0.025, TFLOP/s/device: 548.532, Tokens/s/device: 82680.662, total_weights: 65536, loss: 10.560, lm_loss: 10.560, perplexity: 38547.719
I0418 19:34:37.092037 140126308788032 metric_logger.py:196] completed step: 3, seconds: 0.405, TFLOP/s/device: 33.565, Tokens/s/device: 5059.301, total_weights: 65536, loss: 9.980, lm_loss: 9.980, perplexity: 21590.506
I0418 19:34:37.096585 140126308788032 checkpointing.py:772] Waiting for step 5 to finish before checkpoint...
I0418 19:34:37.386711 140126308788032 checkpointing.py:776] Waited 0.29009366035461426 seconds for step 5 to finish before starting checkpointing.
I0418 19:34:37.389573 140126308788032 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 19:34:39.021648    2938 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 19:34:42.385246 139993987340032 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_15_ocdbt_false/checkpoints/0/items/array_metadatas/process_7
I0418 19:34:46.018138 139996118398720 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 153.991 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 10.257695198059082 s) (per-host)
I0418 19:34:46.018249 139996118398720 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 9.978296s.
I0418 19:34:53.237900 139996118398720 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 17.197931s.
I0418 19:34:53.238123 139993949525760 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 19:34:53.238185 139993949525760 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 19:34:53.238252 139993949525760 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0418 19:34:53.239844 139993949525760 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0418 19:34:53.240010 140126308788032 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=0][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=0.
W0418 19:34:53.240160 140126308788032 checkpoint_manager.py:1452] Waiting for previous save to complete took 15.850587 seconds. If this number is high, consider checkpointing less frequently.
I0418 19:34:53.242214 140126308788032 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 5
I0418 19:34:53.244679 140126308788032 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints/5.
I0418 19:34:54.383461 140126308788032 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 19:34:54.383554 140126308788032 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:34:54.418418 140126308788032 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.035967s
I0418 19:34:54.418588 140126308788032 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 39.094 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.039458513259887695 s) (per-host)
I0418 19:34:54.418641 140126308788032 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.039520s (batch_requests_ready=0.001745s, total_serialization_initiated=0.037708s, others=0.000068s)
I0418 19:34:54.418730 140126308788032 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.044526s (all_items=0.000015s, per_item={'items': '0.00001550'}, temp_paths=0.044511)
I0418 19:34:54.419397 140126308788032 event_tracking.py:125] [process=7] [async] Finished blocking save in 1.18 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints/5.
I0418 19:34:54.419757 139996101613312 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 19:54:54.419716
I0418 19:34:54.428587 140126308788032 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=5] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 19:34:54.428892 139993949525760 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 19:34:54.429052 140126308788032 standard_logger.py:34] {'step': 5, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776540877.3895442, 'wait_for_prev_duration_secs': 15.850587368011475, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776540893.2422533, 'checkpointer_blocking_duration_secs': 1.1776604652404785, 'get_old_steps_start_time': 1776540894.4199364, 'get_old_steps_duration_secs': 2.956390380859375e-05, 'checkpoint_manager_blocking_start_time': 1776540877.3873465, 'checkpoint_manager_blocking_duration_secs': 17.041672229766846}
I0418 19:34:54.429180 140126308788032 checkpointing.py:408] Started an asynchronous checkpoint save for step 5
I0418 19:34:54.430090 140126308788032 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.705, Tokens/s/device: 13370.590, total_weights: 65536, loss: 9.460, lm_loss: 9.460, perplexity: 12840.355
I0418 19:34:54.436083 140126308788032 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.227, Tokens/s/device: 13901.522, total_weights: 65536, loss: 8.959, lm_loss: 8.959, perplexity: 7776.467
I0418 19:34:59.831129 139993987340032 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_15_ocdbt_false/checkpoints/5/items/array_metadatas/process_7
I0418 19:35:05.138834 139996101613312 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 146.807 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 10.759648323059082 s) (per-host)
I0418 19:35:05.138949 139996101613312 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 10.719071s.
I0418 19:35:14.977532 139996101613312 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 20.557637s.
I0418 19:35:14.977770 139993949525760 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 19:35:14.977852 139993949525760 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 19:35:14.977901 139993949525760 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=5] CheckpointManager Save Finalize is syncing with other hosts...
I0418 19:35:14.979835 139993949525760 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=5] CheckpointManager Save Finalize is done on all hosts.
I0418 19:35:17.051611 140126308788032 metric_logger.py:196] completed step: 6, seconds: 17.338, TFLOP/s/device: 0.784, Tokens/s/device: 118.122, total_weights: 65536, loss: 8.469, lm_loss: 8.469, perplexity: 4762.740
I0418 19:35:17.199275 140126308788032 metric_logger.py:196] completed step: 7, seconds: 22.469, TFLOP/s/device: 0.605, Tokens/s/device: 91.146, total_weights: 65536, loss: 8.003, lm_loss: 8.003, perplexity: 2989.151
I0418 19:35:17.346816 140126308788032 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.133, Tokens/s/device: 13435.147, total_weights: 65536, loss: 7.572, lm_loss: 7.572, perplexity: 1943.098
I0418 19:35:17.493656 140126308788032 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0418 19:35:17.494357 140126308788032 checkpointing.py:776] Waited 0.0007228851318359375 seconds for step 9 to finish before starting checkpointing.
I0418 19:35:17.496384 140126308788032 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 19:35:17.497919 140126308788032 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 9
I0418 19:35:17.499397 140126308788032 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints/9.
I0418 19:35:18.193331 140126308788032 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 19:35:18.193425 140126308788032 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:35:18.228974 140126308788032 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.036634s
I0418 19:35:18.229150 140126308788032 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 38.398 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.04017353057861328 s) (per-host)
I0418 19:35:18.229206 140126308788032 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.040240s (batch_requests_ready=0.001666s, total_serialization_initiated=0.038502s, others=0.000072s)
I0418 19:35:18.229292 140126308788032 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.044581s (all_items=0.000010s, per_item={'items': '0.00001025'}, temp_paths=0.044571)
I0418 19:35:18.230005 140126308788032 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_15_ocdbt_false/checkpoints/9.
I0418 19:35:18.230312 139993949525760 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 19:55:18.230279
I0418 19:35:18.232301 140126308788032 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 19:35:18.232495 139975102293760 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 19:35:18.232603 140126308788032 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_15_ocdbt_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776540917.4963527, 'wait_for_prev_duration_secs': 7.462501525878906e-05, 'time_between_consecutive_saves_sec': 2.5164783000946045, 'checkpointer_blocking_start_time': 1776540917.4979563, 'checkpointer_blocking_duration_secs': 0.7324936389923096, 'get_old_steps_start_time': 1776540918.230468, 'get_old_steps_duration_secs': 2.4080276489257812e-05, 'checkpoint_manager_blocking_start_time': 1776540917.4945877, 'checkpoint_manager_blocking_duration_secs': 0.737983226776123}
I0418 19:35:18.232717 140126308788032 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0418 19:35:18.232762 140126308788032 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 19:35:25.297228 139995021027072 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_15_ocdbt_false/checkpoints/9/items/array_metadatas/process_7
I0418 19:35:30.172160 139993949525760 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 131.819 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 11.983110189437866 s) (per-host)
I0418 19:35:30.172283 139993949525760 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 11.941862s.
I0418 19:35:36.751338 139993949525760 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 18.520900s.
I0418 19:35:36.751614 139975102293760 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 19:35:36.751740 139975102293760 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 19:35:36.751783 139975102293760 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0418 19:35:36.753197 139975102293760 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0418 19:35:36.753380 140126308788032 checkpoint_manager.py:2032] [process=7][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0418 19:35:36.753524 140126308788032 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 19:35:36.754500 140126308788032 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.149, Tokens/s/device: 13889.642, total_weights: 65536, loss: 7.181, lm_loss: 7.181, perplexity: 1314.495
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:35:46 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  main_20260418_180002  ·  full log
XPK Start: Sat Apr 18 20:30:49 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:31:13.354743: 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:31:13.535733 136069910525760 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 20:31:22.575346 136069910525760 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 20:31:22.579847 136069910525760 distributed.py:172] Connecting to JAX distributed service on mt-15-ocdbt-false-sv-bl2pn-slice-job-0-0.mt-15-ocdbt-false-sv-bl2pn:8482
I0418 20:31:24.184487 136069910525760 max_utils.py:284] Jax distributed system initialized!
I0418 20:31:30.446196 136069910525760 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 20:31:30.446315 136069910525760 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 20:31:30.446358 136069910525760 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:31:30.446394 136069910525760 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:31:39 UTC 2026
EXIT_CODE=1