Skip to content

Commit 86aad7e

Browse files
feat: macos llm-d simulator dockerfile
Signed-off-by: Alon Kellner <[email protected]>
1 parent d132921 commit 86aad7e

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

tests/e2e/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ The E2E tests in GuideLLM use the [vLLM simulator by llm-d](https://llm-d.ai/doc
66
docker build . -f tests/e2e/vllm-sim.Dockerfile -o type=local,dest=./
77
```
88

9-
On MacOS run:
9+
For MacOS native:
1010

1111
```shell
12-
docker build . -f tests/e2e/vllm-sim.Dockerfile -o type=local,dest=./ --build-arg BUILDOS=darwin
12+
docker build . -f tests/e2e/vllm-sim-macos.Dockerfile -o type=local,dest=./
1313
```
1414

1515
Then to run the tests:

tests/e2e/test_over_saturated_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_over_saturated_benchmark(server: VllmSimServer):
3939
Another example test interacting with the server.
4040
"""
4141
report_path = Path("tests/e2e/over_saturated_benchmarks.json")
42-
rate = 100
42+
rate = 1
4343

4444
# Create and configure the guidellm client
4545
client = GuidellmClient(target=server.get_url(), output_path=report_path)
@@ -80,7 +80,7 @@ def test_over_saturated_benchmark_with_dict_config(server: VllmSimServer):
8080
Test over-saturation detection with dictionary configuration instead of boolean.
8181
"""
8282
report_path = Path("tests/e2e/over_saturated_benchmarks_dict.json")
83-
rate = 100
83+
rate = 1
8484

8585
# Create and configure the guidellm client
8686
client = GuidellmClient(target=server.get_url(), output_path=report_path)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM golang AS base
2+
3+
WORKDIR /app
4+
5+
ARG BUILDOS
6+
ARG BUILDARCH
7+
8+
RUN apt-get update && \
9+
apt-get install -y libzmq3-dev pkg-config && \
10+
git clone https://github.com/llm-d/llm-d-inference-sim.git && \
11+
cd llm-d-inference-sim && \
12+
git checkout v0.3.0 && \
13+
GOOS=${BUILDOS} GOARCH=${BUILDARCH} make build
14+
15+
WORKDIR /app/llm-d-inference-sim
16+
17+
FROM scratch
18+
COPY --from=base /app/llm-d-inference-sim/bin /bin

0 commit comments

Comments
 (0)