-
Notifications
You must be signed in to change notification settings - Fork 88
A4 support for prod #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
A4 support for prod #412
Changes from 33 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
9259f01
A4 on staging support added
sharabiani 61683a4
Merge branch 'develop' into a4-preview
sharabiani 13f0164
A key for gke endpoint added to configs
sharabiani 5b73273
get_cluster_credentials moved to kubectl module
sharabiani b81a7f3
common module added to core
sharabiani 9844a73
common module file added to core
sharabiani 7fb020a
A4 blueprnt updated
sharabiani 1c38e61
Merge branch 'develop' into HEAD
gcie 5a3d19d
update ctk to 1.47.0
gcie a07df4c
Merge branch 'develop' into a4-preview
gcie d72fbc7
fix merge issues
gcie c011820
fix unittests: a3ultra template
gcie a15dcce
fix unittests: missing slash
gcie 4b06518
a4 prod support
gcie 3b71a1d
Merge branch 'develop' into a4-preview
gcie 2db662e
fix: linting
gcie f6615e1
update cluster toolkit to 1.47.0
gcie 29330f3
update missing ctk version in blueprint_generator.py
gcie 2ace838
fix: missing 'v'
gcie ca90a3e
Merge branch 'gcie-ctk-update' into a4-preview
gcie 91787f3
Merge branch 'develop' into a4-preview
gcie 8124814
Merge branch 'develop' into a4-preview
gcie 7da8e6b
remove -lowmem from b200 system characteristics
gcie eb7a8df
fix linting
gcie 643e6a4
fix linting, again
gcie 9daf920
fix integration tests
gcie 5b10533
add a4 tests (unit+integration)
gcie 830f4b3
fix workloads on a4
gcie 4f391ab
fix: invalid annotation bug
gcie a495567
remove unused artifact
gcie 2bdc5a1
add rdma annotations for A4 in slurm mode
gcie f6f75c5
remove unused kueue resources quotas
gcie b916c0f
Merge branch 'develop' into a4-preview
gcie 79d7dd9
bring back removed resources
gcie 0653eed
review fixes
gcie 03843bd
fix tests
gcie c9686df
set ctk version to 1.48.0, fix a3ultra ctk issue
gcie 74dc87a
fix unittests
gcie 03cbb4c
fixes
gcie db9b008
Merge branch 'develop' into a4-preview
gcie c9fcf4b
Merge branch 'develop' into a4-preview
gcie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,15 @@ | ||
| kind: ConfigMap | ||
| apiVersion: v1 | ||
| metadata: | ||
| name: ${resource_config_name} | ||
| data: | ||
| b200-8: "${num_nodes}" | ||
| --- | ||
| kind: ConfigMap | ||
| apiVersion: v1 | ||
| metadata: | ||
| name: ${cluster_config_name} | ||
| data: | ||
| capacity_type: "${capacity_type}" | ||
| reservation_id: "${reservation}" | ||
| provisioner: gcluster |
This file contains hidden or 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,81 @@ | ||
| apiVersion: kueue.x-k8s.io/v1alpha1 | ||
| kind: Topology | ||
| metadata: | ||
| name: "gke-default" | ||
| spec: | ||
| levels: | ||
| - nodeLabel: "cloud.google.com/gce-topology-block" | ||
| - nodeLabel: "cloud.google.com/gce-topology-subblock" | ||
| - nodeLabel: "cloud.google.com/gce-topology-host" | ||
| - nodeLabel: "kubernetes.io/hostname" | ||
| --- | ||
| apiVersion: kueue.x-k8s.io/v1beta1 | ||
| kind: ResourceFlavor | ||
| metadata: | ||
| name: 1xb200-8 | ||
| spec: | ||
| nodeLabels: | ||
| cloud.google.com/gke-accelerator: nvidia-b200 | ||
| topologyName: "gke-default" | ||
| --- | ||
| apiVersion: kueue.x-k8s.io/v1beta1 | ||
| kind: ClusterQueue | ||
| metadata: | ||
| name: cluster-queue | ||
| spec: | ||
| namespaceSelector: {} # match all. | ||
| resourceGroups: | ||
| - coveredResources: ["nvidia.com/gpu"] | ||
|
gcie marked this conversation as resolved.
Outdated
|
||
| flavors: | ||
| - name: 1xb200-8 | ||
| resources: | ||
| - name: "nvidia.com/gpu" | ||
| nominalQuota: ${num_chips} | ||
| --- | ||
| apiVersion: kueue.x-k8s.io/v1beta1 | ||
| kind: LocalQueue | ||
| metadata: | ||
| namespace: default | ||
| name: multislice-queue | ||
| spec: | ||
| clusterQueue: cluster-queue | ||
| --- | ||
| apiVersion: scheduling.k8s.io/v1 | ||
| kind: PriorityClass | ||
| metadata: | ||
| name: very-low | ||
| value: 100 | ||
| globalDefault: false | ||
| description: "Very Low" | ||
| --- | ||
| apiVersion: scheduling.k8s.io/v1 | ||
| kind: PriorityClass | ||
| metadata: | ||
| name: low | ||
| value: 250 | ||
| globalDefault: false | ||
| description: "Low" | ||
| --- | ||
| apiVersion: scheduling.k8s.io/v1 | ||
| kind: PriorityClass | ||
| metadata: | ||
| name: medium | ||
| value: 500 | ||
| globalDefault: false | ||
| description: "Medium" | ||
| --- | ||
| apiVersion: scheduling.k8s.io/v1 | ||
| kind: PriorityClass | ||
| metadata: | ||
| name: high | ||
| value: 750 | ||
| globalDefault: false | ||
| description: "High" | ||
| --- | ||
| apiVersion: scheduling.k8s.io/v1 | ||
| kind: PriorityClass | ||
| metadata: | ||
| name: very-high | ||
| value: 1000 | ||
| globalDefault: false | ||
| description: "Very High" | ||
This file contains hidden or 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,66 @@ | ||
| apiVersion: apps/v1 | ||
| kind: DaemonSet | ||
| metadata: | ||
| name: nccl-rdma-installer | ||
| namespace: kube-system | ||
| labels: | ||
| k8s-app: nccl-rdma-installer | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| k8s-app: nccl-rdma-installer | ||
| updateStrategy: | ||
| type: RollingUpdate | ||
| template: | ||
| metadata: | ||
| labels: | ||
| name: nccl-rdma-installer | ||
| k8s-app: nccl-rdma-installer | ||
| spec: | ||
| priorityClassName: system-node-critical | ||
| affinity: | ||
| nodeAffinity: | ||
| requiredDuringSchedulingIgnoredDuringExecution: | ||
| nodeSelectorTerms: | ||
| - matchExpressions: | ||
| - key: cloud.google.com/gke-accelerator | ||
| operator: In | ||
| values: | ||
| - nvidia-b200 | ||
| tolerations: | ||
| - operator: "Exists" | ||
| hostNetwork: true | ||
| hostPID: true | ||
| volumes: | ||
| - name: library-dir-host | ||
| hostPath: | ||
| path: /home/kubernetes/bin/nvidia/lib64 | ||
| type: DirectoryOrCreate | ||
| - name: gib | ||
| hostPath: | ||
| path: /home/kubernetes/bin/gib | ||
| initContainers: | ||
| - image: us-docker.pkg.dev/kernel-net-team/clouda4-nccl-dev/nccl-plugin-gib-diagnostic:v1.0.3-b200 | ||
| name: nccl-rdma-installer | ||
| resources: | ||
| requests: | ||
| cpu: 150m | ||
| securityContext: | ||
| privileged: true | ||
| volumeMounts: | ||
| - name: library-dir-host | ||
| mountPath: /usr/local/home/kubernetes/bin/nvidia/lib64 | ||
| - name: gib | ||
| mountPath: /usr/local/home/kubernetes/bin/gib | ||
| command: ["/bin/sh", "-c"] | ||
| args: | ||
| - | | ||
| set -ex | ||
| /scripts/container_entry.sh install --install-nccl | ||
| cp -r /var/lib/gib/lib64/. /usr/local/home/kubernetes/bin/nvidia/lib64 | ||
| cp -r /var/lib/gib/. /usr/local/home/kubernetes/bin/gib | ||
| # ibv_devinfo || exit 1 | ||
| echo "installation finishes" | ||
| containers: | ||
| - image: "gke.gcr.io/pause:3.8@sha256:880e63f94b145e46f1b1082bb71b85e21f16b99b180b9996407d61240ceb9830" | ||
| name: pause |
This file contains hidden or 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,52 @@ | ||
| apiVersion: apiextensions.k8s.io/v1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: storages.xpk.x-k8s.io | ||
| spec: | ||
| group: xpk.x-k8s.io | ||
| versions: | ||
| - name: v1 | ||
| served: true | ||
| storage: true | ||
| schema: | ||
| openAPIV3Schema: | ||
| type: object | ||
| properties: | ||
| spec: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| cluster: | ||
| type: string | ||
| auto_mount: | ||
| type: boolean | ||
| mount_point: | ||
| type: string | ||
| readonly: | ||
| type: boolean | ||
| manifest: | ||
| type: string | ||
| pv: | ||
| type: string | ||
| pvc: | ||
| type: string | ||
| required: | ||
| - type | ||
| - cluster | ||
| - auto_mount | ||
| - mount_point | ||
| - readonly | ||
| - manifest | ||
| - pvc | ||
| - pv | ||
| x-kubernetes-validations: | ||
| - message: Value is immutable | ||
| rule: self == oldSelf | ||
| scope: Cluster | ||
| names: | ||
| plural: storages | ||
| singular: storage | ||
| kind: Storage | ||
| shortNames: | ||
| - stg |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.