Instructions to use Comfy-Org/Lens with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use Comfy-Org/Lens with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Will there be a Lens-Base safetensor?
#3
by jwallacefluxy - opened
Hi - I see files for "Lens" and "Lens-Turbo" - thank you for providing those:lens_bf16.safetensorslens_mxfp8.safetensorslens_turbo_bf16.safetensorslens_turbo_mxfp8.safetensors
Will anyone be providing the file for Lens-Base? If not, can someone share how I can create it myself? Thanks!
This worked for me:
- Download Lens-Base:
huggingface-cli download microsoft/Lens-Base --include="transformer/*" --local-dir Lens-Base - Merge: merge_lens_base.py
- pip install
convert-to-quantin comfy venv. - Convert to mxfp8:
ctq -i lens_base_bf16.safetensors -o lens_base_mxfp8.safetensors --mxfp8 --comfy_quant --save-quant-metadata --simple --low-memory --lens
This is what I got: lens_base_mxfp8.safetensors