PY-AI-Dev's picture
Upload README.md with huggingface_hub
7b0a0e0 verified
|
Raw
History Blame Contribute Delete
2.03 kB
metadata
license: other
base_model: microsoft/Phi-4-mini-instruct
base_model_relation: quantized
pipeline_tag: text-generation
library_name: gguf
tags:
  - gguf
  - ollama
  - local-llm
  - llama.cpp
  - lm-studio
  - quantized
  - imatrix
  - sub-4-bit
  - phi3
quantized_by: liodon-ai

Phi-4-mini-instruct — iMatrix GGUF

GGUF quantizations of microsoft/Phi-4-mini-instruct, published by Liodon AI.

Quick Start

llama.cpp

llama-cli -hf liodon-ai/Phi-4-mini-instruct-imatrix-GGUF:Q4_K_M

Ollama

ollama run hf.co/liodon-ai/Phi-4-mini-instruct-imatrix-GGUF:Q4_K_M

LM Studio / Jan — search liodon-ai/Phi-4-mini-instruct-imatrix-GGUF and pick your quant.

Quants

Quant Size VRAM est. Notes
IQ2_M 1.56 GB ~2 GB 2-bit, iMatrix — smallest usable
IQ3_M 2.02 GB ~2 GB 3-bit, iMatrix — great quality/size tradeoff
IQ4_XS 2.22 GB ~3 GB 4-bit extra-small, iMatrix
Q4_K_M 2.49 GB ~3 GB 4-bit, iMatrix-calibrated (recommended)
Q5_K_M 2.81 GB ~3 GB 5-bit, iMatrix-calibrated
Q6_K 3.16 GB ~4 GB 6-bit, iMatrix-calibrated, near-lossless
Q8_0 4.08 GB ~5 GB 8-bit, essentially lossless

What is iMatrix?

Standard quantization treats all weights equally. iMatrix runs 128 calibration chunks through the full-precision model to find which weights matter most, then allocates more precision where it counts. At Q2/Q3/Q4 this means noticeably better coherence and instruction-following — same file size, better output.

Calibration: 2M tokens of WikiText-103.

Also see plain (non-iMatrix) quants: liodon-ai/Phi-4-mini-instruct-GGUF

Source


Quantized by Liodon AI