MaxView

‹ 10_shardy_trueCase: 11_optimizer_offload_false11_optimizer_offload_true ›

Metrics: Linen vs NNX  ·  main

MetricLinen  574ad3fb9NNX  574ad3fb9Diff (NNX − Linen)
Parameters1.104 billion
Final loss8.1790
TFLOP/s92.223
Tok/s13900.9
Avg s/step2.935
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 18:48: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-18 18:49:12.500909: 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 18:49:13.035605 136439124154176 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 18:49:22.077880 136439124154176 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 18:49:22.080379 136439124154176 distributed.py:172] Connecting to JAX distributed service on mt-11-optimizer-offload-loa72-slice-job-0-0.mt-11-optimizer-offload-loa72:8482
I0418 18:49:23.826328 136439124154176 max_utils.py:284] Jax distributed system initialized!
I0418 18:49:28.905785 136439124154176 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 18:49:28.905889 136439124154176 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 18:49:28.905928 136439124154176 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 18:49:28.905961 136439124154176 train_utils.py:348] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0418 18:49:29.605794 136439124154176 maxtext_utils.py:1551] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0418 18:49:29.606091 136439124154176 checkpointing.py:677] Setting up checkpoint logger...
I0418 18:49:29.606146 136439124154176 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0418 18:49:29.606190 136439124154176 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0418 18:49:29.606526 136439124154176 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 0x7c1694b18620>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0418 18:49:32.917521 136439124154176 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0418 18:49:32.917747 136439124154176 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 0x7c02e02f2210>}, handler_registry=None
I0418 18:49:32.917975 136439124154176 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7c02e02f2210>` 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 18:49:32.918021 136439124154176 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7c02e00f8e60>` 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 18:49:32.918065 136439124154176 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 0x7c02e02f2210>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7c02e02f2210>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7c02e00f8e60>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7c02e00f8e60>}).
I0418 18:49:32.918385 136439124154176 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0418 18:49:32.918452 136439124154176 async_checkpointer.py:192] [process=7][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7c01d048b4c0> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0418 18:49:34.494021 136439124154176 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints
I0418 18:49:35.789996 136439124154176 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=10), preservation_policy=LatestN(n=None), prevent_write_metrics=False, enable_should_save_is_saving_in_progress_check=True, enable_per_process_directory_creation=False, lightweight_initialize=False), root_directory=gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7c157231b500>
I0418 18:49:35.790198 136439124154176 checkpointing.py:301] Checkpoint manager created!
I0418 18:49:36.741262 136439124154176 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0418 18:49:36.741375 136439124154176 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 18:49:37.115400 136439124154176 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 18:49:37.115497 136439124154176 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 18:49:37.131680 136439124154176 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0418 18:49:37.131742 136439124154176 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0418 18:49:37.154982 136439124154176 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 18:49:37.155051 136439124154176 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 18:49:37.171104 136439124154176 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 18:49:37.171162 136439124154176 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 18:49:37.187949 136439124154176 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 18:49:37.188007 136439124154176 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 18:49:37.213296 136439124154176 attentions.py:1197] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0418 18:49:37.213365 136439124154176 attentions.py:1197] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0418 18:49:37.234015 136439124154176 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0418 18:49:37.234099 136439124154176 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0418 18:49:37.448215 136439124154176 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0418 18:49:37.448318 136439124154176 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0418 18:49:38.859098 136439124154176 maxtext_utils.py:1654]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0418 18:49:38.859223 136439124154176 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 18:49:38.859275 136439124154176 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 18:49:38.859330 136439124154176 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 18:49:38.859400 136439124154176 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 18:49:38.859464 136439124154176 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 18:49:38.859519 136439124154176 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 18:49:38.859568 136439124154176 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 18:49:38.859605 136439124154176 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 18:49:38.859640 136439124154176 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 18:49:38.859684 136439124154176 maxtext_utils.py:1654]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0418 18:49:38.859729 136439124154176 maxtext_utils.py:1654]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0418 18:49:39.343242 136439124154176 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 18:49:39.343334 136439124154176 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 18:49:39.358338 136439124154176 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0418 18:49:39.358396 136439124154176 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0418 18:49:50.380766 136439124154176 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 18:49:50.381576 136439124154176 metric_logger.py:301] number parameters: 1.104 billion
I0418 18:50:01.492863 136439124154176 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0418 18:50:01.839738 136439124154176 checkpointing.py:776] Waited 0.3468594551086426 seconds for step 0 to finish before starting checkpointing.
I0418 18:50:01.842085 136439124154176 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 18:50:01.844000 136439124154176 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 0
I0418 18:50:01.845449 136439124154176 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints/0.
I0418 18:50:02.592069 136439124154176 signaling_client.py:364] Using JaxDistributedSignalingClient
I0418 18:50:02.593109 136439124154176 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 18:50:02.593166 136439124154176 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 18:50:02.872663 136439124154176 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.280666s
I0418 18:50:02.872834 136439124154176 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 5.391 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.28613948822021484 s) (per-host)
I0418 18:50:02.872889 136439124154176 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.286210s (batch_requests_ready=0.002231s, total_serialization_initiated=0.283900s, others=0.000078s)
I0418 18:50:02.872978 136439124154176 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.290934s (all_items=0.000017s, per_item={'items': '0.00001740'}, temp_paths=0.290917)
I0418 18:50:02.873782 136439124154176 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_11_optimizer_offload_false/checkpoints/0.
I0418 18:50:02.874124 136313551439616 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 19:10:02.874086
I0418 18:50:02.877295 136439124154176 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 18:50:02.877519 136310383703808 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 18:50:02.877640 136439124154176 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776538201.8420558, 'wait_for_prev_duration_secs': 6.890296936035156e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776538201.8440363, 'checkpointer_blocking_duration_secs': 1.030238389968872, 'get_old_steps_start_time': 1776538202.874299, 'get_old_steps_duration_secs': 3.075599670410156e-05, 'checkpoint_manager_blocking_start_time': 1776538201.8402777, 'checkpoint_manager_blocking_duration_secs': 1.0373256206512451}
I0418 18:50:02.877750 136439124154176 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0418 18:50:02.877799 136439124154176 max_utils.py:750] 
Memstats: After params initialized:
I0418 18:50:02.877850 136439124154176 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_26(process=7,(2,6,0,0))
I0418 18:50:02.877881 136439124154176 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_27(process=7,(3,6,0,0))
I0418 18:50:02.877908 136439124154176 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_30(process=7,(2,7,0,0))
I0418 18:50:02.877932 136439124154176 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_31(process=7,(3,7,0,0))
I0418 18:50:03.190033 136439124154176 metric_logger.py:196] completed step: 0, seconds: 11.111, TFLOP/s/device: 1.223, Tokens/s/device: 184.319, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 18:50:03.363527 136439124154176 metric_logger.py:196] completed step: 1, seconds: 1.696, TFLOP/s/device: 8.013, Tokens/s/device: 1207.823, total_weights: 65536, loss: 10.874, lm_loss: 10.874, perplexity: 52779.875
I0418 18:50:03.764384 136439124154176 metric_logger.py:196] completed step: 2, seconds: 0.026, TFLOP/s/device: 515.915, Tokens/s/device: 77764.277, total_weights: 65536, loss: 10.262, lm_loss: 10.262, perplexity: 28637.129
I0418 18:50:03.911560 136439124154176 metric_logger.py:196] completed step: 3, seconds: 0.401, TFLOP/s/device: 33.879, Tokens/s/device: 5106.659, total_weights: 65536, loss: 9.734, lm_loss: 9.734, perplexity: 16889.203
I0418 18:50:04.206683 136439124154176 metric_logger.py:196] completed step: 4, seconds: 0.153, TFLOP/s/device: 88.891, Tokens/s/device: 13398.582, total_weights: 65536, loss: 9.277, lm_loss: 9.277, perplexity: 10694.614
I0418 18:50:04.212482 136439124154176 metric_logger.py:196] completed step: 5, seconds: 0.147, TFLOP/s/device: 92.281, Tokens/s/device: 13909.642, total_weights: 65536, loss: 8.892, lm_loss: 8.892, perplexity: 7270.717
I0418 18:50:06.971169    2779 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0418 18:50:09.817960 136311983093504 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_11_optimizer_offload_false/checkpoints/0/items/array_metadatas/process_7
I0418 18:50:27.759218 136439124154176 metric_logger.py:196] completed step: 6, seconds: 0.296, TFLOP/s/device: 45.971, Tokens/s/device: 6929.243, total_weights: 65536, loss: 8.592, lm_loss: 8.592, perplexity: 5390.759
I0418 18:50:27.906634 136439124154176 metric_logger.py:196] completed step: 7, seconds: 23.400, TFLOP/s/device: 0.581, Tokens/s/device: 87.521, total_weights: 65536, loss: 8.384, lm_loss: 8.384, perplexity: 4376.905
I0418 18:50:28.054253 136439124154176 metric_logger.py:196] completed step: 8, seconds: 0.152, TFLOP/s/device: 89.414, Tokens/s/device: 13477.497, total_weights: 65536, loss: 8.255, lm_loss: 8.255, perplexity: 3846.406
I0418 18:50:28.200857 136439124154176 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0418 18:50:28.201534 136439124154176 checkpointing.py:776] Waited 0.0006995201110839844 seconds for step 9 to finish before starting checkpointing.
I0418 18:50:28.203721 136439124154176 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=0][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 18:50:40.373033 136313551439616 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 41.803 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 37.78630447387695 s) (per-host)
I0418 18:50:40.373172 136313551439616 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 37.498937s.
I0418 18:50:50.248514 136313551439616 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 47.374262s.
I0418 18:50:50.248794 136310383703808 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 18:50:50.248916 136310383703808 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 18:50:50.248966 136310383703808 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0418 18:50:50.250754 136310383703808 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0418 18:50:50.250927 136439124154176 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 18:50:50.251055 136439124154176 checkpoint_manager.py:1452] Waiting for previous save to complete took 22.047334 seconds. If this number is high, consider checkpointing less frequently.
I0418 18:50:50.252955 136439124154176 checkpoint_manager.py:1512] [process=7] Saving checkpoint at step 9
I0418 18:50:50.254985 136439124154176 event_tracking.py:70] [process=7] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints/9.
I0418 18:50:50.970291 136439124154176 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0418 18:50:50.970387 136439124154176 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 18:50:51.004894 136439124154176 base_pytree_checkpoint_handler.py:154] [process=7][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.035756s
I0418 18:50:51.005060 136439124154176 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/blocking_gbytes_per_sec: 39.381 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03917098045349121 s) (per-host)
I0418 18:50:51.005132 136439124154176 base_pytree_checkpoint_handler.py:768] [process=7][thread=MainThread] Initiated Pytree async_save. Time taken: 0.039251s (batch_requests_ready=0.001762s, total_serialization_initiated=0.037401s, others=0.000088s)
I0418 18:50:51.005226 136439124154176 composite_checkpoint_handler.py:715] [process=7][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.043500s (all_items=0.000015s, per_item={'items': '0.00001550'}, temp_paths=0.043484)
I0418 18:50:51.005897 136439124154176 event_tracking.py:125] [process=7] [async] Finished blocking save in 0.75 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints/9.
I0418 18:50:51.006235 136310383703808 async_checkpointer.py:76] [process=7][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-18 19:10:51.006199
I0418 18:50:51.008144 136439124154176 checkpoint_manager.py:1560] [process=7][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0418 18:50:51.008375 136285712787200 async_checkpointer.py:280] [process=7][thread=save_finalize] Waiting for background save thread=async_save.
I0418 18:50:51.008501 136439124154176 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260418_180002/linen_xpk_main_20260418_180002_11_optimizer_offload_false/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776538228.2036915, 'wait_for_prev_duration_secs': 22.04733443260193, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776538250.2529948, 'checkpointer_blocking_duration_secs': 0.7533867359161377, 'get_old_steps_start_time': 1776538251.0064046, 'get_old_steps_duration_secs': 2.956390380859375e-05, 'checkpoint_manager_blocking_start_time': 1776538228.2017593, 'checkpoint_manager_blocking_duration_secs': 22.806710958480835}
I0418 18:50:51.008662 136439124154176 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0418 18:50:51.008705 136439124154176 checkpoint_manager.py:2020] [process=7][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0418 18:50:58.728660 136311983093504 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_11_optimizer_offload_false/checkpoints/9/items/array_metadatas/process_7
I0418 18:51:33.357195 136310383703808 base_pytree_checkpoint_handler.py:130] [process=7] /jax/orbax/write/gbytes_per_sec: 37.262 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.39127707481384 s) (per-host)
I0418 18:51:33.357300 136310383703808 async_checkpointer.py:90] [process=7][thread=async_save] 3 Handler Commit operations completed. Time taken: 42.350953s.
I0418 18:51:42.573403 136310383703808 async_checkpointer.py:160] [process=7][thread=async_save] Background save thread done. Time taken: 51.567040s.
I0418 18:51:42.573677 136285712787200 async_checkpointer.py:288] [process=7][thread=save_finalize] Done with waiting for background save thread=async_save.
I0418 18:51:42.573791 136285712787200 async_checkpointer.py:298] [process=7][thread=save_finalize] No errors found in background save thread=async_save.
I0418 18:51:42.573837 136285712787200 checkpoint_manager.py:2137] [process=7][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0418 18:51:42.575446 136285712787200 checkpoint_manager.py:2146] [process=7][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0418 18:51:42.575612 136439124154176 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 18:51:42.575758 136439124154176 checkpoint_manager.py:2009] [process=7][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0418 18:51:42.576667 136439124154176 metric_logger.py:196] completed step: 9, seconds: 0.147, TFLOP/s/device: 92.223, Tokens/s/device: 13900.861, total_weights: 65536, loss: 8.179, lm_loss: 8.179, perplexity: 3564.635
Per train step:
 Total TFLOPs: 13.59 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Sat Apr 18 18:51:53 UTC 2026
EXIT_CODE=0
NNX  ·  574ad3fb9  ·  main_20260418_180002  ·  full log
XPK Start: Sat Apr 18 20:17: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-18 20:18:12.714764: 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:18:12.895397 135012445558592 max_utils.py:273] Attempting to initialize the jax distributed system...
I0418 20:18:21.935133 135012445558592 distributed.py:149] Starting JAX distributed service on [::]:8482
I0418 20:18:21.937438 135012445558592 distributed.py:172] Connecting to JAX distributed service on mt-11-optimizer-offload-vu4fn-slice-job-0-0.mt-11-optimizer-offload-vu4fn:8482
I0418 20:18:23.739792 135012445558592 max_utils.py:284] Jax distributed system initialized!
I0418 20:18:29.964575 135012445558592 max_utils.py:800] System Information: Jax Version: 0.9.2
I0418 20:18:29.964676 135012445558592 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0418 20:18:29.964717 135012445558592 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:18:29.964752 135012445558592 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:18:38 UTC 2026
EXIT_CODE=1