Downloads · 30 days
0
gandamu/flux2-klein-4b-qwen3-4b-webgpu
flux2-klein-4b-qwen3-4b-webgpu is a text-to-image model from gandamu. Use it when you need an image from a text prompt. The card lists the license as apache-2.0.
Quantized, browser-streamable repacks of [FLUX.2 [klein] 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) (rectified-flow image transformer + VAE) and Qwen3-4B (as the text encoder — hidden-state taps at…
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2026
Repo size
9.2 GB
Likes
0
Public
Click a slice to open those files.
.bin9.6 GB · 100%
From the Hugging Face model README
Quantized, browser-streamable repacks of FLUX.2 [klein] 4B (rectified-flow image transformer + VAE) and Qwen3-4B (as the text encoder — hidden-state taps at layers 9/18/27), packed for fully client-side WebGPU inference: no server-side compute, weights fetched with plain HTTP GETs and streamed straight into GPU buffers.
| bundle | contents | size | quantization |
|---|---|---|---|
flux2-q8/ | FLUX.2 klein transformer + VAE | ~4.0 GB | int8 g64 matmuls, f16 rest |
qwen3-q8/ | Qwen3-4B layers 0–26 + tokenizer | ~3.2 GB | int8 g64 |
qwen3-q4/ | Qwen3-4B layers 0–26 + tokenizer | ~1.85 GB | int4 g64, int8 embeddings |
gdino-q8/ | Grounding DINO base (full detector) | ~328 MB | int8 g64, Swin at f16 |
sam2-q8/ | SAM 2.1 hiera-small (image path) | ~41 MB | int8 g64 |
The bundle layout is purpose-built for streaming into WebGPU (not a
standard interchange format like safetensors or GGUF): each bundle
directory holds a manifest.json (tensor table, shard offsets,
tokenizer/chat-template segments) plus shard_NNN.bin files (~250 MB
each) — CDN/CORS friendly, cacheable as immutable content.
Validated end-to-end against the original-weights reference implementation (fp32 eager) on identical inputs:
An int4 variant of the image transformer failed these gates (velocity cosine 0.96) and is deliberately not published.
A consuming runtime needs WebGPU with ~8 GB of GPU/unified memory for
flux2-q8 + qwen3-q4; shader-f16 is used when available. Validated on
Chrome (Vulkan, D3D12, and Metal backends) and Safari 26+.
Character-reference conditioning (multi-image) is supported natively
by the packed transformer weights.
Both source models are licensed under the Apache License 2.0; these repacks are derivative works distributed under the same license. See NOTICE for required attributions and the full statement of modifications (quantization parameters, omitted layers, format changes).
Not affiliated with or endorsed by Black Forest Labs Inc., Alibaba Cloud, IDEA-Research, or Meta Platforms. "FLUX" is a trademark of Black Forest Labs Inc., used here only to describe the origin of the weights.