Instructions to use Freepik/flux.1-lite-8B-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Freepik/flux.1-lite-8B-alpha with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Freepik/flux.1-lite-8B-alpha", 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
GUIDE to run on LOW VRAM here -tested on 16GB card
run COMFYUI with this command from where your normal executable batch file is (it must have python_embeded as a subfolder else change path to your actualll python installation for comfy)
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fp8_e4m3fn-text-enc --fp8_e4m3fn-unet --front-end-version Comfy-Org/ComfyUI_frontend@latest
it forces the FP8 encoding , it may work with SD35 as well (not tested)
or you can save the command to a bat or cmd (on windows) file in the folder where your regular comfy starting batch file is.
Use a regular massive FLUX workflow (loaders) with regular params.
Dont change to FP8 in any of the wflow params.
run COMFYUI with this command from where your normal executable batch file is (it must have python_embeded as a subfolder else change path to your actualll python installation for comfy)
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fp8_e4m3fn-text-enc --fp8_e4m3fn-unet --front-end-version Comfy-Org/ComfyUI_frontend@latest
it forces the FP8 encoding , it may work with SD35 as well (not tested)
or you can save the command to a
batorcmd(on windows) file in the folder where your regular comfy starting batch file is.Use a regular massive FLUX workflow (loaders) with regular params.
Dont change to FP8 in any of the wflow params.
it also works for SD35