Instructions to use Freepik/F-Lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Freepik/F-Lite 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/F-Lite", 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
- Draw Things
- DiffusionBee
Upload f_lite.model.py
#8
by vladmandic - opened
if file is referenced from model_index.json, it should be part of the repo, otherwise makes model loading extremely unflexible.
ideprado changed pull request status to merged
I've reverted this change as was generating this problem with the original code https://github.com/fal-ai/f-lite/issues/22#issuecomment-3148960138