Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
flux2tiny — Distilled FLUX.2-klein-4B with MiniCPM5-1B Text Encoder
This repository contains the
trained adapter and LoRA weights
for flux2tiny,
a distilled version of
FLUX.2-klein-4B
that replaces the 4B-parameter Qwen3-4B text encoder with
MiniCPM5-1B
(1.08B parameters).
What's in this repo
File
Size
Description
adapter.safetensors
~23 MB
Projection adapter (3× Linear 1536→2560, concatenated to 7680)
transformer_lora/adapter_model.safetensors
~7.5 MB
PEFT LoRA weights (rank 16) for Flux2Transformer2DModel
# Clone the code repo# git clone https://github.com/ElMiloPy/flux2tiny.gitfrom pipeline import Flux2TinyPipeline
pipe = Flux2TinyPipeline(
adapter_path="path/to/adapter.safetensors",
lora_path="path/to/transformer_lora",
)
image = pipe("A cat sitting on a windowsill at sunset", height=512, width=512)
image.save("output.png")
Or via CLI:
python generate.py "A cat sitting on a windowsill at sunset" \
--adapter path/to/adapter.safetensors \
--lora path/to/transformer_lora \
--size 512x512
Training details
Trained via a 3-stage knowledge distillation pipeline:
Adapter pre-training
— MSE alignment between MiniCPM5-1B and Qwen3-4B hidden states
Teacher latent generation
— 15,000 latent-prompt pairs from the original FLUX.2 pipeline
Flow Matching LoRA distillation
— Joint training of adapter + transformer LoRA on teacher latents
flux2tiny-MiniCPM5-1B huggingface.co is an AI model on huggingface.co that provides flux2tiny-MiniCPM5-1B's model effect (), which can be used instantly with this Emilio407 flux2tiny-MiniCPM5-1B model. huggingface.co supports a free trial of the flux2tiny-MiniCPM5-1B model, and also provides paid use of the flux2tiny-MiniCPM5-1B. Support call flux2tiny-MiniCPM5-1B model through api, including Node.js, Python, http.
flux2tiny-MiniCPM5-1B huggingface.co is an online trial and call api platform, which integrates flux2tiny-MiniCPM5-1B's modeling effects, including api services, and provides a free online trial of flux2tiny-MiniCPM5-1B, you can try flux2tiny-MiniCPM5-1B online for free by clicking the link below.
Emilio407 flux2tiny-MiniCPM5-1B online free url in huggingface.co:
flux2tiny-MiniCPM5-1B is an open source model from GitHub that offers a free installation service, and any user can find flux2tiny-MiniCPM5-1B on GitHub to install. At the same time, huggingface.co provides the effect of flux2tiny-MiniCPM5-1B install, users can directly use flux2tiny-MiniCPM5-1B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
flux2tiny-MiniCPM5-1B install url in huggingface.co: