BiRefNet_lite
ZhengPeng7mitvision

BiRefNet_lite

Updated Dec 5, 2026
Parameters
40M
License
mit
Updated
Dec 5, 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_lite 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_lite

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

Deep dive

Notes, sources, and the full write-up

BiRefNet_lite is an open-weight image segmentation model published by ZhengPeng7 on Hugging Face in August 2024, with 40M parameters under the mit license.

Among the 25 image segmentation models in this directory it ranks 21st by monthly Hugging Face downloads, and 20 of the others are larger.

HardwareLink to this section

Unquantized FP16 weights take about 1 GB; 8-bit brings that to ~1 GB and 4-bit (Q4_K_M) to ~1 GB, before activations and any context or image buffers. At this size it runs on almost any recent GPU, on Apple Silicon, and usable on a modern CPU. Check exact numbers for your card with the VRAM calculator.

Similar image segmentation modelsLink to this section

PopularityLink to this section

BiRefNet_lite was downloaded 33,732 times on Hugging Face in the last month (1,164,065 all-time) and has 26 likes.

Run it locallyLink to this section

Weights and usage instructions are on the ZhengPeng7/BiRefNet_lite model card; it loads with birefnet.

Local runtimes that fit this model:

  • comfyui - node-based workflows, the usual way to run diffusion models locally
  • invokeai - a canvas UI for image generation and editing

PaperLink to this section

Frequently asked

Quick answers to common questions

How much VRAM does BiRefNet_lite need?

BiRefNet_lite with 40M parameters needs approximately 1 GB at Q4_K_M quantization. Use our VRAM calculator for an exact estimate.

Is BiRefNet_lite better than other ZhengPeng7 models?

BiRefNet_lite has 40M parameters - a strong choice for image-segmentation.

What license is BiRefNet_lite under?

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

What hardware runs BiRefNet_lite well?

With 40M parameters, BiRefNet_lite is small enough for most consumer GPUs, Apple Silicon Macs, and many CPUs. Check our hardware directory for specific recommendations.

What is the best quantization for BiRefNet_lite?

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_lite?

BiRefNet_lite 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