Skip to content
Closed
3 changes: 0 additions & 3 deletions examples/llm_finetune/baichuan/baichuan_2_7b_squad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,8 @@ ci:
known_issue_id: AM-149
checkpoint_robustness:
trust_remote_code: true
kl_threshold: 1e-2
hf_kl_threshold: 5e-2
distributed.tp_size: 2
cross_tp_size: 2
cross_tp_kl_threshold: 1e-2
training_reproducibility_loss_threshold: 5e-2
tokenizer_name: baichuan-inc/Baichuan2-7B-Chat
dataset.limit_dataset_samples: 500
Expand Down
2 changes: 0 additions & 2 deletions examples/llm_finetune/baichuan/baichuan_2_7b_squad_peft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ ci:
known_issue_id: AM-149
checkpoint_robustness:
trust_remote_code: true
kl_threshold: 1e-2
hf_kl_threshold: 5e-2
distributed.tp_size: 2
tokenizer_name: baichuan-inc/Baichuan2-7B-Chat
dataset.limit_dataset_samples: 500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,16 @@ optimizer:
ci:
# pp_size(1) * ep_size(32) = 32 GPUs => 4 nodes (8 H100/node).
recipe_owner: hemildesai
time: "00:20:00"
time: "01:00:00"
nodes: 4
checkpoint_robustness:
step_scheduler.global_batch_size: 32
step_scheduler.local_batch_size: 1
tokenizer_name: deepseek-ai/DeepSeek-V4-Flash
trust_remote_code: true
hf_device_map_auto: true
# EP32 sparse routing is inside the shared relaxed envelope; the separate
# vanilla-HF reload gate remains enabled so reference-load regressions still fail.
parity_tolerance_profile: relaxed
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ ci:
recipe_owner: HuiyingLi
time: "00:20:00"
checkpoint_robustness:
check_source_load_parity: true
hf_kl_threshold: 5e-3
source_load_kl_threshold: 5e-3
source_load_cosine_threshold: 0.9995
tokenizer_name: baidu/ERNIE-4.5-21B-A3B-PT
hf_device_map_auto: true
dataset.num_samples_limit: 500
1 change: 0 additions & 1 deletion examples/llm_finetune/gemma/gemma_3_270m_squad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ ci:
recipe_owner: HuiyingLi
time: "00:20:00"
checkpoint_robustness:
hf_kl_threshold: 1e-1
tokenizer_name: google/gemma-3-270m
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500
Expand Down
1 change: 0 additions & 1 deletion examples/llm_finetune/gemma/gemma_3_270m_squad_peft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ ci:
known_issue_id: AM-154
allow_failure: true
checkpoint_robustness:
hf_kl_threshold: 1e-1
tokenizer_name: google/gemma-3-270m
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500
Expand Down
9 changes: 9 additions & 0 deletions examples/llm_finetune/glm/glm_4.7_flash_te_deepep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,12 @@ optimizer:

ci:
recipe_owner: hemildesai
nodes: 1
time: "00:30:00"
checkpoint_robustness:
# Keep the currently mismatched HF comparisons blocking until the model or
# reference path is fixed; an observed mismatch alone is not a reason to skip.
tokenizer_name: zai-org/GLM-4.7-Flash
hf_device_map_auto: true
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ parallelizer:
ci:
time: "00:30:00"
checkpoint_robustness:
hf_kl_threshold: 5e-2
# Routed-MoE source parity measures 0.0064-0.0076 mean KL at 2K while
# p95 KL and cosine pass standard; retain every gate with the shared profile.
parity_tolerance_profile: relaxed
tokenizer_name: openai/gpt-oss-20b
no_check_resume: true
check_phantom_keys: true
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ parallelizer:
ci:
time: "00:30:00"
checkpoint_robustness:
hf_kl_threshold: 5e-2
# Routed-MoE source parity measures 0.0064-0.0076 mean KL at 2K while
# p95 KL and cosine pass standard; retain every gate with the shared profile.
parity_tolerance_profile: relaxed
tokenizer_name: openai/gpt-oss-20b
no_check_resume: true
5 changes: 3 additions & 2 deletions examples/llm_finetune/gpt_oss/customizer_gpt_oss_peft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ ci:
time: "00:30:00"
nproc_per_node: 1
checkpoint_robustness:
hf_kl_threshold: 5e-2
# Routed-MoE source parity measures 0.0064-0.0076 mean KL at 2K while
# p95 KL and cosine pass standard; retain every gate with the shared profile.
parity_tolerance_profile: relaxed
tokenizer_name: openai/gpt-oss-20b
no_check_resume: true
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ ci:
time: "00:30:00"
nproc_per_node: 1
checkpoint_robustness:
hf_kl_threshold: 5e-2
# Routed-MoE source parity measures 0.0064-0.0076 mean KL at 2K while
# p95 KL and cosine pass standard; retain every gate with the shared profile.
parity_tolerance_profile: relaxed
tokenizer_name: openai/gpt-oss-20b
no_check_resume: true
4 changes: 1 addition & 3 deletions examples/llm_finetune/gpt_oss/gpt_oss_20b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,12 @@ optimizer:

