Phi HuggingFace Import - Model Import Example

This example demonstrates importing Microsoft Phi models from HuggingFace format.

Run command:

cargo run --example phi_hf_import --release

Topics covered:

  • HuggingFace SafeTensors format parsing
  • Phi model architecture (Phi-2, Phi-3)
  • Weight tensor mapping and conversion
  • Model configuration extraction

See also: