AbstractPhil commited on
Commit
3f04727
Β·
verified Β·
1 Parent(s): 0b88e5a

v1: curated production adapters of the diffusion aleph line (amoe.diffusion.anchor safetensors, provenance in metadata; sd15 core eps + lune flow + anima NC)

Browse files
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model:
4
+ - stable-diffusion-v1-5/stable-diffusion-v1-5
5
+ tags:
6
+ - adapters
7
+ - aleph
8
+ - amoe-lora
9
+ - diffusion
10
+ - stable-diffusion
11
+ ---
12
+
13
+ # aleph-diffusion-adapters β€” the production artifacts of the diffusion aleph line
14
+
15
+ **This is the curated adapters repo.** The full research record (16
16
+ experiment packages, raw ledgers, 2-seed program) is
17
+ [geolip-aleph-diffusion](https://huggingface.co/AbstractPhil/geolip-aleph-diffusion);
18
+ the framework that loads everything here is
19
+ [amoe-lora](https://huggingface.co/AbstractPhil/amoe-lora) (`pip install
20
+ amoe-lora[diffusion]`); the article is
21
+ [Part 3-D](https://huggingface.co/AbstractPhil/geolip-aleph-diffusion/blob/main/article_ft3d.md).
22
+
23
+ Every file is an `amoe.diffusion.anchor` safetensors (canonical
24
+ `blocks.{site}.{param}` layout, full provenance in the metadata,
25
+ content-hash verified). Nothing here modifies trunk weights: adapters
26
+ attach to a frozen model, toggle off bit-exactly, and detach with
27
+ verification.
28
+
29
+ ## The artifacts
30
+
31
+ | file | trunk | what it is | evidence status |
32
+ |---|---|---|---|
33
+ | `sd15/relay_all16_s0/.s1` | SD1.5 core (eps) | the certified 16-site relay stack β€” grounding +0.1809β†’+0.2172 over zero-shot, beats matched LoRA which traded grounding away | exp006, candidate s0 + s1 replication |
34
+ | `sd15/mb3_s0/.s1` | SD1.5 core (eps) | the multiband stack: 3 band experts/site on the sigma axis; band lesions SURGICAL (own-band damage 50–200Γ— cross-band); the step-gated controller moved image-space grounding +0.089 over frozen | exp008 2-seed + exp010 battery |
35
+ | `sd15-lune-flow/relay_all16_s0` | SD15-Lune flow | the first certified diffusion relay (βˆ’0.85% paired val, LoRA control WORSE than frozen) | exp001, candidate s0 (s1 replicated vs frozen) |
36
+ | `sd15-lune-flow/blob_mb3_s0/.s1` | SD15-Lune flow | the conditioning-law stack: blob-supervised HIGH band at Ξ»β‰ˆ1 (βˆ’8.3% on the role-aligned foreground gauge, common gauge in bound) | exp013, 2-seed |
37
+ | `anima/aleph_relay_epoch4` | Anima 2B DiT (flow) | 28-block bf16 relay trained through the diffusion-pipe fork (native LoRA control DEGRADED while this improved) | exp004, candidate s0 Β· **NC** (CircleStone NC + NVIDIA OML β€” derived checkpoint) |
38
+
39
+ Honest scope: these are research-grade adapters from a four-day 2-seed
40
+ campaign, certified on their gauges (paired flow/eps-MSE, CLIP round-trip
41
+ grounding, band lesions, the role-aligned foreground gauge) β€” not
42
+ aesthetics-tuned style adapters. What they buy is measured and cited row
43
+ by row; read the linked packages before deploying.
44
+
45
+ ## Quickstart
46
+
47
+ ```python
48
+ # pip install amoe-lora[diffusion]
49
+ import torch, amoe.diffusion as ad
50
+ from diffusers import StableDiffusionPipeline
51
+ from huggingface_hub import hf_hub_download
52
+
53
+ pipe = StableDiffusionPipeline.from_pretrained(
54
+ "stable-diffusion-v1-5/stable-diffusion-v1-5",
55
+ torch_dtype=torch.float32).to("cuda")
56
+
57
+ h = ad.attach(pipe.unet, hf_hub_download(
58
+ "AbstractPhil/aleph-diffusion-adapters", "sd15/mb3_s0.safetensors"))
59
+ img = ad.sample(pipe, h, "a lighthouse at dusk", seed=7) # step-gated
60
+
61
+ with h.lesion_band(2): # generate WITHOUT the HIGH/structure band
62
+ img2 = ad.sample(pipe, h, "a lighthouse at dusk", seed=7)
63
+ base = h.detach() # verified bit-exact, or it raises
64
+ ```
65
+
66
+ The relay stacks attach the same way (no windows needed). The
67
+ `sd15-lune-flow/` artifacts belong on the
68
+ [Lune flow trunk](https://huggingface.co/AbstractPhil/sd15-flow-lune-json-prompt)
69
+ (ckpt-2500) with `objective="flow"` sampling β€” the metadata records the
70
+ trunk id; `ad.attach` warns on substrate mismatch.
71
+
72
+ ## ComfyUI
73
+
74
+ Planned as `comfyui-amoe` (next release): loader / attach / band-toggle /
75
+ detach nodes consuming exactly these files, with step gating installed as
76
+ a pre-forward hook so any stock KSampler becomes step-gated. The node
77
+ asserts each anchor's site count + width signature from the metadata
78
+ before patching β€” a silent enumeration mismatch loads plausibly and
79
+ corrupts quietly, so it ships only behind an image-parity check.
80
+
81
+ ## Training your own
82
+
83
+ Single GPU / DDP: `amoe.diffusion.train` (five lines β€” see the
84
+ [amoe-lora card](https://huggingface.co/AbstractPhil/amoe-lora)).
85
+ Multi-GPU production: the
86
+ [diffusion-pipe fork](https://github.com/AbstractEyes/diffusion-pipe)
87
+ with `aleph_relay = true` (relay + multiband modes; saves land in this
88
+ repo's format).
89
+
90
+ ## Licenses
91
+
92
+ MIT for this repo's own content and the SD1.5-family adapters. The
93
+ `anima/` adapter is a DERIVED checkpoint of NC-licensed weights
94
+ (CircleStone NC + NVIDIA Open Model License) β€” non-commercial use only.
anima/aleph_relay_epoch4.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3afdb9ed593d84ffbfcc0c4c20b923d9cffd112ce4c53d354c727dffc04b90a3
3
+ size 28606200
sd15-lune-flow/blob_mb3_s0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e6768ff2081665711dd777d7acb63a2c0660564f3d49333c4afdfc5088da8d4
3
+ size 4956752
sd15-lune-flow/blob_mb3_s1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89f271f8ddbfef34dce40fdfc50c713d5f0eb9448d3398b4918055cff7b83c25
3
+ size 4956752
sd15-lune-flow/relay_all16_s0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a17004758b77b7fedfc40e8fdaadb955ae3b56835a2569fe2825a723bcfd755e
3
+ size 12941456
sd15/mb3_s0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:994611e2b32e7e39c75e2a1a772dc8e0dfb12f67457700b73a30b6ff591058fb
3
+ size 4956744
sd15/mb3_s1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:286256d2797d625dfeb3ae0402c12c24f6b9b6e84cb5a94306f21d9dcb5156b6
3
+ size 4956744
sd15/relay_all16_s0.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c61f4ba375e1caa9e35726e4aff0d409ea1ceaad6d831814c95f350bc38eb533
3
+ size 12941448
sd15/relay_all16_s1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70706d321d8defbdc9c033cfb2e40fa85b76fa1c7880dadf108f45b5e70a4320
3
+ size 12941448