Skip to content

Commit

Permalink
bump to version 0.4.2 (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
feifeibear authored Mar 3, 2025
1 parent fb5c55a commit b3fab1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/developer/Http_Service.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
## Launch a Text-to-Image Http Service

Launch an HTTP-based text-to-image service that generates images from textual descriptions (prompts) using the DiT model. The generated images can either be returned directly to users or saved to a specified disk location.
Launch an HTTP-based text-to-image service that generates images from textual descriptions (prompts) using the DiT model.
The generated images can either be returned directly to users or saved to a specified disk location.
For example, the following command launches a HTTP service with 4 GPUs, 2 Ulysses parallel degree, 2 PipeFusion parallel degree, and the model path is `./models/FLUX.1-schnell`.

```bash
python ./entrypoints/launch.py --world_size 4 --ulysses_parallel_degree 2 --pipefusion_parallel_degree 2 --model_path /your_model_path
python ./entrypoints/launch.py --world_size 4 --ulysses_parallel_degree 2 --pipefusion_parallel_degree 2 --model_path /your_model_path/FLUX.1-schnell
```


Expand Down
2 changes: 1 addition & 1 deletion entrypoints/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async def generate_image(request: GenerateRequest):

if __name__ == "__main__":
parser = argparse.ArgumentParser(description='xDiT HTTP Service')
parser.add_argument('--model_path', type=str, default="/demo-huabei2/models/dit/FLUX.1-schnell", help='Path to the model')
parser.add_argument('--model_path', type=str, help='Path to the model', required=True)
parser.add_argument('--world_size', type=int, default=1, help='Number of parallel workers')
parser.add_argument('--pipefusion_parallel_degree', type=int, default=1, help='Degree of pipeline fusion parallelism')
parser.add_argument('--ulysses_parallel_degree', type=int, default=1, help='Degree of Ulysses parallelism')
Expand Down
2 changes: 1 addition & 1 deletion xfuser/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.2rc2"
__version__ = "0.4.2"

0 comments on commit b3fab1c

Please sign in to comment.