MaxView

‹ 05_fp8Case: 06_grad_accum07_eval ›

Metrics: main (8a17c3d19) vs feat/nnx-post-train-fixes (7f06c99ac)

Metricmain  8a17c3d19feat/nnx-post-train-fixes  7f06c99acDiff (feat/nnx-post-train-fixes − main)
Parameters1.104 billion1.104 billion
Final loss9.45709.45700
TFLOP/s94.01493.971-0.043
Tok/s14170.914164.3-6.567
Avg s/step6.8186.935+0.117
Memory %1.381.380
JAX0.9.20.9.2

Diff = branch value − main value. Green = branch improved. Red = branch regressed.

main  ·  8a17c3d19  ·  main_20260422_071422  ·  full log
XPK Start: Wed Apr 22 07:28:50 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
`rope_parameters`'s factor field must be a float >= 1, got 40
`rope_parameters`'s beta_fast field must be a float, got 32
`rope_parameters`'s beta_slow field must be a float, got 1
DeepseekV32Config got `key=rope_scaling` in kwargs but hasn't set it as attribute. For RoPE standardization you need to set `self.rope_parameters` in model's config. 
2026-04-22 07:29:15.029127: 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)
I0422 07:29:15.237967 137847962920768 max_utils.py:273] Attempting to initialize the jax distributed system...
I0422 07:29:24.278456 137847962920768 distributed.py:149] Starting JAX distributed service on [::]:8482
I0422 07:29:24.280758 137847962920768 distributed.py:172] Connecting to JAX distributed service on mt-06-grad-accum-205v9-slice-job-0-0.mt-06-grad-accum-205v9:8482
I0422 07:29:26.544724 137847962920768 max_utils.py:284] Jax distributed system initialized!
I0422 07:29:32.656195 137847962920768 max_utils.py:800] System Information: Jax Version: 0.9.2
I0422 07:29:32.656302 137847962920768 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0422 07:29:32.656342 137847962920768 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
I0422 07:29:32.656378 137847962920768 train_utils.py:361] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0422 07:29:33.341875 137847962920768 maxtext_utils.py:1565] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0422 07:29:33.342161 137847962920768 checkpointing.py:677] Setting up checkpoint logger...
I0422 07:29:33.342215 137847962920768 checkpointing.py:233] Creating checkpoint manager with ocdbt=True and zarr3=True
I0422 07:29:33.342259 137847962920768 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0422 07:29:33.342598 137847962920768 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 0x7d5e83248d70>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0422 07:29:36.660800 137847962920768 checkpointing.py:265] Enabling policy for fixed interval checkpointing.
I0422 07:29:36.661039 137847962920768 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 0x7d4a6c272930>}, handler_registry=None
I0422 07:29:36.661286 137847962920768 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d4a6c272930>` 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`.
I0422 07:29:36.661335 137847962920768 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d4a542d85f0>` 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`.
I0422 07:29:36.661371 137847962920768 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 0x7d4a6c272930>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7d4a6c272930>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d4a542d85f0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x7d4a542d85f0>}).
I0422 07:29:36.661705 137847962920768 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0422 07:29:36.661777 137847962920768 async_checkpointer.py:192] [process=4][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7d4a54251580> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0422 07:29:37.371757 137847962920768 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints
I0422 07:29:37.544448 137847962920768 checkpoint_manager.py:929] [process=4][thread=MainThread] CheckpointManager created,  primary_host=0, CheckpointManagerOptions=CheckpointManagerOptions(save_interval_steps=1, max_to_keep=None, keep_time_interval=None, keep_period=None, should_keep_fn=None, best_fn=None, best_mode='max', keep_checkpoints_without_metrics=True, step_prefix=None, step_format_fixed_length=None, step_name_format=None, create=True, cleanup_tmp_directories=False, save_on_steps=frozenset(), single_host_load_and_broadcast=False, todelete_subdir=None, todelete_full_path=None, enable_background_delete=False, read_only=False, enable_async_checkpointing=True, async_options=None, multiprocessing_options=MultiprocessingOptions(primary_host=0, active_processes=None, barrier_sync_key_prefix=None), should_save_fn=None, file_options=FileOptions(path_permission_mode=None), save_root_metadata=True, temporary_path_class=None, save_decision_policy=FixedIntervalPolicy(interval=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_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x7d4a542d59d0>
I0422 07:29:37.544621 137847962920768 checkpointing.py:301] Checkpoint manager created!
I0422 07:29:39.282500 137847962920768 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0422 07:29:39.282617 137847962920768 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0422 07:29:39.663165 137847962920768 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0422 07:29:39.663261 137847962920768 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0422 07:29:39.679896 137847962920768 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0422 07:29:39.679956 137847962920768 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0422 07:29:39.703902 137847962920768 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0422 07:29:39.703973 137847962920768 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 07:29:39.720690 137847962920768 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0422 07:29:39.720769 137847962920768 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 07:29:39.737361 137847962920768 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0422 07:29:39.737479 137847962920768 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 07:29:39.762500 137847962920768 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0422 07:29:39.762571 137847962920768 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 07:29:39.783849 137847962920768 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0422 07:29:39.783916 137847962920768 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0422 07:29:39.997267 137847962920768 checkpointing.py:577] checkpoint manager exists so trying to load this run's existing checkpoint
I0422 07:29:39.997389 137847962920768 checkpointing.py:665] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0422 07:29:41.444055 137847962920768 maxtext_utils.py:1668]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0422 07:29:41.444179 137847962920768 maxtext_utils.py:1668]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0422 07:29:41.444232 137847962920768 maxtext_utils.py:1668]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0422 07:29:41.444290 137847962920768 maxtext_utils.py:1668]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0422 07:29:41.444339 137847962920768 maxtext_utils.py:1668]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0422 07:29:41.444379 137847962920768 maxtext_utils.py:1668]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0422 07:29:41.444437 137847962920768 maxtext_utils.py:1668]  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)
I0422 07:29:41.444491 137847962920768 maxtext_utils.py:1668]  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')
I0422 07:29:41.444531 137847962920768 maxtext_utils.py:1668]  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)
I0422 07:29:41.444568 137847962920768 maxtext_utils.py:1668]  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)
I0422 07:29:41.444614 137847962920768 maxtext_utils.py:1668]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)
I0422 07:29:41.444660 137847962920768 maxtext_utils.py:1668]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')

