详情
推薦
v1.0 aio
v1.0 checkpoints
v1.0 unet q8
v1.0 - diffusion_models
Flux Mini 3B

Flux Mini 3B

45
7
234
#基礎模型
#FLUX

I'm not the original author of the model, created by TencentARC all credit goes to them.

Important Notes:

  • I have 8GB VRAM GPU and I saw times between 12 seconds and 120 seconds to generate an image between 512x512 to 1024x1024 so it depends what settings you use

  • I highly recommend switching from KSAMPLER to SHARKSAMPLER as it delivers way better results for this model https://huggingface.co/TencentARC/flux-mini/tree/main

    diffusion_models version

    • this is the original format as provided by the authors

    • This is a Flux Transformers Format based model that means Load Checkpoint node will not work in ComfyUI for this version

    • The file must be placed in the diffusion_models directory for it to be found by `Load Diffusion Model` node.

    • To use it you must use the Load Diffusion Model node to load the model and then just the traditional Flux setup for the rest will work.

    checkpoints version

    • this is the format that has been converted by me to work with Load Checkpoint node

    • This is still in Flux Transformers Format but has had the keys of the structure prefixed to work with Load Checkpoint

    • This file must be placed in the checkpoints directory for it to be found by the Load Checkpoint node.

    • To use it you must use the Load Checkpoint node to load the model, it does not have the CLIP and VAE baked in so you must still source that elsewhere

    • Use DualClipLoader and Load VAE to get those into your workflow as usual

    q8 version

    • this is the format that has been converted to unet format and then quantsized to q8 gguf

    • This file must be placed in the unet directory for it to be found by the UNET Loader node.

    • To use this you must have this third party extension installed Unet Loader (GGUF)

    • This reduces the file to 3GB in size and further improvements in speed and total VRAM requirements with only a 0.1% difference between this and the original file.

    aio version (all in one)

    • this is similar to the checkpoints format if you just want to use Load Checkpoint without having to also use DualClipLoader and Load VAE seperately

    • You can use this with the default workflow just pick the file and it should work out the box

    • Baked in T5 Model: t5xxl_fp8_e4m3fn.safetensors

    • Baked in CLIP-L: ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors

    • This one should deliver the fastest results ideally, q8 might still be faster, need further testing to determine.

A 3.2B MMDiT distilled from Flux-dev for efficient text-to-image generation


Nowadays, text-to-image (T2I) models are growing stronger but larger, which limits their practical applicability, especially on consumer-level devices. To bridge this gap, we distilled the 12B Flux-dev model into a 3.2B Flux-mini model, trying to preserve its strong image generation capabilities. Specifically, we prune the original Flux-dev by reducing its depth from 19 + 38 (number of double blocks and single blocks) to 5 + 10. The pruned model is further tuned with denoising and feature alignment objectives on a curated image-text dataset.

We empirically found that different blocks have different impacts on the generation quality, thus we initialize the student model with several most important blocks. The distillation process consists of three objectives: the denoise loss, the output alignment loss as well as the feature alignment loss. The feature alignment loss is designed in a way such that the output of block-x in the student model is encouraged to match that of block-4x in the teacher model. The distillation process is performed with 512x512 Laion images recaptioned with Qwen-VL in the first stage for 90k steps, and 1024x1024 images generated by Flux using the prompts in JourneyDB with another 90k steps.

Github link: https://github.com/TencentARC/flux-toolkits

查看译文

評分與評論

-- /5
0 個評分

尚未收到足夠的評分或評論

no-data
暫無數據
A
與模型對話
公告
2024-11-17
发布模型
2024-11-17
更新模型資訊
模型详情
類型
Checkpoint
发布時間
2024-11-17
基础模型
Flux.1 D
版本介绍

This version is the simplest to use, should work with the default workflow, no extra nodes.


Components

  • CLIP L: ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors

  • T5: t5xxl_fp8_e4m3fn.safetensors

  • Model: 'checkpoints' model aka flux-mini-prefixed.safetensors

This model has been packaged to include all the pieces needed to just work out of the box, additionally rather than using the base CLIP L model I've swapped it out for the upgraded fine tuned version that should deliver better text performance.

许可范围
來源: civitai

1. 轉载模型僅供學習與交流分享,其版權及最終解释權归原作者。

2. 模型原作者如需認領模型,請通過官方渠道联系海藝AI工作人員進行認證。我們致力於保護每一位創作者的權益。 點擊去認領

創作许可范围
在線生圖
進行融合
允许下载
商業许可范围
生成圖片可出售或用於商業目的
允许模型轉售或融合后出售
QR Code
下載SeaArt App
在移動端继續你的AI創作之旅