ci:
recipe_owner: hemildesai
time: "00:15:00"
time: "00:30:00"
node_multiplier: true
vllm_deploy: true
vllm_smoke_test: true
checkpoint_robustness:
hf_kl_threshold: 1e-1
tokenizer_name: openai/gpt-oss-20b
check_phantom_keys: true
no_check_resume: true
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500
7 changes: 4 additions & 3 deletions examples/llm_finetune/gpt_oss/gpt_oss_20b_peft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ ci:
vllm_deploy: true
vllm_smoke_test: true
recipe_owner: akoumpa
time: "00:15:00"
time: "00:20:00"
checkpoint_robustness:
hf_kl_threshold: 5e-2
# PEFT source and reload comparisons consistently sit above the standard
# same-implementation envelope while remaining well inside the shared relaxed profile.
parity_tolerance_profile: relaxed
tokenizer_name: openai/gpt-oss-20b
no_check_resume: true
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,10 @@ wandb:
ci:
recipe_owner: huiyingl
nodes: 1
time: "01:00:00"
time: "00:40:00"
checkpoint_robustness:
tokenizer_name: moonshotai/Kimi-Linear-48B-A3B-Instruct
trust_remote_code: true
hf_device_map_auto: true
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ loss_fn:
ci:
time: "00:30:00"
checkpoint_robustness:
hf_kl_threshold: 1e-2
tokenizer_name: meta-llama/Llama-3.1-8B-Instruct
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,5 @@ ci:
time: "00:30:00"
nproc_per_node: 1
checkpoint_robustness:
hf_kl_threshold: 1e-2
training_reproducibility_loss_threshold: 5e-3
tokenizer_name: meta-llama/Llama-3.2-1B-Instruct
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,4 @@ ci:
time: "00:30:00"
nproc_per_node: 1
checkpoint_robustness:
hf_kl_threshold: 5e-3
tokenizer_name: meta-llama/Llama-3.2-1B-Instruct
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@ ci:
time: "00:30:00"
nproc_per_node: 1
checkpoint_robustness:
hf_kl_threshold: 5e-3
tokenizer_name: meta-llama/Llama-3.2-1B-Instruct
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@ ci:
time: "00:30:00"
nproc_per_node: 1
checkpoint_robustness:
hf_kl_threshold: 5e-3
tokenizer_name: meta-llama/Llama-3.2-1B-Instruct
8 changes: 1 addition & 7 deletions examples/llm_finetune/llama3_2/llama3_2_1b_hellaswag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,11 @@ optimizer:

