SceneWorks commited on
Commit
70b4948
·
verified ·
1 Parent(s): f4f14de

Re-host: PiD sdxl 2kto4k decoder (NVIDIA License / non-commercial) — converted from nvidia/PiD (sc-7852)

Browse files
Files changed (4) hide show
  1. LICENSE +34 -0
  2. NOTICE +55 -0
  3. README.md +60 -0
  4. pid_sdxl_2kto4k.safetensors +3 -0
LICENSE ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NVIDIA License
2
+
3
+ 1. Definitions
4
+
5
+ "Licensor" means any person or entity that distributes its Work.
6
+ "Work" means (a) the original work of authorship made available under this license, which may include software, documentation, or other files, and (b) any additions to or derivative works thereof that are made available under this license.
7
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" have the meaning as provided under U.S. copyright law; provided, however, that for the purposes of this license, derivative works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work.
8
+ Works are "made available" under this license by including in or with the Work either (a) a copyright notice referencing the applicability of this license to the Work, or (b) a copy of this license.
9
+
10
+ 2. License Grant
11
+
12
+ 2.1 Copyright Grant. Subject to the terms and conditions of this license, each Licensor grants to you a perpetual, worldwide, non-exclusive, royalty-free, copyright license to use, reproduce, prepare derivative works of, publicly display, publicly perform, sublicense and distribute its Work and any resulting derivative works in any form.
13
+
14
+ 3. Limitations
15
+
16
+ 3.1 Redistribution. You may reproduce or distribute the Work only if (a) you do so under this license, (b) you include a complete copy of this license with your distribution, and (c) you retain without modification any copyright, patent, trademark, or attribution notices that are present in the Work.
17
+
18
+ 3.2 Derivative Works. You may specify that additional or different terms apply to the use, reproduction, and distribution of your derivative works of the Work ("Your Terms") only if (a) Your Terms provide that the use limitation in Section 3.3 applies to your derivative works, and (b) you identify the specific derivative works that are subject to Your Terms. Notwithstanding Your Terms, this license (including the redistribution requirements in Section 3.1) will continue to apply to the Work itself.
19
+
20
+ 3.3 Use Limitation. The Work and any derivative works thereof only may be used or intended for use non-commercially. Notwithstanding the foregoing, NVIDIA Corporation and its affiliates may use the Work and any derivative works commercially. As used herein, "non-commercially" means for research or evaluation purposes only.
21
+
22
+ 3.4 Patent Claims. If you bring or threaten to bring a patent claim against any Licensor (including any claim, cross-claim or counterclaim in a lawsuit) to enforce any patents that you allege are infringed by any Work, then your rights under this license from such Licensor (including the grant in Section 2.1) will terminate immediately.
23
+
24
+ 3.5 Trademarks. This license does not grant any rights to use any Licensor's or its affiliates' names, logos, or trademarks, except as necessary to reproduce the notices described in this license.
25
+
26
+ 3.6 Termination. If you violate any term of this license, then your rights under this license (including the grant in Section 2.1) will terminate immediately.
27
+
28
+ 4. Disclaimer of Warranty.
29
+
30
+ THE WORK IS PROVIDED "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT. YOU BEAR THE RISK OF UNDERTAKING ANY ACTIVITIES UNDER THIS LICENSE.
31
+
32
+ 5. Limitation of Liability.
33
+
34
+ EXCEPT AS PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE SHALL ANY LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATED TO THIS LICENSE, THE USE OR INABILITY TO USE THE WORK (INCLUDING BUT NOT LIMITED TO LOSS OF GOODWILL, BUSINESS INTERRUPTION, LOST PROFITS OR DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY OTHER DAMAGES OR LOSSES), EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
NOTICE ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PiD — Pixel Diffusion Decoder (sdxl 2kto4k student)
2
+ ====================================================
3
+
4
+ This repository redistributes a converted copy of a model checkpoint
5
+ originally produced and released by NVIDIA Corporation.
6
+
7
+ Original work
8
+ -------------
9
+ Name: PiD (Pixel Diffusion) — PixelDiT distillation decoders
10
+ Author: NVIDIA Corporation and its affiliates (NVIDIA Toronto AI Lab)
11
+ Source: https://huggingface.co/nvidia/PiD
12
+ Project: https://research.nvidia.com/labs/sil/projects/pid/
13
+ Code: https://github.com/nv-tlabs/pid
14
+ Paper: arXiv:2605.23902
15
+ Original checkpoint:
16
+ checkpoints/PiD_res2kto4k_sr4x_official_sdxl_distill_4step/model_ema_bf16.pth
17
+
18
+ Latent space
19
+ ------------
20
+ This is the `sdxl` PiD student — the SDXL VAE latent space (4-channel, affine
21
+ scale 0.13025 / shift 0.0). In SceneWorks it serves every model in that latent
22
+ space: SDXL base, RealVisXL (incl. RealVisXL Lightning), and Kolors (which
23
+ reuses the SDXL VAE). This is the variance-preserving (VP-frame) student; the
24
+ shipped clean (sigma=0) decode path is frame-agnostic.
25
+
26
+ What was changed
27
+ ----------------
28
+ The original PyTorch checkpoint (`model_ema_bf16.pth`) was converted to
29
+ safetensors for SceneWorks' native MLX/candle PiD decoder (`mlx-gen-pid`). The
30
+ conversion is a lossless key/format transform only: training-only tensors
31
+ (`net_ema.*`, `fake_score.*`, `discriminator.*`) are dropped and the `net.`
32
+ prefix is stripped, per the reference inference loader
33
+ (`pid_distill_model.py::PidDistillModel.load_state_dict`). Tensor values and
34
+ dtype (bfloat16) are unchanged. No re-training or fine-tuning was performed.
35
+
36
+ License
37
+ -------
38
+ This work and the original are licensed under the NVIDIA License (the license
39
+ HuggingFace tags as "NSCLv1"). The full license text is in the accompanying
40
+ LICENSE file and applies to this redistribution and to any derivative works.
41
+
42
+ USE LIMITATION (NVIDIA License §3.3): The Work and any derivative works thereof
43
+ may only be used, or be intended for use, NON-COMMERCIALLY — i.e. for RESEARCH
44
+ OR EVALUATION PURPOSES ONLY. (NVIDIA Corporation and its affiliates may use the
45
+ Work commercially.)
46
+
47
+ This non-commercial restriction FLOWS TO THE OUTPUT: images decoded with this
48
+ PiD decoder are for research/evaluation use only and are distinct in that
49
+ respect from images produced by the rest of the SceneWorks pipeline.
50
+
51
+ Per NVIDIA License §3.1, this distribution (a) is under the same license,
52
+ (b) includes a complete copy of it, and (c) retains all copyright/patent/
53
+ trademark/attribution notices present in the original Work. NVIDIA's name,
54
+ logos, and trademarks are not used except as necessary to reproduce these
55
+ notices (NVIDIA License §3.5).
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: nvidia-license
4
+ license_link: LICENSE
5
+ tags:
6
+ - pixel-diffusion
7
+ - decoder
8
+ - super-resolution
9
+ - non-commercial
10
+ - sceneworks
11
+ extra_gated_prompt: >-
12
+ This model is licensed under the NVIDIA License (NSCLv1). It and any
13
+ derivative works may be used for NON-COMMERCIAL (research or evaluation)
14
+ purposes only. The non-commercial restriction flows to decoded output.
15
+ ---
16
+
17
+ # PiD — sdxl 2kto4k decoder (SceneWorks redistribution)
18
+
19
+ A format-converted redistribution of NVIDIA's **PiD** (Pixel Diffusion) `sdxl`
20
+ 4-step distillation decoder, packaged for SceneWorks' native (no-PyTorch) PiD
21
+ decoder (`mlx-gen-pid` on macOS/MLX, `candle-gen-pid` on Windows·Linux/CUDA).
22
+
23
+ PiD is an **optional, per-generation replacement for the VAE decoder**: it denoises
24
+ directly in pixel space and **decodes + 4× super-resolves in one 4-step pass**. This
25
+ `sdxl` student serves the **SDXL VAE latent space** (4-channel, the largest
26
+ latent→pixel ratio) — SDXL base, RealVisXL (incl. RealVisXL Lightning), and Kolors,
27
+ which share the SDXL VAE.
28
+
29
+ ## ⚠️ License — non-commercial (research/evaluation) only
30
+
31
+ This checkpoint is under the **NVIDIA License** (HuggingFace tag `NSCLv1`); see
32
+ [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE). Per **§3.3**, the Work and any
33
+ derivative works may be used **non-commercially — for research or evaluation
34
+ purposes only** (NVIDIA and its affiliates excepted).
35
+
36
+ **This restriction flows to the output.** Images decoded with PiD are for
37
+ research/evaluation use only, distinct from the rest of the SceneWorks pipeline.
38
+
39
+ ## Contents
40
+
41
+ | File | Description |
42
+ |------|-------------|
43
+ | `pid_sdxl_2kto4k.safetensors` | sdxl `2kto4k` 4-step student backbone + sigma-aware LQ adapter (456 tensors, bf16, ~2.7 GB). |
44
+ | `LICENSE` | Full NVIDIA License text (verbatim from the original release). |
45
+ | `NOTICE` | NVIDIA attribution, provenance, and the exact conversion performed. |
46
+
47
+ The PiD caption encoder (`gemma-2-2b-it`) and the SDXL VAE are provisioned
48
+ separately by SceneWorks; this repo holds only the PiD student weights.
49
+
50
+ ## Provenance / conversion
51
+
52
+ Converted from NVIDIA's original
53
+ `checkpoints/PiD_res2kto4k_sr4x_official_sdxl_distill_4step/model_ema_bf16.pth`
54
+ (from [`nvidia/PiD`](https://huggingface.co/nvidia/PiD)) via a lossless
55
+ key/format transform (`net.`-prefix strip + drop training-only
56
+ `net_ema.*`/`fake_score.*`/`discriminator.*`; dtype preserved). No re-training.
57
+
58
+ - Project: https://research.nvidia.com/labs/sil/projects/pid/
59
+ - Code: https://github.com/nv-tlabs/pid
60
+ - Paper: arXiv:2605.23902
pid_sdxl_2kto4k.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38f8d0d07175da7b4df0b5997291ffb53db06eeb80c3d8525b15a5bc649a608c
3
+ size 2724634940