Run this model with HF Jobs
Run NicoLab28/ClipProj-MiniMax-H3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/NicoLab28/ClipProj-MiniMax-H3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/NicoLab28/ClipProj-MiniMax-H3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Restore the .pt files alongside the safetensors until the reader has propagated
Browse filesFiles changed (9)
- README.md+25-25
- h3_qwen3vl_4b_int8convrot_tap24.ptAdded+3
- h3_qwen3vl_4b_int8convrot_tap24.safetensorsAdded+3
- h3_qwen3vl_4b_tap24.ptAdded+3
- h3_qwen3vl_4b_tap24.safetensorsAdded+3
- h3_qwen3vl_4b_tap24_200prompts.ptAdded+3
- h3_qwen3vl_4b_tap24_200prompts.safetensorsAdded+3
- h3_qwen3vl_8b_tap24.ptAdded+3
- h3_qwen3vl_8b_tap24.safetensorsAdded+3
52 unmodified lines5354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979852 unmodified linesPut them in `ComfyUI/models/clip_projections/`.**Take the four files at the root.** Everything in `obsolete/` is superseded and kept only so the comparison can be reproduced.| File | Use it for | Encoder | Corpus | Test cosine ||---|---|---|---|---|| `h3_qwen3vl_4b_CONDPROJ_tap24.safetensors` | **text prompts, the default** | any Qwen3-VL-4B | 240 prompts | 0.845 * || `h3_qwen3vl_8b_CONDPROJ_tap24.safetensors` | **ref2va and image references** | any Qwen3-VL-8B | 203 prompts | 0.860 * || `h3_control_identity.safetensors` | control β run it once | β | β | β || `h3_control_zero.safetensors` | control β run it once | β | β | β |\* measured in a different space from the rows below β **the two sets of numbers cannot be compared**. See the next section.<details><summary><code>obsolete/</code> β the unweighted matrices, kept for comparison</summary>| File | Encoder | Corpus | Test cosine ||---|---|---|---|| `obsolete/h3_qwen3vl_4b_tap24.safetensors` | `qwen3vl_4b_bf16` | 2 000 prompts | 0.712 || `obsolete/h3_qwen3vl_4b_tap24_200prompts.safetensors` | `qwen3vl_4b_bf16` | 200 prompts | 0.699 || `obsolete/h3_qwen3vl_4b_int8convrot_tap24.safetensors` | `qwen3vl_4b_int8_convrot` | 240 prompts | 0.697 || `obsolete/h3_qwen3vl_8b_tap24.safetensors` | `qwen3vl_8b_nvfp4` | 203 prompts | 0.731 |These were the v0.1.1 release. They work, and the 2 000-prompt one is calibrated on eight times more data than anything at the root β but they minimise the wrong error, and the root matrices are the ones that generation testing actually ran on. Keep them if you want to A/B the weighting yourself.</details>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.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.## The CONDPROJ matrices**These are the ones the day's generation testing actually ran on**, including ref2va, and they are the recommended starting point.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.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.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.*Credit for the idea goes to u/stddealer on r/StableDiffusion, who pointed out that `condition_proj` was sitting there.*## Measured results52 unmodified lines5354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979852 unmodified linesPut them in `ComfyUI/models/clip_projections/`.**Start with `h3_qwen3vl_4b_tap24`.** It is calibrated on eight times more data than anything else here.| File | Use it for | Encoder | Corpus | Test cosine ||---|---|---|---|---|| `h3_qwen3vl_4b_tap24` | **the default** | any Qwen3-VL-4B | 2 000 prompts | 0.712 || `h3_qwen3vl_8b_tap24` | any 8B encoder | any Qwen3-VL-8B | 203 prompts | 0.731 || `h3_control_identity` | control β run it once | β | β | β || `h3_control_zero` | control β run it once | β | β | β || `h3_qwen3vl_4b_CONDPROJ_tap24` | see below | any Qwen3-VL-4B | 240 prompts | 0.845 * || `h3_qwen3vl_8b_CONDPROJ_tap24` | see below | any Qwen3-VL-8B | 203 prompts | 0.860 * || `h3_qwen3vl_4b_int8convrot_tap24` | comparison only | any Qwen3-VL-4B | 240 prompts | 0.697 || `h3_qwen3vl_4b_tap24_200prompts` | comparison only | any Qwen3-VL-4B | 200 prompts | 0.699 |\* measured in a different space and **not comparable to the other rows**. See below, and do not read it as better.Every matrix 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. The 8B matrices need an 8B encoder though, 4096 input dimensions instead of 2560, and the node checks and refuses a mismatch.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.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.## The CONDPROJ matrices, and why they are not the defaultThey are kept because the comparison posted on r/StableDiffusion ran on them, so the links have to keep working. They are **not better**, and the story is worth telling because the mistake was instructive.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 on a direction the DiT will multiply by 0.10 as on one it will multiply by 37. Calibrating against the **output** of that layer instead, then mapping back through the pseudo-inverse, should therefore minimise the error the DiT actually sees. The cosine went from 0.697 to 0.845 on the 4B and 0.731 to 0.860 on the 8B.Then I compared what the two matrices actually output, on random inputs:```4B CONDPROJ against unweighted, same corpus cosine 0.9999988B CONDPROJ against unweighted, same corpus cosine 0.9999994B CONDPROJ against the 2000-prompt matrix cosine 0.744034```They are the same function. The entire gain was an artefact of measuring in a different space: applying an invertible transform to both vectors before taking a cosine flatters agreement on the dominant directions.The reason is simple in hindsight. Unregularised least squares is invariant to an invertible linear transform of the targets, so fitting in one space and mapping back recovers the same map. Only the ridge penalty breaks that invariance, and with 37 851 training tokens against Ξ» = 1000 it barely binds. The idea would matter with far less data or far stronger regularisation. It does not matter here.*The idea came from u/stddealer on r/StableDiffusion, and it was a good one. The measurement is on me: I published the cosine before checking whether the matrix had changed at all.*## Measured results
123version https://git-lfs.github.com/spec/v1oid sha256:11aa0b0f14c8dd5a2f0c2206d3a44dabebbe4167ffb13bee0c23817d2ceab587size 52514229123version https://git-lfs.github.com/spec/v1oid sha256:21080e95bbe2bee7211fe853935646b0d18c69154fd6cf96263801866ba16b39size 52511488123version https://git-lfs.github.com/spec/v1oid sha256:941b94675714985232346ffb9e06cf8a3dfb1c61cfa6e2fb24a733dabec60df1size 52514021123version https://git-lfs.github.com/spec/v1oid sha256:f0f7ecaf4f431f62055888cbd214c607bf4215feb002ef4aa43a3ba6205ac325size 52511480123version https://git-lfs.github.com/spec/v1oid sha256:74a78d637e3799bd380c772c016e7a8e577216699c191d703c331d9c541cda8bsize 52514089123version https://git-lfs.github.com/spec/v1oid sha256:f73417573fc34474058d0f1f15e8903970898682d9308e93342aa93105b6966fsize 52511320123version https://git-lfs.github.com/spec/v1oid sha256:363d15189c5a5fdd67d831e613108e9e9babd88fd2d09e6a14727493f89b4f33size 83983589123version https://git-lfs.github.com/spec/v1oid sha256:c589f977406ec2587809e7846193db769224b8bed0a2df62334351c01322e03asize 83981048README.md+25-25
h3_qwen3vl_4b_int8convrot_tap24.ptAdded+3
h3_qwen3vl_4b_int8convrot_tap24.safetensorsAdded+3
h3_qwen3vl_4b_tap24.ptAdded+3
h3_qwen3vl_4b_tap24.safetensorsAdded+3
h3_qwen3vl_4b_tap24_200prompts.ptAdded+3
h3_qwen3vl_4b_tap24_200prompts.safetensorsAdded+3
h3_qwen3vl_8b_tap24.ptAdded+3
h3_qwen3vl_8b_tap24.safetensorsAdded+3