Instructions to use KBlueLeaf/MOSS-Image-FP16-fixed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use KBlueLeaf/MOSS-Image-FP16-fixed with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("KBlueLeaf/MOSS-Image-FP16-fixed", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Count the fold's subnormal and flushed weights over the scaled elements only
Browse filesFiles changed (11)
102 unmodified lines1031041051061071081091101119 unmodified lines121122123124125126127128129130131132133134135136102 unmodified lines| norm eps of the joint blocks, the text refiner and `final_norm_video` | x c^2 (exact) or kept (stock) || q / k / v / o, `ffn_up_gate`, `ffn_down`, every other weight | unchanged |c = 2^-4 is a power of two: the scaling is exact in fp32 and bf16. In fp16, 2.5% of the138.8M scaled values become subnormal (about 5.4k of the 5.08 billion weights flush tozero).The o / ffn_down outputs peak at 1.3k / 0.7k before their gate, so they need nopre-gate scale (s = 1).9 unmodified lines| c | fp16 stream max | headroom | LPIPS vs fp32 | scaled weights subnormal | stock-eps rel. error || --- | --- | --- | --- | --- | --- || official bf16 | 61,184 | 1.07 | 0.135 | | || 1/2 | 31,056 | 2.1 | 0.033 | 0.46% | 7.1e-6 || 1/4 | 15,528 | 4.2 | 0.044 | 0.77% | 7.5e-6 || 1/8 | 7,764 | 8.4 | 0.033 | 1.36% | 3.2e-5 || **1/16** | **3,882** | **16.9** | **0.040** | **2.50%** | **1.3e-4** || 1/32 | 1,941 | 33.7 | 0.042 | 4.61% | 5.2e-4 || 1/64 | 970 | 67.5 | 0.034 | 8.53% | 2.2e-3 || 1/256 | 243 | 270.0 | 0.157 | 27.93% | 2.6e-2 |(Base. SFT: same headroom and underflow, LPIPS 0.008-0.019 from 1/2 to 1/64, 0.068 at1/256, official bf16 0.064; [reports/sft_tables.md](reports/sft_tables.md).)102 unmodified lines1031041051061071081091101111129 unmodified lines122123124125126127128129130131132133134135136137102 unmodified lines| norm eps of the joint blocks, the text refiner and `final_norm_video` | x c^2 (exact) or kept (stock) || q / k / v / o, `ffn_up_gate`, `ffn_down`, every other weight | unchanged |c = 2^-4 is a power of two: the scaling is exact in fp32 and bf16. In fp16, 3.2% of the101.08M scaled values become subnormal (3.25M) and 1,620 (Base) / 1,651 (SFT) flush tozero; with the bf16 -> fp16 cast of the other weights, 5,352 / 5,478 of the 5.08 billionweights are zero where the official weight is not.The o / ffn_down outputs peak at 1.3k / 0.7k before their gate, so they need nopre-gate scale (s = 1).9 unmodified lines| c | fp16 stream max | headroom | LPIPS vs fp32 | scaled weights subnormal or flushed | stock-eps rel. error || --- | --- | --- | --- | --- | --- || official bf16 | 61,184 | 1.07 | 0.135 | | || 1/2 | 31,056 | 2.1 | 0.033 | 0.42% | 7.1e-6 || 1/4 | 15,528 | 4.2 | 0.044 | 0.83% | 7.5e-6 || 1/8 | 7,764 | 8.4 | 0.033 | 1.65% | 3.2e-5 || **1/16** | **3,882** | **16.9** | **0.040** | **3.22%** | **1.3e-4** || 1/32 | 1,941 | 33.7 | 0.042 | 6.12% | 5.2e-4 || 1/64 | 970 | 67.5 | 0.034 | 11.49% | 2.2e-3 || 1/256 | 243 | 270.0 | 0.157 | 38.14% | 2.6e-2 |(Base. SFT: same headroom and underflow, LPIPS 0.008-0.019 from 1/2 to 1/64, 0.068 at1/256, official bf16 0.064; [reports/sft_tables.md](reports/sft_tables.md).)
9161 unmodified lines91629163916491659166916719 unmodified lines91879188918991909191919291939194919591969197919891999200920192029203305 unmodified lines95099510951195129513951419 unmodified lines95349535953695379538953995409541954295439544954595469547954895499550305 unmodified lines98569857985898599860986119 unmodified lines98819882988398849885988698879888988998909891989298939894989598969897305 unmodified lines10203102041020510206102071020819 unmodified lines1022810229102301023110232102331023410235102361023710238102391024010241102421024310244305 unmodified lines10550105511055210553105541055519 unmodified lines1057510576105771057810579105801058110582105831058410585105861058710588105891059010591305 unmodified lines10897108981089910900109011090219 unmodified lines1092210923109241092510926109271092810929109301093110932109331093410935109361093710938305 unmodified lines11244112451124611247112481124919 unmodified lines1126911270112711127211273112741127511276112771127811279112801128111282112831128411285305 unmodified lines11591115921159311594115951159619 unmodified lines1161611617116181161911620116211162211623116241162511626116271162811629116301163111632124 unmodified lines1175711758117591176011761117629161 unmodified lines}],"weights_c1": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 53270,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 150,"subnormal": 336591,"inf": 0}},"total": {"n": 138842112,"flushed": 191,"subnormal": 432499,"inf": 0}},305 unmodified lines"mean_psnr": 36.49634850461239,"mean_latent_cos": 0.975575715303421,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 106334,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 207,"subnormal": 450965,"inf": 0}},"total": {"n": 138842112,"flushed": 298,"subnormal": 642918,"inf": 0}}305 unmodified lines"mean_psnr": 37.72274338602645,"mean_latent_cos": 0.964947834610939,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 213033,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 324,"subnormal": 678909,"inf": 0}},"total": {"n": 138842112,"flushed": 514,"subnormal": 1063378,"inf": 0}}305 unmodified lines"mean_psnr": 36.093553265707605,"mean_latent_cos": 0.9755780845880508,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 426002,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 547,"subnormal": 1120890,"inf": 0}},"total": {"n": 138842112,"flushed": 915,"subnormal": 1889366,"inf": 0}}305 unmodified lines"mean_psnr": 34.733150943427255,"mean_latent_cos": 0.9713221043348312,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 853015,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 981,"subnormal": 1933480,"inf": 0}},"total": {"n": 138842112,"flushed": 1717,"subnormal": 3470904,"inf": 0}}305 unmodified lines"mean_psnr": 36.679217827092145,"mean_latent_cos": 0.9706204235553741,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 1705852,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 1979,"subnormal": 3326366,"inf": 0}},"total": {"n": 138842112,"flushed": 3469,"subnormal": 6400665,"inf": 0}}305 unmodified lines"mean_psnr": 33.133098774391875,"mean_latent_cos": 0.9767801016569138,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 3410704,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 3759,"subnormal": 5690892,"inf": 0}},"total": {"n": 138842112,"flushed": 6750,"subnormal": 11834180,"inf": 0}}305 unmodified lines"mean_psnr": 23.12785569536217,"mean_latent_cos": 0.875248983502388,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 13384816,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 14336,"subnormal": 14785296,"inf": 0}},"total": {"n": 138842112,"flushed": 26343,"subnormal": 38748990,"inf": 0}}124 unmodified lines58.15961478928628,57.3230080439272]}},"quality": {9161 unmodified lines916291639164916591669167916819 unmodified lines91889189919091919192919391949195919691979198919992009201920292039204305 unmodified lines951095119512951395149515951619 unmodified lines95369537953895399540954195429543954495459546954795489549955095519552305 unmodified lines985898599860986198629863986419 unmodified lines98849885988698879888988998909891989298939894989598969897989898999900305 unmodified lines1020610207102081020910210102111021219 unmodified lines1023210233102341023510236102371023810239102401024110242102431024410245102461024710248305 unmodified lines1055410555105561055710558105591056019 unmodified lines1058010581105821058310584105851058610587105881058910590105911059210593105941059510596305 unmodified lines1090210903109041090510906109071090819 unmodified lines1092810929109301093110932109331093410935109361093710938109391094010941109421094310944305 unmodified lines1125011251112521125311254112551125619 unmodified lines1127611277112781127911280112811128211283112841128511286112871128811289112901129111292305 unmodified lines1159811599116001160111602116031160419 unmodified lines1162411625116261162711628116291163011631116321163311634116351163611637116381163911640124 unmodified lines1176511766117671176811769117701177111772117731177411775117769161 unmodified lines}],"weights_c1": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 53270,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 53,"subnormal": 114925,"inf": 0}},"total": {"n": 101081088,"flushed": 94,"subnormal": 210833,"inf": 0}},305 unmodified lines"mean_psnr": 36.49634850461239,"mean_latent_cos": 0.975575715303421,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 106334,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 110,"subnormal": 229299,"inf": 0}},"total": {"n": 101081088,"flushed": 201,"subnormal": 421252,"inf": 0}}305 unmodified lines"mean_psnr": 37.72274338602645,"mean_latent_cos": 0.964947834610939,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 213033,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 227,"subnormal": 457243,"inf": 0}},"total": {"n": 101081088,"flushed": 417,"subnormal": 841712,"inf": 0}}305 unmodified lines"mean_psnr": 36.093553265707605,"mean_latent_cos": 0.9755780845880508,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 426002,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 450,"subnormal": 899224,"inf": 0}},"total": {"n": 101081088,"flushed": 818,"subnormal": 1667700,"inf": 0}}305 unmodified lines"mean_psnr": 34.733150943427255,"mean_latent_cos": 0.9713221043348312,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 853015,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 884,"subnormal": 1711814,"inf": 0}},"total": {"n": 101081088,"flushed": 1620,"subnormal": 3249238,"inf": 0}}305 unmodified lines"mean_psnr": 36.679217827092145,"mean_latent_cos": 0.9706204235553741,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 1705852,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 1882,"subnormal": 3104700,"inf": 0}},"total": {"n": 101081088,"flushed": 3372,"subnormal": 6178999,"inf": 0}}305 unmodified lines"mean_psnr": 33.133098774391875,"mean_latent_cos": 0.9767801016569138,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 3410704,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 3662,"subnormal": 5469226,"inf": 0}},"total": {"n": 101081088,"flushed": 6653,"subnormal": 11612514,"inf": 0}}305 unmodified lines"mean_psnr": 23.12785569536217,"mean_latent_cos": 0.875248983502388,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 13384816,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 14239,"subnormal": 14563630,"inf": 0}},"total": {"n": 101081088,"flushed": 26246,"subnormal": 38527324,"inf": 0}}124 unmodified lines58.15961478928628,57.3230080439272]},"fixed_file_zero_where_official_nonzero": {"n": 5082308624,"flushed_by_fold": 1717,"flushed_by_cast": 3635,"subnormal": 10887457}},"quality": {
15 unmodified lines1617181920212223242526272815 unmodified lines| c | fp16 stream max | headroom | non-finite | LPIPS vs fp32 (4 img) | PSNR | latent cos | scaled weights subnormal / 0 | stream subnormal | stock-eps rel err || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || 1/2 | 31,056 | 2.1 | 0 / 189 | 0.0330 | 36.50 | 0.9756 | 0.46% | 4.37e-05 | 7.1e-06 || 1/4 | 15,528 | 4.2 | 0 / 189 | 0.0440 | 37.72 | 0.9649 | 0.77% | 8.75e-05 | 7.5e-06 || 1/8 | 7,764 | 8.4 | 0 / 189 | 0.0331 | 36.09 | 0.9756 | 1.36% | 1.75e-04 | 3.2e-05 || 1/16 (chosen) | 3,882 | 16.9 | 0 / 189 | 0.0402 | 34.73 | 0.9713 | 2.50% | 3.50e-04 | 1.3e-04 || 1/32 | 1,941 | 33.7 | 0 / 189 | 0.0424 | 36.68 | 0.9706 | 4.61% | 7.00e-04 | 5.2e-04 || 1/64 | 970 | 67.5 | 0 / 189 | 0.0344 | 33.13 | 0.9768 | 8.53% | 1.40e-03 | 2.2e-03 || 1/256 | 243 | 270.0 | 0 / 189 | 0.1568 | 23.13 | 0.8752 | 27.93% | 5.61e-03 | 2.6e-02 || official bf16 | | | | 0.1353 | 25.18 | 0.8902 | | | |## Quality, kohakumoss (vs fp32; fix vs bf16 last)15 unmodified lines1617181920212223242526272815 unmodified lines| c | fp16 stream max | headroom | non-finite | LPIPS vs fp32 (4 img) | PSNR | latent cos | scaled weights subnormal / 0 | stream subnormal | stock-eps rel err || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || 1/2 | 31,056 | 2.1 | 0 / 189 | 0.0330 | 36.50 | 0.9756 | 0.42% | 4.37e-05 | 7.1e-06 || 1/4 | 15,528 | 4.2 | 0 / 189 | 0.0440 | 37.72 | 0.9649 | 0.83% | 8.75e-05 | 7.5e-06 || 1/8 | 7,764 | 8.4 | 0 / 189 | 0.0331 | 36.09 | 0.9756 | 1.65% | 1.75e-04 | 3.2e-05 || 1/16 (chosen) | 3,882 | 16.9 | 0 / 189 | 0.0402 | 34.73 | 0.9713 | 3.22% | 3.50e-04 | 1.3e-04 || 1/32 | 1,941 | 33.7 | 0 / 189 | 0.0424 | 36.68 | 0.9706 | 6.12% | 7.00e-04 | 5.2e-04 || 1/64 | 970 | 67.5 | 0 / 189 | 0.0344 | 33.13 | 0.9768 | 11.49% | 1.40e-03 | 2.2e-03 || 1/256 | 243 | 270.0 | 0 / 189 | 0.1568 | 23.13 | 0.8752 | 38.14% | 5.61e-03 | 2.6e-02 || official bf16 | | | | 0.1353 | 25.18 | 0.8902 | | | |## Quality, kohakumoss (vs fp32; fix vs bf16 last)
9161 unmodified lines91629163916491659166916719 unmodified lines91879188918991909191919291939194919591969197919891999200920192029203305 unmodified lines95099510951195129513951419 unmodified lines95349535953695379538953995409541954295439544954595469547954895499550305 unmodified lines98569857985898599860986119 unmodified lines98819882988398849885988698879888988998909891989298939894989598969897305 unmodified lines10203102041020510206102071020819 unmodified lines1022810229102301023110232102331023410235102361023710238102391024010241102421024310244305 unmodified lines10550105511055210553105541055519 unmodified lines1057510576105771057810579105801058110582105831058410585105861058710588105891059010591305 unmodified lines10897108981089910900109011090219 unmodified lines1092210923109241092510926109271092810929109301093110932109331093410935109361093710938305 unmodified lines11244112451124611247112481124919 unmodified lines1126911270112711127211273112741127511276112771127811279112801128111282112831128411285305 unmodified lines11591115921159311594115951159619 unmodified lines1161611617116181161911620116211162211623116241162511626116271162811629116301163111632124 unmodified lines1175711758117591176011761117629161 unmodified lines}],"weights_c1": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 53422,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 190,"subnormal": 337038,"inf": 0}},"total": {"n": 138842112,"flushed": 244,"subnormal": 433251,"inf": 0}},305 unmodified lines"mean_psnr": 41.04961644250143,"mean_latent_cos": 0.9874557554721832,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 106619,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 237,"subnormal": 451518,"inf": 0}},"total": {"n": 138842112,"flushed": 339,"subnormal": 643927,"inf": 0}}305 unmodified lines"mean_psnr": 42.4861378894998,"mean_latent_cos": 0.9955446124076843,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 213028,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 341,"subnormal": 678477,"inf": 0}},"total": {"n": 138842112,"flushed": 534,"subnormal": 1062483,"inf": 0}}305 unmodified lines"mean_psnr": 42.06087534015283,"mean_latent_cos": 0.9943786561489105,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 426486,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 560,"subnormal": 1120628,"inf": 0}},"total": {"n": 138842112,"flushed": 931,"subnormal": 1889002,"inf": 0}}305 unmodified lines"mean_psnr": 40.28086067630669,"mean_latent_cos": 0.9876711666584015,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 853903,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 1006,"subnormal": 1933500,"inf": 0}},"total": {"n": 138842112,"flushed": 1764,"subnormal": 3471408,"inf": 0}}305 unmodified lines"mean_psnr": 39.28442677892946,"mean_latent_cos": 0.9889630973339081,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 1704869,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 1890,"subnormal": 3326950,"inf": 0}},"total": {"n": 138842112,"flushed": 3428,"subnormal": 6400298,"inf": 0}}305 unmodified lines"mean_psnr": 41.92699497266081,"mean_latent_cos": 0.9941515028476715,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 3410081,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 3726,"subnormal": 5691802,"inf": 0}},"total": {"n": 138842112,"flushed": 6783,"subnormal": 11833821,"inf": 0}}305 unmodified lines"mean_psnr": 28.1294966210877,"mean_latent_cos": 0.9613417834043503,"weights": {"families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 13384585,"inf": 0},"shared_block_modulation": {"n": 56641536,"flushed": 14533,"subnormal": 14786231,"inf": 0}},"total": {"n": 138842112,"flushed": 26763,"subnormal": 38749974,"inf": 0}}124 unmodified lines59.040716656466685,56.749827176563244]}},"quality": {9161 unmodified lines916291639164916591669167916819 unmodified lines91889189919091919192919391949195919691979198919992009201920292039204305 unmodified lines951095119512951395149515951619 unmodified lines95369537953895399540954195429543954495459546954795489549955095519552305 unmodified lines985898599860986198629863986419 unmodified lines98849885988698879888988998909891989298939894989598969897989898999900305 unmodified lines1020610207102081020910210102111021219 unmodified lines1023210233102341023510236102371023810239102401024110242102431024410245102461024710248305 unmodified lines1055410555105561055710558105591056019 unmodified lines1058010581105821058310584105851058610587105881058910590105911059210593105941059510596305 unmodified lines1090210903109041090510906109071090819 unmodified lines1092810929109301093110932109331093410935109361093710938109391094010941109421094310944305 unmodified lines1125011251112521125311254112551125619 unmodified lines1127611277112781127911280112811128211283112841128511286112871128811289112901129111292305 unmodified lines1159811599116001160111602116031160419 unmodified lines1162411625116261162711628116291163011631116321163311634116351163611637116381163911640124 unmodified lines1176511766117671176811769117701177111772117731177411775117769161 unmodified lines}],"weights_c1": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 53422,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 77,"subnormal": 115110,"inf": 0}},"total": {"n": 101081088,"flushed": 131,"subnormal": 211323,"inf": 0}},305 unmodified lines"mean_psnr": 41.04961644250143,"mean_latent_cos": 0.9874557554721832,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 106619,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 124,"subnormal": 229590,"inf": 0}},"total": {"n": 101081088,"flushed": 226,"subnormal": 421999,"inf": 0}}305 unmodified lines"mean_psnr": 42.4861378894998,"mean_latent_cos": 0.9955446124076843,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 213028,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 228,"subnormal": 456549,"inf": 0}},"total": {"n": 101081088,"flushed": 421,"subnormal": 840555,"inf": 0}}305 unmodified lines"mean_psnr": 42.06087534015283,"mean_latent_cos": 0.9943786561489105,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 426486,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 447,"subnormal": 898700,"inf": 0}},"total": {"n": 101081088,"flushed": 818,"subnormal": 1667074,"inf": 0}}305 unmodified lines"mean_psnr": 40.28086067630669,"mean_latent_cos": 0.9876711666584015,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 853903,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 893,"subnormal": 1711572,"inf": 0}},"total": {"n": 101081088,"flushed": 1651,"subnormal": 3249480,"inf": 0}}305 unmodified lines"mean_psnr": 39.28442677892946,"mean_latent_cos": 0.9889630973339081,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 1704869,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 1777,"subnormal": 3105022,"inf": 0}},"total": {"n": 101081088,"flushed": 3315,"subnormal": 6178370,"inf": 0}}305 unmodified lines"mean_psnr": 41.92699497266081,"mean_latent_cos": 0.9941515028476715,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 3410081,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 3613,"subnormal": 5469874,"inf": 0}},"total": {"n": 101081088,"flushed": 6670,"subnormal": 11611893,"inf": 0}}305 unmodified lines"mean_psnr": 28.1294966210877,"mean_latent_cos": 0.9613417834043503,"weights": {"basis": "official weights x c, cast to fp16, over the fold's scaled weights","families": {"video_embedder": {"n": 396288,19 unmodified lines"subnormal": 13384585,"inf": 0},"shared_block_modulation (gate_attn, gate_ffn rows)": {"n": 18880512,"flushed": 14420,"subnormal": 14564303,"inf": 0}},"total": {"n": 101081088,"flushed": 26650,"subnormal": 38528046,"inf": 0}}124 unmodified lines59.040716656466685,56.749827176563244]},"fixed_file_zero_where_official_nonzero": {"n": 5082308624,"flushed_by_fold": 1764,"flushed_by_cast": 3714,"subnormal": 10875029}},"quality": {
15 unmodified lines1617181920212223242526272815 unmodified lines| c | fp16 stream max | headroom | non-finite | LPIPS vs fp32 (4 img) | PSNR | latent cos | scaled weights subnormal / 0 | stream subnormal | stock-eps rel err || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || 1/2 | 30,976 | 2.1 | 0 / 189 | 0.0187 | 41.05 | 0.9875 | 0.46% | 4.37e-05 | 6.7e-06 || 1/4 | 15,488 | 4.2 | 0 / 189 | 0.0082 | 42.49 | 0.9955 | 0.77% | 8.75e-05 | 1.1e-05 || 1/8 | 7,744 | 8.5 | 0 / 189 | 0.0100 | 42.06 | 0.9944 | 1.36% | 1.75e-04 | 4.3e-05 || 1/16 (chosen) | 3,870 | 16.9 | 0 / 189 | 0.0185 | 40.28 | 0.9877 | 2.50% | 3.50e-04 | 1.8e-04 || 1/32 | 1,936 | 33.8 | 0 / 189 | 0.0164 | 39.28 | 0.9890 | 4.61% | 7.00e-04 | 7.5e-04 || 1/64 | 968 | 67.7 | 0 / 189 | 0.0110 | 41.93 | 0.9942 | 8.53% | 1.40e-03 | 2.6e-03 || 1/256 | 242 | 270.7 | 0 / 189 | 0.0680 | 28.13 | 0.9613 | 27.93% | 5.60e-03 | 2.2e-02 || official bf16 | | | | 0.0635 | 29.12 | 0.9603 | | | |## Quality, kohakumoss (vs fp32; fix vs bf16 last)15 unmodified lines1617181920212223242526272815 unmodified lines| c | fp16 stream max | headroom | non-finite | LPIPS vs fp32 (4 img) | PSNR | latent cos | scaled weights subnormal / 0 | stream subnormal | stock-eps rel err || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || 1/2 | 30,976 | 2.1 | 0 / 189 | 0.0187 | 41.05 | 0.9875 | 0.42% | 4.37e-05 | 6.7e-06 || 1/4 | 15,488 | 4.2 | 0 / 189 | 0.0082 | 42.49 | 0.9955 | 0.83% | 8.75e-05 | 1.1e-05 || 1/8 | 7,744 | 8.5 | 0 / 189 | 0.0100 | 42.06 | 0.9944 | 1.65% | 1.75e-04 | 4.3e-05 || 1/16 (chosen) | 3,870 | 16.9 | 0 / 189 | 0.0185 | 40.28 | 0.9877 | 3.22% | 3.50e-04 | 1.8e-04 || 1/32 | 1,936 | 33.8 | 0 / 189 | 0.0164 | 39.28 | 0.9890 | 6.12% | 7.00e-04 | 7.5e-04 || 1/64 | 968 | 67.7 | 0 / 189 | 0.0110 | 41.93 | 0.9942 | 11.49% | 1.40e-03 | 2.6e-03 || 1/256 | 242 | 270.7 | 0 / 189 | 0.0680 | 28.13 | 0.9613 | 38.14% | 5.60e-03 | 2.2e-02 || official bf16 | | | | 0.0635 | 29.12 | 0.9603 | | | |## Quality, kohakumoss (vs fp32; fix vs bf16 last)
README.md+12-11
images/base_c_sweep.svg
images/base_c_sweep.webp

Large File Pointer Details
- SHA256: f15e3975e2cfc08303ce31121e8d5427c5fb7bc410d841fc7e6394243df5b7f1
- Pointer size: 131 Bytes
- Size of remote file: 103 kB

Large File Pointer Details
- SHA256: c0aae6efec4f70790202fab0337b4fc7e30ec844fcecd289fdb8971daaa9cbce
- Pointer size: 131 Bytes
- Size of remote file: 101 kB
images/fold_block.svg
images/fold_block.webp

Large File Pointer Details
- SHA256: 97f3b79e37ca7112df4ce25af21f3fcd2c7802fef099a815fcf0098ff36c17be
- Pointer size: 131 Bytes
- Size of remote file: 207 kB

Large File Pointer Details
- SHA256: 6fa2457d5cfb0c4c7e871dc6aa76a59445d65b5951698cff279a2d24004947cc
- Pointer size: 131 Bytes
- Size of remote file: 207 kB
images/sft_c_sweep.svg
images/sft_c_sweep.webp

Large File Pointer Details
- SHA256: 420d6818e507309ff485a191185dc10e0476d9fd3a27ff78d917e4b46eed32a0
- Pointer size: 131 Bytes
- Size of remote file: 102 kB

Large File Pointer Details
- SHA256: 815018e5f2a854d5512128e63b75b8f49cf00b9d18db5a146fb1a20fd03c7e48
- Pointer size: 131 Bytes
- Size of remote file: 103 kB
reports/base_fp16_fix.json+70-56
reports/base_tables.md+7-7
reports/sft_fp16_fix.json+70-56
reports/sft_tables.md+7-7