I0422 07:29:41.469741 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[2048]............................................... Unknown.
I0422 07:29:41.469810 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[2048]............................................... (None,).
I0422 07:29:41.484953 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[2048,16,7168]....................................... Unknown.
I0422 07:29:41.485007 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[2048,16,7168]....................................... ('fsdp', None, None).
I0422 07:29:41.514961 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[7168,16,2048]....................................... Unknown.
I0422 07:29:41.515027 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[7168,16,2048]....................................... (None, None, 'fsdp').
I0422 07:29:41.529948 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[2048,16]............................................ Unknown.
I0422 07:29:41.530004 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[2048,16]............................................ (None, None).
I0422 07:29:41.559797 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[2048,16,16,128]..................................... Unknown.
I0422 07:29:41.559864 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[2048,16,16,128]..................................... ('fsdp', None, None, None).
I0422 07:29:41.574895 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[16,16,128,2048]..................................... Unknown.
I0422 07:29:41.574949 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[16,16,128,2048]..................................... (None, None, None, 'fsdp').
I0422 07:29:41.619611 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[2048,32000]......................................... Unknown.
I0422 07:29:41.619684 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[2048,32000]......................................... ('fsdp', None).
I0422 07:29:41.634616 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Logical: float32[32000,2048]......................................... Unknown.
I0422 07:29:41.634673 137847962920768 gradient_accumulation.py:68] gradient_accumulation/inputs Physical: float32[32000,2048]......................................... (None, 'fsdp').
I0422 07:29:42.310529 137847962920768 train.py:155] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0422 07:29:42.310619 137847962920768 train.py:155] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0422 07:29:42.326449 137847962920768 train.py:162] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0422 07:29:42.326508 137847962920768 train.py:162] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0422 07:29:53.809075 137847962920768 max_utils.py:791] Total memory size: 1.7 GB, Output size: 0.4 GB, Temp size: 1.3 GB, Argument size: 0.4 GB, Host temp size: 0.0 GB.
I0422 07:29:53.809968 137847962920768 metric_logger.py:301] number parameters: 1.104 billion
I0422 07:29:55.725687 137847962920768 checkpointing.py:772] Waiting for step 0 to finish before checkpoint...
I0422 07:30:06.609395 137847962920768 checkpointing.py:776] Waited 10.883687734603882 seconds for step 0 to finish before starting checkpointing.
I0422 07:30:06.611816 137847962920768 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0422 07:30:06.613519 137847962920768 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 0
I0422 07:30:06.615215 137847962920768 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints/0.
I0422 07:30:07.152307 137847962920768 signaling_client.py:364] Using JaxDistributedSignalingClient
I0422 07:30:07.153290 137847962920768 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0422 07:30:07.153347 137847962920768 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
I0422 07:30:07.426709 137847962920768 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.274461s
I0422 07:30:07.426880 137847962920768 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 5.511 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.27992725372314453 s) (per-host)
I0422 07:30:07.426931 137847962920768 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.279989s (batch_requests_ready=0.002235s, total_serialization_initiated=0.277685s, others=0.000070s)
I0422 07:30:07.427019 137847962920768 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.284426s (all_items=0.000018s, per_item={'items': '0.00001812'}, temp_paths=0.284408)
I0422 07:30:07.427850 137847962920768 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.81 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints/0.
I0422 07:30:07.428158 137719775831808 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-22 07:50:07.428119
I0422 07:30:07.438380 137847962920768 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0422 07:30:07.438682 137719229437696 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0422 07:30:07.438857 137847962920768 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776843006.6117966, 'wait_for_prev_duration_secs': 6.151199340820312e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776843006.6135576, 'checkpointer_blocking_duration_secs': 0.8147554397583008, 'get_old_steps_start_time': 1776843007.4283395, 'get_old_steps_duration_secs': 3.0040740966796875e-05, 'checkpoint_manager_blocking_start_time': 1776843006.6099365, 'checkpoint_manager_blocking_duration_secs': 0.8288826942443848}
I0422 07:30:07.438961 137847962920768 checkpointing.py:408] Started an asynchronous checkpoint save for step 0
I0422 07:30:07.439012 137847962920768 max_utils.py:750] 
Memstats: After params initialized:
I0422 07:30:07.439059 137847962920768 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_16(process=4,(0,4,0,0))
I0422 07:30:07.439092 137847962920768 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_17(process=4,(1,4,0,0))
I0422 07:30:07.439119 137847962920768 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_20(process=4,(0,5,0,0))
I0422 07:30:07.439143 137847962920768 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_21(process=4,(1,5,0,0))
I0422 07:30:07.752342 137847962920768 metric_logger.py:196] completed step: 0, seconds: 1.916, TFLOP/s/device: 28.371, Tokens/s/device: 4276.440, total_weights: 262144, loss: 10.877, lm_loss: 10.877, perplexity: 52959.059
I0422 07:30:08.363315 137847962920768 metric_logger.py:196] completed step: 1, seconds: 12.025, TFLOP/s/device: 4.520, Tokens/s/device: 681.240, total_weights: 262144, loss: 10.877, lm_loss: 10.877, perplexity: 52959.059
I0422 07:30:08.941560 137847962920768 metric_logger.py:196] completed step: 2, seconds: 0.033, TFLOP/s/device: 1641.156, Tokens/s/device: 247372.871, total_weights: 262144, loss: 10.563, lm_loss: 10.563, perplexity: 38662.707
I0422 07:30:09.519726 137847962920768 metric_logger.py:196] completed step: 3, seconds: 0.584, TFLOP/s/device: 93.074, Tokens/s/device: 14029.175, total_weights: 262144, loss: 10.272, lm_loss: 10.272, perplexity: 28909.668
I0422 07:30:10.415733    2577 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0422 07:30:10.676507 137847962920768 metric_logger.py:196] completed step: 4, seconds: 0.578, TFLOP/s/device: 93.999, Tokens/s/device: 14168.598, total_weights: 262144, loss: 10.022, lm_loss: 10.022, perplexity: 22524.992
I0422 07:30:10.685266 137847962920768 metric_logger.py:196] completed step: 5, seconds: 0.578, TFLOP/s/device: 93.995, Tokens/s/device: 14167.985, total_weights: 262144, loss: 9.820, lm_loss: 9.820, perplexity: 18401.865
I0422 07:30:12.407782 137719237830400 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints/0/items/array_metadatas/process_4
I0422 07:30:45.236618 137719775831808 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 41.471 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 38.0896270275116 s) (per-host)
I0422 07:30:45.236747 137719775831808 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 37.808477s.
I0422 07:30:53.685003 137719775831808 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 46.256718s.
I0422 07:30:53.685292 137719229437696 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0422 07:30:53.685407 137719229437696 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0422 07:30:53.685456 137719229437696 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0422 07:30:53.688200 137719229437696 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0422 07:30:56.507108 137847962920768 metric_logger.py:196] completed step: 6, seconds: 1.159, TFLOP/s/device: 46.875, Tokens/s/device: 7065.486, total_weights: 262144, loss: 9.667, lm_loss: 9.667, perplexity: 15787.604
I0422 07:30:57.085111 137847962920768 metric_logger.py:196] completed step: 7, seconds: 45.245, TFLOP/s/device: 1.201, Tokens/s/device: 181.059, total_weights: 262144, loss: 9.561, lm_loss: 9.561, perplexity: 14203.827
I0422 07:30:57.663415 137847962920768 metric_logger.py:196] completed step: 8, seconds: 0.583, TFLOP/s/device: 93.217, Tokens/s/device: 14050.735, total_weights: 262144, loss: 9.496, lm_loss: 9.496, perplexity: 13302.920
I0422 07:30:58.240848 137847962920768 checkpointing.py:772] Waiting for step 9 to finish before checkpoint...
I0422 07:30:58.241523 137847962920768 checkpointing.py:776] Waited 0.0006973743438720703 seconds for step 9 to finish before starting checkpointing.
I0422 07:30:58.243679 137847962920768 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0422 07:30:58.245267 137847962920768 checkpoint_manager.py:1512] [process=4] Saving checkpoint at step 9
I0422 07:30:58.246649 137847962920768 event_tracking.py:70] [process=4] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints/9.
I0422 07:30:58.547047 137847962920768 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0422 07:30:58.547138 137847962920768 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
I0422 07:30:58.580763 137847962920768 base_pytree_checkpoint_handler.py:154] [process=4][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.034564s
I0422 07:30:58.580929 137847962920768 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/blocking_gbytes_per_sec: 39.933 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03862929344177246 s) (per-host)
I0422 07:30:58.580980 137847962920768 base_pytree_checkpoint_handler.py:768] [process=4][thread=MainThread] Initiated Pytree async_save. Time taken: 0.038689s (batch_requests_ready=0.001638s, total_serialization_initiated=0.036984s, others=0.000067s)
I0422 07:30:58.581070 137847962920768 composite_checkpoint_handler.py:715] [process=4][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.042968s (all_items=0.000016s, per_item={'items': '0.00001597'}, temp_paths=0.042952)
I0422 07:30:58.581758 137847962920768 event_tracking.py:125] [process=4] [async] Finished blocking save in 0.34 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints/9.
I0422 07:30:58.582071 137712816350976 async_checkpointer.py:76] [process=4][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-22 07:50:58.582035
I0422 07:30:58.583922 137847962920768 checkpoint_manager.py:1560] [process=4][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0422 07:30:58.584186 137719247578880 async_checkpointer.py:280] [process=4][thread=save_finalize] Waiting for background save thread=async_save.
I0422 07:30:58.584320 137847962920768 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776843058.2436478, 'wait_for_prev_duration_secs': 8.845329284667969e-05, 'time_between_consecutive_saves_sec': 4.55540657043457, 'checkpointer_blocking_start_time': 1776843058.2453048, 'checkpointer_blocking_duration_secs': 0.33690810203552246, 'get_old_steps_start_time': 1776843058.5822349, 'get_old_steps_duration_secs': 2.6226043701171875e-05, 'checkpoint_manager_blocking_start_time': 1776843058.2417703, 'checkpoint_manager_blocking_duration_secs': 0.3425161838531494}
I0422 07:30:58.584472 137847962920768 checkpointing.py:408] Started an asynchronous checkpoint save for step 9
I0422 07:30:58.584516 137847962920768 checkpoint_manager.py:2020] [process=4][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0422 07:31:04.162814 137719255971584 array_metadata_store.py:203] [process=4][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_main_20260422_071422/linen_xpk_main_20260422_071422_06_grad_accum/checkpoints/9/items/array_metadatas/process_4
I0422 07:31:42.131255 137712816350976 base_pytree_checkpoint_handler.py:130] [process=4] /jax/orbax/write/gbytes_per_sec: 36.238 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 43.588916063308716 s) (per-host)
I0422 07:31:42.131381 137712816350976 async_checkpointer.py:90] [process=4][thread=async_save] 3 Handler Commit operations completed. Time taken: 43.549201s.
I0422 07:31:50.641376 137712816350976 async_checkpointer.py:160] [process=4][thread=async_save] Background save thread done. Time taken: 52.059182s.
I0422 07:31:50.641664 137719247578880 async_checkpointer.py:288] [process=4][thread=save_finalize] Done with waiting for background save thread=async_save.
I0422 07:31:50.641803 137719247578880 async_checkpointer.py:298] [process=4][thread=save_finalize] No errors found in background save thread=async_save.
I0422 07:31:50.641851 137719247578880 checkpoint_manager.py:2137] [process=4][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0422 07:31:50.643559 137719247578880 checkpoint_manager.py:2146] [process=4][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0422 07:31:50.643751 137847962920768 checkpoint_manager.py:2032] [process=4][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0422 07:31:50.643906 137847962920768 checkpoint_manager.py:2009] [process=4][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0422 07:31:50.644895 137847962920768 metric_logger.py:196] completed step: 9, seconds: 0.578, TFLOP/s/device: 94.014, Tokens/s/device: 14170.853, total_weights: 262144, loss: 9.457, lm_loss: 9.457, perplexity: 12802.546
Per train step:
 Total TFLOPs: 54.35 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Wed Apr 22 07:32:00 UTC 2026
