From 1e203ac3a2c45b4728e74d80fbff9079c9bbaffc Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Fri, 13 Sep 2024 01:59:09 +0900 Subject: [PATCH] doc: update `README` Signed-off-by: Xin Liu --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 7147bec..dc7dfba 100644 --- a/README.md +++ b/README.md @@ -127,3 +127,35 @@ cargo build --target wasm32-wasip1 --release ``` `sd-api-server.wasm` will be generated in `target/wasm32-wasip1/release/`. + +## CLI Options + +```bash +$ wasmedge target/wasm32-wasip1/release/sd-api-server.wasm -h + +LlamaEdge-Stable-Diffusion API Server + +Usage: sd-api-server.wasm [OPTIONS] --model-name <--model |--diffusion-model > + +Options: + -m, --model-name + Sets the model name + -m, --model + Path to full model [default: ] + --diffusion-model + Path to the standalone diffusion model file [default: ] + --vae + Path to vae [default: ] + --clip-l + Path to the clip-l text encoder [default: ] + --t5xxl + Path to the the t5xxl text encoder [default: ] + --threads + Number of threads to use during computation [default: 1] + --socket-addr + Socket address of LlamaEdge API Server instance [default: 0.0.0.0:8080] + -h, --help + Print help + -V, --version + Print version +```