Skip to content

Commit e93d69c

Browse files
committed
update docs
1 parent 8a940bd commit e93d69c

File tree

3 files changed

+34
-14
lines changed

3 files changed

+34
-14
lines changed

examples/cli/README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ usage: ./bin/sd-cli [options]
55
66
CLI Options:
77
-o, --output <string> path to write result image to. you can use printf-style %d format specifiers for image sequences (default: ./output.png) (eg. output_%03d.png)
8-
--output-begin-idx <int> starting index for output image sequence, must be non-negative (default 0 if specified %d in output path, 1 otherwise)
98
--preview-path <string> path to write preview image to (default: ./preview.png)
109
--preview-interval <int> interval in denoising steps between consecutive updates of the image preview file (default is 1, meaning updating at
1110
every step)
11+
--output-begin-idx <int> starting index for output image sequence, must be non-negative (default 0 if specified %d in output path, 1 otherwise)
1212
--canny apply canny preprocessor (edge detection)
1313
--convert-name convert tensor name (for convert mode)
1414
-v, --verbose print extra info
@@ -18,6 +18,8 @@ CLI Options:
1818
-M, --mode run mode, one of [img_gen, vid_gen, upscale, convert], default: img_gen
1919
--preview preview method. must be one of the following [none, proj, tae, vae] (default is none)
2020
-h, --help show this help message and exit
21+
--rpc add a rpc device
22+
--list-devices list available ggml compute devices
2123
2224
Context Options:
2325
-m, --model <string> path to full model
@@ -40,6 +42,17 @@ Context Options:
4042
--tensor-type-rules <string> weight type per tensor pattern (example: "^vae\.=f16,model\.=q8_0")
4143
--photo-maker <string> path to PHOTOMAKER model
4244
--upscale-model <string> path to esrgan model.
45+
--main-backend-device <string> default device to use for all backends (defaults to main gpu device if hardware acceleration is available, otherwise
46+
cpu)
47+
--diffusion-backend-device <string> device to use for diffusion (defaults to main-backend-device)
48+
--clip-backend-device <string> device to use for clip (defaults to main-backend-device). Can be a comma-separated list of devices for models with
49+
multiple encoders
50+
--vae-backend-device <string> device to use for vae (defaults to main-backend-device). Also applies to tae, unless tae-backend-device is specified
51+
--tae-backend-device <string> device to use for tae (defaults to vae-backend-device)
52+
--control-net-backend-device <string> device to use for control net (defaults to main-backend-device)
53+
--upscaler-backend-device <string> device to use for upscaling models (defaults to main-backend-device)
54+
--photomaker-backend-device <string> device to use for photomaker (defaults to main-backend-device)
55+
--vision-backend-device <string> device to use for clip-vision model (defaults to main-backend-device)
4356
-t, --threads <int> number of threads to use during computation (default: -1). If threads <= 0, then threads will be set to the number of
4457
CPU physical cores
4558
--chroma-t5-mask-pad <int> t5 mask pad size of chroma
@@ -49,16 +62,14 @@ Context Options:
4962
--force-sdxl-vae-conv-scale force use of conv scale on sdxl vae
5063
--offload-to-cpu place the weights in RAM to save VRAM, and automatically load them into VRAM when needed
5164
--mmap whether to memory-map model
52-
--control-net-cpu keep controlnet in cpu (for low vram)
53-
--clip-on-cpu keep clip in cpu (for low vram)
54-
--vae-on-cpu keep vae in cpu (for low vram)
5565
--diffusion-fa use flash attention in the diffusion model
5666
--diffusion-conv-direct use ggml_conv2d_direct in the diffusion model
5767
--vae-conv-direct use ggml_conv2d_direct in the vae model
5868
--circular enable circular padding for convolutions
5969
--circularx enable circular RoPE wrapping on x-axis (width) only
6070
--circulary enable circular RoPE wrapping on y-axis (height) only
6171
--chroma-disable-dit-mask disable dit mask for chroma
72+
--qwen-image-zero-cond-t enable zero_cond_t for qwen image
6273
--chroma-enable-t5-mask enable t5 mask for chroma
6374
--type weight type (examples: f32, f16, q4_0, q4_1, q5_0, q5_1, q8_0, q2_K, q3_K, q4_K). If not specified, the default is the
6475
type of the weight file

