CoolFace
Modelpublic

rootonchair/Lens-GGUF

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes62downloads
Model Card

Lens GGUF

GGUF quantizations of the Lens diffusion transformer from `microsoft/Lens`, prepared for use with `stable-diffusion.cpp`.

These files contain only the diffusion model weights. For inference you also need:

Files

FileTypeApprox. sizeNotes
lens-f16.gguff167.7 GBHighest precision GGUF export
lens-q8_0.ggufq8_04.1 GBHigh quality quantization
lens-q6_K.ggufq6_K3.2 GBStrong quality/size balance
lens-q5_K.ggufq5_K2.7 GBSmaller balanced option
lens-q4_K.ggufq4_K2.2 GBSmallest provided option

Usage

Example with stable-diffusion.cpp:

bash
./build/bin/sd-cli \
  --diffusion-model lens-q4_K.gguf \
  --llm /path/to/gpt-oss-20b-UD-Q8_K_XL.gguf \
  --vae /path/to/flux2_ae.safetensors \
  --vae-format flux2 \
  --cfg-scale 5.0 \
  --diffusion-fa \
  -W 1024 \
  -H 1024 \
  -p "A crystal dragon soaring through an aurora borealis sky, its entire body made of transparent faceted crystal refracting the green and purple aurora light into rainbow spectra, ice particles trailing from its wings, high fantasy digital art"

If you keep the same folder structure as stable-diffusion.cpp examples, a local command can look like:

bash
./build/bin/sd-cli \
  --diffusion-model models/Lens/lens-q4_K.gguf \
  --llm models/gpt-oss-20b-GGUF/gpt-oss-20b-UD-Q8_K_XL.gguf \
  --vae models/vae/diffusion_pytorch_model.safetensors \
  --vae-format flux2 \
  --cfg-scale 5.0 \
  --diffusion-fa \
  -W 1024 \
  -H 1024 \
  -p "A crystal dragon soaring through an aurora borealis sky"

The base Lens model is not the distilled Turbo variant, so the example uses the default stable-diffusion.cpp step count instead of the 4-step Turbo setting.

Download

Download one quantization:

bash
hf download rootonchair/Lens-GGUF lens-q4_K.gguf --local-dir models/Lens-GGUF

Download all GGUF files:

bash
hf download rootonchair/Lens-GGUF --include "*.gguf" --local-dir models/Lens-GGUF

Quantization Notes

The GGUF files were produced from the Lens diffusion transformer weights using stable-diffusion.cpp convert mode:

bash
./build/bin/sd-cli \
  -M convert \
  -m models/Lens/lens_bf16.safetensors \
  -o models/Lens/lens-q4_K.gguf \
  --type q4_K

The original sharded safetensors transformer was first merged into a single safetensors file before conversion.

No Q2 quantization is provided. In practice, Q2 is an extreme low-memory option and is more likely to noticeably degrade image quality. For most use cases, start with q4_K, q5_K, or q6_K; use q8_0 or f16 when quality is more important than size.

License and Attribution

This repository follows the upstream `microsoft/Lens` license. Please review the original model card and license before using these weights.

Original model:

text
microsoft/Lens

GGUF conversion:

text
rootonchair/Lens-GGUF