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。