SuperAPI AI Directory

Flux.1 Lite - A lightweight AI model launched by Freepik

Author: AI小集 · Original source: AI工具集

What is Flux.1 Lite

Flux.1 Lite is a lightweight AI model launched by the Freepik team and is currently in alpha version. Flux.1 Lite is based on an 8-billion-parameter transformer architecture, extracted from theFLUX.1-devmodel. The Flux.1 Lite model weight file size is 16.3 GB, which reduces RAM usage by 7GB compared to the original model, improves running speed by 23%, and maintains the same precision as the original model (bfloat16). The R&D team's goal is to further optimize the model so it can run on 24 GB consumer-grade GPU cards, maintain the original precision, run faster, and make high-quality AI models a tool that everyone can use. The release of Flux.1 Lite allows users to experience high-quality image generation in resource-limited environments.

Flux.1 Lite

Main features of Flux.1 Lite

  • Image generation: Generate detailed images based on text descriptions.
  • Resource optimization: Reduce GPU memory usage, suitable for running on consumer-grade GPUs.
  • Speed improvement: Compared with the original model, running speed is increased by 23%.
  • Precision maintenance: In the lightweight version, maintain the same bfloat16 precision as the original model.
  • Easy deployment: Run on common hardware, making it easy for developers and users to deploy and use.

Technical principles of Flux.1 Lite

  • Parameter optimization: Based on analyzing each block in the model, remove or optimize parts that contribute less to the final result, reducing model size.
  • Mean squared error (MSE) analysis: Use MSE to quantify the contribution of each block in the model to the output image, identifying blocks that can be removed without affecting image quality.
  • transformer architecture: Process and generate images based on the transformer architecture, a model architecture that has been very successful in the field of natural language processing.
  • Precision maintenance: During model compression, use technical means to maintain the model's precision and ensure generated image quality.
  • VRAM and speed optimization: Based on optimizing the model structure and algorithms, reduce VRAM usage and improve processing speed to adapt to resource-constrained environments.

How to use Flux.1 Lite

Using Flux.1 Lite in ComfyUI is no different from native Flux-Dev; you only need to replace the Unet loading model. Download the model flux.1-lite-8B-alpha.safetensors and place it in the /ComfyUI/models/unet directory.

HuggingFace model repository for flux.1-lite-8B-alpha.safetensors:https://huggingface.co/Freepik/flux.1-lite-8B-alpha/blob/main/flux.1-lite-8B-alpha.safetensors

Application scenarios of Flux.1 Lite

  • Personal entertainment and creation: Users use Flux.1 Lite to generate personalized images, such as anime-style characters, landscape paintings, etc., for personal entertainment or social media sharing.
  • Education and learning: In the field of education, Flux.1 Lite can serve as a teaching tool to help students understand the principles of image generation and the applications of AI technology.
  • Game development: Game developers use Flux.1 Lite to quickly generate image assets such as in-game characters and scenes, accelerating the game development process.
  • Digital art: Artists and designers use Flux.1 Lite to create digital art works and explore new artistic styles and forms of expression.
  • Advertising and marketing: Marketers use Flux.1 Lite to generate attractive advertising images for use on social media, websites, or printed materials.