ChrisColeTech commited on
Commit
19c2c56
·
verified ·
1 Parent(s): 6f5aeea

Rewrite model card: production settings, samples, usage

Browse files
Files changed (1) hide show
  1. README.md +122 -0
README.md CHANGED
@@ -1,3 +1,125 @@
1
  ---
2
  license: unknown
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: unknown
3
+ pipeline_tag: text-to-image
4
+ tags:
5
+ - text-to-image
6
+ - stable-diffusion-xl
7
+ - sdxl
8
+ - checkpoint
9
+ base_model:
10
+ - stabilityai/stable-diffusion-xl-base-1.0
11
  ---
12
+
13
+ # SDXL Checkpoints — Juggernaut XL v9 + Illustrious Anime v4
14
+
15
+ Full single-file SDXL checkpoints served by the giga-images sidecar, which registers one switchable model per checkpoint found on disk.
16
+
17
+ > **What this repo is:** a repacked/quantized build of the model, laid out exactly as the giga-images sidecar expects it. The settings below are not suggestions — they are the presets that sidecar runs in production, read directly from its model catalog.
18
+
19
+ ---
20
+
21
+ ## Samples
22
+
23
+ _No sample renders published for this repo yet._
24
+
25
+ ---
26
+
27
+ ## Production settings
28
+
29
+ These are the live `default_params` for catalog key **`sdxl-juggernaut-xl-v9`** (engine `sdxl`, residency slot `image`).
30
+
31
+ | Parameter | Production value | Meaning |
32
+ |---|---|---|
33
+ | `width` | `1024` | Output width in pixels |
34
+ | `height` | `1024` | Output height in pixels |
35
+ | `steps` | `35` | Denoising steps |
36
+ | `guidance` | `7.5` | Guidance scale |
37
+ | `preview_every` | `5` | Emit a TAESD preview every N steps |
38
+ | `strength` | `0.75` | img2img denoise strength (1.0 = ignore the input image) |
39
+
40
+ **Job types served:** `txt2img`, `img2img`
41
+
42
+ ### Notes and gotchas
43
+
44
+ - **This repo holds two checkpoints and the shared SDXL tokenizers** — there is no unet/VAE folder, because each `.safetensors` here is a complete single-file checkpoint.
45
+ - **Checkpoints are discovered dynamically.** The sidecar scans `models/sdxl/` and `models/sdxl/combined/` at startup and registers one `image`-slot model per checkpoint over 1 GiB, keyed `sdxl-<slugified-filename>`. Drop a new checkpoint in and restart to pick it up.
46
+ - Both checkpoints run at **float32** in this engine, so expect a larger memory footprint than a fp16 SDXL deployment.
47
+ - Unlike every other model here, SDXL uses a **real CFG schedule** — guidance 7.5, 30 steps. It is not a distilled/turbo build.
48
+
49
+ ---
50
+
51
+ ## Usage
52
+
53
+ The sidecar exposes a small HTTP + WebSocket API. Submit a job with the production preset:
54
+
55
+ ```bash
56
+ curl -X POST http://127.0.0.1:7860/jobs \
57
+ -H 'Content-Type: application/json' \
58
+ -d '{
59
+ "type": "txt2img",
60
+ "model_key": "sdxl-juggernaut-xl-v9",
61
+ "params": {
62
+ "prompt": "a red apple on a wooden table, studio photograph",
63
+ "width": 1024,
64
+ "height": 1024,
65
+ "steps": 35,
66
+ "guidance": 7.5,
67
+ "preview_every": 5,
68
+ "strength": 0.75
69
+ }
70
+ }'
71
+ ```
72
+
73
+ Poll the job, then read the durable artifact path:
74
+
75
+ ```bash
76
+ curl http://127.0.0.1:7860/jobs/<job_id>
77
+ # -> {"status": "complete", "output_url": "/outputs/<model_key>/<job_id>.png", ...}
78
+ ```
79
+
80
+ Connect to `ws://127.0.0.1:7860/ws` for `progress`, `preview` (TAESD WebP), and `complete` events.
81
+
82
+ > `output_url` is durable and survives restarts — persist that one. `/jobs/{id}/result` is served from an in-memory table that is dropped on restart.
83
+
84
+ ### Catalog entry
85
+
86
+ The sidecar registers this model as:
87
+
88
+ ```python
89
+ ModelSpec(
90
+ key='sdxl-juggernaut-xl-v9',
91
+ slot='image',
92
+ label='SDXL (juggernaut_XL_v9)',
93
+ engine='sdxl',
94
+ job_types=('txt2img', 'img2img'),
95
+ default_params={'width': 1024, 'height': 1024, 'steps': 35, 'guidance': 7.5, 'preview_every': 5, 'strength': 0.75},
96
+ )
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Files
102
+
103
+ | File | Size | Role |
104
+ |---|---|---|
105
+ | `combined/juggernaut_XL_v9.safetensors` | 6.62 GB | transformer (main weights) |
106
+ | `combined/illustrious_Anime_v4.safetensors` | 6.53 GB | full single-file SDXL checkpoint |
107
+ | `config/tokenizer/tokenizer.json` | 3.47 MB | tokenizer / processor |
108
+ | `config/tokenizer_2/tokenizer.json` | 3.47 MB | tokenizer / processor |
109
+ | `config/tokenizer/vocab.json` | 1.01 MB | tokenizer / processor |
110
+ | `config/tokenizer_2/vocab.json` | 1.01 MB | tokenizer / processor |
111
+ | `config/tokenizer/merges.txt` | 512.32 KB | tokenizer / processor |
112
+ | `config/tokenizer_2/merges.txt` | 512.32 KB | tokenizer / processor |
113
+ | `config/tokenizer/tokenizer_config.json` | 737 B | tokenizer / processor |
114
+ | `config/tokenizer_2/tokenizer_config.json` | 725 B | tokenizer / processor |
115
+ | `config/model_index.json` | 609 B | config |
116
+ | `config/tokenizer/special_tokens_map.json` | 472 B | tokenizer / processor |
117
+ | `config/tokenizer_2/special_tokens_map.json` | 460 B | tokenizer / processor |
118
+
119
+ ---
120
+
121
+ ## Provenance
122
+
123
+ - **Upstream base model:** [`stabilityai/stable-diffusion-xl-base-1.0`](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) (upstream license: openrail++)
124
+ - **This build:** requantized / relaid-out for the giga-images sidecar. Weights are not retrained; only the format and directory layout differ.
125
+ - **License:** left as `unknown` in this repo's metadata. Refer to the upstream model's license for redistribution and commercial-use terms — several of these bases are non-commercial.