Text-to-Image
PEFT
Safetensors
Swedish
lora
moss-image
handwriting
historical-documents
archives
htr
synthetic-data
Instructions to use Gabriel/diffu-moss-hand-eight with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Gabriel/diffu-moss-hand-eight with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Weights' metadata format pt (as PEFT writes it; weights unchanged); card: drawing with diffu's --lora
Browse files- README.md +15 -1
- adapter_model.safetensors +2 -2
README.md
CHANGED
|
@@ -44,7 +44,21 @@ them; diffu's `MossTransformer` does.
|
|
| 44 |
|
| 45 |
## Use
|
| 46 |
|
| 47 |
-
With
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a44d01611e23b697c80ea4c2ae44d36d59568a65f227049da6214d5b0e184469
|
| 3 |
+
size 156254288
|