EXIT_CODE=0
XPK Start: Wed Apr 22 12:56:26 UTC 2026
PyTorch was not found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
`rope_parameters`'s factor field must be a float >= 1, got 40
`rope_parameters`'s beta_fast field must be a float, got 32
`rope_parameters`'s beta_slow field must be a float, got 1
DeepseekV32Config got `key=rope_scaling` in kwargs but hasn't set it as attribute. For RoPE standardization you need to set `self.rope_parameters` in model's config. 
2026-04-22 12:56:51.015186: 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)
I0422 12:56:51.226208 133425198016320 max_utils.py:273] Attempting to initialize the jax distributed system...
I0422 12:57:00.267070 133425198016320 distributed.py:149] Starting JAX distributed service on [::]:8482
I0422 12:57:00.269351 133425198016320 distributed.py:172] Connecting to JAX distributed service on mt-06-grad-accum-cw6tw-slice-job-0-0.mt-06-grad-accum-cw6tw:8482
I0422 12:57:01.733682 133425198016320 max_utils.py:284] Jax distributed system initialized!
I0422 12:57:07.957435 133425198016320 max_utils.py:800] System Information: Jax Version: 0.9.2
I0422 12:57:07.957543 133425198016320 max_utils.py:801] System Information: Jaxlib Version: 0.9.2
I0422 12:57:07.957584 133425198016320 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
I0422 12:57:07.957620 133425198016320 train_utils.py:391] WARNING: Sequence packing is essentially ignored for synthetic data. Please use a real dataset to use sequence packing.
I0422 12:57:08.657898 133425198016320 maxtext_utils.py:1771] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0422 12:57:08.658497 133425198016320 maxtext_utils.py:1771] Num_devices: 32, shape (1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 1, 1)
I0422 12:57:08.658694 133425198016320 checkpointing.py:688] Setting up checkpoint logger...
I0422 12:57:08.658746 133425198016320 checkpointing.py:234] Creating checkpoint manager with ocdbt=True and zarr3=True
I0422 12:57:08.658789 133425198016320 pytree_checkpoint_handler.py:592] save_device_host_concurrent_bytes=None
I0422 12:57:08.659127 133425198016320 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 0x7958e7114ec0>, enable_pinned_host_transfer=False, save_concurrent_bytes: 96000000000 (89.4 GiB), restore_concurrent_bytes: 96000000000 (89.4 GiB)
I0422 12:57:12.094620 133425198016320 checkpointing.py:266] Enabling policy for fixed interval checkpointing.
I0422 12:57:12.094955 133425198016320 checkpoint_manager.py:708] [process=5][thread=MainThread] CheckpointManager init: checkpointers=None, item_names=('items',), item_handlers={'items': <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7957b54ffdd0>}, handler_registry=None
I0422 12:57:12.095211 133425198016320 composite_checkpoint_handler.py:237] Deferred registration for item: "items". Adding handler `<orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7957b54ffdd0>` 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`.
I0422 12:57:12.095266 133425198016320 composite_checkpoint_handler.py:237] Deferred registration for item: "metrics". Adding handler `<orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x794468394ad0>` 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`.
I0422 12:57:12.095302 133425198016320 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 0x7957b54ffdd0>, ('items', <class 'orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeRestoreArgs'>): <orbax.checkpoint._src.handlers.pytree_checkpoint_handler.PyTreeCheckpointHandler object at 0x7957b54ffdd0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonSaveArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x794468394ad0>, ('metrics', <class 'orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonRestoreArgs'>): <orbax.checkpoint._src.handlers.json_checkpoint_handler.JsonCheckpointHandler object at 0x794468394ad0>}).
I0422 12:57:12.095620 133425198016320 abstract_checkpointer.py:35] orbax-checkpoint version: 0.11.34
I0422 12:57:12.095702 133425198016320 async_checkpointer.py:192] [process=5][thread=MainThread] Using barrier_sync_fn: <function get_barrier_sync_fn.<locals>._fn at 0x7943886a5e40> timeout: 1200 secs and primary_host=0 for async checkpoint writes
I0422 12:57:13.103926 133425198016320 checkpoint_manager.py:1812] Found 0 checkpoint steps in gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints
I0422 12:57:13.277023 133425198016320 checkpoint_manager.py:929] [process=5][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_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints: <orbax.checkpoint.checkpoint_manager.CheckpointManager object at 0x794468393c20>
I0422 12:57:13.277190 133425198016320 checkpointing.py:302] Checkpoint manager created!
I0422 12:57:14.993926 133425198016320 nnx_wrappers.py:437] Unknown Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_norm_length', 'activation_embed').
I0422 12:57:14.994046 133425198016320 nnx_wrappers.py:437] Unknown Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0422 12:57:15.381533 133425198016320 attentions.py:1088] attentions/inputs_q Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0422 12:57:15.381626 133425198016320 attentions.py:1088] attentions/inputs_q Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0422 12:57:15.398043 133425198016320 attentions.py:1089] attentions/inputs_kv Logical: bfloat16[32,2048,2048]...................................... ('activation_batch', 'activation_attn_length', 'activation_attn_embed').
I0422 12:57:15.398101 133425198016320 attentions.py:1089] attentions/inputs_kv Physical: bfloat16[32,2048,2048]...................................... ('fsdp', None, None).
I0422 12:57:15.421986 133425198016320 attentions.py:1154] attentions/query Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0422 12:57:15.422055 133425198016320 attentions.py:1154] attentions/query Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 12:57:15.438528 133425198016320 attentions.py:1155] attentions/key Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0422 12:57:15.438583 133425198016320 attentions.py:1155] attentions/key Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 12:57:15.454931 133425198016320 attentions.py:1156] attentions/value Logical: bfloat16[32,2048,16,128].................................... ('activation_kv_batch', 'activation_attn_length', 'activation_kv_heads', 'activation_kv_head_dim').
I0422 12:57:15.454990 133425198016320 attentions.py:1156] attentions/value Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 12:57:15.479749 133425198016320 attentions.py:1198] attentions/out Logical: bfloat16[32,2048,16,128].................................... ('activation_batch', 'activation_attn_length', 'activation_heads', 'activation_kv').
I0422 12:57:15.479821 133425198016320 attentions.py:1198] attentions/out Physical: bfloat16[32,2048,16,128].................................... ('fsdp', None, None, None).
I0422 12:57:15.500777 133425198016320 linears.py:525] linears/x Logical: bfloat16[32,2048,7168]...................................... ('activation_batch', 'activation_length', 'activation_mlp').
I0422 12:57:15.500842 133425198016320 linears.py:525] linears/x Physical: bfloat16[32,2048,7168]...................................... ('fsdp', None, None).
I0422 12:57:15.718267 133425198016320 checkpointing.py:578] checkpoint manager exists so trying to load this run's existing checkpoint
I0422 12:57:15.718376 133425198016320 checkpointing.py:676] No existing checkpoints found, not restoring checkpoint.
fsdp: 32
I0422 12:57:17.132354 133425198016320 maxtext_utils.py:1880]  params/params/decoder/decoder_norm/scale
    Shape:     float32[2048]
    Logical:   P('norm',)
    Physical:  (None,)
