Skip to content

Commit f1c5757

Browse files
tedzhouhkcoderabbitai[bot]
authored andcommitted
test: add dryrun mode for sla planner (#2557)
Signed-off-by: Hongkuan Zhou <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 3f0ad6c commit f1c5757

27 files changed

+895
-264
lines changed

benchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ pip install -e .
2828
Currently, this will install lightweight tools for:
2929
- Analyzing prefix-structured data (`datagen analyze`)
3030
- Synthesizing structured data customizable for testing purposes (`datagen synthesize`)
31-
Detailed information are provided in the `data_generator` directory.
31+
Detailed information are provided in the `prefix_data_generator` directory.
3232

3333
The benchmarking scripts for the core dynamo components are to come soon (e.g. routing, disagg, Planner).
File renamed without changes.

benchmarks/data_generator/__init__.py renamed to benchmarks/prefix_data_generator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
from data_generator.cli import main as cli_main
16+
from prefix_data_generator.cli import main as cli_main
1717

1818

1919
def main():

benchmarks/data_generator/cli.py renamed to benchmarks/prefix_data_generator/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def main():
3636

3737
if args.command == "analyze":
3838
# Import and run the analyzer main
39-
from data_generator import prefix_analyzer
39+
from prefix_data_generator import prefix_analyzer
4040

4141
sys.argv = [sys.argv[0]] + remaining
4242
prefix_analyzer.main()
4343
elif args.command == "synthesize":
4444
# Import and run the synthesizer main
45-
from data_generator import synthesizer
45+
from prefix_data_generator import synthesizer
4646

4747
sys.argv = [sys.argv[0]] + remaining
4848
synthesizer.main()

benchmarks/data_generator/example.py renamed to benchmarks/prefix_data_generator/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import tempfile
1818

1919
import requests
20-
from data_generator.hasher import hashes_to_texts
21-
from data_generator.synthesizer import Synthesizer
20+
from prefix_data_generator.hasher import hashes_to_texts
21+
from prefix_data_generator.synthesizer import Synthesizer
2222

2323
# download the mooncake trace file
2424
mooncake_trace_permalink = "https://raw.githubusercontent.com/kvcache-ai/Mooncake/f09c501b2a5d73e4d60cdeb612d7d0d54e1ec228/mooncake_trace.jsonl"

benchmarks/data_generator/graph_utils.py renamed to benchmarks/prefix_data_generator/graph_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
import networkx as nx
1717
import numpy as np
18-
from data_generator.protocols import CACHE_END, END_NODE, SUPER_ROOT
19-
from data_generator.sampler import get_cdf
18+
from prefix_data_generator.protocols import CACHE_END, END_NODE, SUPER_ROOT
19+
from prefix_data_generator.sampler import get_cdf
2020

2121

2222
def _verify_tree(G: nx.DiGraph) -> None:
File renamed without changes.

benchmarks/data_generator/prefix_analyzer.py renamed to benchmarks/prefix_data_generator/prefix_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import json
1717
from collections import Counter
1818

19-
from data_generator.logging_utils import calculate_and_print_statistics
19+
from prefix_data_generator.logging_utils import calculate_and_print_statistics
2020

2121

2222
class PrefixAnalyzer:

0 commit comments

Comments
 (0)