Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuahua123 committed Dec 20, 2024
1 parent fe82718 commit 578d898
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/ray/ray_flux_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def main():
# output is a list of results from each worker, we take the last one
for i, image in enumerate(output[-1].images):
image.save(
f"/data/results/{model_name}_result_{i}.png"
f"./results/{model_name}_result_{i}.png"
)
print(
f"image {i} saved to /data/results/{model_name}_result_{i}.png"
f"image {i} saved to ./results/{model_name}_result_{i}.png"
)


Expand Down
2 changes: 1 addition & 1 deletion examples/ray/ray_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -x
export PYTHONPATH=$PWD:$PYTHONPATH

# Select the model type
export MODEL_TYPE="Sd3"
export MODEL_TYPE="Flux"
# Configuration for different model types
# script, model_id, inference_step
declare -A MODEL_CONFIGS=(
Expand Down
4 changes: 2 additions & 2 deletions examples/ray/ray_sd3_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def main():
# output is a list of results from each worker, we take the last one
for i, image in enumerate(output[-1].images):
image.save(
f"/data/results/{model_name}_result_{i}.png"
f"./results/{model_name}_result_{i}.png"
)
print(
f"image {i} saved to /data/results/{model_name}_result_{i}.png"
f"image {i} saved to ./results/{model_name}_result_{i}.png"
)


Expand Down
1 change: 0 additions & 1 deletion xfuser/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ class ParallelConfig:
sp_config: SequenceParallelConfig
pp_config: PipeFusionParallelConfig
tp_config: TensorParallelConfig
distributed_executor_backend: Optional[str] = None
world_size: int = 1 # FIXME: remove this
worker_cls: str = "xfuser.ray.worker.worker.Worker"

Expand Down
1 change: 0 additions & 1 deletion xfuser/ray/worker/worker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from abc import ABC, abstractmethod

from xfuser.core.distributed import (
Expand Down

0 comments on commit 578d898

Please sign in to comment.