Skip to content

Commit 5eaf655

Browse files
committed
update regfression testing markdown to refine docker image creating for LPG
1 parent 49174ef commit 5eaf655

File tree

1 file changed

+29
-1
lines changed
  • site-src/performance/regression-testing

1 file changed

+29
-1
lines changed

site-src/performance/regression-testing/index.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,35 @@ Refer to the common setup instructions in [benchmark guide](/site-src/performanc
1010

1111
## Create the LPG Dockerfile image
1212

13-
Follow the instructions [here]( https://github.com/AI-Hypercomputer/inference-benchmark/blob/1c92df607751a7ddb04e2152ed7f6aaf85bd9ca7/README.md) to create the LPG image.
13+
Follow the instructions [here]( https://github.com/AI-Hypercomputer/inference-benchmark/blob/1c92df607751a7ddb04e2152ed7f6aaf85bd9ca7/README.md) to create the LPG image. Specifically, once you are in the inference-benchmark directory follow the steps below:
14+
15+
* Create a repository in artifact registry to push the image there and use it on your cluster.
16+
17+
```
18+
gcloud artifacts repositories create ai-benchmark --location=us-central1 --repository-format=docker
19+
```
20+
21+
* For Inifinity-Instruct and billsum datasets run
22+
23+
```
24+
pip install datasets transformers numpy pandas tqdm matplotlib
25+
python datasets/import_dataset.py --hf_token YOUR_TOKEN
26+
```
27+
28+
* Build a container to run the benchmark directly on a Kubernetes cluster
29+
using the specified Dockerfile.
30+
31+
```
32+
docker build -t inference-benchmark .
33+
```
34+
35+
* Push the image to the repository.
36+
37+
```
38+
docker tag inference-benchmark us-central1-docker.pkg.dev/{project-name}/ai-benchmark/inference-benchmark
39+
docker push us-central1-docker.pkg.dev/{project-name}/ai-benchmark/inference-benchmark
40+
```
41+
1442

1543
## Conduct Regression Tests
1644

0 commit comments

Comments
 (0)