Instructions to use SceneWorks/Lens-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SceneWorks/Lens-Turbo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SceneWorks/Lens-Turbo", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: mit | |
| library_name: diffusers | |
| pipeline_tag: text-to-image | |
| tags: | |
| - text-to-image | |
| - lens | |
| - flux | |
| - gpt-oss | |
| # Lens-Turbo | |
| Self-contained diffusers-layout snapshot of Microsoft's **Lens-Turbo** (distilled) text-to-image model, | |
| re-assembled for in-house (SceneWorks) use after Microsoft removed the original `microsoft/Lens-Turbo` | |
| repository from the Hub. | |
| This is a **repackage**, not a retrain β every weight is byte-identical to a public upstream source | |
| (verified by tensor-level comparison against Comfy-Org's authentic redistribution): | |
| | Component | Source | License | | |
| |------------------|------------------------------------------------------------------------|------------| | |
| | `transformer/` | Lens-Turbo DiT, bf16 β from [`Comfy-Org/Lens`](https://huggingface.co/Comfy-Org/Lens) (`diffusion_models/lens_turbo_bf16.safetensors`) | MIT | | |
| | `text_encoder/` | gpt-oss-20b (MXFP4), used encoder-only β from [`openai/gpt-oss-20b`](https://huggingface.co/openai/gpt-oss-20b) | Apache-2.0 | | |
| | `tokenizer/` | gpt-oss tokenizer β from [`openai/gpt-oss-20b`](https://huggingface.co/openai/gpt-oss-20b) | Apache-2.0 | | |
| | `vae/` | FLUX.2 VAE (`AutoencoderKLFlux2`) β from [`black-forest-labs/FLUX.2-dev`](https://huggingface.co/black-forest-labs/FLUX.2-dev) | FLUX.2-dev license | | |
| The text encoder is stock, frozen `gpt-oss-20b` and the VAE is stock FLUX.2-dev; only the | |
| `transformer/` DiT is Lens-specific. The encoder + VAE are identical to those in `SceneWorks/Lens` β | |
| only the distilled `transformer/` differs. | |
| ## Layout | |
| ``` | |
| tokenizer/ tokenizer.json, tokenizer_config.json, special_tokens_map.json | |
| text_encoder/ model-0000*-of-00002.safetensors (MXFP4), model.safetensors.index.json, config.json | |
| transformer/ lens_turbo_bf16.safetensors | |
| vae/ diffusion_pytorch_model.safetensors, config.json | |
| ``` | |
| Sampling defaults for the distilled model: **4 steps, guidance 1.0** (β no CFG). | |