I0422 12:57:17.132477 133425198016320 maxtext_utils.py:1880]  params/params/decoder/layers/mlp/wi_0/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0422 12:57:17.132530 133425198016320 maxtext_utils.py:1880]  params/params/decoder/layers/mlp/wi_1/kernel
    Shape:     float32[2048,16,7168]
    Logical:   P('embed', 'layers', 'mlp')
    Physical:  ('fsdp', None, None)
I0422 12:57:17.132586 133425198016320 maxtext_utils.py:1880]  params/params/decoder/layers/mlp/wo/kernel
    Shape:     float32[7168,16,2048]
    Logical:   P('mlp', 'layers', 'embed')
    Physical:  (None, None, 'fsdp')
I0422 12:57:17.132637 133425198016320 maxtext_utils.py:1880]  params/params/decoder/layers/post_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0422 12:57:17.132699 133425198016320 maxtext_utils.py:1880]  params/params/decoder/layers/pre_self_attention_layer_norm/scale
    Shape:     float32[2048,16]
    Logical:   P('norm', 'layers')
    Physical:  (None, None)
I0422 12:57:17.132881 133425198016320 maxtext_utils.py:1880]  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)
I0422 12:57:17.133162 133425198016320 maxtext_utils.py:1880]  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')
I0422 12:57:17.133229 133425198016320 maxtext_utils.py:1880]  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)
I0422 12:57:17.133280 133425198016320 maxtext_utils.py:1880]  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)
I0422 12:57:17.133343 133425198016320 maxtext_utils.py:1880]  params/params/decoder/logits_dense/kernel
    Shape:     float32[2048,32000]
    Logical:   P('embed_vocab', 'vocab')
    Physical:  ('fsdp', None)

