parmanu-lcs2/Phi-4-11B

This model is a pruned version of Phi-4, compressed using SNIPER (paper).

Pruning details

Setting Value
Pruning method SNIPER (paper)
Target compression ratio 25%
Parameters after pruning 11,019,786,240
Calibration data slim_orca (50 samples × 512 tokens)

Recovery fine-tuning

LoRA fine-tuned on 2000 samples of SlimOrca after pruning. The LoRA adapters have been merged into the base weights.

Setting Value
Epochs 1
Context length 1024
Learning rate 0.0002
LoRA rank / alpha 64 / 16
LoRA target modules gate_up_proj, down_proj, qkv_proj, o_proj

Hardware

All pruning and fine-tuning was performed on an NVIDIA A100 GPU.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("parmanu-lcs2/Phi-4-11B", trust_remote_code=True, dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("parmanu-lcs2/Phi-4-11B")

trust_remote_code=True is required because pruning leaves layers with different shapes (and some attention/MLP blocks removed). This architecture is defined in the bundled modeling_pruned.py.

References

Downloads last month
138
Safetensors
Model size
11B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for parmanu-lcs2/Phi-4-11B

Quantizations
1 model

Dataset used to train parmanu-lcs2/Phi-4-11B

Paper for parmanu-lcs2/Phi-4-11B