xuan-luo's picture
download
raw
953 Bytes
#!/usr/bin/env python3
"""Train the GQA (g=4, head_dim=64) parameter/cache-matched baseline for KVPath.
Standard Qwen3-style GQA -- no custom Megatron attention code. HF export is a
manual/separate step (see training/baseline/depth_delta/megatron_to_hf.py's
split_qkv/split_swiglu helpers for the standard fused-QKV layout); this mirrors
training/depth_delta/train.py's "--skip-export" convention so a bespoke
architecture-matched exporter can be wired in later without surprising the
generic training/baseline export dispatcher (which assumes DepthDelta-shaped
attention).
"""
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from utils.train_runner import main
if __name__ == "__main__":
config = Path(__file__).with_name("config.toml")
sys.argv[1:1] = ["--config", str(config), "--skip-export"]
main()

Xet Storage Details

Size:
953 Bytes
·
Xet hash:
d0ca3f5b0797a57f1c8bb17540f03773e50ee90b8946b33dc7bc667e9c1c32b2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.