I0422 12:57:17.133413 133425198016320 maxtext_utils.py:1880]  params/params/token_embedder/embedding
    Shape:     float32[32000,2048]
    Logical:   P('vocab', 'embed_vocab')
    Physical:  (None, 'fsdp')
I0422 12:57:17.160576 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[2048]............................................... Unknown.
I0422 12:57:17.160644 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[2048]............................................... (None,).
I0422 12:57:17.175601 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[2048,16,7168]....................................... Unknown.
I0422 12:57:17.175667 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[2048,16,7168]....................................... ('fsdp', None, None).
I0422 12:57:17.205197 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[7168,16,2048]....................................... Unknown.
I0422 12:57:17.205257 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[7168,16,2048]....................................... (None, None, 'fsdp').
I0422 12:57:17.220055 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[2048,16]............................................ Unknown.
I0422 12:57:17.220112 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[2048,16]............................................ (None, None).
I0422 12:57:17.249549 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[2048,16,16,128]..................................... Unknown.
I0422 12:57:17.249614 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[2048,16,16,128]..................................... ('fsdp', None, None, None).
I0422 12:57:17.264544 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[16,16,128,2048]..................................... Unknown.
I0422 12:57:17.264596 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[16,16,128,2048]..................................... (None, None, None, 'fsdp').
I0422 12:57:17.308676 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[2048,32000]......................................... Unknown.
I0422 12:57:17.308743 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[2048,32000]......................................... ('fsdp', None).
I0422 12:57:17.323495 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Logical: float32[32000,2048]......................................... Unknown.
I0422 12:57:17.323551 133425198016320 gradient_accumulation.py:70] gradient_accumulation/inputs Physical: float32[32000,2048]......................................... (None, 'fsdp').
I0422 12:57:17.989217 133425198016320 train.py:157] train/xent Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0422 12:57:17.989312 133425198016320 train.py:157] train/xent Physical: float32[32,2048]............................................ ('fsdp', None).
I0422 12:57:18.005025 133425198016320 train.py:164] train/z_loss Logical: float32[32,2048]............................................ ('activation_embed_and_logits_batch', 'activation_length').
I0422 12:57:18.005086 133425198016320 train.py:164] train/z_loss Physical: float32[32,2048]............................................ ('fsdp', None).
I0422 12:57:29.235215 133425198016320 max_utils.py:791] Total memory size: 1.7 GB, Output size: 0.4 GB, Temp size: 1.3 GB, Argument size: 0.4 GB, Host temp size: 0.0 GB.
I0422 12:57:29.236040 133425198016320 metric_logger.py:301] number parameters: 1.104 billion
I0422 12:57:31.557359 133425198016320 checkpointing.py:794] Waiting for step 0 to finish before checkpoint...
I0422 12:57:42.360744 133425198016320 checkpointing.py:798] Waited 10.803363561630249 seconds for step 0 to finish before starting checkpointing.
I0422 12:57:42.363207 133425198016320 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0422 12:57:42.365105 133425198016320 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 0
I0422 12:57:42.366705 133425198016320 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints/0.
I0422 12:57:43.550260 133425198016320 signaling_client.py:364] Using JaxDistributedSignalingClient
I0422 12:57:43.551269 133425198016320 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0422 12:57:43.551352 133425198016320 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
I0422 12:57:43.826158 133425198016320 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.275975s
I0422 12:57:43.826328 133425198016320 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 5.481 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.2814302444458008 s) (per-host)
I0422 12:57:43.826380 133425198016320 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.281492s (batch_requests_ready=0.002192s, total_serialization_initiated=0.279230s, others=0.000071s)
I0422 12:57:43.826470 133425198016320 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.285983s (all_items=0.000017s, per_item={'items': '0.00001693'}, temp_paths=0.285966)
I0422 12:57:43.827296 133425198016320 event_tracking.py:125] [process=5] [async] Finished blocking save in 1.46 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints/0.
I0422 12:57:43.827628 133296231008000 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-22 13:17:43.827590
I0422 12:57:43.834981 133425198016320 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=0] Starting CheckpointManager Save Finalize thread=save_finalize
I0422 12:57:43.835269 133296205829888 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0422 12:57:43.835423 133425198016320 standard_logger.py:34] {'step': 0, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776862662.3631887, 'wait_for_prev_duration_secs': 5.745887756347656e-05, 'time_between_consecutive_saves_sec': None, 'checkpointer_blocking_start_time': 1776862662.3651457, 'checkpointer_blocking_duration_secs': 1.462592363357544, 'get_old_steps_start_time': 1776862663.8277628, 'get_old_steps_duration_secs': 2.86102294921875e-05, 'checkpoint_manager_blocking_start_time': 1776862662.3612769, 'checkpoint_manager_blocking_duration_secs': 1.4741077423095703}
I0422 12:57:43.835527 133425198016320 checkpointing.py:409] Started an asynchronous checkpoint save for step 0
I0422 12:57:43.835580 133425198016320 max_utils.py:750] 
Memstats: After params initialized:
I0422 12:57:43.835628 133425198016320 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_18(process=5,(2,4,0,0))
I0422 12:57:43.835671 133425198016320 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_19(process=5,(3,4,0,0))
I0422 12:57:43.835699 133425198016320 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_22(process=5,(2,5,0,0))
I0422 12:57:43.835721 133425198016320 max_utils.py:756] 	Using (GB) 0.43 / 31.25 (1.376000%) on TPU_23(process=5,(3,5,0,0))
I0422 12:57:44.147013 133425198016320 metric_logger.py:196] completed step: 0, seconds: 2.321, TFLOP/s/device: 23.414, Tokens/s/device: 3529.203, total_weights: 262144, loss: 10.877, lm_loss: 10.877, perplexity: 52959.059
I0422 12:57:44.755077 133425198016320 metric_logger.py:196] completed step: 1, seconds: 12.588, TFLOP/s/device: 4.317, Tokens/s/device: 650.770, total_weights: 262144, loss: 10.877, lm_loss: 10.877, perplexity: 52959.059
I0422 12:57:45.333294 133425198016320 metric_logger.py:196] completed step: 2, seconds: 0.030, TFLOP/s/device: 1807.460, Tokens/s/device: 272440.055, total_weights: 262144, loss: 10.563, lm_loss: 10.563, perplexity: 38662.707
I0422 12:57:45.911511 133425198016320 metric_logger.py:196] completed step: 3, seconds: 0.584, TFLOP/s/device: 93.082, Tokens/s/device: 14030.352, total_weights: 262144, loss: 10.272, lm_loss: 10.272, perplexity: 28909.668
I0422 12:57:46.696132    2577 google_auth_provider.cc:181] Running on GCE, using service account 562977990677-compute@developer.gserviceaccount.com
I0422 12:57:47.068313 133425198016320 metric_logger.py:196] completed step: 4, seconds: 0.578, TFLOP/s/device: 93.978, Tokens/s/device: 14165.364, total_weights: 262144, loss: 10.022, lm_loss: 10.022, perplexity: 22524.992
I0422 12:57:47.074641 133425198016320 metric_logger.py:196] completed step: 5, seconds: 0.578, TFLOP/s/device: 94.013, Tokens/s/device: 14170.657, total_weights: 262144, loss: 9.820, lm_loss: 9.820, perplexity: 18401.865
I0422 12:57:49.046225 133296214222592 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints/0/items/array_metadatas/process_5
I0422 12:58:21.494463 133296231008000 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 41.624 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 37.94952702522278 s) (per-host)
I0422 12:58:21.494588 133296231008000 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 37.666324s.
I0422 12:58:29.402983 133296231008000 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 45.574703s.
I0422 12:58:29.403270 133296205829888 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0422 12:58:29.403384 133296205829888 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0422 12:58:29.403440 133296205829888 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is syncing with other hosts...
I0422 12:58:29.405120 133296205829888 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=0] CheckpointManager Save Finalize is done on all hosts.
I0422 12:58:33.392301 133425198016320 metric_logger.py:196] completed step: 6, seconds: 1.158, TFLOP/s/device: 46.945, Tokens/s/device: 7076.056, total_weights: 262144, loss: 9.667, lm_loss: 9.667, perplexity: 15787.604
I0422 12:58:33.970641 133425198016320 metric_logger.py:196] completed step: 7, seconds: 45.740, TFLOP/s/device: 1.188, Tokens/s/device: 179.099, total_weights: 262144, loss: 9.561, lm_loss: 9.561, perplexity: 14203.827
I0422 12:58:34.549340 133425198016320 metric_logger.py:196] completed step: 8, seconds: 0.583, TFLOP/s/device: 93.210, Tokens/s/device: 14049.626, total_weights: 262144, loss: 9.496, lm_loss: 9.496, perplexity: 13302.920
I0422 12:58:35.127075 133425198016320 checkpointing.py:794] Waiting for step 9 to finish before checkpoint...
I0422 12:58:35.127747 133425198016320 checkpointing.py:798] Waited 0.0007059574127197266 seconds for step 9 to finish before starting checkpointing.
I0422 12:58:35.129826 133425198016320 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0422 12:58:35.131469 133425198016320 checkpoint_manager.py:1512] [process=5] Saving checkpoint at step 9
I0422 12:58:35.132846 133425198016320 event_tracking.py:70] [process=5] [async] Started save checkpoint @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints/9.
I0422 12:58:36.177672 133425198016320 jax_array_handlers.py:360] Scheduling D2H of 39 prioritized jax.Array.
I0422 12:58:36.177767 133425198016320 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
I0422 12:58:36.211732 133425198016320 base_pytree_checkpoint_handler.py:154] [process=5][thread=MainThread] Initiated "orbax.checkpoint._src.serialization.jax_array_handlers.ArrayHandler".serialize. Time taken: 0.034945s
I0422 12:58:36.211902 133425198016320 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/blocking_gbytes_per_sec: 40.074 GiB/s (total gbytes: 1.5 GiB) (time elapsed: 0.03849315643310547 s) (per-host)
I0422 12:58:36.211952 133425198016320 base_pytree_checkpoint_handler.py:768] [process=5][thread=MainThread] Initiated Pytree async_save. Time taken: 0.038554s (batch_requests_ready=0.001696s, total_serialization_initiated=0.036787s, others=0.000070s)
I0422 12:58:36.212048 133425198016320 composite_checkpoint_handler.py:715] [process=5][thread=MainThread] Initiated CompositeCheckpointHandler.async_save. Time taken: 0.042699s (all_items=0.000015s, per_item={'items': '0.00001526'}, temp_paths=0.042684)
I0422 12:58:36.212793 133425198016320 event_tracking.py:125] [process=5] [async] Finished blocking save in 1.08 seconds. Continuing save @ gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints/9.
I0422 12:58:36.213085 133300534368000 async_checkpointer.py:76] [process=5][thread=async_save] Background save thread started. Deadline for this save operation is 2026-04-22 13:18:36.213050
I0422 12:58:36.215085 133425198016320 checkpoint_manager.py:1560] [process=5][thread=MainThread][step=9] Starting CheckpointManager Save Finalize thread=save_finalize
I0422 12:58:36.215317 133295160993536 async_checkpointer.py:280] [process=5][thread=save_finalize] Waiting for background save thread=async_save.
I0422 12:58:36.215472 133425198016320 standard_logger.py:34] {'step': 9, 'event_type': 'save', 'directory': 'gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints', 'reached_preemption': False, 'preemption_received_at': None, 'synchronous': False, 'wait_for_prev_start_time': 1776862715.1297948, 'wait_for_prev_duration_secs': 7.390975952148438e-05, 'time_between_consecutive_saves_sec': 5.724634885787964, 'checkpointer_blocking_start_time': 1776862715.1315079, 'checkpointer_blocking_duration_secs': 1.0817210674285889, 'get_old_steps_start_time': 1776862716.213252, 'get_old_steps_duration_secs': 2.8848648071289062e-05, 'checkpoint_manager_blocking_start_time': 1776862715.1279635, 'checkpoint_manager_blocking_duration_secs': 1.087475299835205}
I0422 12:58:36.215577 133425198016320 checkpointing.py:409] Started an asynchronous checkpoint save for step 9
I0422 12:58:36.215623 133425198016320 checkpoint_manager.py:2020] [process=5][thread=MainThread][step=9][wait_until_finished] Waiting for Save Finalize thread (save_finalize) to complete.
I0422 12:58:41.372186 133295169386240 array_metadata_store.py:203] [process=5][thread=array_type_handler] Wrote 39 array_metadata.ArrayMetadata to gs://lance-maxtext/linen_ckpt_xpk_feat_nnx_post_train_fixes_20260422_123906/linen_xpk_feat_nnx_post_train_fixes_20260422_123906_06_grad_accum/checkpoints/9/items/array_metadatas/process_5
I0422 12:59:18.195991 133300534368000 base_pytree_checkpoint_handler.py:130] [process=5] /jax/orbax/write/gbytes_per_sec: 37.589 MiB/s (total gbytes: 1.5 GiB) (time elapsed: 42.022560119628906 s) (per-host)
I0422 12:59:18.196102 133300534368000 async_checkpointer.py:90] [process=5][thread=async_save] 3 Handler Commit operations completed. Time taken: 41.982907s.
I0422 12:59:27.004848 133300534368000 async_checkpointer.py:160] [process=5][thread=async_save] Background save thread done. Time taken: 50.791638s.
I0422 12:59:27.005151 133295160993536 async_checkpointer.py:288] [process=5][thread=save_finalize] Done with waiting for background save thread=async_save.
I0422 12:59:27.005275 133295160993536 async_checkpointer.py:298] [process=5][thread=save_finalize] No errors found in background save thread=async_save.
I0422 12:59:27.005321 133295160993536 checkpoint_manager.py:2137] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is syncing with other hosts...
I0422 12:59:27.006739 133295160993536 checkpoint_manager.py:2146] [process=5][thread=save_finalize][step=9] CheckpointManager Save Finalize is done on all hosts.
I0422 12:59:27.006914 133425198016320 checkpoint_manager.py:2032] [process=5][thread=MainThread][step=9][wait_until_finished] Done waiting for Save Finalize thread (save_finalize) running at step=9.
I0422 12:59:27.007065 133425198016320 checkpoint_manager.py:2009] [process=5][thread=MainThread][wait_until_finished] No Save Finalize thread to wait for. Returning.
I0422 12:59:27.008008 133425198016320 metric_logger.py:196] completed step: 9, seconds: 0.578, TFLOP/s/device: 93.971, Tokens/s/device: 14164.286, total_weights: 262144, loss: 9.457, lm_loss: 9.457, perplexity: 12802.546
Per train step:
 Total TFLOPs: 54.35 
 split as 93.93% learnable weight flops and 6.07% attention flops
XPK End: Wed Apr 22 12:59:36 UTC 2026
EXIT_CODE=0