Gabriel commited on
Commit
eb99fa1
·
verified ·
1 Parent(s): 53b82f0

Weights' metadata format pt (as PEFT writes it; weights unchanged); card: drawing with diffu's --lora

Browse files
Files changed (2) hide show
  1. README.md +15 -1
  2. adapter_model.safetensors +2 -2
README.md CHANGED
@@ -44,7 +44,21 @@ them; diffu's `MossTransformer` does.
44
 
45
  ## Use
46
 
47
- With PEFT, merged into the DiT, which diffu then draws with like any MOSS-Image model:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
  ```python
50
  from peft import PeftModel
 
44
 
45
  ## Use
46
 
47
+ With [diffu](https://github.com/Borg93/diffu2), loaded onto MOSS-Image-Base's own DiT at draw time (no merged model
48
+ needed; diffu's `docs/MOSS.md`, "Hand LoRAs", and `docs/INFERENCE.md`):
49
+
50
+ ```bash
51
+ hf download OpenMOSS-Team/MOSS-Image-Base --revision 85975793d8b3d432f1b6e27f352abaa4c2a4c0d3 --local-dir models/MOSS-Image-Base
52
+ hf download Gabriel/diffu-moss-hand-eight --local-dir models/adapters/eight
53
+ uv run diffu-moss-init --base models/MOSS-Image-Base --out models/moss-base
54
+ uv run diffu-run --jobs run.jsonl --draw-settings draw.json --model models/moss-base \
55
+ --lora hand=models/adapters/eight --out out/eight --gpus 1
56
+ ```
57
+
58
+ `"fuse_loras": true` in `draw.json` merges the adapter into the DiT's weights at load (needed with MXFP8 or compiled
59
+ blocks).
60
+
61
+ Or with PEFT alone, merged into the DiT, which diffu then draws with like any MOSS-Image model:
62
 
63
  ```python
64
  from peft import PeftModel
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9b291e6920fe2e0d2e1be1da99d1e40ed58f21491ada54b35d5f61111d2c767
3
- size 156254296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a44d01611e23b697c80ea4c2ae44d36d59568a65f227049da6214d5b0e184469
3
+ size 156254288