Skip to main content

Crate fuel_model_phi

Crate fuel_model_phi 

Source
Expand description

The Phi-family lazy-graph decoder (PhiConfig/PhiWeights/PhiModel).

Extracted from fuel-core/src/lazy.rs (fuel-core dissolution, per docs/architecture/02-layers.md’s ratified fuel-model-phi† — one architecture per crate). fuel-core keeps no shim for this type (see fuel-model-llama’s doc comment for why: fuel-model-phi depends on fuel-core, so a re-export back would be a build cycle). Every real consumer was repointed to fuel_model_phi:: directly.

⚠️ Same stepping-stone status as fuel-model-llama, including the same generic-utility exclusion: this crate does not own WeightStorage, load_tensor_as_f32, load_transposed_matrix*, or apply_affine_rms_norm, all textually near PhiModel in the original file but used by dozens of unrelated models and left in fuel-core.

Structs§

PhiConfig
Phi-2 model hyperparameters. Field semantics match the LLaMA config where they overlap; the layer_norm_eps, partial_rotary_factor, and rotary_dim fields are Phi-specific.
PhiLayerWeights
Per-layer Phi-2 weights. Every projection has a bias (unlike LLaMA).
PhiModel
PhiWeights

Enums§

PhiQkv
How Q/K/V projections are stored for a Phi layer.