BiRefNet
ZhengPeng7mitvision

BiRefNet

Updated Nov 13, 2026
Parameters
0.22B
Context
8,192
License
mit
Updated
Nov 13, 2026

Will it run on your hardware?

Pick your GPU memory - see which quantizations fit, and the cheapest card for the rest

Runs on your 24 GB - best at FP16
4 of 4 quantizations fit BiRefNet with real runtime overhead.
Q4_K_M
1 GB
Q5_K_M
1 GB
Q8_0
1 GB
FP16
1 GB
fits tight too big

Need an exact figure for your context length? Use the VRAM calculator.

Run it locally

Copy-paste - running in under a minute

vLLMOpenAI-compatible API
vllm serve ZhengPeng7/BiRefNet

New to this? Start with Ollama · serve to many users with vLLM.

Deep dive

Notes, sources, and the full write-up

BiRefNet is an open-weight image segmentation model from ZhengPeng7, published on Hugging Face in July 2024. It has 220M parameters and is released under the mit license.

HardwareLink to this section

At full FP16 precision the weights need about 1 GB of memory; 8-bit quantization brings that to roughly 1 GB. That is small enough for most consumer GPUs, Apple Silicon Macs, and many CPUs.

PopularityLink to this section

BiRefNet had 1,005,130 downloads on Hugging Face in the last month and has 675 likes.

Run it locallyLink to this section

The weights are on Hugging Face and load with birefnet. Follow the model card for the exact setup and license terms.

Frequently asked

Quick answers to common questions

How much VRAM does BiRefNet need?

BiRefNet with 0.22B parameters needs approximately 1 GB at Q4_K_M quantization. Use our VRAM calculator for an exact estimate.

Is BiRefNet better than other ZhengPeng7 models?

BiRefNet has 0.22B parameters with 8,192 context - a strong choice for image-segmentation.

What license is BiRefNet under?

BiRefNet is released under the mit license, making it suitable for most commercial and personal projects.

What hardware runs BiRefNet well?

With 0.22B parameters, BiRefNet requires adequate VRAM. High-end GPUs like the RTX 4090 (24GB), RTX 5090 (32GB), or Mac Studio with unified memory are good options. Check our hardware directory for specific recommendations.

What is the best quantization for BiRefNet?

Q4_K_M is the recommended sweet spot - ~98% of FP16 quality at ~27% of the size. Q5_K_M (~1 GB) is an option if you have spare VRAM. Use our VRAM calculator to compare.

What models compete with BiRefNet?

BiRefNet competes with other models in its class. Browse our model directory for comparisons, benchmarks, and community reviews to find the best fit.

Nearby options

Similar models and compatible hardware by spec