ci:
recipe_owner: akoumpa
time: "00:15:00"
time: "00:20:00"
checkpoint_robustness:
check_source_load_parity: true
hf_kl_threshold: 5e-3
source_load_kl_threshold: 5e-3
source_load_cosine_threshold: 0.9995
model.pretrained_model_name_or_path: meta-llama/Llama-3.2-3B-Instruct
tokenizer_name: meta-llama/Llama-3.2-3B-Instruct
cross_tp_size: 2
# Allow observed bf16 row-parallel reduction drift across 8-GPU TP reloads.
cross_tp_kl_threshold: 6e-3
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ ci:
recipe_owner: akoumpa
time: "00:15:00"
checkpoint_robustness:
hf_kl_threshold: 5e-3
model.pretrained_model_name_or_path: meta-llama/Llama-3.2-3B-Instruct
tokenizer_name: meta-llama/Llama-3.2-3B-Instruct
check_fused_qkv_keys: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,13 @@ optimizer:
ci:
vllm_deploy: true
recipe_owner: akoumpa
time: "00:30:00"
known_issue_id: AM-154
allow_failure: true
checkpoint_robustness:
hf_kl_threshold: 5e-3
model.pretrained_model_name_or_path: meta-llama/Llama-3.2-3B-Instruct
tokenizer_name: meta-llama/Llama-3.2-3B-Instruct
cross_tp_size: 2
cross_tp_kl_threshold: 5e-3
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@ optimizer:
ci:
recipe_owner: akoumpa
vllm_deploy: true
time: "00:40:00"
checkpoint_robustness:
hf_kl_threshold: 5e-3
model.pretrained_model_name_or_path: meta-llama/Llama-3.2-3B-Instruct
tokenizer_name: meta-llama/Llama-3.2-3B-Instruct
cross_tp_size: 2
cross_tp_kl_threshold: 5e-3
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500

Expand Down
38 changes: 30 additions & 8 deletions examples/llm_finetune/minimax_m2/minimax_m2.7_hellaswag_lora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,45 @@ optimizer:
ci:
# pp_size(1) * ep_size(32) = 32 GPUs => 4 nodes (8 H100/node).
recipe_owner: hemildesai
time: "00:30:00"
# Allow the complete source, reload, and resume calibration matrix to finish.
time: "01:00:00"
nodes: 4
checkpoint_robustness:
# The robustness default local batch is 2; with 32 ranks the global batch
# must be at least 64 and divisible by 2 * 32.
step_scheduler.global_batch_size: 64
# Keep each large-model load in a fresh process so the HF reload has all
# local GPU memory available after the distributed train/save phase.
process_isolation: true
# Exact adapter fingerprints and a successful HF+PEFT forward still run;
# live-LoRA cross-runtime logit parity is not a stable quantized reference.
skip_hf_logit_parity: true
# Process isolation is the harness default, leaving all local GPU memory
# available to the HF reload after the distributed train/save phase exits.
# Use Transformers' built-in MiniMax M2 implementation for the HF+PEFT
# reload; the checkpoint's remote code targets an older Transformers API.
trust_remote_code: false
tokenizer_name: MiniMaxAI/MiniMax-M2.7
hf_device_map_auto: true
no_check_resume: true
# Measured envelope for the two cross-framework gates (AMINT-286). The
# residual AM-vs-HF divergence is knife-edge routing amplifying bf16
# kernel noise, not an implementation defect: the checkpoint's fp32
# e_score_correction_bias lattices put top-8 selection inside the
# kernel-noise band (68% of tokens flip an expert within five layers,
# pipeline 64182587), and the HF reference against itself (eager vs sdpa
# attention, 62-layer sweep on real weights) diverges at the same order
# (mean KL 0.237 vs AutoModel's 0.320). Gate the full 2048-token document
# at the measured envelope (three scoped runs: mean KL 0.086-0.094,
# p95 0.346-0.375, cos 0.964-0.965); real conversion or model-math bugs
# stay loud (the repaired rope-reference bug measured mean KL 13.1).
parity_threshold_overrides:
source_load:
mean_kl: 0.15
p95_kl: 0.5
cosine_similarity: 0.95
hf_reload:
mean_kl: 0.15
p95_kl: 0.5
cosine_similarity: 0.95
# Restored state and the first resumed forward are exact; three scoped-CI
# runs measured 0.012-0.020 routed-MoE loss drift at continuation steps 6-7
# versus the standard 0.0117 allowance (pipelines 63311388, 63340676,
# 64093591). Match the routed hybrid-MoE precedent and use the shared
# relaxed resume envelope; every logit gate stays standard.
resume_tolerance_profile: relaxed
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500
10 changes: 1 addition & 9 deletions examples/llm_finetune/mistral/ministral3_3b_squad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,15 @@ ci:
recipe_owner: akoumpa
time: "00:15:00"
checkpoint_robustness:
check_source_load_parity: true
hf_kl_threshold: 6e-3
# TP=2 BF16 reductions add bounded source-load drift; retain independent
# max/mean KL and cosine gates instead of skipping the FP8 parity check.
source_load_kl_threshold: 2.5e-2
source_load_mean_kl_threshold: 3e-3
source_load_cosine_threshold: 0.9995
distributed.tp_size: 2
tokenizer_name: mistralai/Ministral-3-3B-Instruct-2512
cross_tp_size: 2
cross_tp_kl_threshold: 5e-3
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500
# vision_tower params receive no grads from text-only batches, so Adam
# never materialises per-param `step` state for them; DCP resume load is
# strict and fails with `Missing key ... optim.state.model.vision_tower.*`.
no_check_resume: true
skip_resume: true

