Downloads · 30 days
129
23% of all-time downloads
rootonchair/Lens-GGUF
Lens-GGUF is a text-to-image model from rootonchair. Use it when you need an image from a text prompt. It is set up for stable-diffusion.cpp. The card lists the license as mit.
GGUF quantizations of the Lens diffusion transformer from microsoft/Lens, prepared for use with stable-diffusion.cpp.
Downloads · 30 days
129
23% of all-time downloads
All-time downloads
573
Public
Repo size
21.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf21.4 GB · 100%
From the Hugging Face model README
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:
unsloth/gpt-oss-20b-GGUFblack-forest-labs/FLUX.2-dev| File | Type | Approx. size | Notes |
|---|---|---|---|
lens-f16.gguf | f16 | 7.7 GB | Highest precision GGUF export |
lens-q8_0.gguf | q8_0 | 4.1 GB | High quality quantization |
lens-q6_K.gguf | q6_K | 3.2 GB | Strong quality/size balance |
lens-q5_K.gguf | q5_K | 2.7 GB | Smaller balanced option |
lens-q4_K.gguf | q4_K | 2.2 GB | Smallest provided option |
Example with stable-diffusion.cpp:
./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:
./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 one quantization:
hf download rootonchair/Lens-GGUF lens-q4_K.gguf --local-dir models/Lens-GGUF
Download all GGUF files:
hf download rootonchair/Lens-GGUF --include "*.gguf" --local-dir models/Lens-GGUF
The GGUF files were produced from the Lens diffusion transformer weights using stable-diffusion.cpp convert mode:
./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.
This repository follows the upstream microsoft/Lens license. Please review the original model card and license before using these weights.
Original model:
microsoft/Lens
GGUF conversion:
rootonchair/Lens-GGUF