Skip to content

Commit c05800d

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents d7a2678 + 1043eaa commit c05800d

File tree

7 files changed

+52
-5
lines changed

7 files changed

+52
-5
lines changed

OWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ approvers:
66
- jiripetrlik
77
- kpostoffice
88
- sutaakar
9+
- szaher
910
- varshaprasad96
1011
reviewers:
1112
- abhijeet-dhumal
@@ -17,6 +18,7 @@ reviewers:
1718
- jiripetrlik
1819
- kpostoffice
1920
- sutaakar
21+
- szaher
2022
- varshaprasad96
2123
emeritus_approvers:
2224
- anishasthana # 2024-09-04

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.21.5
77
require (
88
github.com/kubeflow/training-operator v1.7.0
99
github.com/onsi/gomega v1.31.1
10-
github.com/project-codeflare/codeflare-common v0.0.0-20241015133940-3e0d9b3a23ad
10+
github.com/project-codeflare/codeflare-common v0.0.0-20241108084652-0d76fd215a22
1111
github.com/prometheus/client_golang v1.20.4
1212
github.com/prometheus/common v0.57.0
1313
github.com/ray-project/kuberay/ray-operator v1.1.0-alpha.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
365365
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
366366
github.com/project-codeflare/appwrapper v0.8.0 h1:vWHNtXUtHutN2EzYb6rryLdESnb8iDXsCokXOuNYXvg=
367367
github.com/project-codeflare/appwrapper v0.8.0/go.mod h1:FMQ2lI3fz6LakUVXgN1FTdpsc3BBkNIZZgtMmM9J5UM=
368-
github.com/project-codeflare/codeflare-common v0.0.0-20241015133940-3e0d9b3a23ad h1:rZEFsEa4VQXw/U2AHt2HJ4+e55CXYElPIhOSr3+3e9o=
369-
github.com/project-codeflare/codeflare-common v0.0.0-20241015133940-3e0d9b3a23ad/go.mod h1:v7XKwaDoCspsHQlWJNarO7gOpR+iumSS+c1bWs3kJOI=
368+
github.com/project-codeflare/codeflare-common v0.0.0-20241108084652-0d76fd215a22 h1:wzIJHoGAmNZupO3ZI7gbONuXgIUireabHsZvMt+3fqQ=
369+
github.com/project-codeflare/codeflare-common v0.0.0-20241108084652-0d76fd215a22/go.mod h1:v7XKwaDoCspsHQlWJNarO7gOpR+iumSS+c1bWs3kJOI=
370370
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
371371
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
372372
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=

instructlab/standalone/standalone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
logger = logging.getLogger(__name__)
5151

5252
# IMAGES
53-
DS_IMAGE = "quay.io/opendatahub/workbench-images:jupyter-datascience-ubi9-python-3.11-20241004-609ffb8" # pylint: disable=line-too-long
54-
RHELAI_IMAGE = "registry.redhat.io/rhelai1/instructlab-nvidia-rhel9:1.2"
53+
DS_IMAGE = "quay.io/opendatahub/workbench-images@sha256:7f26f5f2bec4184af15acd95f29b3450526c5c28c386b6cb694fbe82d71d0b41" # pylint: disable=line-too-long
54+
RHELAI_IMAGE = "registry.redhat.io/rhelai1/instructlab-nvidia-rhel9@sha256:b3dc9af0244aa6b84e6c3ef53e714a316daaefaae67e28de397cd71ee4b2ac7e" # pylint: disable=line-too-long
5555

5656
# SDG
5757
DEFAULT_REPO_URL = "https://github.com/instructlab/taxonomy.git"

tests/ilab/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# InstructLab Standalone Tool Integration Tests
2+
3+
### Prerequisites
4+
5+
* Admin access to an OpenShift cluster
6+
7+
* Installed OpenDataHub or RHOAI, enabled all Distributed Workload and Serving components
8+
9+
* OpenShift contains StorageClass with ReadWriteMany access mode
10+
11+
* OpenAI compliant Judge model deployed and served on an endpoint reachable from OpenShift
12+
13+
* Installed Go 1.21
14+
15+
## Required environment variables
16+
17+
### Environment variables to download SDG and upload trained model
18+
19+
* `AWS_DEFAULT_ENDPOINT` - Storage bucket default endpoint
20+
* `AWS_ACCESS_KEY_ID` - Storage bucket access key
21+
* `AWS_SECRET_ACCESS_KEY` - Storage bucket secret key
22+
* `AWS_STORAGE_BUCKET` - Storage bucket name
23+
* `SDG_OBJECT_STORE_DATA_KEY` - Path in the storage bucket where SDG bundle is located
24+
25+
### Environment variables for connection to Judge model
26+
27+
* `JUDGE_ENDPOINT` - Endpoint where the Judge model is deployed to (it should end with `/v1`)
28+
* `JUDGE_NAME` - Name of the Judge model
29+
* `JUDGE_API_KEY` - API key needed to access the Judge model
30+
* `JUDGE_CA_CERT_FROM_OPENSHIFT` (Optional) - If Judge model is deployed in the same OpenShift instance and the OpenShift certificate is insecure then set this env variable to `true`. It will indicate to the test to set OpenShift CA certificate as trusted certificate.
31+
32+
### Misc environment variables
33+
34+
* `TEST_NAMESPACE` (Optional) - Specify test namespace which should be used to run the tests
35+
* `TEST_ILAB_STORAGE_CLASS_NAME` (Optional) - Specify name of StorageClass which supports ReadWriteMany access mode. If not specified then test assumes StorageClass `nfs-csi` to exist.
36+
* `RHELAI_WORKBENCH_IMAGE` (Optional) - Specify Workbench image to be used to run Standalone tool. If not specified then test uses Workbench image `quay.io/opendatahub/workbench-images:jupyter-datascience-ubi9-python-3.11-20241004-609ffb8`.
37+
Provided image should contain `click==8.1.7` and `kubernetes==26.1.0` packages.
38+
39+
## Running Tests
40+
41+
Execute tests like standard Go unit tests.
42+
43+
```bash
44+
go test -run TestInstructlabTrainingOnRhoai -v -timeout 180m ./tests/ilab/
45+
```
File renamed without changes.

0 commit comments

Comments
 (0)