Add the condition_proj-weighted matrices, calibrated against what the DiT actually reads
Browse files- README.md +18 -2
- h3_qwen3vl_4b_CONDPROJ_tap24.pt +3 -0
- h3_qwen3vl_8b_CONDPROJ_tap24.pt +3 -0
README.md
CHANGED
|
@@ -47,6 +47,8 @@ Put them in `ComfyUI/models/clip_projections/`.
|
|
| 47 |
|
| 48 |
| File | Encoder it was calibrated on | Corpus | Test cosine |
|
| 49 |
|---|---|---|---|
|
|
|
|
|
|
|
| 50 |
| `h3_qwen3vl_4b_tap24.pt` | `qwen3vl_4b_bf16` | 2 000 prompts | 0.712 |
|
| 51 |
| `h3_qwen3vl_4b_tap24_200prompts.pt` | `qwen3vl_4b_bf16` | 200 prompts | 0.699 |
|
| 52 |
| `h3_qwen3vl_4b_int8convrot_tap24.pt` | `qwen3vl_4b_int8_convrot` | 240 prompts | 0.697 |
|
|
@@ -54,9 +56,23 @@ Put them in `ComfyUI/models/clip_projections/`.
|
|
| 54 |
| `h3_control_identity.pt` | β | β | control |
|
| 55 |
| `h3_control_zero.pt` | β | β | control |
|
| 56 |
|
| 57 |
-
*
|
| 58 |
|
| 59 |
-
The **8B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
## Measured results
|
| 62 |
|
|
|
|
| 47 |
|
| 48 |
| File | Encoder it was calibrated on | Corpus | Test cosine |
|
| 49 |
|---|---|---|---|
|
| 50 |
+
| `h3_qwen3vl_4b_CONDPROJ_tap24.pt` | `qwen3vl_4b_int8_convrot` | 240 prompts | 0.845 * |
|
| 51 |
+
| `h3_qwen3vl_8b_CONDPROJ_tap24.pt` | `qwen3vl_8b_nvfp4` | 203 prompts | 0.860 * |
|
| 52 |
| `h3_qwen3vl_4b_tap24.pt` | `qwen3vl_4b_bf16` | 2 000 prompts | 0.712 |
|
| 53 |
| `h3_qwen3vl_4b_tap24_200prompts.pt` | `qwen3vl_4b_bf16` | 200 prompts | 0.699 |
|
| 54 |
| `h3_qwen3vl_4b_int8convrot_tap24.pt` | `qwen3vl_4b_int8_convrot` | 240 prompts | 0.697 |
|
|
|
|
| 56 |
| `h3_control_identity.pt` | β | β | control |
|
| 57 |
| `h3_control_zero.pt` | β | β | control |
|
| 58 |
|
| 59 |
+
\* **measured in a different space β not comparable to the rows below.** See the next section.
|
| 60 |
|
| 61 |
+
The **8B matrices need an 8B encoder** β different input width, 4096 instead of 2560, so they are not interchangeable with the 4B ones. The node checks the width and refuses a mismatch.
|
| 62 |
+
|
| 63 |
+
Every matrix here works on **any variant of its own size**: the measured cosine gap between a bf16-calibrated matrix applied to an abliterated fp8 encoder is 0.0023. You do not need the exact checkpoint a matrix was calibrated on.
|
| 64 |
+
|
| 65 |
+
## The CONDPROJ matrices
|
| 66 |
+
|
| 67 |
+
**These are the ones the day's generation testing actually ran on**, including ref2va, and they are the recommended starting point.
|
| 68 |
+
|
| 69 |
+
The DiT does not consume the conditioning as it arrives: it first passes it through `condition_proj`, a `Linear(5120 β 5376)` feeding the token refiner. That layer's spectrum is very uneven β a factor of 45 between the top and bottom deciles of its singular values, and 52 % of the energy in 10 % of the directions. Plain ridge regression ignores this and spends as much effort reconstructing a direction the DiT will multiply by 0.10 as one it will multiply by 37.
|
| 70 |
+
|
| 71 |
+
The CONDPROJ matrices are calibrated against the **output** of that layer instead of its input, so the error being minimised is the error the DiT will actually see. The result is then mapped back to 5120 dimensions through the pseudo-inverse β the layer is injective, so the round trip loses nothing. **The output is still a standard conditioning tensor and the diffusion model is not modified.** Only the error metric changed.
|
| 72 |
+
|
| 73 |
+
Their cosine is measured in the 5376-dimensional space, which is why it cannot be compared with the unweighted figures. Judge them by generation, not by the number.
|
| 74 |
+
|
| 75 |
+
*Credit for the idea goes to u/stddealer on r/StableDiffusion, who pointed out that `condition_proj` was sitting there.*
|
| 76 |
|
| 77 |
## Measured results
|
| 78 |
|
h3_qwen3vl_4b_CONDPROJ_tap24.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f96f7e09f415ae15fc156e4f1be272e43f3ac76479842a88be2e90554e109953
|
| 3 |
+
size 52514257
|
h3_qwen3vl_8b_CONDPROJ_tap24.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fd7b871a641b8a6eb3207a76b39428f7e6a24d147b1f8d522bc46d65071df54
|
| 3 |
+
size 83983825
|