examples/server/README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
usage: ./bin/sd-server [options]
55
66
Svr Options:
7-
-l, --listen-ip <string> server listen ip (default: 127.0.0.1)
8-
--listen-port <int> server listen port (default: 1234)
9-
--serve-html-path <string> path to HTML file to serve at root (optional)
10-
-v, --verbose print extra info
11-
--color colors the logging tags according to level
12-
-h, --help show this help message and exit
7+
-l, --listen-ip <string> server listen ip (default: 127.0.0.1)
8+
--serve-html-path <string> path to HTML file to serve at root (optional)
9+
--listen-port <int> server listen port (default: 1234)
10+
-v, --verbose print extra info
11+
--color colors the logging tags according to level
12+
-h, --help show this help message and exit
1313
1414
Context Options:
1515
-m, --model <string> path to full model
@@ -32,6 +32,17 @@ Context Options:
3232
--tensor-type-rules <string> weight type per tensor pattern (example: "^vae\.=f16,model\.=q8_0")
3333
--photo-maker <string> path to PHOTOMAKER model
3434
--upscale-model <string> path to esrgan model.
35+
--main-backend-device <string> default device to use for all backends (defaults to main gpu device if hardware acceleration is available, otherwise
36+
cpu)
37+
--diffusion-backend-device <string> device to use for diffusion (defaults to main-backend-device)
38+
--clip-backend-device <string> device to use for clip (defaults to main-backend-device). Can be a comma-separated list of devices for models with
39+
multiple encoders
40+
--vae-backend-device <string> device to use for vae (defaults to main-backend-device). Also applies to tae, unless tae-backend-device is specified
41+
--tae-backend-device <string> device to use for tae (defaults to vae-backend-device)
42+
--control-net-backend-device <string> device to use for control net (defaults to main-backend-device)
43+
--upscaler-backend-device <string> device to use for upscaling models (defaults to main-backend-device)
44+
--photomaker-backend-device <string> device to use for photomaker (defaults to main-backend-device)
45+
--vision-backend-device <string> device to use for clip-vision model (defaults to main-backend-device)
3546
-t, --threads <int> number of threads to use during computation (default: -1). If threads <= 0, then threads will be set to the number of
3647
CPU physical cores
3748
--chroma-t5-mask-pad <int> t5 mask pad size of chroma
@@ -40,9 +51,6 @@ Context Options:
4051
--vae-tiling process vae in tiles to reduce memory usage
4152
--force-sdxl-vae-conv-scale force use of conv scale on sdxl vae
4253
--offload-to-cpu place the weights in RAM to save VRAM, and automatically load them into VRAM when needed
43-
--control-net-cpu keep controlnet in cpu (for low vram)
44-
--clip-on-cpu keep clip in cpu (for low vram)
45-
--vae-on-cpu keep vae in cpu (for low vram)
4654
--mmap whether to memory-map model
4755
--diffusion-fa use flash attention in the diffusion model
4856
--diffusion-conv-direct use ggml_conv2d_direct in the diffusion model
@@ -51,6 +59,7 @@ Context Options:
5159
--circularx enable circular RoPE wrapping on x-axis (width) only
5260
--circulary enable circular RoPE wrapping on y-axis (height) only
5361
--chroma-disable-dit-mask disable dit mask for chroma
62+
--qwen-image-zero-cond-t enable zero_cond_t for qwen image
5463
--chroma-enable-t5-mask enable t5 mask for chroma
5564
--type weight type (examples: f32, f16, q4_0, q4_1, q5_0, q5_1, q8_0, q2_K, q3_K, q4_K). If not specified, the default is the
5665
type of the weight file

0 commit comments

Comments
 (0)