# Uncomment and configure for W&B logging
# wandb:
Expand Down
10 changes: 1 addition & 9 deletions examples/llm_finetune/mistral/ministral3_3b_squad_peft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,14 @@ ci:
recipe_owner: akoumpa
time: "00:15:00"
checkpoint_robustness:
check_source_load_parity: true
# LoRA merge stays within the TP=2-to-HF drift measured by source parity.
hf_kl_threshold: 2.5e-2
# TP=2 BF16 reductions add bounded source-load drift; retain independent
# max/mean KL and cosine gates instead of skipping the FP8 parity check.
source_load_kl_threshold: 2.5e-2
source_load_mean_kl_threshold: 3e-3
source_load_cosine_threshold: 0.9995
distributed.tp_size: 2
tokenizer_name: mistralai/Ministral-3-3B-Instruct-2512
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500
# vision_tower params receive no grads from text-only batches, so Adam
# never materialises per-param `step` state for them; DCP resume load is
# strict and fails with `Missing key ... optim.state.model.vision_tower.*`.
no_check_resume: true
skip_resume: true

# Uncomment and configure for W&B logging
# wandb:
Expand Down
10 changes: 0 additions & 10 deletions examples/llm_finetune/mistral/mistral_7b_hellaswag_fp8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,6 @@ ci:
recipe_owner: HuiyingLi
time: "00:25:00"
checkpoint_robustness:
check_source_load_parity: true
hf_kl_threshold: 1e-2
# FP8 here is training-time quantization of a bf16 checkpoint (see the fp8
# section above), so Phase 0 bounds the FP8-prepared trainer model against
# the raw bf16 HF reference. This is an FP8-only exception; keep the
# non-quantized Phase 0 configs at the default strict mean KL threshold.
source_load_kl_threshold: 1e-2
source_load_mean_kl_threshold: 3e-3
source_load_cosine_threshold: 0.999
tokenizer_name: mistralai/Mistral-7B-v0.1
no_check_resume: true
dataset.num_samples_limit: 500
validation_dataset.num_samples_limit: 500
6 changes: 1 addition & 5 deletions examples/llm_finetune/mistral/mistral_7b_squad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ ci:
recipe_owner: HuiyingLi
time: "00:20:00"
checkpoint_robustness:
check_source_load_parity: true
hf_kl_threshold: 5e-3
source_load_kl_threshold: 5e-3
source_load_cosine_threshold: 0.9995
tokenizer_name: mistralai/Mistral-7B-v0.1
no_check_resume: true
skip_resume: true
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500
6 changes: 1 addition & 5 deletions examples/llm_finetune/mistral/mistral_nemo_2407_squad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,8 @@ ci:
recipe_owner: HuiyingLi
time: "00:25:00"
checkpoint_robustness:
check_source_load_parity: true
hf_kl_threshold: 5e-3
source_load_kl_threshold: 5e-3
source_load_cosine_threshold: 0.9995
tokenizer_name: mistralai/Mistral-Nemo-Base-2407
hf_device_map_auto: true
no_check_resume: true
skip_resume: true
dataset.limit_dataset_samples: 500
validation_dataset.limit_dataset_samples: 500
Loading
Loading