phi3¶
phi3
¶
Phi-3 / 3.5 / 4 (Phi3ForCausalLM).
Llama's tree and Llama's block: model.{embed_tokens, layers[i].{input_layernorm,
self_attn, post_attention_layernorm, mlp}, norm} and lm_head, the residual
added in the block, attention through the shared eager forward. Queries, keys and values are indexed out of one fused qkv_proj.