Instructions to use AiArtLab/qwen3-0.6b-4b-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/qwen3-0.6b-4b-adapter with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AiArtLab/qwen3-0.6b-4b-adapter", 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
comfyui/README: link the custom node repo, be precise about the diffusers gap
Browse filesThe conditioning tensor is bit-equal to example.py (checked: max abs diff 0.0,
(1, 251, 7680)), but the image is not pixel-identical to diffusers: ComfyUI
supplies its own text-position ids and 512-token padding on top of its sampler.
- comfyui/README.md +8 -5
comfyui/README.md
CHANGED
|
@@ -4,7 +4,8 @@ This folder contains a ComfyUI workflow that drives **FLUX.2-klein-4B** with the
|
|
| 4 |
**Qwen3-0.6B + adapter** text encoder instead of its native Qwen3-4B encoder.
|
| 5 |
|
| 6 |
- Workflow: [`flux2_klein_qwen3_06b_adapter.json`](flux2_klein_qwen3_06b_adapter.json)
|
| 7 |
-
- Custom node (the two `KleinAdapter` nodes):
|
|
|
|
| 8 |
|
| 9 |
## 1. Install the custom node
|
| 10 |
|
|
@@ -44,8 +45,10 @@ guidance 4.0.
|
|
| 44 |
|
| 45 |
## Notes
|
| 46 |
|
| 47 |
-
The node computes the text conditioning
|
| 48 |
repo (same chat template, same layer taps `2,9,14,18,23,27`, same fp32 adapter,
|
| 49 |
-
same `drop_first=5`)
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
| 4 |
**Qwen3-0.6B + adapter** text encoder instead of its native Qwen3-4B encoder.
|
| 5 |
|
| 6 |
- Workflow: [`flux2_klein_qwen3_06b_adapter.json`](flux2_klein_qwen3_06b_adapter.json)
|
| 7 |
+
- Custom node (the two `KleinAdapter` nodes):
|
| 8 |
+
[github.com/recoilme/klein-qwen3-adapter-comfyui](https://github.com/recoilme/klein-qwen3-adapter-comfyui)
|
| 9 |
|
| 10 |
## 1. Install the custom node
|
| 11 |
|
|
|
|
| 45 |
|
| 46 |
## Notes
|
| 47 |
|
| 48 |
+
The node computes the text conditioning identically to `example.py` in this
|
| 49 |
repo (same chat template, same layer taps `2,9,14,18,23,27`, same fp32 adapter,
|
| 50 |
+
same `drop_first=5`) — checked numerically, the two tensors are bit-equal
|
| 51 |
+
(`(1, 251, 7680)`, max abs diff 0.0). The image itself is then produced by
|
| 52 |
+
ComfyUI's own sampler (its noise, scheduler, text-position ids and 512-token
|
| 53 |
+
padding of the conditioning), so it is not pixel-identical to `diffusers` — the
|
| 54 |
+
same framework difference you'd see with the native klein encoder.
|