-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
80 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM rust:1-bullseye AS builder | ||
LABEL org.opencontainers.image.source=https://github.com/huggingface/text-generation-inference-benchmark | ||
LABEL org.opencontainers.image.source=https://github.com/huggingface/inference-benchmarker | ||
LABEL org.opencontainers.image.description="A benchmark tool for LLM inference engines" | ||
LABEL org.opencontainers.image.licenses="Apache-2.0" | ||
ARG GIT_SHA | ||
WORKDIR /usr/src/text-generation-inference-benchmark | ||
WORKDIR /usr/src/inference-benchmarker | ||
COPY . . | ||
RUN cargo install --path . | ||
FROM debian:bullseye-slim | ||
RUN mkdir -p /opt/text-generation-inference-benchmark/results | ||
WORKDIR /opt/text-generation-inference-benchmark | ||
COPY --from=builder /usr/local/cargo/bin/text-generation-inference-benchmark /usr/local/bin/text-generation-inference-benchmark | ||
CMD ["text-generation-inference-benchmark"] | ||
RUN mkdir -p /opt/inference-benchmarker/results | ||
WORKDIR /opt/inference-benchmarker | ||
COPY --from=builder /usr/local/cargo/bin/inference-benchmarker /usr/local/bin/inference-benchmarker | ||
CMD ["inference-benchmarker"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
build: | ||
cargo build --release --package text-generation-inference-benchmark --bin text-generation-inference-benchmark | ||
cargo build --release --package inference-benchmarker --bin inference-benchmarker | ||
|
||
run: build | ||
cargo run --package text-generation-inference-benchmark --bin text-generation-inference-benchmark -- $@ | ||
cargo run --package inference-benchmarker --bin inference-benchmarker -- $@ | ||
|
||
test: | ||
cargo test --package text-generation-inference-benchmark | ||
cargo test --package inference-benchmarker | ||
|
||
lint: | ||
cargo +nightly fmt | ||
cargo clippy --package text-generation-inference-benchmark | ||
cargo clippy --package inference-benchmarker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: inference-benchmarker | ||
description: A Helm chart to run inference-benchmarker | ||
type: application | ||
version: 0.1.0 | ||
appVersion: "2.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ference-benchmark/templates/configmap.yml → ...rence-benchmarker/templates/configmap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...inference-benchmark/templates/secret.yaml → ...ference-benchmarker/templates/secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "text-generation-inference-benchmark.fullname" . }}-hf-token | ||
name: {{ include "inference-benchmarker.fullname" . }}-hf-token | ||
type: Opaque | ||
stringData: | ||
HF_TOKEN: "{{ .Values.hf_token }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.