Run this model with HF Jobs

Run parmanu-lcs2/Phi-4-11B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/parmanu-lcs2/Phi-4-11B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/parmanu-lcs2/Phi-4-11B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/parmanu-lcs2/Phi-4-11B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/parmanu-lcs2/Phi-4-11B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

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
37
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