File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,31 +135,6 @@ curl -X POST http://localhost:30081/update_weights_from_disk \
135135- ` GET|POST|PUT|DELETE /{path} ` : catch-all proxy forwarding.
136136- ` POST /update_weights_from_disk ` : broadcast to all healthy workers.
137137
138- ## Benchmark Scripts
139-
140- Benchmark scripts are available under ` tests/benchmarks/diffusion_router/ ` and are intended for manual runs.
141- They are not part of default unit test collection (` pytest tests/unit -v ` ).
142-
143- Single benchmark:
144-
145- ``` bash
146- python tests/benchmarks/diffusion_router/bench_router.py \
147- --model Qwen/Qwen-Image \
148- --num-workers 2 \
149- --num-prompts 20 \
150- --max-concurrency 4
151- ```
152-
153- Algorithm comparison:
154-
155- ``` bash
156- python tests/benchmarks/diffusion_router/bench_routing_algorithms.py \
157- --model Qwen/Qwen-Image \
158- --num-workers 2 \
159- --num-prompts 20 \
160- --max-concurrency 4
161- ```
162-
163138## Project Layout
164139
165140``` text
Original file line number Diff line number Diff line change 1- Development install:
1+ # Development
2+
3+ ## Development Install
24
35``` bash
46pip install -e .
@@ -10,3 +12,28 @@ Run tests:
1012pip install pytest
1113pytest tests/unit -v
1214```
15+
16+ ## Benchmark Scripts
17+
18+ Benchmark scripts are available under ` tests/benchmarks/diffusion_router/ ` and are intended for manual runs.
19+ They are not part of default unit test collection (` pytest tests/unit -v ` ).
20+
21+ Single benchmark:
22+
23+ ``` bash
24+ python tests/benchmarks/diffusion_router/bench_router.py \
25+ --model Qwen/Qwen-Image \
26+ --num-workers 2 \
27+ --num-prompts 20 \
28+ --max-concurrency 4
29+ ```
30+
31+ Algorithm comparison:
32+
33+ ``` bash
34+ python tests/benchmarks/diffusion_router/bench_routing_algorithms.py \
35+ --model Qwen/Qwen-Image \
36+ --num-workers 2 \
37+ --num-prompts 20 \
38+ --max-concurrency 4
39+ ```
You can’t perform that action at this time.
0 commit comments