Skip to content
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

CI: example job using EKS jumphost #1151

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

CI: example job using EKS jumphost #1151

wants to merge 3 commits into from

Conversation

olupton
Copy link
Collaborator

@olupton olupton commented Nov 12, 2024

No description provided.

--output=/opt/output/rank%q{JOB_COMPLETION_INDEX}.zip \
-- \
jax-nccl-test \
--coordinator-address \
Copy link
Collaborator

@yhtang yhtang Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use a JobSet? I've added automatic bootstrapping support for JAX in K8s jobset. A jobset provides a higher-level abstraction and can save the ClusterIP and bootstrapping boilerplates.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example of how to run a jobset, see https://github.com/jax-ml/jax/pull/24197/files

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we are not currently exposing the code that configures the Kubenetes cluster itself, I was reluctant to go in a direction where the public code (CI config) does not work without non-trivial private logic (JobSet installation, service account configuration, ...)

Also, the bootstrapping doesn't work out of the box because it relies on Python code that is not shipped in our containers. Pursuing that felt like a tangent to the core of this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-trivial private logic (JobSet installation, service account configuration, ...)

The service account logic is pretty straightforward --- it's not gonna rank in the top N most hairy K8s configs in the world. Plus, we already provided a config that works OOTB!

It's one line to install jobset:

kubectl apply --server-side -f https://github.com/kubernetes-sigs/jobset/releases/download/v0.7.1/manifests.yaml

That said, given that Jobs are 'built-in', maybe we should consider making jax.distributed.initialize automatic under it too.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not currently exposing the code that configures the Kubenetes cluster

I wouldn't view the read-only service account and the installation of Jobset as the sensitive information of a cluster. It's the equivalence of one usermod -aG ... and one apt install for a SLURM cluster.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not saying we can't expose it because it's sensitive (it's not). But it's not currently exposed, and it won't be in this PR, so it can't be referred to. It would need to be checked what else is needed re: the AWS/EKS-specific parts of how the roles are managed, too.

Plus, we already provided a config that works OOTB!

You mean the minikube CI PR to JAX? That's not really discoverable?

The error message still includes a placeholder, BTW: https://github.com/yhtang/jax/blob/2f67710e8ce9cd6c872f85e57417aa9bba7aa270/jax/_src/clusters/k8s_cluster.py#L70

.github/workflows/_ci.yaml Show resolved Hide resolved
.github/workflows/_ci.yaml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants