@@ -492,7 +492,7 @@ compile_xla_flags: "" # Compiler options e.g. compile_xla_flags="--xla_tpu_num_s
492492# Parallelism
493493shard_mode : " auto" # can be either auto or explicit
494494custom_mesh_and_rule : " " # replace default mesh and logical rule by specifying yml name under config/mesh_and_rule/.
495- mesh_axes : ['diloco', 'data', 'stage', 'fsdp', 'fsdp_transpose', 'context', 'context_autoregressive', 'tensor', 'tensor_transpose', ' tensor_sequence', 'expert', 'autoregressive']
495+ mesh_axes : ['diloco', 'data', 'stage', 'fsdp', 'fsdp_transpose', 'context', 'context_autoregressive', 'tensor', 'tensor_sequence', 'expert', 'autoregressive']
496496logical_axis_rules : [
497497 ['circular_repeats', []],
498498 # ==========================================
@@ -501,40 +501,36 @@ logical_axis_rules: [
501501 # Vocab Activations
502502 ['activation_embed_and_logits_batch', ['data', 'stage', 'fsdp', 'fsdp_transpose', 'expert']],
503503 ['activation_embed_and_logits_batch_sequence', ['data', 'stage', 'fsdp', 'fsdp_transpose', 'context', 'expert']],
504- ['activation_vocab', ['tensor', 'tensor_transpose', ' tensor_sequence']],
505- ['activation_vocab', ['tensor', 'tensor_transpose' ]],
504+ ['activation_vocab', ['tensor', 'tensor_sequence']],
505+ ['activation_vocab', ['tensor']],
506506 ['activation_vocab', 'tensor_sequence'],
507507 # Vocab Weights
508- ['vocab', ['tensor', 'tensor_transpose', ' tensor_sequence', 'autoregressive']],
508+ ['vocab', ['tensor', 'tensor_sequence', 'autoregressive']],
509509 ['embed_vocab', ['fsdp', 'fsdp_transpose', 'context', 'expert']],
510510 # ==========================================
511511 # Attention
512512 # ==========================================
513513 # Attention Activations
514514 ['activation_batch_attn', ['data', 'fsdp', 'fsdp_transpose', 'expert']],
515- ['activation_heads', ['tensor', 'tensor_transpose', ' tensor_sequence', 'autoregressive']],
516- ['activation_kv_heads', ['tensor', 'tensor_transpose', ' tensor_sequence']],
515+ ['activation_heads', ['tensor', 'tensor_sequence', 'autoregressive']],
516+ ['activation_kv_heads', ['tensor', 'tensor_sequence']],
517517 ['activation_length_attn', ['context']],
518518 ['activation_q_length', ['context']],
519519 ['activation_kv_length', []],
520- ['activation_embed_attn', ['tensor', 'tensor_transpose' ]],
521- ['activation_kv', ['tensor', 'tensor_transpose', ' tensor_sequence']],
520+ ['activation_embed_attn', ['tensor']],
521+ ['activation_kv', ['tensor', 'tensor_sequence']],
522522 ['activation_kv_batch', ['data', 'fsdp', 'fsdp_transpose', 'expert']],
523- ['activation_kv_head_dim', ['tensor', 'tensor_transpose', ' tensor_sequence']],
523+ ['activation_kv_head_dim', ['tensor', 'tensor_sequence']],
524524 # Attention Weights
525- ['heads', ['tensor', 'tensor_transpose', ' tensor_sequence', 'autoregressive']],
526- ['q_heads', ['tensor', 'tensor_transpose', ' tensor_sequence', 'autoregressive']],
527- ['kv_heads', ['tensor', 'tensor_transpose', ' tensor_sequence', 'autoregressive']],
525+ ['heads', ['tensor', 'tensor_sequence', 'autoregressive']],
526+ ['q_heads', ['tensor', 'tensor_sequence', 'autoregressive']],
527+ ['kv_heads', ['tensor', 'tensor_sequence', 'autoregressive']],
528528 ['qkv', []],
529529 ['kv', []],
530530 ['kv_head_dim', []],
531- ['q_lora', ['fsdp', 'fsdp_transpose', 'context', 'tensor_transpose', 'expert']],
532- ['q_lora', ['fsdp', 'context', 'tensor_transpose', 'expert']],
533531 ['q_lora', ['fsdp', 'fsdp_transpose', 'context', 'expert']],
534532 ['q_lora', ['fsdp', 'context', 'expert']],
535533 ["q_lora_up_proj", []],
536- ['kv_lora', ['fsdp', 'fsdp_transpose', 'context', 'tensor_transpose', 'expert']],
537- ['kv_lora', ['fsdp', 'context', 'tensor_transpose', 'expert']],
538534 ['kv_lora', ['fsdp', 'fsdp_transpose', 'context', 'expert']],
539535 ['kv_lora', ['fsdp', 'context', 'expert']],
540536 ["kv_lora_up_proj", []],
@@ -545,37 +541,33 @@ logical_axis_rules: [
545541 ['activation_batch_moe', ['data', 'fsdp', 'fsdp_transpose', 'expert']],
546542 ['activation_length_moe', ['context']],
547543 ['activation_norm_length_moe', ['tensor_sequence', 'context']],
548- ['activation_embed_moe', ['tensor', 'tensor_transpose' ]],
549- ['activation_mlp_moe', ['tensor', 'tensor_transpose', ' tensor_sequence']],
544+ ['activation_embed_moe', ['tensor']],
545+ ['activation_mlp_moe', ['tensor', 'tensor_sequence']],
550546 ['activation_exp', ['expert']],
551547 # MoE Weights
552548 ['exp', 'expert'],
553549 ['mlp_moe', ['fsdp_transpose', 'tensor', 'tensor_sequence', 'autoregressive']],
554- ['embed_moe', ['fsdp', 'fsdp_transpose', 'tensor_transpose', 'context']],
555- ['embed_moe', ['fsdp', 'tensor_transpose', 'context']],
556550 ['embed_moe', ['fsdp', 'fsdp_transpose', 'context']],
557551 ['embed_moe', ['fsdp', 'context']],
558552 # ==========================================
559553 # Standard MLP / Dense Layers / Model Structure
560554 # ==========================================
561555 # Dense Activations
562- ['activation_mlp', ['tensor', 'tensor_transpose', ' tensor_sequence']],
556+ ['activation_mlp', ['tensor', 'tensor_sequence']],
563557 # Note activation batch and length also get used in vocab
564558 ['activation_batch', ['data', 'fsdp', 'fsdp_transpose', 'expert']],
565559 ['activation_length', ['context']],
566560 ['activation_norm_length', ['tensor_sequence', 'context']],
567- ['activation_embed', ['tensor', 'tensor_transpose' ]],
561+ ['activation_embed', ['tensor']],
568562 ['activation_stage', 'stage'],
569563 # General Weights
570564 ['mlp', ['fsdp_transpose', 'tensor', 'tensor_sequence', 'autoregressive']],
571565 # GDN (linear-attention) projections shard like 'mlp' during training; the
572566 # vLLM serving config overrides this to match tpu-inference's ATTN_HEAD order.
573567 ['gdn_head', ['fsdp_transpose', 'tensor', 'tensor_sequence', 'autoregressive']],
574- ['embed', ['fsdp', 'fsdp_transpose', 'tensor_transpose', 'context', 'expert']],
575- ['embed', ['fsdp', 'tensor_transpose', 'context', 'expert']],
576568 ['embed', ['fsdp', 'fsdp_transpose', 'context', 'expert']],
577569 ['embed', ['fsdp', 'context', 'expert']],
578- ['norm', ['tensor', 'tensor_transpose' ]],
570+ ['norm', ['tensor']],
579571 ['layers', 'stage'],
580572 ['diloco', 'diloco'],
581573 ['engram_dim', ['tensor']],
@@ -590,7 +582,6 @@ logical_axis_rules: [
590582 ['activation_prefill_kv_batch', ['data', 'fsdp', 'fsdp_transpose', 'expert']],
591583 ['decode_batch', ['data', 'fsdp', 'fsdp_transpose', 'expert']],
592584 ['decode_length', []],
593- ['cache_heads', ['autoregressive', 'tensor', 'tensor_transpose', 'tensor_sequence']],
594585 ['cache_heads', ['autoregressive', 'tensor', 'tensor_sequence']],
595586 ['paged_kv_heads', ['tensor']],
596587 ['cache_batch_prefill', []],
@@ -605,11 +596,10 @@ logical_axis_rules: [
605596 # Deprecated / Scheduled for Removal
606597 # ==========================================
607598 ['mlp_no_fsdp', ['tensor', 'tensor_sequence', 'autoregressive']],
608- ['embed_tensor_transpose', ['tensor_transpose']],
609599 ['exp_with_fsdp', 'fsdp'],
610600 ]
611601# Axes used for DCN must be earlier in this list than ICI, see (b/339009148) for details
612- data_sharding : [['data', 'stage', 'fsdp', 'fsdp_transpose', 'context', 'context_autoregressive', 'tensor', 'tensor_transpose', ' tensor_sequence', 'expert', 'autoregressive']]
602+ data_sharding : [['data', 'stage', 'fsdp', 'fsdp_transpose', 'context', 'context_autoregressive', 'tensor', 'tensor_sequence', 'expert', 'autoregressive']]
613603input_data_sharding_logical_axes : ['activation_embed_and_logits_batch', 'activation_norm_length']
614604# Determines which physical axis plays the role of context parallelism for input data processing and load balancing
615605# only supports "context" or "expert" (when custom_mesh_and_rule=ep-as-cp)
@@ -630,7 +620,6 @@ dcn_sequence_parallelism: 1 # never recommended
630620dcn_context_parallelism : 1
631621dcn_context_autoregressive_parallelism : 1
632622dcn_tensor_parallelism : 1 # never recommended
633- dcn_tensor_transpose_parallelism : 1
634623dcn_tensor_sequence_parallelism : 1 # never recommended
635624dcn_pipeline_parallelism : 1
636625dcn_expert_parallelism : 1
@@ -643,7 +632,6 @@ ici_sequence_parallelism: 1
643632ici_context_parallelism : 1
644633ici_context_autoregressive_parallelism : 1
645634ici_tensor_parallelism : 1
646- ici_tensor_transpose_parallelism : 1
647635ici_tensor_sequence_parallelism : 1
648636ici_autoregressive_parallelism : 1
649637ici_pipeline_parallelism : 1
0 commit comments