pub fn compute_layer_profile(
weights: &HashMap<String, Tensor>,
config: &ModelConfig,
model_path: &Path,
) -> Result<LayerProfile, Error>Expand description
Compute a layer profile from weight-key geometry (Tier 3).
Detects each layer’s type from weight-key presence and assigns a flat
unvalidated rank (see [UNVALIDATED_RANK_CAP] / [GDN_LORA_RANK]); there
is no per-layer spectral analysis. Results are cached to
{model_path}/.analysis/layer_profile.json.