Compute the per-head dimension and the single-layer parameter count of multi-head attention from hidden size and head count.
常見 head_dim 64,過大或過小均影響表達。
每頭維度 d_head=d_model/h,需整除;常見 d_model=512,h=8→d_head=64。